/* ===== MOBILE MENU STYLES ===== */

/* Hamburger Button */
.mobile-menu-toggle {
    display: none;
    /* Hidden by default, shown on mobile via media query */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-right: 1rem;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-toggle:hover span {
    background: var(--text-main);
}

/* Mobile Navigation Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -280px;
    /* Hidden off-screen by default */
    width: 280px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    overflow-y: auto;
    transition: left 0.3s ease;
    padding: 1.5rem 0;
}

.mobile-nav.active {
    left: 0;
    /* Slide in */
}

/* Mobile Nav Links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: rgba(251, 191, 36, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

/* Mobile Nav Section (for dropdowns like Master List) */
.mobile-nav-section {
    margin: 0.5rem 0;
}

.mobile-nav-section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-nav-section-title i {
    width: 20px;
    text-align: center;
}

.mobile-nav-sublink {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    /* Indented */
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-sublink:hover,
.mobile-nav-sublink:active {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary-color);
    color: var(--text-main);
}

.mobile-nav-sublink i {
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

/* Logout Link Styling */
.mobile-nav-logout {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    color: #ef4444;
}

.mobile-nav-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
}

.mobile-nav-logout i {
    color: #ef4444;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}