@font-face {
  font-family: "LINESeedSansTH";
  src: url("../font/LINESeedSansTH_W_Rg.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "LINESeedSansTH";
  src: url("../font/LINESeedSansTH_W_Bd.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "LINESeedSansTH";
  src: url("../font/LINESeedSansTH_W_He.woff") format("woff");
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: "LINESeedSansTH";
  src: url("../font/LINESeedSansTH_W_Th.woff") format("woff");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "LINESeedSansTH";
  src: url("../font/LINESeedSansTH_W_XBd.woff") format("woff");
  font-weight: 800;
  font-style: normal;
}

:root {
  --bs-cc1: #e9eef4;
  --bs-cc2: #171d34;
  --bs-cc3: #f97ab8;
  --bs-cc4: #fdfdfd;
  --bs-cc5: #5f6c75;
  --bs-cc6: #ffDEEE;
  --bs-cc7: #a6a6a6;
  --bs-cc8: #00ff15;
}

body {
  color: #000;
  background-color: var(--bs-cc1);
  font-family: "LINESeedSansTH", sans-serif !important;
}

header {
  background-color: var(--bs-cc4);
  padding: 20px 0;
  color: #fff;
}

/* ปุ่มแท็บ */
.nav-tabs {
  border-bottom: none !important;
}

.nav-tabs .nav-link {
  background-color: var(--bs-cc1);
  color: black;
  border-radius: 20px;
  margin-bottom: 5px;
  margin-right: 5px;
}

.nav-tabs .nav-link.active {
  background-color: var(--bs-cc3);
  color: rgb(255, 255, 255);
  border-radius: 20px;
  margin-bottom: 5px;
  margin-right: 5px;
}

/* เนื้อหาแท็บ */
.tab-content {
  border-radius: 0 0 20px 20px;
  padding-bottom: 20px;
  color: black;
}

/* หัวตาราง */
.table thead th {
  background-color: var(--bs-cc1) !important;
}

/* เส้นตาราง (ไม่บังคับ) */
.table th,
.table td {
  border: 1px solid #e0e6ed; /* สีอ่อน สบายตา */
}

/* ข้อความหัวตาราง (เพิ่มความสว่างเล็กน้อยถ้าต้องการ) */
.table thead th {
  color: #5f6c75;
  font-weight: 600;
}

.table a {
  color: var(--bs-cc5) !important; /* สีดำ */
  text-decoration: none !important; /* ไม่มีขีดเส้นใต้ */
}

.table a:hover {
  text-decoration: underline; /* หรือจะใส่ขีดตอน hover ก็ได้ */
}

.letter-grid {
  max-width: 320px; /* ปรับขนาดแถวทั้งหมดให้พอดี */
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.letter-box {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 25px;
  background-color: #f4f6fa;
  color: #1f294c;
  font-weight: bold;
  border-radius: 3px;
  transition: 0.2s ease;
}



.letter-box:hover,
.letter-box.active {
  color: #fff;
}

.page-link {
  border-radius: 50% !important;
  padding: 0.4rem 0.7rem;
  background-color: #f2f6fa;
  color: #5f6c75;
  border: none;
  margin: 0 2px;
}

.page-item.active .page-link {
  background-color: #1f294c;
  color: #fff;
}

.page-item.disabled .page-link {
  color: #ccc;
}

.sidebar {
  background-color: #171d34;
  color: white;
  padding: 1.5rem;
  border-radius: 1rem;
  height: 100%;
}

.sidebar .form-control {
  border-radius: 30px;
}

.letter-box button {
  width: 40px;
  margin: 2px;
}

.tab-button {
  background-color: #f9f9f9;
  border-radius: 25px;
}

.tab-button.active {
  color: white;
}

.info-box {
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
