/* website/static/website/css/navbar_mobile.css */

/* Hide mobile UI by default on desktop */
.mobile_bottom_nav,
.mobile_plus_menu_overlay {
    display: none;
}

/* Apply mobile styles only below 768px (mobile devices) */
@media (max-width: 767px) {
    
    .custom-navbar .desktop-view {
        display: none; /* Hide desktop view */
    }
    
    .custom-navbar .mobile-view {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 60px; /* Or your desired mobile navbar height */
        padding: 0; /* Pas de padding sur mobile-view */
        margin: 0; /* Pas de marge */
    }
    
    /* Assurer que la navbar couvre toute la largeur sur mobile ET qu'elle soit fixe */
    .custom-navbar {
        position: fixed; /* Navbar fixe sur mobile */
        top: 0; /* Fixée en haut */
        left: 0; /* Alignée à gauche */
        width: 100%; /* Utilise toute la largeur du conteneur sans débordement */
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        z-index: 1050; /* Z-index élevé pour être au-dessus du contenu */
        background-color: var(--background-color, #ffffff); /* Fond blanc par défaut */
        box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Ombre pour séparer de la hero */
    }
    
    /* Compense la navbar fixe pour éviter qu'elle ne recouvre le contenu */
    body {
        padding-top: 60px; /* égal à la hauteur de la navbar mobile */
        scroll-padding-top: 60px; /* pour les ancres */
    }
    
    .custom-navbar .custom-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 1rem; /* Garde le padding horizontal pour l'espacement du contenu */
        box-sizing: border-box;
    }
    
    /* Masquer le bouton hamburger sur mobile (sidebar désactivée) */
    .mobile-toggler {
        display: none !important;
    }

    .toggler-icon {
        display: block;
        width: 22px;
        height: 2px;
        background-color: #333; /* Icon color */
        position: relative;
        transition: all 0.3s ease;
    }
    .toggler-icon::before,
    .toggler-icon::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #333;
        transition: all 0.3s ease;
    }
    .toggler-icon::before {
        top: -6px;
    }
    .toggler-icon::after {
        bottom: -6px;
    }
    
    /* Hamburger animation */
    .mobile-toggler.active .toggler-icon {
        background-color: transparent;
    }
    
    .mobile-toggler.active .toggler-icon::before {
        top: 0;
        transform: rotate(45deg);
        background-color: var(--vefa-accent); /* Orange color when active */
    }
    
    .mobile-toggler.active .toggler-icon::after {
        bottom: 0;
        transform: rotate(-45deg);
        background-color: var(--vefa-accent); /* Orange color when active */
    }
    
    /* Repositionner le logo à gauche sans le bouton hamburger */
    .mobile-logo {
        margin-left: 0;
        position: relative;
        left: 0;
        transform: none;
        display: flex;
        align-items: center;
        text-decoration: none; /* Supprime le soulignement du lien */
        outline: none; /* Supprime le contour de focus */
        flex-shrink: 0;
    }
    
    .mobile-logo:hover, 
    .mobile-logo:focus {
        text-decoration: none; /* Assure qu'il n'y a pas de soulignement au survol/focus */
        outline: none;
    }
    
    .mobile-logo .logo-img {
        height: 32px; /* Taille réduite pour laisser de la place au texte */
        width: auto;
        margin-right: 4px; /* Espacement entre le logo et le texte */
    }
    
    .mobile-logo .brand-text {
        font-weight: 600;
        font-size: 18px; /* Taille uniforme sur mobile */
    }

    /* Logo compact (sans texte) quand un programme est sélectionné */
    .mobile-logo-compact {
        margin-right: 0.5rem;
    }

    .mobile-logo-compact .logo-img {
        height: 36px; /* Légèrement plus grand quand seul */
    }

    /* Mobile right actions container - loupe + sélecteur + notifications + profil
       gap réduit (0.5rem) + min-width:0 pour permettre au sélecteur programme
       d'ellipsiser plutôt que de déborder quand la zone est très chargée. */
    .mobile-right-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: auto;
        min-width: 0;
        flex-shrink: 1;
    }

    /* Lien profil dans la navbar mobile */
    .mobile-profile-link {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .mobile-profile-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #e0e0e0;
        transition: border-color 0.2s ease;
    }

    .mobile-profile-link:hover .mobile-profile-avatar {
        border-color: var(--vefa-accent);
    }
    
    .mobile-user-menu .user-avatar-button {
        background: none;
        border: none;
        padding: 0;
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    .mobile-user-menu .user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }

    .mobile-user-menu .dropdown-caret {
        font-size: 0.8em;
        color: #777; /* Couleur plus subtile pour la flèche */
        transition: transform 0.2s ease, color 0.2s ease; /* Transition pour l'animation */
        margin-left: 3px; /* Petit espacement */
    }

    /* Animation de la flèche lorsque le menu est ouvert */
    .mobile-user-menu .user-dropdown-menu.show-dropdown + .user-avatar-button .dropdown-caret,
    .user-avatar-button:hover .dropdown-caret {
        transform: rotate(180deg); /* Rotation de la flèche */
        color: var(--vefa-accent); /* Couleur accent orange au survol */
    }

    .mobile-user-menu .user-dropdown-menu {
        display: none; /* Hide dropdown by default */
        position: absolute;
        top: 100%; /* Position below button */
        right: 0;
        background-color: white;
        border: none; /* Supprimer la bordure */
        border-radius: 8px; /* Coins plus arrondis */
        padding: 0.75rem 0;
        list-style: none;
        margin: 8px 0 0 0; /* Augmenter marge */
        min-width: 200px;
        z-index: 9999; /* Valeur très élevée pour être sûr */
        box-shadow: 0 6px 16px rgba(0,0,0,0.12); /* Ombre plus visible */
    }

    .mobile-user-menu .user-dropdown-menu.show-dropdown {
        display: block; /* Show dropdown when class is added */
        animation: fadeIn 0.2s ease-in-out; /* Animation d'apparition */
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Style des éléments du menu déroulant */
    .mobile-user-menu .user-dropdown-menu li a,
    .mobile-user-menu .user-dropdown-menu li button {
        display: flex;
        align-items: center;
        padding: 0.6rem 1rem;
        color: #444;
        text-decoration: none;
        transition: background-color 0.2s, color 0.2s;
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        font-size: 0.95rem;
        cursor: pointer;
    }

    .mobile-user-menu .user-dropdown-menu li a:hover,
    .mobile-user-menu .user-dropdown-menu li button:hover {
        background-color: var(--vefa-accent-soft); /* Fond orange très léger au survol */
        color: var(--vefa-accent); /* Orange au survol */
    }

    .mobile-user-menu .user-dropdown-menu li a:hover i,
    .mobile-user-menu .user-dropdown-menu li button:hover i {
        color: var(--vefa-accent); /* Icône orange au survol */
    }

    .mobile-user-menu .user-dropdown-menu li hr {
        margin: 0.5rem 0;
        border: none;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.08), transparent);
    }

    .mobile-login-btn {
       /* Style mobile login button/icon */
       padding: 0.25rem 0.5rem;
       color: #333;
       font-size: 1.2rem;
    }
    
    .mobile-login-btn:hover {
        color: var(--vefa-accent);
    }

    /* ===== MOBILE PROGRAM SELECTOR ===== */
    .mobile-program-selector-wrapper {
        position: relative;
        min-width: 0;
    }

    .mobile-program-selector {
        background: none;
        border: none;
        padding: 0.4rem 0.6rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        border-radius: 20px;
        transition: background-color 0.2s ease;
        min-width: 0;
        max-width: 200px; /* réduit (-40px) pour laisser de la place à la loupe sans déborder */
        flex: 1 1 auto; /* absorbe l'espace restant tout en pouvant ellipsiser le texte */
    }

    .mobile-program-selector:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    /* Image du programme sélectionné */
    .program-selector-image {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #e0e0e0;
    }

    /* Placeholder si pas d'image */
    .program-selector-placeholder,
    .program-selector-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background-color: #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #666;
    }

    .program-selector-text {
        font-size: 0.9rem;
        font-weight: 500;
        color: #333;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
    }

    /* Badge avec le nombre de programmes */
    .program-selector-badge {
        background-color: var(--vefa-accent);
        color: white;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 2px 6px;
        border-radius: 10px;
        min-width: 20px;
        text-align: center;
    }

    /* Flèche du dropdown */
    .program-selector-caret {
        font-size: 0.7rem;
        color: #666;
        transition: transform 0.3s ease;
    }

    /* ===== MOBILE PROGRAM DROPDOWN ===== */
    .mobile-program-dropdown {
        display: none;
        position: fixed;
        top: 60px;
        right: 10px;
        width: calc(100% - 20px);
        max-width: 400px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        z-index: 9999;
        max-height: 70vh;
        overflow-y: auto;
    }

    .mobile-program-dropdown.show-dropdown {
        display: block;
        animation: slideInDropdown 0.3s ease;
    }

    @keyframes slideInDropdown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-program-dropdown-header {
        padding: 1rem;
        font-weight: 600;
        font-size: 0.95rem;
        color: #333;
        border-bottom: 1px solid #e0e0e0;
    }

    .mobile-program-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-program-list li {
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-program-list li:last-child {
        border-bottom: none;
    }

    .mobile-program-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
        text-decoration: none;
        color: #333;
        transition: background-color 0.2s ease;
    }

    .mobile-program-item:hover {
        background-color: var(--vefa-accent-soft);
        text-decoration: none;
    }

    .mobile-program-item.active {
        background-color: rgba(52, 152, 219, 0.1);
        border-left: 3px solid var(--vefa-primary);
    }

    /* Image du programme dans la liste */
    .program-item-image {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #e0e0e0;
        flex-shrink: 0;
    }

    /* Placeholder dans la liste */
    .program-item-placeholder,
    .program-item-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #666;
        flex-shrink: 0;
    }

    .program-item-name {
        font-size: 0.95rem;
        font-weight: 500;
        color: #333;
        flex: 1;
    }

    .mobile-program-dropdown-footer {
        padding: 0.75rem 1rem;
        border-top: 1px solid #e0e0e0;
        background-color: #f9f9f9;
        border-radius: 0 0 12px 12px;
    }

    .view-all-programs {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--vefa-primary);
        font-weight: 500;
        font-size: 0.9rem;
        padding: 0.5rem;
        transition: color 0.2s ease;
    }

    .view-all-programs:hover {
        color: var(--vefa-primary-dark);
        text-decoration: none;
    }
    
    /* Collapsible Nav Links */
    .mobile-nav-links-container {
        display: none; /* Hide by default */
        width: 100%;
        background-color: #ffffff; /* Clean white background */
        position: absolute;
        top: 60px; /* Position below navbar */
        left: 0;
        z-index: 1000;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        overflow: hidden;
        transform: translateY(-10px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        max-height: 0;
    }

    .mobile-nav-links-container.show-mobile-nav {
        display: block;
        transform: translateY(0);
        opacity: 1;
        max-height: 100vh; /* Allow full height */
        animation: slideDown 0.3s ease forwards;
    }
    
    @keyframes slideDown {
        from {
            max-height: 0;
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            max-height: 100vh;
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-nav-links {
        list-style: none;
        padding: 0.5rem 0;
        margin: 0;
    }
    
    .mobile-nav-links li {
        margin: 0;
        border-bottom: 1px solid rgba(0,0,0,0.04);
    }
    
    .mobile-nav-links li:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-links li a,
    .mobile-nav-links li button {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0.85rem 1.5rem;
        text-decoration: none;
        color: #333;
        font-weight: 500;
        transition: all 0.2s ease;
        background: none;
        border: none;
        text-align: left;
        font-size: 1rem;
    }
    
    .mobile-nav-links li a:active,
    .mobile-nav-links li button:active {
        background-color: rgba(85, 147, 184, 0.05); /* Slight blue on active */
    }
    
    .mobile-nav-links li a:hover,
    .mobile-nav-links li button:hover {
        background-color: var(--vefa-accent-soft);
        color: var(--vefa-accent);
    }
    
    .mobile-nav-links li a:hover i,
    .mobile-nav-links li button:hover i {
        color: var(--vefa-accent);
    }
    
    .mobile-nav-links .nav-icon {
        margin-right: 0.75rem;
        width: 1.25rem;
        text-align: center;
        color: var(--vefa-brand-vefa); /* Blue color to match brand */
    }
    
    .mobile-nav-divider {
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.08), transparent);
        margin: 0.5rem 0;
        padding: 0 !important;
        list-style: none;
    }
    
    .login-link {
        color: var(--vefa-accent) !important;
        font-weight: 600 !important;
    }
    
    .login-link i {
        color: var(--vefa-accent) !important;
    }
    
    .mobile-logout-form {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .mobile-logout-form button {
        cursor: pointer;
        font-weight: 500;
        color: #dc3545; /* Danger red color */
    }
    
    .mobile-logout-form button:hover {
        background-color: rgba(220, 53, 69, 0.05); /* Light red background */
    }
    
    .mobile-logout-form button:hover i {
        color: #dc3545;
    }
}

/* Position et style pour le dropdown mobile */
.mobile-dropdown {
    position: relative;
}

/* Micro-ajustements écrans très étroits pour garder le libellé lisible */
@media (max-width: 400px) {
    .program-selector-badge { display: none; }
    .program-selector-image,
    .program-selector-icon {
        width: 28px;
        height: 28px;
    }
    .mobile-program-selector {
        max-width: none; /* utilise tout l'espace disponible */
        padding: 0.3rem 0.4rem;
    }
    .program-selector-text { font-size: 0.85rem; }
    /* Loupe encore plus compacte */
    .navbar-search-trigger--mobile {
        width: 32px;
        height: 32px;
        padding: 4px;
    }
}

/* Affichage plus large du menu déroulant sur mobile */
.mobile-dropdown .user-dropdown-menu {
    position: fixed;
    top: 60px; /* Hauteur de la barre de navigation */
    right: 10px;
    width: calc(100% - 20px);
    max-width: 280px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: slideInTopMobile 0.25s ease;
}

@keyframes slideInTopMobile {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BOTTOM NAVIGATION MOBILE - GLOBALE ===== */
@media (max-width: 767px) {
    /* Bottom Navigation Mobile */
    .mobile_bottom_nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 8px 0;
        z-index: 1030;
        height: 65px;
    }

    /* Réserver l'espace sous la barre fixe pour éviter qu'elle ne recouvre le contenu/footers */
    body {
        padding-bottom: calc(65px + env(safe-area-inset-bottom));
    }

    .mobile_bottom_nav_item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        text-decoration: none;
        color: #666;
        padding: 8px 4px;
        transition: all 0.2s ease;
        position: relative;
    }

    .mobile_bottom_nav_item i {
        font-size: 20px;
        margin-bottom: 4px;
        transition: all 0.2s ease;
    }

    .mobile_bottom_nav_item span {
        font-size: 11px;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .mobile_bottom_nav_item:hover,
    .mobile_bottom_nav_item:active {
        text-decoration: none;
    }

    .mobile_bottom_nav_item.active {
        color: var(--primary-color, var(--vefa-primary));
    }

    .mobile_bottom_nav_item.active i {
        transform: scale(1.1);
    }

    /* Effet de ripple au tap */
    .mobile_bottom_nav_item::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background-color: rgba(52, 152, 219, 0.1);
        transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s;
    }

    .mobile_bottom_nav_item:active::before {
        width: 50px;
        height: 50px;
    }

    /* Style spécial pour le bouton retour dans la bottom nav */
    .mobile_bottom_nav_back {
        color: var(--vefa-accent) !important;
        font-weight: 600;
    }

    .mobile_bottom_nav_back i {
        font-size: 22px;
    }

    /* Style pour le bouton "Plus" */
    .mobile_plus_btn {
        background: none;
        border: none;
        cursor: pointer;
        outline: none;
    }

    .mobile_plus_btn:focus {
        outline: none;
    }

    /* ===== MENU "PLUS D'ACTIONS" MOBILE ===== */
    .mobile_plus_menu_overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        animation: fadeInOverlay 0.3s ease;
    }

    .mobile_plus_menu_overlay.show {
        display: block;
    }

    @keyframes fadeInOverlay {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .mobile_plus_menu_modal {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        border-radius: 20px 20px 0 0;
        max-height: 80vh;
        overflow-y: auto;
        animation: slideUpModal 0.3s ease;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    }

    @keyframes slideUpModal {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .mobile_plus_menu_header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid #e0e0e0;
        position: sticky;
        top: 0;
        background-color: #fff;
        z-index: 10;
        border-radius: 20px 20px 0 0;
    }

    .mobile_plus_menu_header h3 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
    }

    .mobile_plus_menu_close {
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        color: #666;
        font-size: 1.5rem;
        line-height: 1;
        transition: color 0.2s ease;
    }

    .mobile_plus_menu_close:hover {
        color: #333;
    }

    .mobile_plus_menu_content {
        padding: 0.5rem 0 1rem 0;
    }

    .mobile_plus_menu_section {
        margin-bottom: 1rem;
    }

    .mobile_plus_menu_section:last-child {
        margin-bottom: 0;
    }

    .mobile_plus_menu_section_title {
        font-size: 0.75rem;
        font-weight: 700;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 1rem 1.5rem 0.5rem 1.5rem;
        margin: 0;
    }

    .mobile_plus_menu_items {
        padding: 0;
    }

    .mobile_plus_menu_item {
        display: flex;
        align-items: center;
        padding: 1rem 1.5rem;
        text-decoration: none;
        color: #333;
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
        transition: background-color 0.2s ease;
        font-size: 1rem;
        border-bottom: 1px solid #f5f5f5;
    }

    .mobile_plus_menu_item:last-child {
        border-bottom: none;
    }

    .mobile_plus_menu_item i {
        margin-right: 1rem;
        font-size: 1.1rem;
        color: var(--vefa-brand-vefa);
        width: 24px;
        text-align: center;
        flex-shrink: 0;
    }

    .mobile_plus_menu_item span {
        flex: 1;
    }

    .mobile_plus_menu_item:hover:not(.mobile_plus_menu_item_disabled),
    .mobile_plus_menu_item:active:not(.mobile_plus_menu_item_disabled) {
        background-color: var(--vefa-accent-soft);
        text-decoration: none;
    }

    /* Items désactivés (fonctionnalités futures) */
    .mobile_plus_menu_item_disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .mobile_plus_menu_item_disabled:hover {
        background-color: transparent;
    }

    /* Badge "Bientôt disponible" */
    .mobile_plus_menu_badge {
        background-color: #e0e0e0;
        color: #666;
        font-size: 0.7rem;
        font-weight: 600;
        padding: 3px 8px;
        border-radius: 10px;
        margin-left: auto;
    }

    /* Badge de compteur (nombre de simulations) */
    .mobile_plus_menu_count_badge {
        background-color: var(--vefa-accent);
        color: white;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 10px;
        margin-left: auto;
        min-width: 24px;
        text-align: center;
    }

    /* Style spécial pour le formulaire dans le menu */
    .mobile_plus_menu_form {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .mobile_plus_menu_form .mobile_plus_menu_item {
        font-weight: 400;
    }

    /* Smooth scrolling pour le modal */
    .mobile_plus_menu_modal {
        -webkit-overflow-scrolling: touch;
    }

    /* Animation de fermeture */
    .mobile_plus_menu_overlay.closing {
        animation: fadeOutOverlay 0.3s ease forwards;
    }

    .mobile_plus_menu_overlay.closing .mobile_plus_menu_modal {
        animation: slideDownModal 0.3s ease forwards;
    }

    @keyframes fadeOutOverlay {
        from {
            opacity: 1;
        }
        to {
            opacity: 0;
        }
    }

    @keyframes slideDownModal {
        from {
            transform: translateY(0);
        }
        to {
            transform: translateY(100%);
        }
    }
} 