/* Enhanced Dropdowns CSS */

/* .dropdownhover {
    cursor: pointer;
    display: inline-block;
}

.dropdownhover .dropdownarrow {
    opacity: 0.6;
    font-size: 0.8em;
    margin-left: 4px;
} */

.dropdownhover:hover .dropdownarrow {
    opacity: 1;
}

/* Wrapper for positioning the dropdown */
.enhanced-dropdown-wrapper {
    position: absolute;
    z-index: 100000;
}

/* Apply to metric and period wrappers */
.enhanced-dropdown-wrapper.metric-dropdown {
    width: 350px;
}

.enhanced-dropdown-wrapper.period-dropdown {
    width: 250px;
}

.enhanced-dropdown-container {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-top: 0px;
    animation: dropdown-fade-in 0.2s ease-out;
    width: 100%;
    max-height: 480px;
    display: flex;
    flex-direction: column;
}

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

.enhanced-dropdown-search {
    padding: 10px;
    background: #f7f9fc;
    border-bottom: 1px solid #e5e9f2;
    position: sticky;
    top: 0;
    z-index: 2;
}

.enhanced-dropdown-search input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #d1d9e6;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.enhanced-dropdown-search input:focus {
    border-color: #3895d3;
    box-shadow: 0 0 0 2px rgba(56, 149, 211, 0.2);
}

.enhanced-dropdown-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0px 0 10px 0;
}

.enhanced-dropdown-category {
    padding: 8px 12px;
    font-weight: 600;
    font-size: 13px;
    color: #555;
    background-color: #f5f7fa;
    border-bottom: 1px solid #e5e9f2;
    position: sticky;
    top: 0px;
    z-index: 1;
}


.enhanced-dropdown-option {
    padding: 8px 20px;
    cursor: pointer;
    transition: background-color 0.15s;
    font-size: 14px;
}

.enhanced-dropdown-option:hover {
    background-color: #f0f4f8;
}

.enhanced-dropdown-option.selected {
    background-color: #e6f2fa;
    color: #3895d3;
    font-weight: 500;
}

/* Empty states */
.enhanced-dropdown-empty,
.enhanced-dropdown-no-results {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
    font-size: 14px;
    border-top: 1px solid #f0f4f8;
}

.enhanced-dropdown-no-results {
    background-color: #fcfcfd;
}

/* Scrollbar styling */
.enhanced-dropdown-list::-webkit-scrollbar {
    width: 8px;
}

.enhanced-dropdown-list::-webkit-scrollbar-track {
    background: #f5f7fa;
}

.enhanced-dropdown-list::-webkit-scrollbar-thumb {
    background-color: #c1c9d6;
    border-radius: 4px;
}

.enhanced-dropdown-list::-webkit-scrollbar-thumb:hover {
    background-color: #a5adbf;
}

/* Placeholder for remove metric icon */
.removeMetric {
    margin-left: 5px;
    color: #888;
    font-size: 0.9em;
    transition: color 0.2s;
}

.removeMetric:hover {
    color: #e74c3c;
}

/* Accessibility focus styles */
.enhanced-dropdown-option:focus {
    outline: 2px solid #3895d3;
    outline-offset: -2px;
}

/* Loading spinner */
.mini_spinner {
    width: 16px;
    height: 16px;
    vertical-align: middle;
} 