@import url("../fonts/LINESeedSansTH/stylesheets.css");
@import url("animate.min.css");
@import url("custom-animation.css");
@import url("aos.css");

/* ============================================================
   BASE
   ============================================================ */
* {
  font-family: "LINESeedSansTH";
}

body {
  position: relative;
}

body.high-contrast {
  filter: invert(1) hue-rotate(180deg);
}

body.high-contrast img,
body.high-contrast .btn {
  filter: invert(1) hue-rotate(180deg);
}

/* ============================================================
   HEADER & NAVBAR
   ============================================================ */
header {
  background-color: #fff;
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.1);
}

header .logo-img {
  width: 48px;
  height: 48px;
}

.navbar .container-fluid .collapse .btn-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.navbar .container-fluid .collapse .btn-control .folder-control {
  position: relative;
}

.navbar .container-fluid .collapse .btn-control .folder-control a {
  position: relative;
  z-index: 1;
}

.navbar .container-fluid .collapse .btn-control .folder-control .notification {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 10%;
  right: 20%;
  width: 16px;
  height: 16px;
  font-size: 12px;
  font-family: "LINESeedSansTH_extrabold";
  background-color: #ff0000;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 100%;
  z-index: 2;
}

.navbar .container-fluid .collapse .btn-control .user-account {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #454c56;
  width: 100%;
  gap: 10px;
}

.navbar .container-fluid .collapse .btn-control .user-account i {
  color: #673ab7;
}

.navbar .container-fluid .collapse .btn-control .user-account .profile {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  font-size: 16px;
  background-color: #dfdbf9;
  color: #673ab7;
}

button.navbar-toggler {
  border-color: #673ab7;
}

button.navbar-toggler:hover {
  background-color: #673ab7;
}

.fa-bars {
  color: #673ab7;
}

.fa-bars:hover {
  color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: linear-gradient(to top, #fff, #f6f5fd);
}

footer .logo {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

footer .logo .logo-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  margin-right: 10px;
}

footer .logo .logo-body .logo-subtitle {
  font-size: 14px;
  font-weight: 200;
  color: #673ab7;
}

footer .footer-content {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 20px;
}

.footer-content .api {
  width: 40%;
  display: block;
  flex-wrap: wrap;
  flex-direction: column;
  font-weight: 300;
}

.api i {
  color: #454c56;
}

.footer-title {
  font-weight: 900;
  color: #454c56;
  margin: 5px 0;
}

.footer-link {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.footer-link a {
  font-weight: 200;
  color: #454c56;
  text-decoration: none;
  margin: 5px 0px;
}

.footer-link a:hover {
  color: #673ab7;
}

.footer-policy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.policy.footer-link {
  flex-direction: row;
  gap: 10px;
}

.policy.footer-link a {
  color: #787f89;
}

.policy.footer-link a:hover {
  color: #673ab7;
}

/* ============================================================
   LOGO & TYPOGRAPHY
   ============================================================ */
.logo-title {
  background: linear-gradient(to right, #5c34a3, #9070e2);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px;
  font-family: "LINESeedSansTH_bold";
}

.section-title {
  font-family: "LINESeedSansTH_bold";
  font-size: 32px;
  margin-bottom: 20px;
}

.text-main {
  color: #673ab7;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn.btn-main {
  background-color: #673ab7;
  text-decoration: none;
  color: #fff;
  padding: 6px 10px;
}

.btn.btn-main:hover {
  background-color: #4c2d85;
  color: #fff;
}

.btn.btn-main:disabled {
  background-color: #dfdbf9;
  color: #fff;
  padding: 6px 10px;
}

.btn.btn-outline-main {
  border: 1px solid #673ab7;
  background: #fff;
  color: #673ab7;
  padding: 6px 10px;
}

.btn.btn-outline-main:hover {
  background-color: #673ab7;
  color: #fff;
}

.btn.btn-outline-sec {
  color: #454c56;
  border-color: #dddfe1;
  padding: 6px 10px;
}

.btn.btn-outline-sec:hover {
  color: #673ab7;
  border-color: #673ab7;
  background-color: #f6f5fd;
}

.btn.btn-outline-delete {
  color: #d70000;
  border: 1px solid #d70000;
}

.btn.btn-outline-delete:hover {
  color: #fff;
  border: 1px solid #9a0000;
  background-color: #9a0000;
}

.btn.btn-text-main {
  color: #673ab7;
}

.btn.btn-text-main:hover {
  color: #4c2d85;
}

.btn.btn-text-close,
.btn.btn-text-edit {
  color: #d70000;
}

.btn.btn-text-close:hover,
.btn.btn-text-edit:hover {
  color: #9a0000;
}

.hero-banner-body .btn.btn-main:hover,
.search-body .btn.btn-main:hover,
.request-api-home-body .btn.btn-main:hover {
  background-color: #673ab7;
  color: #fff;
}

.actions .btn.btn-outline-sec:hover {
  background-color: #673ab7;
  color: #fff;
  border: none;
}

.actions .btn.btn-text-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
#hero-banner,
#page-hero-banner {
  position: relative;
  background: linear-gradient(to left, #f8fdff, #f8fdff);
  overflow: hidden;
}

.hero-banner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 50px 0;
  gap: 50px 0;
  z-index: 1;
}

#hero-banner .hero-banner-body,
.category-header .category-description {
  position: relative;
  width: 50%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.category-header .section-title {
  width: 40%;
}

.hero-banner-img {
  position: relative;
  width: 40%;
  height: 252px;
  z-index: 2;
}

.hero-banner-img .ils_13,
.hero-banner-img .ils_13_1,
.hero-banner-img .ils_13_2_1,
.hero-banner-img .ils_13_2_2 {
  position: absolute;
  z-index: 1;
}

.hero-banner-img .ils_13 {
  width: 70%;
  margin: auto;
  bottom: 0;
}

.hero-banner-img .ils_13_1 {
  width: 20%;
  left: 25%;
  top: -25%;
  animation: rotated 20s infinite linear;
}

.hero-banner-img .ils_13_2_1 {
  width: 3%;
  top: 25%;
  animation: fade-in 1s ease-in-out forwards;
}

.hero-banner-img .ils_13_2_2 {
  width: 3%;
  right: 30%;
  top: 35%;
  animation: fade-in 1.5s ease-in-out forwards;
}

.hero-banner-title,
.request-api-home .request-api-home-body .title {
  font-family: "LINESeedSansTH_extrabold";
  font-size: 26px;
}

.hero-banner-subtitle {
  font-size: 32px;
}

.hero-banner-description {
  font-size: 16px;
}

.hero-banner-body a {
  width: 30%;
}

.hero-banner .white-circle {
  position: absolute;
  width: 800px;
  height: 800px;
  background-color: #fff;
  border-radius: 100%;
  left: auto;
  right: -250px;
  top: -200px;
  bottom: auto;
  box-shadow: 10px 0 100px rgba(0, 0, 0, 0.1);
}

#page-hero-banner .hero-banner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 50px;
}

#page-hero-banner .hero-banner-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  z-index: 2;
}

.hero-banner-breadcrumb {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-banner-breadcrumb .breadcrumb {
  width: 100%;
  justify-content: center;
  flex-direction: row;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-banner-breadcrumb .breadcrumb .active {
  color: #454c56;
}

.hero-banner-breadcrumb .breadcrumb-item {
  max-width: 300px;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.hero-banner-breadcrumb a {
  text-decoration: none;
  color: #673ab7;
}

#page-hero-banner img,
#page-hero-banner .white-circle {
  position: absolute;
}

#page-hero-banner .white-circle {
  width: 300px;
  height: 300px;
  border-radius: 100%;
  background-color: #fff;
  left: -100px;
  top: -290px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

#page-hero-banner .cube {
  left: 10%;
  bottom: 30%;
  z-index: 1;
}

#page-hero-banner .circle {
  top: 30%;
  right: 5%;
  z-index: 1;
}

/* ============================================================
   SEARCH
   ============================================================ */
#search-data {
  background: linear-gradient(to bottom, #fff, #f6f5fd);
}

.search {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.search .search-body {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.search-body form {
  display: flex;
  gap: 10px;
}

.search-body form button {
  display: flex;
  align-items: center;
}

.search-body form .form-control {
  width: 600px;
}

.search-body form .form-control:focus {
  border: none;
}

.search form input::placeholder {
  color: #9a9fa6;
}

.search-body .search-description {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
}

/* ============================================================
   CATEGORY
   ============================================================ */
.category {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  gap: 10px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.card-icon {
  width: 50px;
  height: 50px;
  font-size: 40px;
  color: #673ab7;
  margin-bottom: 20px;
}

.card-col .card .card-body .card-description {
  width: 100%;
  height: 48px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 16px;
  margin-bottom: 20px;
}

.card-navigation {
  width: 48px;
  height: auto;
  font-size: 32px;
  color: #787f89;
}

.category .purple-circle-ts {
  position: absolute;
  width: 25px;
  height: 25px;
  top: 20%;
  left: -5%;
  right: auto;
  bottom: auto;
  border-radius: 100%;
  background: #dfdbf9;
  z-index: 1;
  animation: jump 3s infinite;
}

.category .purple-circle-te {
  position: absolute;
  width: 39px;
  height: 39px;
  top: 15%;
  left: auto;
  right: -5%;
  bottom: auto;
  border-radius: 100%;
  background: #c7bef4;
  z-index: 1;
  animation: jumpTwo 3s infinite;
}

.category .purple-circle-bs {
  position: absolute;
  width: 16px;
  height: 16px;
  top: auto;
  left: -7%;
  right: auto;
  bottom: 15%;
  border-radius: 100%;
  background: #9070e2;
  z-index: 1;
  animation: jumpThree 3s infinite;
}

.category .purple-circle-be {
  position: absolute;
  width: 57px;
  height: 57px;
  top: auto;
  left: auto;
  right: -7%;
  bottom: -5%;
  border-radius: 100%;
  background: #f6f5fd;
  z-index: 1;
  animation: jumpFour 5s infinite;
}

/* ============================================================
   CARD — BASE
   ============================================================ */
.card-col .card {
  width: 100%;
  border: none;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.left-col .card {
  border: none;
  width: 100%;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  text-align: left;
}

.card .card-body {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.card-title {
  font-family: "LINESeedSansTH_extrabold";
  font-size: 20px;
  width: 100%;
  height: 58px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-api-title {
  display: block;
  font-family: "LINESeedSansTH_extrabold";
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #673ab7;
}

.card-subcategory {
  display: flex;
  flex-direction: row;
  align-items: start;
  font-size: 14px;
  color: #673ab7;
}

.card-subcategory i {
  transform: rotate(90deg);
  color: #673ab7;
  margin-right: 5px;
}

.card-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #787f89;
}

.card-agency-title {
  height: 20px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

/* ============================================================
   CARD — IMAGE & CAROUSEL
   ล็อคความสูง card image ให้สม่ำเสมอทุก card
   รองรับทั้ง <img> เดี่ยว และ Bootstrap Carousel
   ============================================================ */

/* รูปเดี่ยว */
.card .card-img-top {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* carousel wrapper ใน card */
.card .carousel {
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: calc(var(--bs-card-inner-border-radius)) calc(var(--bs-card-inner-border-radius)) 0 0;
}

.card .carousel .carousel-inner,
.card .carousel .carousel-item {
  height: 100%;
}

.card .carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* ซ่อน indicators ไม่เหมาะกับ card เล็ก */
.card .carousel .carousel-indicators {
  display: none;
}

/* ปุ่ม prev/next — แสดงเฉพาะ hover */
.card .carousel .carousel-control-prev,
.card .carousel .carousel-control-next {
  width: 28px;
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover .carousel .carousel-control-prev,
.card:hover .carousel .carousel-control-next {
  opacity: 0.75;
}

.card .carousel .carousel-control-prev-icon,
.card .carousel .carousel-control-next-icon {
  width: 18px;
  height: 18px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  background-size: 60%;
}

/* left-col card (datasets-request sidebar) — สูงน้อยกว่า */
.left-col .card .carousel {
  height: 160px;
}

.left-col .card .card-img-top {
  height: 160px;
}

/* ============================================================
   CARD TABLE & RIGHT COLUMN
   ============================================================ */
.lasted-api,
.article,
.related-info {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
}

.lasted-api .lasted-api-table,
.related-info .related-info-table {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  width: 100%;
  gap: 10px;
  justify-content: space-between;
}

.card-table {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.card-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.right-body-col {
  flex: 0 0 48%;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.right-col .right-table {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.right-table .right-body-col {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}

.right-table .right-body-col .card {
  display: flex;
  text-decoration: none;
  border: none;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.right-table .right-body-col .card .card-body {
  display: flex;
}

.right-col .search-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.right-col .search-result .filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.expiration-request,
.suspended-request,
.rejected-request,
.pending-request,
.edit-request,
.selected-request,
.success-request {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 20px;
  margin-right: auto;
  border-radius: 50px;
  gap: 5px;
  color: #fff;
  margin-bottom: 10px;
}

.expiration-request,
.rejected-request {
  background-color: #d70000;
}

.suspended-request {
  background-color: #684940;
}

.pending-request {
  background-color: #0086e7;
}

.edit-request {
  background-color: #ff6200;
}

.selected-request {
  background-color: #ff007f;
}

.success-request {
  background-color: #008000;
}

/* ============================================================
   LAYOUT — BODY / LEFT-COL / RIGHT-COL
   ============================================================ */
.body {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 30px;
}

.body .left-col {
  width: 30%;
}

.body .right-col {
  display: flex;
  flex-direction: column;
  width: 70%;
}

.left-col {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  width: 25%;
  gap: 10px;
}

.menu-title {
  font-family: "LINESeedSansTH_extrabold";
  font-size: 20px;
  margin-bottom: 20px;
}

/* ============================================================
   SIDEBAR — POPULAR TAG & DOWNLOAD
   ============================================================ */
.popular-tag .tag-list,
.download .download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.popular-tag .tag-list .btn.btn-outline-sec:hover,
.popular-tag .tag-list .btn-check:checked + .btn.btn-outline-sec {
  background-color: #f6f5fd;
  color: #673ab7;
  border-color: #673ab7;
}

.download .download-list .input-group {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.download .download-list .input-group .input-group-text,
.download .download-list .input-group a {
  text-decoration: none;
  border: none;
  padding: 10px;
}

.download .download-list .input-group .input-group-text {
  color: #673ab7;
  background-color: #dfdbf9;
}

.download .download-list .input-group .input-group-text.lock {
  color: #9a9fa6;
  background-color: #f1f2f3;
}

/* ============================================================
   SIDEBAR — ACCORDION CATEGORY LIST
   ============================================================ */
.left-col .category-list .accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.left-col .category-list .accordion .accordion-item {
  border: none;
}

.left-col .category-list .accordion .accordion-item .accordion-button:not(.collapsed) {
  --bs-accordion-btn-active-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path d="M300.3 440.8C312.9 451 331.4 450.3 343.1 438.6L471.1 310.6C480.3 301.4 483 287.7 478 275.7C473 263.7 461.4 256 448.5 256L192.5 256C179.6 256 167.9 263.8 162.9 275.8C157.9 287.8 160.7 301.5 169.9 310.6L297.9 438.6L300.3 440.8z"/></svg>');
  background: none;
  box-shadow: none;
}

.left-col .category-list .accordion .accordion-item .accordion-button {
  --bs-accordion-btn-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path d="M300.3 440.8C312.9 451 331.4 450.3 343.1 438.6L471.1 310.6C480.3 301.4 483 287.7 478 275.7C473 263.7 461.4 256 448.5 256L192.5 256C179.6 256 167.9 263.8 162.9 275.8C157.9 287.8 160.7 301.5 169.9 310.6L297.9 438.6L300.3 440.8z"/></svg>');
  color: #673ab7;
  padding: 0;
}

.left-col .category-list .accordion .accordion-item .accordion-body {
  padding: 0;
  margin: 10px 0;
}

.left-col .category-list .accordion .accordion-item .accordion-button .accordion-button-text {
  width: 80%;
  color: #454c56;
}

.left-col .category-list .accordion .category-link {
  text-decoration: none;
  color: #454c56;
}

.left-col .category-list .accordion .category-link.active,
.left-col .category-list .accordion .category-link:hover,
.left-col .category-list .accordion .accordion-item .accordion-button .accordion-button-text:hover {
  color: #673ab7;
}

.accordion-body .btn {
  width: 100%;
  text-align: left;
}

/* ============================================================
   INFO PANEL
   ============================================================ */
.info-header,
.info-body {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  width: 100%;
  height: auto;
  gap: 10px;
}

.info-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  height: 48px;
  gap: 10px;
}

.info-footer .share-social {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  font-size: 16px;
  border-radius: 100%;
  border: 1px solid #bbbfc4;
  background-color: #fff;
  color: #454c56;
  text-decoration: none;
}

.info-footer .share-social:hover {
  border: 1px solid #673ab7;
  background-color: #dfdbf9;
  color: #673ab7;
}

.info-header .info-date-view {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.info-body .info-tag {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
}

/* ============================================================
   RIGHT COL — INPUT GROUP / SEARCH
   ============================================================ */
.right-col .input-group .form-control {
  border-right: none;
}

.right-col .input-group .form-control::placeholder {
  color: #9a9fa6;
}

.right-col .input-group .input-group-text {
  border-left: none;
  background-color: white;
  color: #9a9fa6;
}

.right-col .not-found {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  height: 500px;
}

/* ============================================================
   RIGHT COL — API DETAIL
   ============================================================ */
.right-col .right-body-img,
.info-header .info-img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
  border-radius: 20px;
}

.right-col .add-to-folder {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background-color: #f6f5fd;
  border-radius: 6px;
  padding: 20px;
  gap: 10px;
}

.right-col .add-to-folder .btn.btn-main {
  width: 25%;
  margin-left: auto;
}

.right-col .api-detail-info {
  display: flex;
  flex-direction: column;
}

.api-detail-info .list-group .list-group-item {
  width: 100%;
  border: none;
}

.api-detail-info .list-group .list-group-item button {
  margin-bottom: 5px;
}

.right-col .title {
  font-family: "LINESeedSansTH_extrabold";
  font-size: 18px;
  color: #673ab7;
}

.right-col .title .fa-solid {
  font-size: 24px;
}

.right-col .add-coordinator {
  display: flex;
  margin-left: auto;
}

.right-col .pr-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   EXAMPLE TABLE / DATADICT / WEB SERVICE
   ============================================================ */
#json-code code {
  padding-left: 15px !important;
  line-height: 1.5;
}

.example-api .example-api-body .example-api-title,
.datadict .datadict-body .datadict-header .datadict-title,
.web-service .web-service-body .web-service-title,
#coordinator .title {
  font-family: "LINESeedSansTH_extrabold";
  font-size: 24px;
}

.example-api .example-api-body .example-api-title,
.datadict .datadict-body .datadict-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.example-api .example-api-body .example-api-table,
.datadict .datadict-body .datadict-table {
  border: 1px solid #f6f5fd;
  border-radius: 6px;
}

.example-api .example-api-body .example-api-table .table thead th.id {
  display: flex;
  justify-content: center;
  align-items: center;
}

.example-api .example-api-body .example-api-table .table thead th,
.datadict .datadict-body .datadict-table .table thead th {
  background: #f6f5fd;
  font-weight: 200;
  color: #454c56;
}

.example-api .example-api-body .example-api-table .table th,
.example-api .example-api-body .example-api-table .table td,
.datadict .datadict-body .datadict-table .table th,
.datadict .datadict-body .datadict-table .table td {
  color: #454c56;
}

/* ============================================================
   WEB SERVICE ACCORDION
   ============================================================ */
#accordionWebService .accordion-button {
  --bs-accordion-btn-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path d="M300.3 440.8C312.9 451 331.4 450.3 343.1 438.6L471.1 310.6C480.3 301.4 483 287.7 478 275.7C473 263.7 461.4 256 448.5 256L192.5 256C179.6 256 167.9 263.8 162.9 275.8C157.9 287.8 160.7 301.5 169.9 310.6L297.9 438.6L300.3 440.8z"/></svg>');
}

#accordionWebService .accordion-button:not(.collapsed) {
  --bs-accordion-btn-active-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path d="M300.3 440.8C312.9 451 331.4 450.3 343.1 438.6L471.1 310.6C480.3 301.4 483 287.7 478 275.7C473 263.7 461.4 256 448.5 256L192.5 256C179.6 256 167.9 263.8 162.9 275.8C157.9 287.8 160.7 301.5 169.9 310.6L297.9 438.6L300.3 440.8z"/></svg>');
}

#accordionWebService .accordion-item {
  margin: 10px 0;
  border: none;
  background-color: #fcfcfc;
  border-radius: 6px;
}

#accordionWebService .accordion-item .accordion-header {
  font-family: "LINESeedSansTH_extrabold";
  background-color: #fcfcfc;
  border-radius: 6px;
}

.web-service .web-service-body .accordion .accordion-item .accordion-header .accordion-button {
  box-shadow: none;
  color: #454c56;
  background-color: #fcfcfc;
  border-radius: 6px;
}

.web-service .web-service-body .accordion .accordion-item .accordion-header .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: #454c56;
  background-color: #fcfcfc;
  border-radius: 6px;
}

.web-service .web-service-body .accordion .accordion-item .accordion-collapse .accordion-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.web-service .web-service-body .web-service-copy-url {
  display: flex;
  justify-content: space-between;
}

.web-service .web-service-body .web-service-copy-url .form-control {
  border: 1px solid #bbbfc4;
  width: 89%;
}

.web-service .web-service-body .web-service-copy-url .btn.btn-outline-sec {
  width: 10%;
}

.web-service .web-service-body .accordion .accordion-item .accordion-collapse .accordion-body .access-button {
  display: flex;
  width: 100%;
  gap: 10px;
  margin-left: auto;
}

.web-service .web-service-body .accordion .accordion-item .accordion-collapse .accordion-body .access-button .btn {
  width: fit-content;
  margin-left: auto;
}

/* ============================================================
   FILTER / DROPDOWN / PAGINATION / FORM SELECT
   ============================================================ */
.filter .dropdown .form-select {
  background: #fff;
  border: 1px solid #454c56;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path d="M300.3 440.8C312.9 451 331.4 450.3 343.1 438.6L471.1 310.6C480.3 301.4 483 287.7 478 275.7C473 263.7 461.4 256 448.5 256L192.5 256C179.6 256 167.9 263.8 162.9 275.8C157.9 287.8 160.7 301.5 169.9 310.6L297.9 438.6L300.3 440.8z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  cursor: pointer;
}

.form-select {
  width: fit-content !important;
  --bs-form-select-bg-img: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path d="M300.3 440.8C312.9 451 331.4 450.3 343.1 438.6L471.1 310.6C480.3 301.4 483 287.7 478 275.7C473 263.7 461.4 256 448.5 256L192.5 256C179.6 256 167.9 263.8 162.9 275.8C157.9 287.8 160.7 301.5 169.9 310.6L297.9 438.6L300.3 440.8z"/></svg>') !important;
}

.pagination {
  display: flex;
  flex-direction: row;
  margin: 20px 0;
  gap: 10px;
}

.pagination .page {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 100%;
  border: 1px solid #c8d2d7;
  color: #673ab7;
  text-decoration: none;
}

.pagination .page.active {
  background-color: #673ab7;
  border: none;
  color: #fff;
}

.pagination .page.next {
  background-color: #f6eefb;
  border-color: #673ab7;
  color: #673ab7;
}

/* ============================================================
   SEARCH MODAL
   ============================================================ */
#searchModal .modal-dialog {
  max-width: 100%;
  margin: 0;
}

#searchModal .modal-content {
  border-radius: 0;
  border: none;
}

#searchModal .modal-header {
  border: none;
}

#searchModal .btn-close {
  --bs-btn-close-bg: none;
  color: #673ab7;
  font-size: 24px;
}

#searchModal .modal-body {
  margin: 5% 20%;
}

#searchModal .form-control {
  font-family: "LINESeedSansTH_extrabold";
  color: #673ab7;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #673ab7;
}

