/* 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;
}

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

/* 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 responsive */
@media (max-width: 768px) {
    .content-with-sidebar {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 1100;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
        color: white;
        border: none;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: var(--shadow-medium);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
    }
}

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