/* =========================

SMART DASHBOARD 2026

NURSE SYSTEM

========================= */

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;

  display: flex;

  flex-direction: column;

  background: var(--bg);

  color: var(--text);

  transition: 0.3s;

  overflow-x: hidden;
}

:root {
  --bg: #f5f7fb;

  --card: #ffffff;

  --text: #1e293b;

  --text2: #64748b;

  --primary: #2563eb;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.15);
}

body.dark {
  --bg: #0f172a;

  --card: #1e293b;

  --text: #ffffff;

  --text2: #cbd5e1;

  --primary: #60a5fa;
}

* {
  margin: 0;

  padding: 0;

  box-sizing: border-box;

  font-family: "Mitr", sans-serif;
}

/* HERO */

.hero-section {
  position: relative;

  background: linear-gradient(135deg, #0f172a, #1e293b, #334155);

  overflow: hidden;

  padding: 50px 0 90px;
}

.hero-section::before {
  content: "";

  position: absolute;

  width: 500px;

  height: 500px;

  background: rgba(255, 255, 255, 0.05);

  border-radius: 50%;

  top: -200px;

  right: -100px;
}

.hero-section::after {
  content: "";

  position: absolute;

  width: 350px;

  height: 350px;

  background: rgba(255, 255, 255, 0.05);

  border-radius: 50%;

  bottom: -150px;

  left: -100px;
}

.hero-overlay {
  backdrop-filter: blur(20px);
}

.top-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  margin-top: -30px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* BUTTON LANG */

.btn-toggle-lang {
  width: 55px;

  height: 40px;

  border: none;

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.1);

  color: white;

  font-weight: 600;

  transition: 0.3s;
}

.btn-toggle-lang.active {
  background: white;

  color: #0f172a;
}

.btn-toggle-lang:hover {
  transform: translateY(-2px);
}

/* DARK */

.btn-darkmode {
  width: 42px;

  height: 42px;

  border: none;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.1);

  color: white;

  transition: 0.3s;
}

.btn-darkmode:hover {
  transform: rotate(20deg);
}

/* TITLE */

.hero-content {
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 30px;
  font-weight: 500;

  margin-bottom: 10px;
}

.hero-subtitle2 {
  font-size: 25px;
  color: #fbbf24;
  margin-bottom: -30px;
}

/* DASHBOARD */

.dashboard-section {
  flex: 1;

  margin-top: -50px;

  padding: 0 20px 50px;
}

/* SEARCH */

.search-wrapper {
  position: relative;
  margin-top: 25px;
  margin-bottom: 0px;
}

.search-icon {
  position: absolute;

  top: 50%;

  left: 25px;

  transform: translateY(-50%);

  color: #94a3b8;

  font-size: 20px;

  z-index: 10;
}

#searchBox {
  height: 55px;

  padding-left: 70px;

  border: none;

  border-radius: 20px;

  background: var(--card);

  box-shadow: var(--shadow);

  font-size: 20px;

  color: var(--text);
}

#searchBox:focus {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* STAT */

.stat-card {
  background: var(--card);

  border-radius: 25px;

  padding: 10px;

  display: flex;

  align-items: center;

  gap: 20px;

  box-shadow: var(--shadow);

  margin-top: -5px;

  transition: 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);

  box-shadow: var(--shadow-hover);
}

.stat-icon {
  width: 60px;

  height: 60px;
  margin-left: 10px;
  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  background: linear-gradient(135deg, #3b82f6, #2563eb);

  color: white;

  font-size: 28px;
}

.stat-title {
  font-size: 18px;

  color: var(--text2);
}

.stat-value {
  font-size: 35px;
  font-weight: 700;
  color: var(--text);
}

/* FILTER */
.filter-wrapper {
  display: flex;
  flex-wrap: nowrap;
  position: relative;
  gap: 15px;
  margin-top: 2px;
  padding: 5px;
  border-radius: 20px;
  background: var(--bg);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.filter-wrapper::-webkit-scrollbar {
  display: none;
}

.filter-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 100%;
  pointer-events: none;
  /* background:
    linear-gradient(to left, var(--bg), transparent
    ); */
}

.btn-filter {
  flex: 0 0 auto;
  width: auto;
  padding: 10px 25px;
  border: none;
  border-radius: 50px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  transition: 0.3s;
  scroll-snap-align: start;
}

.btn-filter i {
  margin-right: 10px;
}

.btn-filter:hover {
  transform: translateY(-3px);
}

.btn-filter.active {
  background: linear-gradient(135deg, #2563eb, #3b82f6);

  color: white;
}

.signup-wrapper {
  display: flex;
  justify-content: flex-end;
}

.sign-up-btn {
  min-width: 170px;
}

/* TITLE */
.section-title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 25px;
  color: var(--text);
}

/* MODULE CARD */

.module-card {
  background: var(--card);
  border-radius: 30px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  height: 93%;
  transition: 0.35s;
  position: relative;
  overflow: hidden;
}

.module-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.module-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 50%;
  top: -60px;
  right: -60px;
}

/* ICON */

