﻿/*.multi-select {
    position: relative;
    width: 100%;
    font-family: Arial, sans-serif;
}

.multi-select-box {
    height: 35px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    cursor: pointer;
    background: white;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.multi-select-box::after {
    content: "▼";
    font-size: 12px;
    color: #555;
    margin-left: auto;

}
.multi-select-dropdown {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    padding: 5px;
    border-radius: 4px;
    max-height: 250px;
    overflow-y: auto;
    display: block;
}
.multi-select-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px;
}

.multi-select-chip {
    display: flex;
    align-items: center;
    background: black;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    max-width: 150px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.multi-select-chip button {
    background: transparent;
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    margin-left: 5px;

}

.multi-select-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box; 
}

.multi-select-item {
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
}
.multi-select-item:hover {
    background: #f0f0f0;
}*/


.multi-select {
    position: relative;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.multi-select-box {
    border: 1.5px solid #e0e6ef;
    padding: 10px 12px;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

    .multi-select-box:hover {
        border-color: #007bff;
        box-shadow: 0 2px 6px rgba(0, 123, 255, 0.15);
    }

/* FIXED: Disabled state */
.multi-select.disabled .multi-select-box {
    cursor: not-allowed;
    opacity: 0.7;
}

    .multi-select.disabled .multi-select-box:hover {
        border-color: #e0e6ef;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

.placeholder {
    color: #6c757d;
    font-style: normal;
}

.selected-text {
    color: #2c3e50;
    font-weight: 500;
}

.dropdown-arrow {
    color: #6c757d;
    font-size: 12px;
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.multi-select-box:hover .dropdown-arrow {
    color: #007bff;
}

.multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1.5px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

.multi-select-search-container {
    padding: 12px;
    border-bottom: 1px solid #f1f3f4;
    background: #fafbfc;
}

.multi-select-search {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #e0e6ef;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
}

    .multi-select-search:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }

.multi-select-list {
    flex: 1;
    overflow-y: auto;
    max-height: 200px;
    padding: 4px 0;
}

.multi-select-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

    .multi-select-item:hover {
        background-color: #e3f2fd;
    }

/* REMOVED: Select All specific styles */

.multi-select-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    margin: 0;
    font-size: 14px;
    color: #2c3e50;
}

    .multi-select-checkbox-label input[type="checkbox"] {
        display: none;
    }

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    display: inline-block;
    transition: all 0.2s ease;
    background: white;
}

.multi-select-item:hover .checkmark {
    border-color: #007bff;
}

.multi-select-checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

    .multi-select-checkbox-label input[type="checkbox"]:checked + .checkmark:after {
        content: "";
        position: absolute;
        left: 5px;
        top: 2px;
        width: 4px;
        height: 8px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.multi-select-no-results {
    padding: 16px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
}

.multi-select-footer {
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    font-size: 13px;
    color: #6c757d;
}

.btn-clear {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

    .btn-clear:hover {
        color: #c82333;
        background-color: rgba(220, 53, 69, 0.1);
    }

/* Animation for dropdown */
.multi-select-dropdown {
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar styling */
.multi-select-list::-webkit-scrollbar {
    width: 6px;
}

.multi-select-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.multi-select-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .multi-select-list::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }