/* css/msdropdown.css */

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

/* The Trigger (Input-like area) */
.klokin-ms-trigger {
    min-height: 42px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* The Dropdown Menu */
.klokin-ms-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 50;
    
    /* Animation States */
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    
    /* Smooth Transition */
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

/* Open State */
.klokin-ms-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

/* Dark Mode Overrides */
.dark .klokin-ms-dropdown {
    background-color: #262626; /* neutral-800 */
    border: 1px solid #404040; /* neutral-700 */
}

/* Chips Animation */
.klokin-ms-chip {
    animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 
   Search Input Custom Styles 
   Overrides default browser focus rings for a cleaner look 
*/
.klokin-ms-search {
    transition: all 0.2s ease-in-out;
}
.klokin-ms-search:focus {
    outline: none;
    border-color: #3b82f6; /* blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); /* Soft blue glow */
}