/* basics customized alter from bootstraps */
body {
  font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Roboto',
    'Droid Sans', sans-serif !important;
  font-size: 16px !important;
  /* header bg img */
  background: url('/storage/image/kusdgs-bg-header1.jpg') no-repeat left top !important;
  background-size: contain !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Ozone !important;
  font-weight: 700 !important;
}
h1 {
  font-size: 36px !important;
  line-height: 40px !important;
}
h2 {
  font-size: 30px !important;
  line-height: 40px !important;
}
h3 {
  font-size: 24px !important;
  line-height: 40px !important;
}
h4 {
  font-size: 16px !important;
  line-height: 20px !important;
}
h5 {
  font-size: 14px !important;
  line-height: 20px !important;
}
h6 {
  font-size: 12px !important;
  line-height: 20px !important;
}

/* button override */
.btn-primary {
  --bs-btn-bg: #006664 !important;
  --bs-btn-border-color: #6c757d !important;
  --bs-btn-hover-bg: #009895 !important;
  --bs-btn-hover-border-color: #6c757d !important;
  --bs-btn-active-bg: #006664 !important;
  --bs-btn-active-border-color: #6c757d !important;
  transition: all 0.15s ease-in-out;
}
.btn-primary:hover {
  box-shadow: 0 0px 10px #82ffde;
  transition: all 0.15s ease-in-out;
}
.btn-primary:active {
  transform: scale(0.95);
  transition: all 0.08s ease-in-out;
}
.btn-secondary:hover {
  --bs-btn-hover-bg: #87929c !important;
  box-shadow: 0 0px 10px #82ffde;
  transition: all 0.15s ease-in-out;
}
.btn-secondary:active {
  transform: scale(0.95);
  transition: all 0.08s ease-in-out;
}
.btn-outline-primary {
  --bs-btn-color: #fff !important;
  --bs-btn-bg: #006664 !important;
  --bs-btn-border-color: #6c757d !important;
  --bs-btn-hover-bg: #009895 !important;
  --bs-btn-hover-border-color: #6c757d !important;
  --bs-btn-active-bg: #006664 !important;
  --bs-btn-active-border-color: #6c757d !important;
  transition: all 0.15s ease-in-out;
}
.btn-outline-primary:hover {
  box-shadow: 0 0px 10px #82ffde;
  transition: all 0.15s ease-in-out;
}
.btn-outline-primary:active {
  transform: scale(0.95);
  transition: all 0.08s ease-in-out;
}
.btn-outline-secondary {
  --bs-btn-bg: #e1f5f4 !important;
  --bs-btn-border-color: #acc8c8 !important;
  --bs-btn-hover-color: #fff !important;
  --bs-btn-hover-bg: #006664 !important;
  --bs-btn-active-color: #fff !important;
  --bs-btn-active-bg: #006664 !important;
}
.btn-outline-secondary:hover {
  box-shadow: 0 0px 20px #82ffde;
  transition: all 0.15s ease-in-out;
}
.btn-outline-secondary:active {
  transform: scale(0.95);
  transition: all 0.08s ease-in-out;
}
.form-check-input:checked {
  background-color: #b2bb1e !important;
  border-color: #b2bb1e !important;
}
/* end of button override */

.navbar-brand {
  margin: 10px 0px 10px 0px;
}
.collapse.navbar-collapse {
  font-family: Ozone;
  font-size: 21px;
}

/* header bg override */
.navbar.bg-light {
  --bs-bg-opacity: 0 !important;
}
header.bg-light {
  --bs-bg-opacity: 0 !important;
}
/* Page Title (H1) */
h1.page-title /* for title text */ {
  font-size: 30px !important;
  padding-top: 20px;
}
span.page-title /*for tips text */ {
  display: inline-block;
  width: 85%;
  padding-bottom: 20px;
  font-size: 13.5px !important;
  font-style: italic;
  color: #999;
      @media (min-width: 577px) and (max-width: 991px) {
        width: 85%;
      }
      @media (max-width: 576px) {
        width: 100%;
      }
}

