/* BRANDING FIX - OVERRIDE */
.logo-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: var(--s-3) 0 !important;
    border-bottom: 1px solid var(--border) !important;
    margin-bottom: var(--s-2) !important;
    width: 100% !important;
    overflow: hidden !important;
    gap: 0 !important;
    min-height: 80px;
}

.brand-logo {
    width: 100% !important;
    max-width: 180px !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
}

/* Hide old logo elements if they somehow reappear */
.logo-icon, .brand-name, .logo {
    display: none !important;
}

.sidebar {
    padding-top: var(--s-2) !important;
}

/* MOBILE TOGGLE BUTTON POSITIONING */
@media (max-width: 768px) {
    /* Ensure the mobile toggle in the top-bar is relative to the bar */
    .top-bar #mobile-toggle {
        position: static !important;
        transform: none !important;
        margin-right: var(--s-2);
    }
    
    .top-bar-left {
        gap: 0 !important;
    }
    
    .top-bar {
        padding: 0 var(--s-3) !important;
    }
    
    .logo-container {
        padding: var(--s-2) var(--s-4) !important;
        justify-content: space-between !important;
        min-height: 60px !important;
    }

    .brand-logo {
        max-width: 140px !important;
    }

    .close-sidebar-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border);
        border-radius: var(--r-sm);
        color: var(--text-2);
        cursor: pointer;
    }
}

.close-sidebar-btn {
    display: none;
}

#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 499;
}

#sidebar-overlay.open {
    display: block !important;
}
