
:root {
            --primary-color: #4361ee;
            --secondary-color: #3f37c9;
            --success-color: #4cc9f0;
            --warning-color: #f8961e;
            --danger-color: red;
            --light-color: #f8f9fa;
            --dark-color: #212529;
            --gray-color: #6c757d;
            --sidebar-width: 250px;
            --header-height: 70px;
            --view-btn: #2db561;
        }
        .table-container {
            background-color: white;
            border-radius: 10px;
            padding: 0px 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            margin-top: 20px;
            overflow-x: auto;
            height: 100vh;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        table th {
            text-align: left;
            padding: 15px;
            border-bottom: 2px solid #eee;
            color: var(--dark-color);
            font-weight: 600;
        }

        table td {
            padding: 10px;
            border-bottom: 1px solid #eee;
        }

        table tr:hover {
            background-color: rgba(67, 97, 238, 0.02);
        }

        .status {
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .status-success {
            background-color: rgb(24, 204, 93);
            color: #ffffff;
        }

        .status-warning {
            background-color: rgba(248, 150, 30, 0.2);
            color: #c77c10;
        }

        .status-danger {
            background-color: rgba(247, 37, 133, 0.2);
            color: red;
        }



        .btn {
            padding: 8px 15px;
            border-radius: 5px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: var(--secondary-color);
        }

        .btn-danger {
            background-color: var(--danger-color);
            color: white;
        }

        .btn-danger:hover {
            background-color: #dc3e3e;
        }

        .btn-sm {
            padding: 10px 10px;
            font-size: 0.85rem;
        }
        .btn-view{
            background-color: var(--view-btn);
            color: white;
        }


        .btn-action {
            min-width: 36px ;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            border-radius: 7px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            color: white;
            transition: 0.25s ease;
            /* margin-left: 5px;
            margin-top: 5px; */
        }

        /* ===== MÀU TỪNG NÚT ===== */
        .btn-view {
            background-color: #2db561;
        }
        .btn-view:hover {
            background-color: #259d53;
        }

        .btn-edit {
            background-color: #4361ee;
        }
        .btn-edit:hover {
            background-color: #3f49d2;
        }

        .btn-delete {
            background-color: #e63946;
        }
        .btn-delete:hover {
            background-color: #c52833;
        }

    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0; top: 0;
        width: 100%; height: 100%;
        background-color: rgba(0,0,0,0.5);
        justify-content: center;
        align-items: center;
    }
    .modal.active { display: flex; }
    .modal-content {
        background: white;
        border-radius: 8px;
        width: 90%;
        max-width: 600px;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    .modal-header {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .modal-header h3 { margin: 0; }
    .close {
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        color: #aaa;
    }
    .close:hover { color: #000; }
    .modal-body {
        padding: 20px;
    }
    .form-group {
        margin-bottom: 15px;
    }
    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 600;
    }
    .form-group input,
    .form-group select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    /* ====================== PHÂN TRANG SIÊU ĐẸP CHO BOOTSTRAP-4 ====================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 35px 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    font-family: 'Segoe UI', sans-serif;
}

.pagination li {
    margin: 0;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #444;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 14px !important;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.pagination li a:hover {
    background: #000000;
    color: white !important;
    border-color: #000000;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.pagination li.active a,
.pagination li.active span {
    background: #000000 !important;
    color: white !important;
    border-color: #000000 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    font-weight: 700;
}

.pagination li.disabled a,
.pagination li.disabled span {
    color: #bbb !important;
    background: #f8f9fa !important;
    cursor: not-allowed;
    opacity: 0.65;
    box-shadow: none;
}

/* Nút « Previous » và « Next » đẹp hơn */
.pagination li:first-child a,
.pagination li:last-child a {
    min-width: 46px;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white !important;
    font-weight: bold;
}

.pagination li:first-child a:hover,
.pagination li:last-child a:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(108, 117, 125, 0.4);
}

/* Responsive */
@media (max-width: 576px) {
    .pagination {
        gap: 6px;
    }
    .pagination li a,
    .pagination li span {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
        border-radius: 10px !important;
    }
    .pagination li:first-child a,
    .pagination li:last-child a {
        min-width: 90px;
        font-size: 13px;
    }
}

/* dropdown status table */
.table-dropdown {
    position: relative;
    display: inline-block;
    width: 160px;
}

.table-dropdown-btn {
    width: 100%;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
}

.table-dropdown-list {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    display: none;
    z-index: 999;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.15);
}

.table-dropdown-item {
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.table-dropdown-item:hover {
    background: #eee;
}

/* css dropdown filter */

.dropdown {
    position: relative;
    width: 200px;
}

.dropdown-selected {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: none;
    z-index: 5;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 10px;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f0f0f0;
}

.dropdown.open .dropdown-menu {
    display: block;
}


