/* Custom Components Styles */

.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-hidden {
    display: none !important;
}

.custom-select-styled {
    padding: 0.75rem;
    border: 1px solid var(--color-gray-border);
    border-radius: var(--radius-md);
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-select-styled:hover {
    border-color: var(--color-cyan);
}

.custom-select-styled.active {
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--color-gray-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    animation: slideDown 0.2s ease-out;
}

.custom-select-options.show {
    display: block;
}

.custom-option {
    padding: 0.3rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--color-navy);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: #f0fdfa;
    color: var(--color-cyan);
}

.custom-option.selected {
    background: #f0fdfa;
    color: var(--color-cyan);
    font-weight: 600;
}

.custom-select-search-container {
    padding: 10px;
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid var(--color-gray-border);
    z-index: 10;
}

.custom-select-search-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-gray-border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.custom-select-search-input:focus {
    border-color: var(--color-cyan);
}

.custom-option.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}