#searchModal .form-control::placeholder {
  font-family: "LINESeedSansTH_extrabold";
  color: #c7bef4;
}

/* ============================================================
   ACCESSIBILITY BUTTON
   ============================================================ */
.access-btn {
  position: fixed;
  width: 48px;
  height: 106px;
  font-size: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  right: 20px;
  bottom: 200px;
  gap: 10px;
}

.access-btn .back-to-top {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background-color: #673ab7;
  text-decoration: none;
  color: #fff;
  border-radius: 100%;
}

.access-btn .back-to-top:hover,
.access-btn .accessbility:hover {
  background-color: #4c2d85;
  cursor: pointer;
}

.access-btn .accessbility {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background-color: #673ab7;
  text-decoration: none;
  color: #fff;
  border-radius: 100%;
}

.access-btn .accessbility .accessbility-content {
  display: none;
  position: absolute;
  background-color: #fff;
  border-radius: 6px;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  top: 110px;
  right: 0px;
  z-index: 1;
}

.access-btn .accessbility .accessbility-content .btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  color: #454c56;
  text-align: start;
}

.accessbility-content .btn:hover {
  background-color: #dfdbf9;
}

.accessbility:hover .accessbility-content {
  display: block;
}

/* ============================================================
   COOKIE POLICY
   ============================================================ */
