/* ----------------------------------------------------
   RESET + TYPOGRAFIA
---------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #f7f3ed;
    color: #2b2b2b;
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
}

/* ----------------------------------------------------
   STRUKTURA STRONY
---------------------------------------------------- */
.page {
    max-width: 1300px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(0,0,0,0.12);
    border: 1px solid #e6d8c7;
}

/* ----------------------------------------------------
   TOPBAR
---------------------------------------------------- */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 35px;
    background: linear-gradient(135deg, #ffb36b, #ff8a3d, #ff7a00);
    border-bottom: 1px solid #e6c3a0;
}

.logo-img {
    max-height: 85px;
}

.svg-logo {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff7f0;
    text-shadow:
        0 0 8px rgba(255,255,255,0.6),
        0 0 18px rgba(255, 138, 61, 0.9),
        0 0 32px rgba(255, 122, 0, 1),
        0 0 48px rgba(255, 122, 0, 0.8);
    animation: logoPulse 2.4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%   { transform: scale(1);   opacity: 0.9; }
    50%  { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1);   opacity: 0.9; }
}

/* ----------------------------------------------------
   ADMIN STATUS
---------------------------------------------------- */
.admin-status {
    text-align: right;
}

.admin-status span {
    display: inline-block;
    background: #ffe1c4;
    color: #8a3f00;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

/* ----------------------------------------------------
   LAYOUT
---------------------------------------------------- */
.layout {
    display: flex;
    min-height: 650px;
}

/* ----------------------------------------------------
   SIDEBAR
---------------------------------------------------- */
.sidebar {
    width: 270px;
    background: #fff6ec;
    border-right: 1px solid #e6d8c7;
    padding: 28px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 35px;
}

.menu a {
    display: block;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e8dccc;
    text-decoration: none;
    color: #3a3a3a;
    font-weight: 500;
    transition: 0.25s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.04);
}

.menu a:hover {
    background: #ffe3cc;
    border-color: #ffb36b;
    transform: translateX(6px);
}

.menu a.active {
    background: #ffcf9e;
    border-color: #ff8a3d;
    font-weight: 600;
    color: #5a2a00;
    box-shadow: 0 4px 12px rgba(255,122,0,0.25);
}

/* ----------------------------------------------------
   LOGIN BOX / LOGO UPLOAD
---------------------------------------------------- */
.login-box {
    background: #ffffff;
    border: 1px solid #e8dccc;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.login-box h3 {
    margin-bottom: 14px;
    font-size: 18px;
    color: #5a2a00;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-box input {
    padding: 12px;
    border: 1px solid #d8c7b3;
    border-radius: 8px;
    background: #fff8f1;
    transition: 0.2s;
}

.login-box input:focus {
    border-color: #ff8a3d;
    box-shadow: 0 0 6px rgba(255,122,0,0.4);
}

/* ----------------------------------------------------
   CONTENT
---------------------------------------------------- */
.content {
    flex: 1;
    padding: 45px;
    background: #fffdfb;
}

.content h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 28px;
    color: #5a2a00;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(255,122,0,0.25);
}

/* ----------------------------------------------------
   KARTY TREŚCI
---------------------------------------------------- */
.chatbot-box,
.history-link-box,
form,
.card {
    background: #ffffff;
    border: 1px solid #e8dccc;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.chatbot-box h2,
.history-link-box h2,
form h2 {
    margin-bottom: 18px;
    font-size: 22px;
    color: #5a2a00;
    font-weight: 600;
}

/* ----------------------------------------------------
   PRZYCISKI
---------------------------------------------------- */
.btn,
button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.25s;
    border: none;
    background: linear-gradient(135deg, #ff9a3d, #ff7a00);
    color: white;
    box-shadow: 0 4px 10px rgba(255,122,0,0.35);
}

.btn:hover,
button:hover {
    background: linear-gradient(135deg, #ff7a00, #e86a00);
    transform: translateY(-3px);
}

.small-btn {
    padding: 8px 14px;
    font-size: 14px;
}

/* ----------------------------------------------------
   CHATBOT
---------------------------------------------------- */
.chatbot-box form {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
}

.chatbot-box input {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #d8c7b3;
    background: #fff8f1;
}

.bot-panel {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.bot-avatar img {
    width: 160px;
    border-radius: 14px;
    border: 2px solid #ffb36b;
}

/* ----------------------------------------------------
   HISTORIA
---------------------------------------------------- */
.history-item {
    background: #ffffff;
    border: 1px solid #e8dccc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ----------------------------------------------------
   MAPA
---------------------------------------------------- */
iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
    border-radius: 12px;
}
/* ----------------------------------------------------
   CHATBOT – STRONA WYNIKOWA
---------------------------------------------------- */

.chatbot-result-page {
    padding: 40px;
    background: #fffdfb;
}

.chat-result-card {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e8dccc;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.chat-result-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

.chat-result-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: #5a2a00;
    letter-spacing: 0.04em;
}

.chat-result-avatar {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    border: 2px solid #ffb36b;
    box-shadow: 0 4px 10px rgba(255,122,0,0.25);
}

.chat-result-section {
    margin-bottom: 25px;
}

.chat-result-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #5a2a00;
    margin-bottom: 8px;
}

/* Bąbelki wiadomości */
.bubble {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.55;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.user-bubble {
    background: #fff3e6;
    border: 1px solid #ffcf9e;
    color: #5a2a00;
}

.bot-bubble {
    background: #ffe9d1;
    border: 1px solid #ffb36b;
    color: #5a2a00;
}

/* Przycisk powrotu */
.back-btn {
    margin-top: 10px;
    display: inline-block;
    padding: 10px 20px;
}
