﻿/* SearchableDropdown CSS */
.searchable-dropdown {
    position: relative;
    width: 100%;
}

.searchable-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .searchable-dropdown-header:hover {
        border-color: #FF6F0F;
    }

    .searchable-dropdown-header.active {
        border-color: #FF6F0F;
        box-shadow: 0 4px 12px rgba(255, 111, 15, 0.15);
        background-color: #fff;
    }

.searchable-dropdown-text {
    color: #1e293b;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    /*.searchable-dropdown-text.placeholder {
        color: #94a3b8;
    }*/

.searchable-dropdown-arrow {
    color: #94a3b8;
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 10px;
    flex-shrink: 0;
}

.searchable-dropdown-header.active .searchable-dropdown-arrow {
    transform: rotate(180deg);
    color: #FF6F0F;
}

.searchable-dropdown-body {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-top: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

    .searchable-dropdown-body.show {
        display: block;
    }

.searchable-dropdown-search {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

    .searchable-dropdown-search:focus {
        background-color: #fefefe;
    }

    /*.searchable-dropdown-search::placeholder {
        color: #94a3b8;
    }*/

.searchable-dropdown-list {
    max-height: 250px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
}

.searchable-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f8fafc;
}

    .searchable-dropdown-item:last-child {
        border-bottom: none;
    }

    .searchable-dropdown-item:hover {
        background: rgba(255, 111, 15, 0.08);
        color: #FF6F0F;
    }

    .searchable-dropdown-item.selected {
        background: rgba(255, 111, 15, 0.12);
        color: #FF6F0F;
        font-weight: 500;
    }

.searchable-dropdown-empty {
    padding: 20px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* Scrollbar */
.searchable-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.searchable-dropdown-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.searchable-dropdown-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

    .searchable-dropdown-list::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
