/* =====================================================
   SEARCHABLE SELECT STYLES
   ===================================================== */

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

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

.custom-select-search {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s;
    cursor: pointer;
}

.custom-select-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 10, 23, 0.1);
}

.custom-select-search:disabled {
    background: var(--bg-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-select-item {
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

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

.custom-select-item:hover {
    background: var(--bg-color);
}

.custom-select-item.selected {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.custom-select-no-result {
    padding: 0.75rem;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* Scrollbar styling */
.custom-select-dropdown::-webkit-scrollbar {
    width: 8px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Animasyon */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-select-dropdown[style*="display: block"] {
    animation: slideDown 0.2s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-select-dropdown {
        max-height: 200px;
    }
    
    .custom-select-item {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}