.cookie-policy.alert {
  position: fixed;
  width: 95%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  bottom: 20px;
  right: 2.5%;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.05);
}

.cookie-policy .cookie-policy-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-policy .cookie-policy-content .cookie-policy-body a {
  text-decoration: none;
  color: #673ab7;
}

.cookie-policy .cookie-policy-content .cookie-policy-body .btn.btn-main {
  background-color: #673ab7;
  color: #fff;
}

/* ============================================================
   LOGIN / REGISTER
   ============================================================ */
.login {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.login .title {
  font-family: "LINESeedSansTH_extrabold";
  font-size: 32px;
  margin-bottom: 20px;
}

.login .form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 50%;
}

.login .login-form {
  align-items: stretch;
}

.login .login-method-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #673ab7;
  font-family: "LINESeedSansTH_bold";
  font-size: 18px;
  margin-bottom: 6px;
}

.login .login-divider {
  display: flex;
  align-items: center;
  width: 50%;
  margin: 14px 0 4px;
  color: #777;
}

.login .login-divider::before,
.login .login-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #d9d9d9;
}

.login .login-divider span {
  padding: 0 14px;
}

.login .btn-thaid {
  width: 50%;
  padding: 10px 16px;
  border: 1px solid #673ab7;
  border-radius: 6px;
  background-color: #fff;
  color: #673ab7;
  font-family: "LINESeedSansTH_bold";
}

