/* === Glass Dropdown for Year Filter === */
.glass-dropdown-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.glass-dropdown-trigger {
    font-size: inherit;
    font-weight: 700;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.glass-dropdown-trigger:hover {
    opacity: 0.8;
}

.glass-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 140px;
    background: rgba(15, 23, 42, 0.75);
    /* Highly transparent dark blue */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 6px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform-origin: top left;
    animation: menuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-dropdown-menu.show {
    display: flex;
}

.glass-option {
    padding: 10px 14px;
    border-radius: 8px;
    color: #cbd5e1;
    /* slate-300 */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.glass-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(2px);
}

.glass-option.selected {
    background: rgba(16, 185, 129, 0.15);
    /* Emerald tint */
    color: #34d399;
    /* Emerald-400 */
    font-weight: 600;
}

/* Optional: Checkmark for selected item */
.glass-option.selected::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-5px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}