﻿/* jQuery Scroll Multi-Select Plugin Styles */

.multi-select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.multi-select-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
    border-radius: 0.5rem 0.5rem 0 0;
}

.multi-select-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.multi-select-header span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.clear-all-btn {
    font-size: 0.75rem;
    color: #dc2626;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.15s ease;
}

    .clear-all-btn:hover {
        color: #991b1b;
        background-color: #fef2f2;
    }

.selected-items-preview {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background-color: #dbeafe;
    color: #1e40af;
    border-radius: 9999px;
}

.more-tag {
    background-color: #f3f4f6;
    color: #6b7280;
}

.multi-select-search {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.search-container {
    position: relative;
}

.search-input {
    width: 90%;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .search-input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    }

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    width: 1rem;
    height: 1rem;
}

.clear-search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    width: 1rem;
    height: 1rem;
    padding: 0;
    border-radius: 0.25rem;
    transition: color 0.15s ease;
}

    .clear-search-btn:hover {
        color: #6b7280;
    }

.multi-select-items {
    overflow-y: auto;
}

.items-container {
    padding: 0.5rem;
}

.multi-select-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease;
}

    .multi-select-item:hover {
        background-color: #f9fafb;
    }

    .multi-select-item input[type="checkbox"] {
        width: 1rem;
        height: 1rem;
        margin-right: 0.75rem;
        cursor: pointer;
        accent-color: #3b82f6;
    }

    .multi-select-item label {
        font-size: 0.875rem;
        color: #374151;
        cursor: pointer;
        flex: 1;
        user-select: none;
    }

.no-results {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

.no-results-icon {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.5rem;
    color: #d1d5db;
}

.no-results p {
    font-size: 0.875rem;
    margin: 0;
}

    .no-results p:last-child {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }

/* Responsive design */
@media (max-width: 768px) {
    .multi-select-header {
        padding: 0.5rem 0.75rem;
    }

    .multi-select-search {
        padding: 0.5rem 0.75rem;
    }

    .items-container {
        padding: 0.25rem;
    }

    .multi-select-item {
        padding: 0.75rem 0.5rem;
    }
}