.login .btn-thaid:hover,
.login .btn-thaid:focus {
  border-color: #512da8;
  background-color: #673ab7;
  color: #fff;
}

.login .login-method-note {
  width: 50%;
  margin: 4px 0 0;
  color: #6c757d;
  font-size: 14px;
  text-align: center;
}

.login .form .user-info-title {
  font-family: "LINESeedSansTH_extrabold";
  margin-right: auto;
  font-size: 18px;
  color: #673ab7;
}

.login .form .form-row,
.right-col .form-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.right-col .form-row .firstname,
.right-col .form-row .lastname {
  width: 100%;
}

.login .form .email,
.login .form .password,
.login .form .confirm-password,
.login .form .otp,
.login .form .firstname,
.login .form .lastname,
.login .form .mobile-number,
.login .form .agency-name,
.login .form .position,
.login .form .department,
.login .form .agency-tel-number {
  width: 100%;
}

.login .form .otp .form-text {
  display: flex;
}

.login .form .otp .form-text .otp-timer {
  color: #673ab7;
  margin: 0 5px;
}

.login .form .validation-text-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
}

.validation-text-group .error {
  color: #d70000;
}

.validation-text-group .success {
  color: #008000;
}

.login .form .send-again {
  color: #673ab7;
  background: none;
  border: none;
}

.login .form .send-again:disabled {
  color: #dfdbf9;
  background: none;
  border: none;
}

