/* Hide the original select */
.drafty-multiselect {
    display: none !important;
}

.drafty-multiselect.enhanced {
    display: none !important;
}

/* Custom multiselect styles */
.custom-multiselect {
    position: relative;
    width: 100%;
    
}

.multiselect-container {
    /* border: solid #c7c7c7 0.2px; */
    border-radius: 12px;
    /* background: white; */
    min-height: 48px;
    height: max-content;
    padding: 8px 16px;
    padding-right: 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    cursor: text;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.multiselect-container:hover {
    /* border-color: #cbd5e0; */
}

.multiselect-container.focused {
    /* border-color: #667eea; */
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.multiselect-container .tag {
    /* background: rgb(28, 0, 128); */
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.2s ease;
}

.tag:hover {
    transform: scale(1.05);
}

.tag-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: white;
    transition: background 0.2s ease;
}

.tag-remove:hover {
    background: rgba(255, 255, 255, 0.3);
}

.multiselect-input {
    border: none;
    outline: none;
    padding: 6px 4px;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
    background: transparent;
 
}


.dropdown-arrow {
   
    
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;

    border-radius: 12px;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;

    font-weight: 500;

    font-size: 14px;
}

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

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    
}

.dropdown-item.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    
    font-weight: 600;
}

.no-results {
    padding: 16px;
    text-align: center;

    font-style: italic;
    font-size: 14px;
}

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

.dropdown::-webkit-scrollbar {
    width: 6px;
}

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

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

.dropdown::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

