.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
  padding-top: 25px;
}

.tab-buttons button {
  padding: 12px 25px;
  border: none;
  background-color: #e9ecef;
  color: #555;
  cursor: pointer;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.tab-buttons button:hover {
  background-color: #dee2e6;
  color: #333;
}

.tab-buttons button.active {
  background-color: #007bff;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}


.tab-content {
  display: none;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* thi cong */

.wrapper-thicong {
  /* max-width: 1000px; */
  margin: 0 auto;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* --- Headings --- */
.wrapper-thicong h3 {
  color: #007bff;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.6rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
  position: relative;
  cursor: pointer;
}

.wrapper-thicong h4 {
  color: #495057;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* --- Sections --- */
.wrapper-thicong .section {
  margin-bottom: 30px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fcfcfc;
}

/* --- Tables --- */
.wrapper-thicong table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
  /* Ensures rounded corners apply to content */
}

.wrapper-thicong table th,
.wrapper-thicong table td {
  border: 1px solid #e9ecef;
  padding: 12px 15px;
  text-align: center;
  font-size: 0.95rem;
}

.wrapper-thicong table thead th {
  background-color: #007bff;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wrapper-thicong table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.wrapper-thicong table tbody tr:hover {
  background-color: #e2f2ff;
  transition: background-color 0.3s ease;
}

/* --- Lists --- */
.wrapper-thicong ul {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 15px;
}

.wrapper-thicong ol {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 15px;
}

.wrapper-thicong li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* --- Specific Styles for 'Cấu trúc nhà' Table --- */
.wrapper-thicong .cautruc table {
  margin-top: 20px;
  box-shadow: none;
  /* Remove shadow for nested table if desired */
  border: 1px solid #ced4da;
}

.wrapper-thicong .cautruc th,
.wrapper-thicong .cautruc td {
  padding: 10px;
  vertical-align: middle;
}

.wrapper-thicong .cautruc th {
  background-color: #f1f3f5;
  color: #343a40;
  font-weight: 600;
  position: relative;
}

.wrapper-thicong .cautruc input[type="number"] {
  width: 80px;
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  text-align: center;
  font-size: 1rem;
  box-sizing: border-box;
  /* Include padding and border in the element's total width and height */
}

.wrapper-thicong .cautruc select {
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
  margin-left: 5px;
}

.wrapper-thicong .cautruc input[type="checkbox"],
.wrapper-thicong .cautruc input[type="radio"] {
  margin-right: 8px;
  transform: scale(1.1);
  vertical-align: middle;
  /* Align checkbox/radio with text */
}

.wrapper-thicong .cautruc label {
  display: inline-flex;
  /* Use flex to align label content */
  align-items: center;
  /* Vertically center content */
}

.wrapper-thicong .cautruc .hidden {
  display: none;
}

.wrapper-thicong .cautruc #resetBtn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.wrapper-thicong .cautruc #resetBtn:hover {
  background-color: #5a6268;
}

.wrapper-thicong .cautruc tfoot th {
  background-color: #e9ecef;
  font-size: 1.1rem;
  color: #333;
  text-align: center;
}

/* --- Utility Classes --- */
.wrapper-thicong .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  align-items: flex-start;
  /* Align items to the top */
}

.wrapper-thicong .col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 15px;
  padding-left: 15px;
  box-sizing: border-box;
}

.wrapper-thicong .gia-do {
  color: #e53935;
  font-weight: bold;
}

.wrapper-thicong .tien-xanh {
  color: #007bff;
  font-weight: bold;
}

.wrapper-thicong .mt-3 {
  margin-top: 2rem !important;
}

.wrapper-thicong .btn-reset {
  background-color: #007bff !important;
  color: #fff !important;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.wrapper-thicong .btn-reset:hover {
  background-color: #0056b3 !important;
}

.wrapper-thicong .bao-gom-title {
  color: #1976d2;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  border-bottom: 2px solid #1976d2;
  display: inline-block;
  margin-bottom: 0.5em;
  letter-spacing: 0.5px;
  padding-bottom: 2px;
}

.wrapper-thicong .bao-gom-list {
  padding-left: 20px;
  margin-top: 0;
}

.wrapper-thicong .bao-gom-item {
  color: #1976d2;
  font-weight: 500;
  display: list-item;
  list-style: disc;
  margin-bottom: 0.2em;
}

.wrapper-thicong .bao-gom-luuy {
  color: #555;
  font-weight: 400;
  font-style: normal;
  margin-top: 0.2em;
  display: list-item;
  list-style: disc;
}

.wrapper-thicong h3 .toggle-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #007bff;
  user-select: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tab-buttons {
    flex-direction: column;
  }

  .tab-buttons button {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .wrapper-thicong .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .wrapper-thicong .cautruc #resetBtn {
    position: static;
    /* Remove absolute positioning on smaller screens */
    transform: none;
    margin-top: 10px;
    width: auto;
  }
}




