/* Custom Select Styles */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-wrapper .input-with-icon input {
    cursor: pointer;
    background-color: #fff;
}

.toggle-dropdown {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Let clicks pass through to input */
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: 4px;
}

.custom-options.show {
    display: block;
}

.option-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #333;
    font-size: 15px;
    border-bottom: 1px solid #f5f5f5;
}

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

.option-item:hover {
    background-color: #f9f9f9;
    color: #8b0000;
}

.option-item.selected {
    background-color: #fff5f5;
    color: #8b0000;
    font-weight: 500;
}

.option-item.loading {
    color: #888;
    text-align: center;
    cursor: default;
}

.option-item.no-results {
    color: #888;
    text-align: center;
    cursor: default;
    font-style: italic;
}

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

.custom-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 8px 0;
}

.custom-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.custom-options::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}