.login .form .actions {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.actions .forgot-password,
.actions .register {
  text-decoration: none;
  color: #673ab7;
}

.actions .no-accept {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

/* ============================================================
   DECORATIVE CIRCLES — LOGIN / REQUEST API
   ============================================================ */
.login .purple-circle-ts {
  position: absolute;
  width: 25px;
  height: 25px;
  top: 30%;
  left: 5%;
  right: auto;
  bottom: auto;
  border-radius: 100%;
  background: #e8c2ff;
  z-index: 1;
  animation: jump 3s infinite;
}

.request-api .purple-circle-ts {
  position: absolute;
  width: 25px;
  height: 25px;
  top: 30%;
  left: -5%;
  right: auto;
  bottom: auto;
  border-radius: 100%;
  background: #e8c2ff;
  z-index: 1;
  animation: jump 3s infinite;
}

.login .purple-circle-te {
  position: absolute;
  width: 39px;
  height: 39px;
  top: 15%;
  right: 0;
  border-radius: 100%;
  background: #cd7cfe;
  z-index: 1;
  animation: jumpThree 3s infinite;
}

.request-api .purple-circle-te {
  position: absolute;
  width: 39px;
  height: 39px;
  top: 15%;
  right: -5%;
  border-radius: 100%;
  background: #cd7cfe;
  z-index: 1;
  animation: jumpThree 3s infinite;
}

.login .purple-circle-bs,
.request-api .purple-circle-bs {
  position: absolute;
  width: 16px;
  height: 16px;
  bottom: 5%;
  left: 0;
  border-radius: 100%;
  background: #cf00f8;
  z-index: 1;
  animation: jumpFour 3s infinite;
}

.login .purple-circle-be {
  position: absolute;
  width: 57px;
  height: 57px;
  bottom: 15%;
  right: -5%;
  border-radius: 100%;
  background: #f6eefb;
  z-index: 1;
  animation: jumpTwo 3s infinite;
}

.request-api .purple-circle-be {
  position: absolute;
  width: 57px;
  height: 57px;
  bottom: 5%;
  right: 5%;
  border-radius: 100%;
  background: #f6eefb;
  z-index: 1;
  animation: jumpTwo 3s infinite;
}

/* ============================================================
   DECORATIVE CIRCLES — ARTICLE
   ============================================================ */
.article {
  position: relative;
  gap: 10px;
  z-index: 2;
}

.article .purple-circle-ts {
  position: absolute;
  width: 44px;
  height: 44px;
  top: 0%;
  left: 2%;
  border-radius: 100%;
  background: #f6f5fd;
  z-index: 1;
  animation: jumpTwo 3s infinite linear;
}

.article .purple-circle-te {
  position: absolute;
  width: 12px;
  height: 12px;
  top: 15%;
  right: -5%;
  border-radius: 100%;
  background: #9070e2;
  z-index: 1;
  animation: jumpTwo 3s infinite linear;
}

.article .purple-circle-bs {
  position: absolute;
  width: 30px;
  height: 30px;
  bottom: 5%;
  left: -7%;
  border-radius: 100%;
  background: #c7bef4;
  z-index: 1;
  animation: jumpTwo 3s infinite linear;
}

.article .purple-circle-be {
  position: absolute;
  width: 20px;
  height: 20px;
  bottom: 10%;
  right: -3%;
  border-radius: 100%;
  background: #dfdbf9;
  z-index: 1;
  animation: jumpTwo 3s infinite linear;
}

/* ============================================================
   REQUEST API HOME
   ============================================================ */
#request-api-home {
  position: relative;
}

.request-api-home {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.request-api-home .request-api-home-img {
  position: relative;
  width: 40%;
  height: 40%;
  z-index: 2;
}

.request-api-home .request-api-home-body {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  width: 50%;
  gap: 10px;
  z-index: 2;
}

.request-api-home .request-api-home-body a {
  margin-right: auto;
}

.request-api-home .shape-01 {
  position: absolute;
  width: 45%;
  left: -175px;
  height: auto;
  z-index: 1;
  transform: rotate(-30deg);
}

.request-api-home .purple-circle-b {
  position: absolute;
  width: 16px;
  height: 16px;
  top: auto;
  left: 50%;
  bottom: 0;
  z-index: 1;
  background-color: #fbe4ff;
  border-radius: 100%;
  animation: jumpTwo 3s infinite;
}

/* ============================================================
   RECORDS
   ============================================================ */
.records {
  background-color: #4c2d85;
  border-radius: 18px;
}

.records .records-body {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-around;
  padding: 30px;
}

.records .records-body .records-col {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.records .records-body .records-col .records-title {
  font-family: "LINESeedSansTH_bold";
  font-size: 64px;
  color: white;
}

.records .records-body .records-col .records-description {
  font-family: "LINESeedSansTH_thin";
  font-size: 18px;
  color: white;
}

/* ============================================================
   RELATED INFO
   ============================================================ */
.related-info .related-info-title {
  font-family: "LINESeedSansTH_extrabold";
  font-size: 24px;
  margin-right: auto;
  margin-bottom: 10px;
}

/* ============================================================
   STEP PROCESS
   ============================================================ */
.process {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 2;
  width: 100%;
  margin-bottom: 30px;
  padding: 20px 0;
}

.process .step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  min-width: 100px;
}

.process .step-item .fa-solid {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  font-size: 28px;
  border-radius: 50%;
  color: #9a9fa6;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.process .step-item span {
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
  white-space: nowrap;
}

.process .step-item.active .fa-solid {
  background-color: #dfdbf9;
  color: #673ab7;
  box-shadow: 0 0 15px rgba(103, 58, 183, 0.2);
}

.process .step-item.success .fa-solid {
  background-color: #673ab7;
  color: #fff;
}

.process .horizontal-line {
  height: 2px;
  background-color: #dddfe1;
  margin-top: -32px;
  flex-grow: 1;
  min-width: 30px;
  max-width: 80px;
  z-index: 1;
}

.process .horizontal-line.filled {
  background-color: #673ab7;
}

/* ============================================================
   FORM — SHARED
   ============================================================ */
.right-col .form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.form .detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.form .detail .title {
  font-size: 18px;
}

.form .detail-list {
  width: 100%;
  padding: 30px;
  background-color: #fcfcfc;
  border-radius: 10px;
}

.form .detail-list ul {
  margin: 0;
}

.form-label a {
  text-decoration: none;
  color: #673ab7;
}

.form-check .form-check-input {
  cursor: pointer;
}

.form-check .form-check-input:checked {
  color: #fff;
  background-color: #673ab7;
  border: #673ab7;
}

.form-switch .form-check-input {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e") !important;
  background-color: #dfdbf9;
  border: 1px solid #dfdbf9;
}

.form-check.form-switch .form-check-input:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e") !important;
  border: 1px solid #dfdbf9;
}

/* ============================================================
   REQUEST FORM (datasets-request)
   ============================================================ */
.request-api {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.request-form {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 10px;
}

.request-form .form-control:disabled {
  color: #787f89;
}

.form .form-control:disabled {
  color: #787f89;
}

.left-col .card .preview button {
  width: 100%;
}

.api-policy {
  display: flex;
  justify-content: center;
  align-items: center;
}

.api-request-back {
  display: flex;
  justify-content: end;
  align-items: end;
}

/* ============================================================
   FILE UPLOAD
   ============================================================ */
.add-file .input-file-form {
  position: relative;
  width: 100%;
  border: 2px dashed #dddfe1;
  border-radius: 10px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.add-file .input-file-form .fa-solid {
  font-size: 64px;
  color: #dfdbf9;
}

.add-file .input-file-form .condition {
  color: #787f89;
}

.add-file .input-file-form input {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  cursor: pointer;
}

#file-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid #dddfe1;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #343a40;
}

.file-name {
  flex-grow: 1;
  word-break: break-all;
}

.file-delete-btn {
  color: #dc3545;
  cursor: pointer;
  font-size: 16px;
  margin-left: 15px;
  transition: color 0.2s;
}

.file-delete-btn:hover {
  color: #b02a37;
}

/* ============================================================
   COORDINATOR FORM
   ============================================================ */
.coordinator-form {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 10px;
}

.info-group {
  padding: 10px;
  border: 1px solid #dddfe1;
  border-radius: 10px;
}

.info-group .header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-group .header .name {
  font-family: "LINESeedSansTH_extrabold";
  font-size: 18px;
}

.info-group .header .divider {
  font-family: "LINESeedSansTH_thin";
  font-size: 24px;
  color: #dddfe1;
}

.info-group .agency,
.info-group .mobile-number,
.info-group .phone-number {
  display: flex;
  align-items: center;
  color: #787f89;
  gap: 10px;
}

.info-group .setting {
  display: flex;
  justify-content: space-between;
}

.setting .link-main {
  display: flex;
  margin-left: auto;
  color: #673ab7;
  background: none;
  border: none;
}

.setting .link-main:hover {
  color: #4c2d85;
}

#coordinator .link-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

#coordinator .form-header {
  display: flex;
  justify-content: space-between;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-content,
.modal-content .modal-header,
.modal-content .modal-footer {
  border: none;
}

#change-coordinator-modal .modal-dialog {
  max-width: 75%;
}

#change-coordinator-modal .modal-title,
#add-coordinator-modal .modal-title,
#pending-modal .modal-title,
#api-key-modal .modal-title,
#history-coordinator-modal .modal-title {
  font-size: 18px;
  font-family: "LINESeedSansTH_extrabold";
}