.module-icon {
  width: 200px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  margin: auto;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.module-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.module-card:hover .module-icon img {
  transform: scale(1.3) rotate(-3deg);
}

/* TEXT */

.module-title-th {
  font-size: 22px;

  font-weight: 500;

  margin-top: 25px;

  color: var(--text);

  text-align: center;
}

.module-title-en {
  font-size: 22px;

  color: var(--text2);

  text-align: center;

  margin-top: 25px;
}

/* BUTTON */

.module-btn {
  margin-top: 25px;

  width: 100%;

  height: 45px;

  border: none;

  border-radius: 50px;

  background: linear-gradient(135deg, #2563eb, #3b82f6);

  color: white;

  font-size: 18px;

  font-weight: 500;

  transition: 0.3s;
}

.module-btn:hover {
  transform: translateY(-2px);
}

/* BADGE */

.badge-new {
  position: absolute;

  top: 20px;

  right: 20px;

  padding: 8px 18px;

  border-radius: 50px;

  background: #ef4444;

  color: white;

  font-size: 14px;

  font-weight: 600;
}

.badge-test {
  position: absolute;

  top: 20px;

  right: 20px;

  padding: 8px 18px;

  border-radius: 50px;

  background: #f59e0b;

  color: white;

  font-size: 14px;

  font-weight: 600;
}

/* FOOTER */

.footer {
  margin-top: auto;

  background: var(--card);

  padding: 20px 30px;

  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);

  color: var(--text2);

  font-size: 16px;
}

/* TOP */

.btn-top {
  position: fixed;

  bottom: 60px;

  right: 30px;

  width: 55px;

  height: 55px;

  border: none;

  border-radius: 50%;

  background: linear-gradient(135deg, #2563eb, #3b82f6);

  color: white;

  font-size: 22px;

  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);

  display: none;

  z-index: 999;
}

/* =====================
Toast Custom
===================== */

#toastContainer {
  top: 25px !important;

  right: 25px !important;
}

#toastContainer .toast {
  min-width: 320px;

  max-width: 420px;

  border: none;

  border-radius: 18px;

  overflow: hidden;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

#toastContainer .toast-header {
  border-bottom: none;

  padding: 14px 18px;

  font-size: 16px;

  font-weight: 600;
}

#toastContainer .toast-body {
  padding: 18px;

  font-size: 17px;

  font-weight: 500;
}

#toastContainer .close {
  color: #fff;

  opacity: 0.8;
}

#toastContainer .close:hover {
  opacity: 1;
}

/* SUCCESS */

#toastContainer .bg-success {
  background: linear-gradient(135deg, #17c964, #0ea85b);

  color: #fff;
}

/* ERROR */

#toastContainer .bg-danger {
  background: linear-gradient(135deg, #ff4d6d, #e63946);

  color: #fff;
}

/* WARNING */

#toastContainer .bg-warning {
  background: linear-gradient(135deg, #f9c74f, #f8961e);

  color: #fff;
}

/* INFO */

#toastContainer .bg-info {
  background: linear-gradient(135deg, #4cc9f0, #4361ee);

  color: #fff;
}

#toastContainer .toast.show {
  animation: toastShow 0.3s ease;
}

@keyframes toastShow {
  from {
    transform: translateX(30px) scale(0.9);

    opacity: 0;
  }

  to {
    transform: translateX(0) scale(1);

    opacity: 1;
  }
}

/* ======================

RESPONSIVE

======================*/

/* Laptop */

@media (max-width: 1200px) {
  .hero-title {
    font-size: 56px;
  }

  .hero-subtitle {
    font-size: 28px;
  }

  .hero-subtitle2 {
    font-size: 22px;
  }

  .section-title {
    font-size: 24px;
  }

  .module-title-th,
  .module-title-en {
    font-size: 20px;
  }
}

/* Tablet */

@media (max-width: 992px) {
  .hero-section {
    padding: 40px 0 80px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 24px;
  }

  .hero-subtitle2 {
    font-size: 20px;
  }

  .section-title {
    font-size: 20px;
  }

  .btn-filter {
    font-size: 18px;
  }

  .module-title-th,
  .module-title-en {
    font-size: 19px;
  }

  .module-btn {
    font-size: 17px;
  }
}

/* Mobile */

@media (max-width: 768px) {
  .hero-section {
    padding: 35px 0 70px;
  }

  .hero-title {
    font-size: 38px;

    letter-spacing: 1px;
  }

  .hero-subtitle {
    font-size: 20px;

    line-height: 1.6;
  }

  .hero-subtitle2 {
    font-size: 17px;

    line-height: 1.6;
  }

  .top-toolbar {
    margin-top: 0;

    margin-bottom: 20px;
  }

  #searchBox {
    height: 55px;
    font-size: 17px;
  }

  .search-icon {
    font-size: 20px;
  }

  .stat-title {
    font-size: 16px;
  }

  .stat-value {
    font-size: 28px;
  }

  .btn-filter {
    font-size: 17px;
    padding: 12px 20px;
  }


  .signup-wrapper {
    width: 100%;
  }

  .sign-up-btn {
    width: 100%;
  }


  .section-title {
    font-size: 20px;
  }

  .module-icon {
    width: 160px;
    height: 160px;
  }

  .module-title-th {
    font-size: 19px;
  }

  .module-title-en {
    font-size: 16px;
  }

  .module-btn {
    height: 42px;

    font-size: 16px;
  }

  .footer {
    font-size: 14px;

    text-align: center;
  }
}

/* Small Mobile */

@media (max-width: 576px) {
  .signup-wrapper {
    margin-top: 15px;
    width: 100%;
  }

  .sign-up-btn {
    width: 50%;
  }


  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-subtitle2 {
    font-size: 15px;
  }

  .section-title {
    font-size: 18px;
  }

  .module-icon {
    width: 120px;

    height: 120px;
  }

  .module-title-th {
    font-size: 18px;
  }

  .module-title-en {
    font-size: 15px;
  }

  .module-btn {
    font-size: 15px;
  }
}
