* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  color: #333;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
}

th,
td {
  border: 1px solid #e5e7eb;
  padding: 8px 6px;
  text-align: left;
  line-height: 1.35;
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background-color: #eef2ff;
}

/* Group headers */
.group-header {
  background-color: #e3f2fd !important;
  font-weight: bold;
  color: #1976d2;
}

.group-header:hover {
  background-color: #e3f2fd !important;
}

/* Zebra striping */
tbody tr:nth-child(odd) {
  background-color: #fafafa;
}

/* Column alignment and widths */
.api table th:nth-child(2),
.api table td:nth-child(2) {
  text-align: center;
  width: 90px;
  white-space: nowrap;
}

.api table th:nth-child(5),
.api table td:nth-child(5),
.api table th:nth-child(6),
.api table td:nth-child(6) {
  text-align: center;
  width: 120px;
  white-space: nowrap;
}

.bg-200 {
  background-color: #f3f4f6;
}

.text-900 {
  color: #111827 !important;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.text-center {
  text-align: center;
}

.badge {
  padding: 5px 9px;
  border-radius: 14px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  transition: opacity 0.2s ease;
}

.bg-info {
  background-color: #0ea5e9;
  color: #ffffff;
  box-shadow: none;
}

.bg-info:hover {
  opacity: 0.9;
  transform: none;
  box-shadow: none;
}

.badge-soft-info {
  background-color: #e0f2fe;
  color: #075985;
  font-weight: 600;
}

.header {
  background: #1976d2;
  color: #ffffff;
  width: 100%;
  text-align: center;
  padding: 24px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
  font-size: 2rem;
  text-transform: none;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
  font-weight: 700;
  text-shadow: none;
  animation: none;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #23d5ab, 0 5px 10px rgba(0, 0, 0, 0.3);
  }

  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #ff00de, 0 0 40px #ff00de, 0 0 50px #ff00de, 0 5px 10px
      rgba(0, 0, 0, 0.3);
  }
}

.header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.header nav ul li {
  display: inline-block;
  background-color: #0369a1;
  border-radius: 6px;
}

.header nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 4px;
  background: transparent;
  border: none;
  transition: color 0.2s ease;
  display: inline-block;
}

/* Định nghĩa chuyển động của dải màu */
@keyframes neonGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .header {
    padding: 30px 15px;
  }

  .header nav ul {
    gap: 15px;
  }

  .header nav ul li a {
    font-size: 0.95rem;
    padding: 10px 20px;
  }

  .body {
    padding: 20px 15px;
    margin: 20px auto;
  }

  .introduction,
  .api,
  .contact {
    padding: 20px;
  }

  .introduction h2,
  .api h2,
  .contact h2 {
    font-size: 1.5rem;
  }

  table {
    font-size: 0.85rem;
  }

  th,
  td {
    padding: 10px 8px;
  }
}

.body {
  padding: 24px 16px;
  max-width: 1200px;
  margin: 28px auto;
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.introduction {
  margin-bottom: 16px;
  background: #ffffff;
  padding: 18px;
  border-radius: 6px;
  color: #333;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  position: static;
  overflow: visible;
  border: 1px solid #e5e7eb;
}

.contact {
  margin-bottom: 16px;
  margin-top: 28px;
  background: #ffffff;
  padding: 18px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

.contact .icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.contact .icon-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #111827;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .12s ease, box-shadow .2s
    ease;
}

.contact .icon-card:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.contact .icon-card i {
  font-size: 1.1rem;
  width: 1.4rem;
  text-align: center;
}

.contact .icon-card span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Brand hints */
.icon-card.facebook i {
  color: #1877f2;
}

.icon-card.messenger i {
  color: #0084ff;
}

.icon-card.instagram i {
  color: #d62976;
}

.icon-card.telegram i {
  color: #229ed9;
}

.icon-card.tiktok i {
  color: #000000;
}

.icon-card.youtube i {
  color: #ff0000;
}

.icon-card.email i {
  color: #0ea5e9;
}

.icon-card.facebook:hover {
  border-color: #1877f2;
  background: #e8f0ff;
}

.icon-card.messenger:hover {
  border-color: #0084ff;
  background: #e7f2ff;
}

.icon-card.instagram:hover {
  border-color: #d62976;
  background: #fde8f3;
}

.icon-card.telegram:hover {
  border-color: #229ed9;
  background: #e7f6ff;
}

.icon-card.tiktok:hover {
  border-color: #111827;
  background: #f4f4f5;
}

.icon-card.youtube:hover {
  border-color: #ff0000;
  background: #fff1f1;
}

.icon-card.email:hover {
  border-color: #0ea5e9;
  background: #e0f2fe;
}

/* Notification bar */
.notification-bar {
  background: linear-gradient(90deg, #1976d2, #1565c0);
  color: #ffffff;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1001;
}

.notification-content {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 25s linear infinite;
  padding-left: 100%;
  font-size: 0.95rem;
  font-weight: 500;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.notification-bar .icon {
  margin-right: 8px;
  font-size: 1rem;
}

/* Footer and back-to-top */
.footer {
  margin-top: 20px;
  padding: 16px 12px;
  text-align: center;
  color: #6b7280;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

.footer a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #1976d2;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 999;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

.back-to-top.show {
  display: flex;
  opacity: 1;
}

.introduction h2,
.api h2,
.contact h2 {
  color: #111827;
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.api h2 {
  color: #111827;
  margin-bottom: 20px;
}

.contact h2 {
  color: #111827;
}

.introduction p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #555;
  white-space: pre-line;
  position: relative;
  z-index: 1;
}

.api {
  background: #ffffff;
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  overflow-x: auto;
}

.api table th {
  background-color: #f3f4f6;
  color: #111827;
  padding: 10px 8px;
  font-weight: 600;
}

.contact .mxh a {
  margin-right: 15px;
  text-decoration: none;
  color: #1976d2;
  font-weight: 600;
}