#change-coordinator-modal .modal-content {
  border: none;
}

#change-coordinator-modal .modal-header {
  border: none;
}

#change-coordinator-modal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#change-coordinator-modal .btn.btn-outline-main {
  display: flex;
  margin-left: auto;
}

#confirm-form-modal .modal-body,
#confirm-edit-form-modal .modal-body,
#add-coordinator-success-modal .modal-body,
#edit-coordinator-success-modal .modal-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  font-family: "LINESeedSansTH_extrabold";
}

#pending-modal .modal-content,
#pending-modal .modal-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
}

#confirm-form-modal .modal-body .fa-solid,
#add-coordinator-success-modal .modal-body .fa-solid,
#edit-coordinator-success-modal .modal-body .fa-solid {
  font-size: 64px;
  color: #008000;
}

.confirm-edit-form-modal,
#confirm-edit-form-modal .modal-body .fa-solid {
  font-size: 64px;
  color: #ac99ec;
}

#confirm-edit-form-modal .modal-footer {
  display: flex;
  justify-content: center;
}

#confirm-form-modal .modal-footer,
#edit-coordinator-modal .modal-footer {
  justify-content: space-between;
}

#add-coordinator-success-modal .modal-footer,
#edit-coordinator-success-modal .modal-footer,
#pending-modal .modal-footer {
  justify-content: center;
}

#edit-coordinator-modal .modal-button {
  display: flex;
  gap: 10px;
}

#history-coordinator-modal .modal-dialog {
  max-width: 600px;
}

#history-coordinator-modal .info-group {
  border: none;
}

#history-coordinator-modal .history {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

#history-coordinator-modal .reps {
  font-family: "LINESeedSansTH_extrabold";
}

#history-coordinator-modal .info-body {
  padding: 10px;
  border: 1px solid #dddfe1;
  border-radius: 10px;
  gap: 10px;
}

#api-key-modal.modal {
  --bs-modal-width: 1000px;
}

#api-key-modal .modal-header,
#api-key-modal .modal-content {
  display: flex;
  justify-content: center;
  text-align: center;
}

#api-key-modal .modal-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}

#api-key-modal .modal-footer {
  display: flex;
  justify-content: space-between;
}

#api-key-modal .api-key {
  display: flex;
  width: 100%;
  padding: 20px;
  background-color: #f6f5fd;
  border-radius: 10px;
  word-break: break-word;
}

/* ============================================================
   EDIT REQUEST REMINDER ACCORDION
   ============================================================ */
#edit-request-api-reminder {
  width: 100%;
  text-align: left;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.05);
}

#edit-request-api-reminder .accordion-item {
  border: none;
}

#edit-request-api-reminder .accordion-button {
  display: flex;
  --bs-accordion-btn-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path d="M300.3 440.8C312.9 451 331.4 450.3 343.1 438.6L471.1 310.6C480.3 301.4 483 287.7 478 275.7C473 263.7 461.4 256 448.5 256L192.5 256C179.6 256 167.9 263.8 162.9 275.8C157.9 287.8 160.7 301.5 169.9 310.6L297.9 438.6L300.3 440.8z"/></svg>');
  background: #ffeac8;
  gap: 5px;
  box-shadow: none;
  color: #ff6200;
  padding: 20px;
}

#edit-request-api-reminder .accordion-body {
  display: flex;
  background: #ffeac8;
  padding: 0px 0px 5px 20px;
  box-shadow: none;
  color: #ff6200;
}

