/* ============================================================
   CUSTOM SEARCHABLE SELECT COMPONENT (SIDEBAR BRAND COLOR THEME)
   ============================================================ */

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select.active {
    z-index: 9999 !important;
}

.custom-select .select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--text-primary, #1a1a2e);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    height: 40px;
}

.custom-select .select-trigger:hover {
    border-color: #94a3b8;
}

.custom-select.active .select-trigger {
    border-color: var(--primary, #0f3b5e);
    box-shadow: 0 0 0 3px rgba(15, 59, 94, 0.12);
    background: #ffffff;
}

.custom-select .select-trigger i {
    font-size: 12px;
    color: var(--text-muted, #8a8aaa);
    transition: transform 0.2s ease;
}

.custom-select.active .select-trigger i {
    transform: rotate(180deg);
    color: var(--primary, #0f3b5e);
}

.custom-select .select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    z-index: 2100;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.custom-select.active .select-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Search Box inside Dropdown */
.custom-select .select-search-box {
    position: relative;
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.custom-select .select-search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
}

.custom-select .select-search-input {
    width: 100%;
    height: 34px;
    padding: 0 10px 0 32px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
    color: var(--text-primary, #1a1a2e);
    transition: border-color 0.2s ease;
}

.custom-select .select-search-input:focus {
    border-color: var(--primary, #0f3b5e);
    box-shadow: 0 0 0 2px rgba(15, 59, 94, 0.12);
}

/* Options List Container */
.custom-select .select-options-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 4px 0;
}

.custom-select .option {
    padding: 9px 14px;
    font-size: 13.5px;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-select .option:hover {
    background: rgba(15, 59, 94, 0.05);
    color: var(--primary, #0f3b5e);
}

.custom-select .option.selected {
    background: rgba(15, 59, 94, 0.08);
    color: var(--primary, #0f3b5e);
    font-weight: 700;
}

.custom-select .option.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--primary, #0f3b5e);
}

.custom-select .option.hidden {
    display: none !important;
}

.custom-select .select-no-results {
    padding: 12px 14px;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    display: none;
}

.custom-select .select-no-results.visible {
    display: block;
}
