html {
    scroll-behavior: smooth;
}

.input-highlight {
    background-color: #fff8cc !important;
    transition: background-color 1s ease;
}

/* Style the entire scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

/* Style the scrollbar track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Style the scrollbar thumb */
::-webkit-scrollbar-thumb {
    background: #999999;
    border-radius: 6px;
}

/* Style the scrollbar thumb on hover */
::-webkit-scrollbar-thumb:hover {
    background: #666666;
}


/* ==============================
   Modal Confirm Custom (Base)
   ============================== */
.modal-confirm-custom.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-confirm-custom.modal-overlay.hidden {
    display: none;
}

.modal-confirm-custom .modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 24px 20px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.2s ease-in-out;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-confirm-custom .modal-content h2 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.modal-confirm-custom .modal-content p {
    margin: 0 0 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.modal-confirm-custom .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-confirm-custom .cancel-btn,
.modal-confirm-custom .confirm-btn {
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.modal-confirm-custom .cancel-btn {
    background: #f3f3f3;
    color: #333;
}

.modal-confirm-custom .cancel-btn:hover {
    background: #e2e2e2;
}

.modal-confirm-custom .confirm-btn {
    background: #e3342f;
    color: #fff;
}

.modal-confirm-custom .confirm-btn:hover {
    background: #cc1f1a;
}

.modal-confirm-custom .confirm-btn:active,
.modal-confirm-custom .cancel-btn:active {
    transform: translateY(1px);
}

/* ==============================
Responsive
============================== */
@media (max-width: 640px) {
    .modal-confirm-custom.modal-overlay {
        padding: 20px;
        align-items: flex-end;
        /* Hiển thị modal phía dưới trên mobile */
    }

    .modal-confirm-custom .modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        padding: 20px 16px;
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.2);
        animation: slideUp 0.25s ease-in-out;
    }

    @keyframes slideUp {
        from {
            transform: translateY(40px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .modal-confirm-custom .modal-content h2 {
        font-size: 16px;
        text-align: center;
    }

    .modal-confirm-custom .modal-content p {
        font-size: 14px;
        text-align: center;
        margin-bottom: 16px;
    }

    .modal-confirm-custom .modal-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 8px;
    }

    .modal-confirm-custom .cancel-btn,
    .modal-confirm-custom .confirm-btn {
        width: 100%;
        padding: 10px;
        font-size: 15px;
    }

    .modal-confirm-custom .confirm-btn {
        background: #e3342f;
    }
}


/* ==============================
Pagination Custom
============================== */

.pagination-wrapper-custom.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination-wrapper-custom .pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 5px;
}

.pagination-wrapper-custom .page-item {
    display: inline-block;
}

.pagination-wrapper-custom .page-link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-wrapper-custom .page-link:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination-wrapper-custom .page-item.active .page-link {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    cursor: default;
}

.pagination-wrapper-custom .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}
