/* Container */
.container.my-5 {
    max-width: 1200px;
    margin: auto;
}

/* Tiêu đề chính */
h2.mb-4 {
    font-weight: 700;
    font-size: 2.2rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Bảng danh sách tài liệu */
table.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #fff;
}

table.table thead {
    background-color: #2980b9;
    color: white;
}

table.table th, table.table td {
    vertical-align: middle;
    text-align: left;
    padding: 10px;
}

table.table tbody tr:hover {
    background-color: #ecf0f1;
}

/* Nút tải xuống */
a.btn.btn-primary.btn-sm {
    background-color: #27ae60;
    border: none;
    font-weight: 600;
    padding: 4px 10px;
    transition: background-color 0.3s ease;
}

a.btn.btn-primary.btn-sm:hover {
    background-color: #2ecc71;
}

/* Thông báo không có tài liệu */
.alert.alert-warning {
    font-weight: 600;
    font-size: 1.1rem;
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
    border-radius: 6px;
    padding: 15px 20px;
}

/* Dropdown filter form */
form.row.g-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Responsive adjustments */
/* Responsive adjustments */
@media (max-width: 768px) {
    /* Tiêu đề nhỏ hơn, căn giữa */
    h2.mb-4 {
        font-size: 1.6rem;
        text-align: center;
    }

    /* Chỉnh nút nhỏ lại */
    a.btn.btn-primary.btn-sm,
    a.btn.btn-secondary.btn-sm {
        font-size: 0.85rem;
        padding: 3px 8px;
    }

    /* Dropdown filter form: dọc */
    form.row.g-2 {
        flex-direction: column;
        align-items: stretch;
    }

    form.row.g-2 .col-auto {
        width: 100%;
    }

    form.row.g-2 button.btn {
        width: 100%;
    }
        .table-responsive {
        width: 100%;
        overflow-x: auto;
    }

    /* Bảng trong chế độ mobile */
    table.table {
        width: 100%;
        min-width: 600px; /* Đảm bảo bảng không quá nhỏ */
        table-layout: fixed; /* Giữ cột đều */
        border-collapse: collapse; /* Xóa khoảng cách viền */
    }

    /* Cột tự xuống dòng nếu dài */
    table.table th,
    table.table td {
        word-wrap: break-word;
        white-space: normal; /* Cho phép xuống dòng */
    }
}