/*customized for ku-pdpa */
h5.modal-title {
  font-size: 24px !important;
}
.kupdpa-logo {
  height: 89px;
}
@media (max-width: 768px) {
  .kupdpa-logo {
    height: 12vw;
  }
}
.kupdpa-login-logo {
  height: 89px;
}
@media (max-width: 768px) {
  .kupdpa-login-logo {
    height: 15vw;
  }
}
.kupdpa-dashboard-title {
  margin: 30px 0px 30px 0px;
  text-align: center;
}
.kupdpa-dashboard-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 25px;
}
.kupdpa-dashboard-menu-div {
  display: inline-block;
  width: 130px;
  margin-bottom: 15px;
}
.kupdpa-dash-menu-img {
  height: 105px;
  border-radius: 4px;
  transition: all 0.15s ease-in-out;
}
.kupdpa-dash-menu-img:hover {
  box-shadow: 0 0px 20px #82ffde;
  transition: all 0.15s ease-in-out;
}
.kupdpa-dash-menu-img:active {
  transform: scale(0.95);
  transition: all 0.08s ease-in-out;
}
.kupdpa-footer {
  display: flex;
  align-items: center;
  gap: 35px;
  flex-wrap: wrap;
  margin: 20px 5px 20px 5px;
  justify-content: center;
}
.kupdpa-footer-logo {
  height: 69px;
}
.kupdpa-footer-txt1 {
  font-family: Ozone;
  font-weight: 700;
  font-size: 21px;
  line-height: 21px;
  color: #006664;
  margin-bottom: 8px;
}
.kupdpa-footer-txt2 {
  font-family: Ozone;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #006664;
  margin: 0;
}
/* showoff page login button */
.login-button {
  font-family: "Ozone", sans-serif;
  font-size: 1.6rem;
  color: #006664;
  background-color: #f8f9f7; /* เทาอมเขียวอ่อนๆ ต่างจากขาวเล็กน้อย */
  border-radius: 0.75rem;
  padding: 10px 26px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.login-button:hover {
  background-color: #e9f0e5; /* เขียวอ่อนตอน hover */
  color: #b2bb1e;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.login-button i {
  font-size: 1.5rem;
}

/* customized for navigation.blade */
.navbar-toggler {
  background-color: #fff !important;
  border: 1px solid #ccc !important;
}
.navbar-nav .nav-link {
  color: #333;
  transition: all 0.2s ease;
  text-decoration: none;
}
.user-link:hover {
  background-color: rgba(178, 187, 30, 0.15) !important;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}
.home-link {
  color: #006664;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.home-link:hover {
  color: #b2bb1e;
  transform: scale(1.15);
}
.logout-link:hover {
  color: #b2bb1e !important;
  transform: translateX(3px);
}
.navbar-nav .nav-item + .nav-item {
  padding-left: 0.75rem;
}
.user-link {
  line-height: 1.2;
  transition: background-color 0.2s ease;
}
.user-link:hover {
  background-color: rgba(178, 187, 30, 0.15) !important;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}
.user-link .text-truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media (max-width: 992px) {
  .navbar-nav {
    background: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  .navbar-nav .nav-item {
    width: 100%;
    text-align: left;
  }
  .navbar-nav .nav-item + .nav-item {
    margin-top: 0rem;
    padding-top: 0rem;
  }
  .navbar-nav .nav-link {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 0 !important;
  }
}
/* customized for new navigation menu */
.sdgs-navmain-container {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 20px;
}
.sdgs-navmain-inner-container {
  display: flex;
  min-width: 10%;
  justify-content: center;
  background-color: #ffffffb9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
}
.sdgs-navmain-item {
  display: inline-flex;
  align-items: center;
  padding: 3px 15px 3px 15px;
  transition: background-color 0.2s ease;
}
.sdgs-navmain-item:hover {
  display: flex;
  background-color: rgba(178, 187, 30, 0.15);
  border-radius: 0.5rem;
  transition: 0.2s ease;
}
.sdgs-navmain-item a,
.sdgs-navmain-item .nav-link {
  font-family: "Ozone";
  font-size: 21px;
  color: #006664;
  text-decoration: none;
}
    /* menu size for tablet */
    @media (min-width: 577px) and (max-width: 991px) {
      .sdgs-navmain-container {
          display: flex;
          width: 100%;
          justify-content: center;
          margin-top: 20px;
          padding: 20px;
        }
      .sdgs-navmain-inner-container {
          display: flex;
          min-width: 10%;
          flex-direction: row;
          flex-wrap: wrap;
          justify-content: center;
      }
      .sdgs-navmain-item {
          display: flex;
          width: 33%;
          align-items: center;
          padding: 3px 15px 3px 15px;
      }
      .sdgs-navmain-bullethome {
          display: flex;
          width: 100%;
      }
   }
    /* menu size for mobile */
    @media (max-width: 576px) {
      .sdgs-navmain-container {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-top: 20px;
        padding: 20px;
      }
      .sdgs-navmain-inner-container {
      display: flex;
      min-width: 10%;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      }
      .sdgs-navmain-item {
      display: flex;
      width: 50%;
      align-items: center;
      padding: 3px 15px 3px 15px;
      }
      .sdgs-navmain-bullethome {
      display: flex;
      width: 100%;
    }
  }
/* table ให้รู้ว่าเลื่อนได้ */
.table-responsive {
  position: relative;
  overflow-x: auto;
}

.table-responsive::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to left, rgba(255,255,255,0.9), rgba(255,255,255,0));
  transition: opacity 0.3s;
}

.table-responsive.scrolled-right::after {
  opacity: 0;
}

#report-table {
  position: relative;
}

#scroll-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(199, 199, 199, 0.35);
  color: #006664;
  padding: 35px;
  border-radius: 0.75rem;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  font-size: 2rem;
  font-family: "Ozone";
  font-weight: bold;
  backdrop-filter: blur(9px);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.2s ease;
}
  /* Desktop / Tablet */
@media (min-width: 768px) {
  #scroll-hint {
    font-size: 2rem;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  #scroll-hint {
    font-size: 1.75rem;
    padding: 20px 25px;
    width: 100%;
    max-width: 320px;
    line-height: 1.4;
    text-align: center;
  }
}

#scroll-hint.show {
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
}

#scroll-hint.fade-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.97);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* font installation */
/* db-ozone-x-regular */
@font-face {
  font-family: 'Ozone';
  font-style: normal;
  font-weight: 400;
  src: url('/storage/global-css/ozone3.2-regular.woff2');
}
/* db-ozone-x-700-bold */
@font-face {
  font-family: 'Ozone';
  font-style: normal;
  font-weight: 700;
  src: url('/storage/global-css/ozone3.2-700.woff2');
}
/* sarabun-regular - thai_latin */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 400;
  src: url('/storage/global-css/sarabun17-regular.woff2');
}
/* sarabun-bold - thai_latin */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 700;
  src: url('/storage/global-css/sarabun17-bold.woff2');
}
