/* Custom Scrollbar for Options List in Dark Theme */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #1a1a1a; 
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #444; 
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #666; 
}

/* Dark Theme Dropdown Menu Animations */
.dropdown-menu-custom {
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out; 
    transform-origin: top;
    z-index: 1000;
    border-radius: 6px;
    display: block; 
    background-color: #1a1a1a; /* Dark background matching the form */
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.dropdown-menu-custom.hidden {
    opacity: 0;
    transform: scaleY(0.95);
    pointer-events: none;
    display: none !important;
}
.dropdown-menu-custom.visible {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
}

/* UI Elements */
.custom-multi-btn {
    min-height: 52px;
    padding-left: 55px !important; 
    padding-right: 40px !important; 
    font-size: 16px !important; /* Exactly matches form-control and form-select font-size from style.css */
    color: #ffffff !important;   /* Matches white placeholder directive */
    cursor: pointer;
}
.max-h-200px {
    max-height: 200px;
}

/* Custom Checkbox Options - Dark Theme & Normal Padding */
.custom-option-item {
    padding: 12px 20px; 
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}
.custom-option-item:last-child {
    border-bottom: none;
}
.custom-option-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Badges for Selected items in Dark Mode */
.select-badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12.5px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.select-badge-remove {
    cursor: pointer;
    font-weight: bold;
    padding: 0 4px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
}
.select-badge-remove:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}