/* Admin Responsive Design System */

:root {
    --sidebar-width: 260px;
}

/* Sidebar Responsive Fix */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: var(--sidebar-width);
        box-shadow: 20px 0 50px rgba(0,0,0,0.2);
        z-index: 100 !important;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        padding: 1.5rem !important;
        padding-top: 5rem !important; /* Space for mobile header */
    }

    /* Mobile Header/Toggle */
    .mobile-admin-header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 4rem;
        background: white;
        border-bottom: 1px solid #e2e8f0;
        padding: 0 1.5rem;
        align-items: center;
        justify-content: flex-start;
        z-index: 40;
    }
    
    #sidebarToggle {
        margin-right: 1rem;
    }
}

.mobile-admin-header {
    display: none;
}

/* Overlay for mobile */
#sidebarOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 45;
    display: none;
}

#sidebarOverlay.active {
    display: block;
}

.sidebar {
    z-index: 50 !important;
}
