/* Dropdown styling fixes for Nibou platform */

/* Fix blue selection color to match site's green theme */
select:focus,
.form-select:focus,
.form-control:focus,
select.form-control:focus {
    border-color: #00a196;
    box-shadow: 0 0 0 0.2rem rgba(0, 161, 150, 0.25);
    outline: 0;
}

/* Style dropdown options */
select option:checked,
select option:hover {
    background-color: #00a196;
    color: white;
}

/* Bootstrap dropdown menu fixes */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #00a196;
    color: white;
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background-color: #00a196;
    color: white;
}

/* Custom select styling */
.custom-select {
    appearance: none;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") no-repeat right 0.75rem center/1.3em 1.3em;
    padding-right: 2.5rem;
}

.custom-select:focus {
    border-color: #00a196;
    box-shadow: 0 0 0 3px rgba(0, 161, 150, 0.1);
}

/* Fix for consultant category dropdowns */
.consultant-filter select,
.category-filter select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #374151;
    background-color: white;
    transition: all 0.3s ease;
}

.consultant-filter select:focus,
.category-filter select:focus {
    border-color: #00a196;
    box-shadow: 0 0 0 3px rgba(0, 161, 150, 0.1);
}

/* Override any blue colors in dropdowns */
.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: #00a196 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 161, 150, 0.25) !important;
}

/* Make sure dropdown arrows match theme */
.dropdown-toggle::after {
    color: #00a196;
}