/* === Admission Multiselect Improved Styles === */

/* Wrapper and Trigger */
.multiselect-wrapper {
    position: relative;
    width: 100%;
}

.multiselect-trigger {
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    transition: all 0.2s ease;
}

.multiselect-trigger:hover {
    border-color: #4263EB;
}

.selected-text {
    font-size: 0.95rem;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dropdown Container */
.multiselect-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 380px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    margin-top: 8px;
    z-index: 100000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    padding: 0;
}

/* Category Sections */
.program-category {
    border-bottom: 1px solid #f1f3f5;
}

.program-category:last-child {
    border-bottom: none;
}

.category-header {
    padding: 14px 16px;
    background: #f8f9fa;
    color: #4263EB;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.category-header:hover {
    background: #eef1f5;
}

.category-header svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.category-header.active svg {
    transform: rotate(180deg);
}

/* Options Container */
.category-options {
    display: none;
    background: #fff;
    width: 100%;
}

.category-options.active {
    display: block !important;
}

/* Individual Option */
.multiselect-option {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px 12px 24px !important;
    gap: 12px;
    cursor: pointer !important;
    transition: background 0.2s ease;
    border-bottom: 1px solid #fafafa;
    position: relative;
    user-select: none;
}

.multiselect-option:hover {
    background: #f8f9fa;
}

.multiselect-option.selected {
    background: #f0f4ff;
}

/* Visual Checkbox */
.option-checkbox-visual {
    width: 18px;
    height: 18px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
}

.multiselect-option.selected .option-checkbox-visual {
    background: #4263EB;
    border-color: #4263EB;
}

/* Checkmark Tick */
.option-checkbox-visual::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none;
    top: 1px;
}

.multiselect-option.selected .option-checkbox-visual::after {
    display: block;
}

/* Label Text */
.checkbox-label-text {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.4;
    pointer-events: none;
}

.multiselect-option.selected .checkbox-label-text {
    color: #4263EB;
    font-weight: 500;
}

/* Hidden Native Input */
.multiselect-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Scrollbar Style */
.multiselect-dropdown::-webkit-scrollbar {
    width: 6px;
}

.multiselect-dropdown::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.multiselect-dropdown::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 10px;
}