#edit-request-api-reminder .accordion-button:not(.collapsed) {
  --bs-accordion-btn-active-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path d="M300.3 440.8C312.9 451 331.4 450.3 343.1 438.6L471.1 310.6C480.3 301.4 483 287.7 478 275.7C473 263.7 461.4 256 448.5 256L192.5 256C179.6 256 167.9 263.8 162.9 275.8C157.9 287.8 160.7 301.5 169.9 310.6L297.9 438.6L300.3 440.8z"/></svg>');
}

/* ============================================================
   API KEY DISPLAY
   ============================================================ */
.api-key-container {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  min-height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-all;
}

.api-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6f42c1;
  transition: transform 0.2s;
}

.api-overlay:hover {
  transform: scale(1.1);
}

.api-overlay i {
  font-size: 3rem;
}

.api-key {
  font-family: monospace;
  font-size: 0.9rem;
  color: #333;
  max-height: 300px;
  overflow-y: auto;
  width: 100%;
}

/* ============================================================
   CODE BLOCK
   ============================================================ */
.code-block {
  display: flex;
  flex-direction: column;
  width: 100%;
}

pre {
  counter-reset: line-numbering;
  padding: 12px 0px 14px 0;
  color: #454c56;
  line-height: 140%;
}

.line::before {
  content: counter(line-numbering);
  counter-increment: line-numbering;
  text-align: right;
  color: #454c56;
  user-select: none;
  -webkit-user-select: none;
}

/* ============================================================
   MISC
   ============================================================ */
.reminder .title {
  color: #454c56;
  font-size: 16px;
  font-family: "LINESeedSansTH";
}

#email-reminder {
  color: #ff6200;
}

.type .type-form-check {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.pagination-card-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}

.pagination-card {
  padding: 10px;
  background: #f5f5f5;
  text-align: center;
  border: 1px solid #ddd;
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   RESPONSIVE — max-width: 992px
   ============================================================ */
@media screen and (max-width: 992px) {
  footer .footer-content {
    flex-direction: column;
  }

  .hero-banner {
    flex-direction: column;
  }

  .footer-content .api,
  .hero-banner-body,
  .hero-banner-img,
  .category-body .category-title,
  .category .category-description {
    width: 100%;
  }

  .hero-banner-body .btn.btn-main {
    margin-right: auto;
  }

  .hero-banner .white-circle,
  .category .purple-circle-ts,
  .category .purple-circle-te,
  .category .purple-circle-bs,
  .category .purple-circle-be,
  .request-api-home .shape-01,
  .request-api-home .purple-circle-b,
  .article .purple-circle-ts,
  .article .purple-circle-te,
  .article .purple-circle-bs,
  .article .purple-circle-be,
  .request-api .purple-circle-ts,
  .request-api .purple-circle-te,
  .request-api .purple-circle-bs,
  .request-api .purple-circle-be {
    visibility: hidden;
  }

  .footer-policy {
    flex-direction: column-reverse;
  }

  .category-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
  }

  .category-header .section-title {
    width: 100%;
  }

  .category-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .category-table .category-col {
    width: 100%;
  }

  .lasted-api .lasted-api-table,
  .related-info .related-info-table {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 100%;
    justify-content: space-between;
  }

  .card-table {
    display: flex;
    flex-direction: column;
  }

  .request-api-home {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
  }

  .request-api-home .request-api-home-img {
    width: 100%;
  }

  .request-api-home .request-api-home-body {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .request-api-home .request-api-home-body a {
    margin: auto;
  }

  .records .records-body {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .records .records-body .records-col {
    margin-bottom: 30px;
  }

  .api-detail-content-list-body .add-to-folder {
    display: flex;
    flex-direction: column;
    background-color: #f6f5fd;
    border-radius: 6px;
    padding: 20px;
  }

  .right-col .right-table {
    width: 100%;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .right-table .right-body-col {
    width: 100%;
  }

  .lasted-api-table .card .card-body .card-api-title,
  .right-table .right-body-col .card .card-body .card-api-title,
  .related-table .card .card-body .card-api-title {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .hero-banner-img {
    height: 400px;
  }

  .hero-banner-img .ils_13 {
    width: 70%;
    left: 15%;
    bottom: auto;
  }

  .hero-banner-img .ils_13_1 {
    width: 20%;
    left: 40%;
    top: -10%;
    animation: rotated 20s infinite linear;
  }

  .hero-banner-img .ils_13_2_1 {
    width: 3%;
    top: 45%;
    left: 15%;
  }

  .hero-banner-img .ils_13_2_2 {
    width: 3%;
    left: 80%;
    top: 55%;
  }

  .btn-control {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-control .folder-control {
    width: 100%;
  }

  .btn-control .folder-control .btn.btn-outline-main {
    width: 100%;
  }

  .btn-control .folder-control .user-account i {
    visibility: hidden;
  }

  .navbar .container-fluid .collapse .btn-control .folder-control .notification {
    right: 47%;
  }

  #page-hero-banner .hero-banner-body {
    width: 100%;
  }

  #page-hero-banner .hero-banner-title {
    height: 115px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  #page-hero-banner .hero-banner-breadcrumb {
    width: 100%;
    height: 48px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .login .form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .login .login-divider,
  .login .btn-thaid,
  .login .login-method-note {
    width: 100%;
  }

  .body {
    display: flex;
    width: 100%;
  }

  #request-api .body {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .body .left-col {
    width: 100%;
  }

  .body .right-col {
    width: 100%;
  }
}

/* ============================================================
   RESPONSIVE — max-width: 768px
   ============================================================ */
@media screen and (max-width: 768px) {
  .search-body form input.form-control {
    width: 300px;
    text-overflow: ellipsis;
  }

  .hero-banner-img .ils_13 {
    width: 70%;
    left: 15%;
    bottom: auto;
  }

  .hero-banner-img .ils_13_1 {
    width: 20%;
    left: 40%;
    top: -10%;
    animation: rotated 20s infinite linear;
  }

  .hero-banner-img .ils_13_2_1 {
    width: 3%;
    top: 45%;
    left: 15%;
  }

  .hero-banner-img .ils_13_2_2 {
    width: 3%;
    left: 80%;
    top: 55%;
  }
}
