/* Đặt lại các thuộc tính cơ bản */
body, h1, h2, h3, p, table, canvas, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #f5f7fa; /* Màu nền sáng nhẹ */
    color: #333; /* Màu chữ tối */
    line-height: 1.6;
    margin: 20px;
}

/* Header chính của trang */
h1 {
    text-align: center;
    color: #0056b3; /* Màu xanh chuyên nghiệp */
    font-size: 2.5rem;
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    color: #333;
    font-size: 1.8rem;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Đảm bảo nội dung trong ô xuống dòng đúng cách */
table td {
    white-space: pre-line; /* Giữ khoảng trắng và xuống dòng */
    vertical-align: top;   /* Căn chữ lên đầu ô */
}

/* Nút bấm */
button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;
    color: #fff;
    background-color: #0056b3;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin: 10px auto;
}

button:hover {
    background-color: #004099; /* Màu đậm hơn khi hover */
    transform: translateY(-2px); /* Hiệu ứng nhấn */
}

/* Bố cục */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff; /* Màu nền trắng cho khối nội dung */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Đổ bóng nhẹ */
}

/* Bảng thống kê */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #0056b3; /* Màu nền header */
    color: #fff; /* Chữ trắng */
    font-weight: bold;
    text-transform: uppercase;
}

table tr:nth-child(odd) {
    background-color: #f9f9f9; /* Màu nền xen kẽ */
}

table tr:hover {
    background-color: #f1f1f1; /* Màu nền khi hover */
}

/* Canvas (biểu đồ) */
canvas {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd; /* Viền nhẹ cho biểu đồ */
    border-radius: 8px;
}

/* Tiêu đề và nội dung biểu đồ */
.chart-title {
    text-align: center;
    font-size: 1.5rem;
    color: #0056b3;
    margin: 15px 0;
}

/* Hiệu ứng liên kết */
a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #004099;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 20px;
    color: #777;
    font-size: 0.9rem;
    padding: 10px 0;
    border-top: 1px solid #ddd;
}
/* Phong cách cho tiêu đề bảng và nút Xóa bảng */
.table-section h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    padding: 10px 0;
    border-bottom: 2px solid #ddd;
}

.table-section button {
    padding: 8px 15px;
    font-size: 14px;
    background-color: #ff4d4d; /* Màu đỏ cho nút Xóa */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.table-section button:hover {
    background-color: #cc0000; /* Màu đậm hơn khi hover */
}
#myChart {
  max-width: 1000px;
  max-height: 1000px;
}
#spiderChart {
  width: 100%;
  height: auto;
}
/* Biểu đồ độc lập */
#independentChartContainer canvas {
    display: block;
    margin: 30px auto;	
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}