/* Custom Select with Removable Tags */
.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-wrapper {
    border: 1px solid #bbb;
    border-radius: 0.375rem;
    background-color: #fff;
    /* min-height: 42px; */
    padding: 1px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    cursor: text;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-select-wrapper:focus-within {
    border-color: #e4e4e4;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.custom-select-wrapper:hover {
    border-color: #9ca3af;
}

.email-tag {
    background-color: #e4e4e4;
    color: inherit;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: fadeIn 0.2s ease-in-out;
}

.email-tag .remove-btn {
    background: none;
    border: none;
    /* color: white; */
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.15s ease-in-out;
}

.email-tag .remove-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.email-tag .remove-btn:active {
    background-color: rgba(255, 255, 255, 0.3);
}

.custom-select-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 120px;
    font-size: 0.875rem;
    background: transparent;
}

.custom-select-input::placeholder {
    color: #9ca3af;
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: none;
}

.custom-select-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.custom-select-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.15s ease-in-out;
}

.custom-select-option:hover {
    background-color: #f3f4f6;
}

.custom-select-option.selected {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.custom-select-option.selected:hover {
    background-color: #dbeafe;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-select-wrapper {
        min-height: 38px;
        padding: 6px 10px;
    }
    
    .email-tag {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
    
    .custom-select-input {
        font-size: 0.8rem;
        min-width: 100px;
    }
}

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

.custom-select-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 