/* --- Wrapper cho thiết kế --- */

/* --- Headings --- */
.wrapper-thietke h3 {
  color: #007bff;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.6rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
  position: relative;
  cursor: pointer;
}

.wrapper-thietke h3 .toggle-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #007bff;
  user-select: none;
}

h4 {
  color: #495057;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}


/* --- Tables --- */
.wrapper-thietke table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
  /* Ensures rounded corners apply to content */
}

.wrapper-thietke table th,
.wrapper-thietke table td {
  border: 1px solid #e9ecef;
  padding: 12px 15px;
  text-align: center;
  font-size: 0.95rem;
}

.wrapper-thietke table thead th {
  background-color: #007bff;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wrapper-thietke table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.wrapper-thietke table tbody tr:hover {
  background-color: #e2f2ff;
  transition: background-color 0.3s ease;
}

/* --- Lists --- */
.wrapper-thietke ul {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 15px;
}

.wrapper-thietke ol {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 15px;
}

.wrapper-thietke li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* --- Specific Styles for 'Cấu trúc nhà' Table --- */
.wrapper-thietke .cautruc table {
  margin-top: 20px;
  box-shadow: none;
  /* Remove shadow for nested table if desired */
  border: 1px solid #ced4da;
}

.wrapper-thietke .cautruc th,
.wrapper-thietke .cautruc td {
  padding: 10px;
  vertical-align: middle;
}

.wrapper-thietke .cautruc th {
  background-color: #f1f3f5;
  color: #343a40;
  font-weight: 600;
  position: relative;
}

.wrapper-thietke .cautruc input[type="number"] {
  width: 80px;
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  text-align: center;
  font-size: 1rem;
}

.wrapper-thietke .cautruc select {
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
  margin-left: 5px;
}

.wrapper-thietke .cautruc input[type="checkbox"],
.wrapper-thietke .cautruc input[type="radio"] {
  margin-right: 8px;
  transform: scale(1.1);
}

.wrapper-thietke .cautruc .hidden {
  display: none;
}

.wrapper-thietke .cautruc #resetBtn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.wrapper-thietke .cautruc #resetBtn:hover {
  background-color: #5a6268;
}

.wrapper-thietke .cautruc tfoot th {
  background-color: #e9ecef;
  font-size: 1.1rem;
  color: #333;
}

/* --- Price Table --- */
.wrapper-thietke .price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  text-align: center;
}

.wrapper-thietke .price-table th,
.wrapper-thietke .price-table td {
  padding: 10px;
  border: 1px solid #e9ecef;
  text-align: center;
  font-size: 1rem;
}

.wrapper-thietke .price-table thead th,
.wrapper-thietke .price-table td.price {
  background-color: #f0f0f0;
  color: #333;
}

.wrapper-thietke .price-table td.price1 {
  color: #007bff;
  font-weight: bold;
}

/* --- Notes --- */
.wrapper-thietke .note,
.wrapper-thietke .note-small {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #444;
}

.wrapper-thietke .note ul,
.wrapper-thietke .note-small ul {
  list-style: disc;
  margin-left: 1.5rem;
}

.wrapper-thietke .subnote {
  margin-top: 0.5rem;
  font-style: italic;
  color: #777;
}

.wrapper-thietke .note ul.hoso-thietke li,
.wrapper-thietke .note ul li strong {
  color: #007bff;
}

.wrapper-thietke .subtext {
  font-style: italic;
  font-weight: bold;

}

.wrapper-thietke .row {}





@media (max-width: 480px) {
  /* Thêm các rule sau vào đây */
  .wrapper-thicong table,
  .wrapper-thietke table {
    display: block;
    overflow-x: auto;
    white-space: nowrap; /* Ngăn không cho nội dung trong bảng bị xuống hàng */
    -webkit-overflow-scrolling: touch; /* Cải thiện trải nghiệm cuộn trên iOS */
  }

  .wrapper-thicong table th,
  .wrapper-thicong table td,
  .wrapper-thietke table th,
  .wrapper-thietke table td {
      white-space: nowrap; /* Đảm bảo các ô không bị ngắt dòng */
  }
}
