/**
 * SearchableMultiSelect Component Styles
 */

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

/* Chips container */
.sms-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sms-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 16px;
    font-size: 0.85rem;
    color: #1565c0;
}

.sms-chip-remove {
    background: none;
    border: none;
    color: #1565c0;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.7;
}

.sms-chip-remove:hover {
    opacity: 1;
    color: #c62828;
}

/* Search input */
.sms-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sms-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Dropdown */
.sms-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sms-dropdown.show {
    display: block;
}

.sms-dropdown-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

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

.sms-dropdown-item:hover {
    background: #f8f9fa;
}

.sms-dropdown-item.selected {
    background: #f0f0f0;
    color: #999;
    cursor: default;
}

.sms-item-name {
    font-weight: 500;
}

.sms-item-details {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.sms-dropdown-empty,
.sms-dropdown-loading {
    padding: 0.75rem;
    color: #999;
    text-align: center;
    font-style: italic;
}

.sms-dropdown-loading {
    font-style: normal;
    color: #666;
}
