/* Glassmorphism Select Dropdown */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em 1em;
    padding-right: 2.5rem;
}

select option {
    background-color: #0f172a;
    color: #ffffff;
    padding: 0.5rem;
}

select option:hover {
    background: linear-gradient(#06b6d4, #06b6d4);
    background-color: #06b6d4;
}

select option:checked {
    background: linear-gradient(#06b6d4, #06b6d4);
    background-color: #06b6d4;
    color: #000000;
}

/* Global Glossy Glassmorphic Scrollbars */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.3) 0%,
        rgba(30, 41, 59, 0.2) 50%,
        rgba(15, 23, 42, 0.3) 100%);
    border-radius: 10px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.7) 0%,
        rgba(34, 197, 94, 0.5) 25%,
        rgba(147, 51, 234, 0.6) 75%,
        rgba(236, 72, 153, 0.7) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 4px 12px rgba(6, 182, 212, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.2),
        inset 0 -1px 3px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.9) 0%,
        rgba(34, 197, 94, 0.7) 25%,
        rgba(147, 51, 234, 0.8) 75%,
        rgba(236, 72, 153, 0.9) 100%);
    box-shadow: 
        0 6px 20px rgba(6, 182, 212, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.3),
        inset 0 -1px 3px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 1) 0%,
        rgba(34, 197, 94, 0.9) 25%,
        rgba(147, 51, 234, 1) 75%,
        rgba(236, 72, 153, 1) 100%);
    box-shadow: 
        0 8px 24px rgba(6, 182, 212, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}

/* Firefox Global Scrollbar */
* {
    scrollbar-color: rgba(6, 182, 212, 0.7) rgba(15, 23, 42, 0.3);
    scrollbar-width: thin;
}

/* Custom Scrollbar Class for Additional Styling */
.custom-scrollbar::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.3) 0%,
        rgba(30, 41, 59, 0.2) 50%,
        rgba(15, 23, 42, 0.3) 100%);
    border-radius: 10px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.7) 0%,
        rgba(34, 197, 94, 0.5) 25%,
        rgba(147, 51, 234, 0.6) 75%,
        rgba(236, 72, 153, 0.7) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 4px 12px rgba(6, 182, 212, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.2),
        inset 0 -1px 3px rgba(0, 0, 0, 0.2);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.9) 0%,
        rgba(34, 197, 94, 0.7) 25%,
        rgba(147, 51, 234, 0.8) 75%,
        rgba(236, 72, 153, 0.9) 100%);
    box-shadow: 
        0 6px 20px rgba(6, 182, 212, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.3),
        inset 0 -1px 3px rgba(0, 0, 0, 0.3);
}

.custom-scrollbar::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 1) 0%,
        rgba(34, 197, 94, 0.9) 25%,
        rgba(147, 51, 234, 1) 75%,
        rgba(236, 72, 153, 1) 100%);
    box-shadow: 
        0 8px 24px rgba(6, 182, 212, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}

.custom-scrollbar {
    scrollbar-color: rgba(6, 182, 212, 0.7) rgba(15, 23, 42, 0.3);
    scrollbar-width: thin;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    nav {
        padding-top: 0.5rem;
    }
    
    nav .glass-panel {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    nav .glass-panel::-webkit-scrollbar {
        width: 6px;
    }

    nav .glass-panel::-webkit-scrollbar-track {
        background: transparent;
    }

    nav .glass-panel::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }

    nav .glass-panel::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
}

/* Navigation Group Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.group-expand {
    animation: slideDown 0.3s ease-out;
}