/* Responsive Menu Styles */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #1a1d29;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    transform: translateX(0);
}

/* Mobile Backdrop */
.mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.mobile-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile Nav Header */
.mobile-nav-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-header h1 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    font-weight: 700;
}

/* Mobile Nav Menu */
.mobile-nav-menu {
    padding: 20px 0;
}

.mobile-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #a0a8b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.mobile-nav-link.active {
    background: #0066ff;
    color: white;
}

.mobile-nav-link i {
    width: 20px;
    margin-right: 15px;
    font-size: 1.1rem;
}

.mobile-nav-link .badge {
    margin-left: auto;
    background: var(--danger-color, #ff3b30);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* Mobile Nav Footer */
.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

/* Mobile Header - Hidden by default */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 900;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary, #333);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    position: relative;
    z-index: 901;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color, #2563eb);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color, #2563eb);
    outline-offset: 2px;
}

/* Mobile Header Title */
.mobile-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #333);
    margin: 0;
}

/* Mobile Header Actions */
.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-header .notification-btn {
    color: var(--text-primary, #333);
}

.mobile-header .notification-btn:hover {
    color: var(--primary-color, #2563eb);
}

.mobile-header .notification-badge {
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    height: auto;
    display: block;
}

/* Responsive Behavior */
@media (max-width: 991px) {
    /* Show mobile header */
    .mobile-header {
        display: flex !important;
    }
    
    /* Transform sidebar for mobile instead of hiding */
    .sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 260px !important;
        height: 100vh !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 400 !important;
    }
    
    /* Show sidebar when active */
    .sidebar.active,
    .sidebar.show {
        transform: translateX(0) !important;
    }
    
    /* Adjust main content for mobile */
    .main-content {
        margin-left: 0 !important;
        padding-top: 60px; /* Account for mobile header */
    }
}

/* Smooth animations */
.mobile-nav,
.mobile-backdrop {
    will-change: transform, opacity;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Close button for mobile nav */
.mobile-nav-close {
    background: none;
    border: none;
    color: #a0a8b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.mobile-nav-close:hover {
    color: #fff;
}