/* Custom Dropdown Styles for Regulations */
.custom-dropdown {
    position: relative;
    min-width: 200px;
}

.dropdown-trigger {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-md);
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-base);
    color: #334155;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dropdown-trigger:hover {
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.dropdown-trigger:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--border-primary);
}

.dropdown-value {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-arrow {
    margin-left: 8px;
    transition: transform 0.2s ease;
    color: #64748b;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #475569;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1e293b;
}

.dropdown-item.active {
    background: var(--primary-color);
    color: white;
}

.dropdown-item.active:hover {
    background: var(--primary-color);
}

/* Custom scrollbar */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

/* Filter labels with icons */
.filter-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1e293b;
    font-size: 14px;
}

.filter-icon {
    margin-right: 6px;
    color: #64748b;
}

/* Responsive design */
@media (max-width: 768px) {
    .custom-dropdown {
        min-width: 150px;
    }
    
    .dropdown-trigger {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .dropdown-item {
        padding: 12px;
        font-size: 14px;
    }
    
    .dropdown-menu {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .custom-dropdown {
        min-width: 120px;
    }
    
    .dropdown-trigger {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .dropdown-item {
        padding: 10px;
        font-size: 13px;
    }
} 