﻿/*================================================Boom booking (trang chính)================================================*/
:root {
    --color-busy: #ff0000;
    --color-available: #f8f9fa;
    --color-disabled: #e0e0e0;
    --color-selected: #FF8C00;
    --primary-color: #FF9500;
    --primary-dark: #E68A00;
}

/* ============= DATE SELECTOR ============= */
.date-selector {
    /*    background: linear-gradient(135deg, var(--hanu-maroon-500) 0%, var(--hanu-maroon-700) 100%);*/
    background: linear-gradient(135deg, #ffffff 0%, var(--hanu-maroon-100) 100%);
    color: white;
    border-radius: 12px;
    padding: 10px 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.btn-date-nav {
    color: var(--hanu-maroon-500);
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-date-nav:hover {
    background: var(--hanu-maroon-100);
    color: var(--hanu-maroon-600);
    transform: translateY(-1px);
}

.date-selector .form-control {
    background: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    height: auto;
}

.date-selector .form-control:focus {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    outline: none;
}

.date-selector .form-control::after {
    content: '';
}

.date-selector .row {
    margin: 0;
    flex: 0;
}

.date-selector .col-md-12 {
    padding: 0;
}

/* ============= LEGEND ============= */
.legend {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
    flex-wrap: nowrap;
    padding: 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    white-space: nowrap;
}

.legend-box {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 1px solid #c0c0c0;
}

.legend-busy {
    background-color: var(--color-busy);
}

.legend-available {
    background-color: var(--color-available);
}

.legend-selected {
    background-color: var(--color-selected);
}

.date-selector .filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.date-selector .btn-filter-open {
    background-color: white;
    color: var(--hanu-maroon-500);
    border: none;
    padding: 6px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.date-selector .btn-filter-open:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============= SCHEDULE ============= */
.schedule-container {
    /*    max-height: calc(100vh - 20px); */

    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1200px;
}

.schedule-table th {
    background: #f8f9fa;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 13px;
}

.schedule-table td {
    padding: 0;
    text-align: center;
    border: 1px solid #dee2e6;
    /*        min-width: 30px;*/
    height: 30px;
}

.room-name-cell {
    text-align: left;
    padding: 12px;
    font-weight: 500;
    position: sticky;
    left: 0;
    background: white;
    z-index: 5;
    display: flex;
}

.room-name-cell-room-name {
    width: 70%;
}

.room-name-cell-room-name>p {
    margin: 0;
    line-height: 28px;
    text-align: left;
    padding-left: 6px;
}

.room-name-cell-icon-info {
    width: 30%;
    margin: auto;
}

.room-name-cell-room-info>i {
    margin: 0;
}

.building-header {
    background: #667eea !important;
    color: white;
    font-weight: bold;
    text-align: left;
    padding: 10px 12px;
}

.floor-header {
    background: #e9ecef !important;
    color: #495057;
    font-weight: 600;
    text-align: left;
    padding: 8px 12px;
    padding-left: 30px;
}

.room-row .room-name-cell {
    /*        padding-left: 50px;*/
    cursor: pointer;
}

.time-slot {
    cursor: pointer;
    transition: all 0.2s;
    height: 50px;
    position: relative;
    font-size: 12px;
    text-align: center;
    vertical-align: middle;
}

.time-slot:hover:not(.busy):not(.disabled):not(.non-working) {
    background-color: #fff3cd !important;
    /*        transform: scale(1.05);*/
}

.time-slot.available {
    background-color: var(--color-available);
    border-left: 0.2px solid #f0f0f0;
    border-bottom: 0.2px solid #f0f0f0;
}

.time-slot.busy {
    background-color: var(--color-busy);
    cursor: not-allowed;
}

.time-slot.selected {
    background-color: var(--color-selected);
    /*        border: 2px solid #ff6600;*/
}

.time-slot.disabled {
    background-color: var(--color-disabled);
    cursor: not-allowed;
    opacity: 0.5;
}

.info-icon {
    color: #17a2b8;
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
}

.info-icon:hover {
    color: #138496;
}

/* Ẩn nội dung khi chưa hover */
.time-slot::after {
    content: "";
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s;
}

/* Khi hover → hiện data-time */
.time-slot:hover::after {
    content: attr(data-time);
    /* Lấy đúng 11:00 hoặc 11:30 */
    background: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    opacity: 0.8;
}


.time-slot.non-working {
    background-color: var(--color-disabled);
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-book {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-book:disabled {
    background: #6c757d;
    box-shadow: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--hanu-maroon-500) 0%, var(--hanu-maroon-700) 100%);
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section-title {
    font-weight: 700;
    color: #212529;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.capacity-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.capacity-select:focus {
    outline: none;
    border-color: var(--hanu-maroon-700);
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1);
}

.facility-checkboxes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.facility-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.facility-checkbox-wrapper:hover {
    border-color: var(--hanu-maroon-500);
    background-color: rgba(255, 149, 0, 0.05);
}

.facility-checkbox-wrapper input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--hanu-maroon-500);
    width: 16px;
    height: 16px;
    margin: 0;
}

.facility-checkbox-wrapper label {
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    color: #495057;
    flex: 1;
}

.facility-checkbox-wrapper input[type="checkbox"]:checked+label {
    color: var(--hanu-maroon-500);
    font-weight: 600;
}

.btn-apply-filter {
    background-color: var(--hanu-maroon-500);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.btn-apply-filter:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
    color: white;
}

.btn-reset-filter {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.btn-reset-filter:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.room-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.time-header {
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .date-selector {
        padding: 20px 15px;
        justify-content: center;
    }

    .date-selector .form-label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .legend {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .facility-checkboxes-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}


/*=======================================Room booking form (SCOPED)======================================= */

.krm-bg-hanu {
    background: var(--hanu-maroon-500);
}

/*===============================Room booking history============================= */
:root {
    --krm-status-new: #9CA3AF;
    /* -4 NEW */
    --krm-status-pending: #F59E0B;
    /*  0 PENDING */
    --krm-status-approved: #22C55E;
    /*  1 APPROVED */
    --krm-status-checked-in: #3B82F6;
    /*  3 CHECKED_IN */
    --krm-status-checked-out: #6B7280;
    /*  4 CHECKED_OUT */

    --krm-status-cancelled: #F97316;
    /* -1 CANCELLED */
    --krm-status-rejected: #EF4444;
    /* -2 REJECTED */
    --krm-status-no-show: #B91C1C;
    /* -3 NO_SHOW */

    --krm-status-text-light: #FFFFFF;
}

.booking-history-container {
    /*    background: #f5f5f5;*/
}

.booking-history-container>.tabs-header {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

/* =====================================================
       1. ROLE BADGE
    ===================================================== */
.krm-htr-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.krm-htr-role-badge-owner {
    background: #e8f5e9;
    color: #2e7d32;
}

.krm-htr-role-badge-member {
    background: #fff3e0;
    color: #f57c00;
}


/* =====================================================
       2. BOOKING HISTORY TABS
    ===================================================== */
.booking-history-tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s;
}

.booking-history-tab-button:hover {
    color: #c41e3a;
}

.booking-history-tab-button.active {
    color: #c41e3a;
    border-bottom-color: #c41e3a;
    font-weight: 600;
}


/* =====================================================
       3. TAB CONTENT
    ===================================================== */
.krm-htr-tab-content {
    display: none;
}

.krm-htr-tab-content.active {
    display: block;
}

.krm-htr-tab-content>.card {
    overflow-x: auto;
}

/* =====================================================
       4. BUTTON
    ===================================================== */
.btn-command-htb {
    width: 90%;
}


/* =====================================================
       5. MEMBER DISPLAY (INLINE INFO)
    ===================================================== */
.krm-htr-member-display {
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
}

.krm-htr-member-display .info-line {
    margin-bottom: 4px;
}

.krm-htr-member-display .info-label {
    display: inline-block;
    min-width: 90px;
    font-weight: 600;
    color: #555;
}

.krm-htr-member-display strong {
    color: #333;
    font-weight: 600;
}


/* =====================================================
       6. MEMBER SUMMARY (HOVER TRIGGER)
    ===================================================== */
.krm-htr-member-summary-hover {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #0066cc;
    border-bottom: 1px dashed #0066cc;
}

.krm-htr-member-summary-hover:hover {
    color: #004499;
    border-bottom-color: #004499;
}

/* =====================================================
       7. MEMBER POPUP - VỊ TRÍ TƯƠNG ĐỐI
    ===================================================== */

.krm-htr-member-popup {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    margin-bottom: 8px;
    min-width: 300px;
    max-width: 400px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    white-space: normal;
    z-index: 99999999;
    pointer-events: none;
}

.krm-htr-member-summary-hover:hover .krm-htr-member-popup {
    display: block;
}

.krm-htr-member-popup-wrapper .krm-htr-member-popup {
    margin-bottom: 0;
}

.krm-htr-member-summary-hover.has-wrapper .krm-htr-member-popup {
    display: none !important;
}

/* =====================================================
       8. POPUP HEADER
    ===================================================== */
.krm-htr-popup-title {
    position: sticky;
    top: 0;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}


/* =====================================================
       9. POPUP LIST
    ===================================================== */
.krm-htr-popup-list {
    max-height: 170px;
    padding: 12px 15px;
    font-size: 13px;
    line-height: 1.8;
    overflow-y: auto;
}

.krm-htr-popup-list br {
    content: "";
    display: block;
    margin: 4px 0;
}


/* Scrollbar */
.krm-htr-popup-list::-webkit-scrollbar {
    width: 6px;
}

.krm-htr-popup-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.krm-htr-popup-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.krm-htr-popup-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* =====================================================
       10. POPUP MEMBER ROW
    ===================================================== */
.krm-htr-popup-member-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 12px;
}

.krm-htr-popup-member-row.current-user {
    background-color: #fff3cd;
    font-weight: 600;
}

.krm-htr-member-index {
    display: inline-block;
    width: 18px;
    color: #999;
    font-weight: 500;
}

.krm-htr-member-name {
    margin-right: 8px;
    font-weight: 500;
}

.krm-htr-member-meta {
    margin-left: 14px;
    margin-top: 2px;
    font-size: 11px;
    color: #777;
}


/* =====================================================
       11. TAG & BADGE
    ===================================================== */
.krm-htr-me-tag {
    margin-left: 4px;
    font-size: 0.9em;
    font-weight: 600;
    color: #0066cc;
}

.krm-htr-role-badge-owner {
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 0.75em;
    font-weight: 500;
    color: #fff;
    background-color: #ff9800;
    border-radius: 12px;
}


/* =====================================================
       12. RESPONSIVE
    ===================================================== */
@media (max-width: 768px) {
    .krm-htr-member-popup {
        right: 0;
        left: auto;
        min-width: 200px;
    }

    .btn-command-htb {
        width: 100%;
    }
}

.krm-htr-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-approved {
    background: var(--krm-status-approved);
    color: #f0f0f0;
}

.status-pending {
    background: var(--krm-status-pending);
    color: #f0f0f0;
}

.status-new {
    background: var(--krm-status-new);
    color: #f0f0f0;
}

.status-cancelled {
    background: var(--krm-status-cancelled);
    color: #f0f0f0;
}

.status-rejected {
    background: var(--krm-status-rejected);
    color: #f0f0f0;
}

.status-completed {
    background: var(--krm-status-checked-out);
    color: #f0f0f0;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
}


/*=====================================RESPONSIVE ROOM BOOKING================================================*/
@media (max-width: 768px) {

    /* Header: Stack items */
    .room-booking-container .date-selector .row {
        flex-direction: column;
        align-items: center !important;
    }

    .room-booking-container .date-selector .col-md-12 {
        justify-content: center;
        margin-bottom: 10px;
    }

    .room-booking-container .legend {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 10px;
    }

    .room-booking-container .filter-buttons {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    /* Hide Building and Floor columns on mobile */
    .building-header-cell,
    .floor-header-cell,
    .building-cell,
    .floor-cell {
        display: none !important;
    }

    /* Fix sticky headers for remaining columns */
    .schedule-table th {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 10;
    }

    /* Ensure table container scrolls */
    .schedule-container {
        /*        overflow-x: auto;*/
        position: relative;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    /* Adjust button sizes */
    .btn-date-nav {
        padding: 8px 12px;
    }

    /* --- MOBILE TABLE STYLING --- */
    /*    .mobile-schedule-table thead {
        position: sticky;
        top: 0;
        background-color: white;
        z-index: 1000;
    }*/

    .mobile-schedule-table th {
        background-color: #f8f9fa;
        color: #333;
        font-weight: 600;
        text-align: center;
        vertical-align: middle;
        border: 1px solid #dee2e6;
        padding: 0px;
    }

    .mobile-room-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 13px;
        min-width: 40px;
        /* Ensure column has width */
        padding: 2px 2px;
    }

    /* Mobile Table Cells (Time Slots) */
    .mobile-schedule-table td {
        height: 40px;
        /* Larger touch target */
        text-align: center;
        vertical-align: middle;
        border: 1px solid #dee2e6;
        font-size: 14px;
        position: relative;
    }

    /* Available Slots: Simple white background like desktop */
    .mobile-schedule-table td.available {
        background-color: #ffffff;
        cursor: pointer;
    }

    /* Selected State: Orange background */
    .mobile-schedule-table td.selected {
        background-color: var(--color-selected) !important;
        color: white;
        border: 1px solid #e07b00;
    }

    /* Busy State */
    .mobile-schedule-table td.busy {
        background-color: var(--color-busy);
        opacity: 0.7;
    }

    /* Disabled/Non-working State */
    .mobile-schedule-table td.disabled,
    .mobile-schedule-table td.non-working {
        background-color: var(--color-disabled);
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Time Column */
    .mobile-schedule-table td:first-child {
        background-color: #f8f9fa;
        font-weight: bold;
        color: #555;
        border-right: 2px solid #dee2e6;
    }

    /* ========== STICKY HEADER & TIME COLUMN FOR MOBILE ========== */
    .schedule-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Base sticky cell styling */
    .mobile-schedule-table .sticky-col {
        position: sticky !important;
        left: 0;
        z-index: 10;
        background-color: #f8f9fa !important;
    }

    /* Fixed header row (cloned) */
    #mobileScheduleStickyHeader {
        position: fixed;
        top: 0;
        z-index: 1000;
        display: none;
        overflow: hidden;
        background: #f8f9fa;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    /* Table within sticky header */
    #mobileScheduleStickyHeader table {
        table-layout: fixed;
        margin-bottom: 0;
        border-collapse: collapse;
        background: #f8f9fa;
    }

    /* Corner cell (Time in Header) needs highest z-index */
    .mobile-schedule-table thead .sticky-col {
        z-index: 30 !important;
    }

    /* Body sticky Time column */
    .mobile-schedule-table tbody .sticky-col {
        background-color: #ffffff !important;
        /* Keep body cells white but still sticky */
        z-index: 15;
    }

    /* Header row sticky behavior (vertical) */
    .mobile-schedule-table thead th {
        position: sticky;
        top: 0;
        background-color: #f8f9fa !important;
        z-index: 20;
    }
}



/*===============================================RESPONSIVE CURRENT BOOKING OF PATRON ================================================ */
/* ===== Responsive switch ===== */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }
}

/* ===== Booking card ===== */
.booking-card {
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.booking-card .card-header {
    background: #f8f9fa;
    font-size: 14px;
}

.booking-card .card-body {
    font-size: 14px;
}

.booking-card .card-footer {
    background: #fff;
}

/* Ẩn table trên mobile, hiện trên desktop */
@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .desktop-only {
        display: block !important;
    }

    .mobile-only {
        display: none !important;
    }
}

/* Tối ưu Card Mobile */
.booking-card {
    border: 1px solid #eee !important;
    border-left: 3px solid #0dcaf0 !important;
    /* Vạch màu tạo điểm nhấn */
    border-radius: 8px;
    margin-bottom: 10px !important;
}

.booking-card .card-body {
    padding: 0.75rem;
}

.booking-card .info-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.booking-card .info-row i {
    width: 20px;
    color: #6c757d;
}

.booking-card .booking-id {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0d6efd;
}

.btn-mobile-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
}


/*====================================================CSS filter ROOOM MODAL ====================================================*/

/* Container bao quanh danh sách checkbox */
.bootstrap-cbl {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1.5rem; /* Tương đương gap-4 của Bootstrap */
    padding-left: 0;
}

    /* Ẩn dấu chấm của thẻ li */
    .bootstrap-cbl li {
        list-style: none;
        display: flex;
        align-items: center;
    }

    /* Biến ô checkbox mặc định thành Checkbox của Bootstrap 5 */
    .bootstrap-cbl input[type="checkbox"] {
        width: 1rem;
        height: 1rem;
        margin-top: 0.25em;
        vertical-align: top;
        background-color: #fff;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        border: 1px solid rgba(0, 0, 0, 0.25);
        appearance: none; /* Tắt giao diện mặc định của trình duyệt */
        -webkit-appearance: none;
        border-radius: 0.25em;
        transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
        cursor: pointer;
    }

        /* Khi checkbox được tích (Checked) */
        .bootstrap-cbl input[type="checkbox"]:checked {
            background-color: #0d6efd; /* Màu blue của Bootstrap 5 */
            border-color: #0d6efd;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
        }

        /* Hiệu ứng khi di chuột qua */
        .bootstrap-cbl input[type="checkbox"]:focus {
            border-color: #86b7fe;
            outline: 0;
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        }

    /* Định dạng nhãn (Label) đi kèm */
    .bootstrap-cbl label {
        margin-left: 0.5rem;
        cursor: pointer;
        font-weight: 400;
        color: #212529;
    }