* { box-sizing: border-box; margin: 0; padding: 0; font-family: Arial, sans-serif; }

body {
    background-image: url('/images/background.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Header & Menu */
.navbar { background: #333; padding: 10px 0; position: sticky; top: 0; z-index: 1000; font-size: 20px;}
.menu { display: flex; justify-content: center; align-items: center; list-style: none; padding: 10px 0;}
.menu li { margin: 0 15px; transition: transform 0.3s; }
.menu li a { color: white; text-decoration: none; font-weight: bold; }
.menu li:hover { transform: scale(1.2); } /* Hiệu ứng to ra */

.floating-menu {
    list-style: none;
}
.floating-menu li { margin: 0 15px; transition: transform 0.3s; padding: 20px 0; }
.floating-menu li a { color: white; text-decoration: none; font-weight: bold; }



.banner {
    height: 500px; background-image: url("/images/Gemini_Generated_Image_8xi9ue8xi9ue8xi9.png");
    background-position-y: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Floating Div */
#floating-div {
    position: fixed; top: 50%; right: 10px; padding: 10px 10px;
    background: orange; color: white; border-radius: 5px; z-index: 2000;
}
.hidden { display: none; }

/* Container */
.container { width: 80%; margin: 20px auto; text-align: justify; }

/* Phần 1: Slider & Buttons */
.top-content { display: flex; gap: 20px; margin-bottom: 30px; }
.side-buttons { display: flex; flex-direction: column; gap: 10px; width: 20%; }
.slider {
    flex-grow: 1;
    background: #eee;
    height: 265px;
    display: flex;
    align-items: center;
    justify-content: center;
     border: 1px solid #ccc;
    background-image: url('/images/slider1.jpg');
}

/* Phần 3: Tabs */
.tabs-header { margin-bottom: 10px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { border: 1px solid #ddd; width: 33.33%; padding: 10px; text-align: center; }

/* Phần cuối: Vertical Bars */
.accordion-section { margin-top: 30px;}
.vertical-bars { display: flex; gap: 5px; height: 50px; margin-top: 20px}
.bar { flex: 1; background: #444; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bar:hover { background: #666; }
.content-display { margin-top: 10px; padding: 20px; background: #f9f9f9; border: 1px solid #ddd; }

/* Footer */
footer { background: #222; color: white; text-align: center; padding: 20px; margin-top: 40px; }
.footer-menu a { color: #aaa; margin: 0 10px; text-decoration: none; }

.side-button {
    height: 80px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    cursor: pointer;
    position: relative; /* Change from static */
}

.button-signup {
    background-image: url('/images/btn-dangky.png');
}

.button-signup:hover {
    background-image: url('/images/btn-dangky-active.png');
    top: -2px;
    left: -2px;
}

.button-signin {
    background-image: url('/images/btn-dangnhap.png');
}

.button-signin:hover{
    background-image: url('/images/btn-dangnhap-active.png');
    top: -2px;
    left: -2px;
}

.button-coin {
    background-image: url('/images/btn-napxu.png');
}

.button-coin:hover {
    background-image: url('/images/btn-napxu-active.png');
     top: -2px;
    left: -2px;
}

.news-list {
    min-height: 300px;
}

.news-list ul {
    margin-top: 20px;
    display: flex;       /* Put items in a row */
    padding: 0 10px;
    list-style: none;
    min-height: 200px;
    flex-direction: column;
    background: white;
}

.news-list li {
    flex: 1;             /* Force all items to be the exact same width */
    text-align: center;
    border-bottom: 1px solid #ccc;
    padding-top: 15px;
    text-align: left;
    font-weight: bold;
}

.news-list-title {
    background-image: url('/images/title-tinmoi.png');
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.tabs-section-title {
    background-image: url('/images/title-bangxephang.png');
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.accordion-section-title {
    background-image: url('/images/title-monphai.png');
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.tabs-section-container {
    margin-top:10px;
    display: flex;
    border: 1px solid #ddd;
    min-height: 300px;
}

/* Thiết lập chung cho bảng */
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* QUAN TRỌNG: Giữ tỉ lệ cột cố định */
}

th, td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
  overflow: hidden;    /* Tránh nội dung quá dài làm vỡ cột */
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Định nghĩa tỉ lệ cột (ví dụ 50% - 25% - 25%) */
th:nth-child(1) { width: 20%; }
th:nth-child(2) { width: 40%; }
th:nth-child(3) { width: 40%; }

/* CSS cho hệ thống Tab */
.tab-content {
  display: none; /* Ẩn mặc định */
  border-top: none;
}

.tab-content.active {
  display: block; /* Hiển thị tab đang chọn */
}

.tab-buttons {
  display: flex;
  flex-direction: column; /* Sắp xếp nút theo chiều dọc */
  width: 200px;           /* Độ rộng cố định cho cột menu */
  background-color: #f1f1f1;
  border-right: 1px solid #ddd;
}

.tab-btn {
  background-color: #fff;
  color: #007bff;
  border-left: 4px solid #007bff; /* Thanh màu xanh khi active */
  font-weight: bold;
}

.tab-btn.active {
  background-color: #ccc;
}

/* Cột nút bên trái */
.tab-buttons-vertical {
  display: flex;
  flex-direction: column; /* Sắp xếp nút theo chiều dọc */
  width: 200px;           /* Độ rộng cố định cho cột menu */
  background-color: #f1f1f1;
  border-right: 1px solid #ddd;
}

.tab-btn {
  background-color: transparent;
  border: none;
  padding: 15px 20px;
  text-align: left;       /* Chữ căn lề trái cho menu dọc */
  cursor: pointer;
  transition: 0.3s;
  border-left: 4px solid transparent; /* Tạo thanh chỉ thị bên trái */
}

.tab-btn.active {
  background-color: #fff;
  color: #007bff;
  border-left: 4px solid #007bff; /* Thanh màu xanh khi active */
  font-weight: bold;
}

/* Cột nội dung bên phải */
.tab-container-content {
  flex: 1;                /* Chiếm toàn bộ phần còn lại bên phải */
  padding: 20px;
  background: white;
}

/* Giữ nguyên quy tắc table-layout: fixed để bảng không bị vỡ */
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th, td {
  border: 1px solid #ddd;
  padding: 10px;
}