/* Custom Dropdown Styles */
.dropdown ul {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 191, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Mobile touch support */
@media (hover: none) and (pointer: coarse) {
    .dropdown ul {
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .dropdown.show ul {
        display: block;
    }
}

.dropdown:hover ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown ul li a {
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
    font-weight: 500;
    color: #333;
}

.dropdown ul li:last-child a {
    border-bottom: none;
}

.dropdown ul li a:hover {
    background: linear-gradient(135deg, #00bfff 0%, #0099cc 100%);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.dropdown ul li a i {
    transition: all 0.3s ease;
}

.dropdown ul li a:hover i {
    transform: scale(1.2);
    color: white !important;
}

.dropdown>a .bi-chevron-down {
    transition: transform 0.3s ease;
}

.dropdown:hover>a .bi-chevron-down {
    transform: rotate(180deg);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .dropdown {
        position: relative;
    }

    .dropdown ul {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        min-width: 90vw !important;
        max-width: 400px !important;
        width: auto !important;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
        border: 1px solid rgba(0, 191, 255, 0.2) !important;
        border-radius: 15px !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
        padding: 25px 0 !important;
        z-index: 9999 !important;
        max-height: 80vh;
        overflow-y: auto;
    }

    .dropdown.show ul {
        display: block !important;
    }

    .dropdown ul li a {
        padding: 18px 25px !important;
        font-size: 1rem !important;
        color: #333 !important;
        border-bottom: 1px solid rgba(0, 191, 255, 0.1) !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .dropdown ul li:last-child a {
        border-bottom: none !important;
    }

    .dropdown ul li a i {
        font-size: 1.2rem !important;
        margin-right: 15px !important;
        color: #00bfff !important;
    }

    .dropdown ul li a:hover {
        background: linear-gradient(135deg, #00bfff 0%, #0099cc 100%) !important;
        color: white !important;
        transform: none !important;
    }

    .dropdown ul li a:hover i {
        color: white !important;
    }

    /* Backdrop overlay */
    .dropdown.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
    }
}