/* Global styles */
body {
    background: var(--chat-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    line-height: 1.7;
}

.main-content {
    flex: 1;
}

/* Main content with sidebar offset */
.content-with-sidebar {
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Standalone content (no sidebar) - full width */
.standalone-content {
    margin-left: 0;
    min-height: 100vh;
    width: 100%;
}

/* Chat container */
.chat-container {
    padding: 32px 24px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    /* Remove flex and overflow to let page handle scrolling */
}

@media (max-width: 480px) {
    .chat-container {
        padding: 12px 6px;
    }
}

/* Status area */
.status-row {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    padding: 5px 0;
    color: #6c757d;
}

.status-icon {
    margin-right: 5px;
}

/* Spinner for loading */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Styles - Dark background (main page) */
.scrollbar-dark ::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 8px;
}

.scrollbar-dark ::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar-dark ::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: rgba(42, 43, 74, 0.8);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.scrollbar-dark ::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: rgba(50, 51, 84, 0.9);
    width: 12px;
    box-shadow: 0 0 10px rgba(65, 105, 225, 0.4);
}

/* Scrollbar Styles - Light background (sidebar/dark areas) */
.scrollbar-light ::-webkit-scrollbar {
    width: 8px;
}

.scrollbar-light ::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar-light ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.scrollbar-light ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
    width: 12px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Firefox scrollbar */
.scrollbar-dark,
body {
    scrollbar-width: thin;
    scrollbar-color: rgba(42, 43, 74, 0.8) transparent;
}

.scrollbar-light {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Mobile Header Bar */
.mobile-header {
    display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .content-with-sidebar {
        margin-left: 0;
    }

    /* Mobile Header Bar */
    .mobile-header {
        display: flex;
        align-items: center;
        position: sticky;
        top: 0;
        width: 100%;
        height: 42px;
        background: #1A1B3A;
        color: white;
        z-index: 1040;
        padding: 0 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-toggle {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        color: white;
        font-size: 20px;
        flex-shrink: 0;
    }

    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .mobile-header-content {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mobile-header-logo-link {
        text-decoration: none;
        color: inherit;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .mobile-header-logo {
        font-family: 'Outfit', sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
        color: white;
        letter-spacing: 0.01em;
    }

    .mobile-header-motto {
        font-size: 0.8rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.7);
        letter-spacing: 0.02em;
        padding-left: 8px;
        border-left: 1px solid rgba(255, 255, 255, 0.3);
    }

    .mobile-header-spacer {
        width: 36px;
        flex-shrink: 0;
    }
}

@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
}
