@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary: #E87A90;
  --primary-dark: #d4607a;
  --primary-light: #fce4ec;
  --secondary: #7EBDB4;
  --secondary-dark: #65a89f;
  --purple: #A78BFA;
  --orange: #FBBF24;
  --blue: #60A5FA;
  --alert: #EF4444;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --bg-soft: #FFF5F7;
  --text-heading: #1E293B;
  --text-body: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
}

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

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-body);
  background: var(--bg-alt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.3;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  font-size: 0.875rem;
}
.btn-pill { border-radius: var(--radius-full); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 122, 144, 0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(232, 122, 144, 0.45);
  transform: translateY(-1px);
}
.btn-secondary {
  background: #fff;
  color: var(--text-heading);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-ghost {
  background: transparent;
  color: var(--text-body);
}
.btn-ghost:hover { color: var(--primary); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }

/* ========== Cards ========== */
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-flat { box-shadow: none; border: 1px solid var(--border); }
.card-flat:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); transform: none; }
.card-no-hover:hover { box-shadow: var(--shadow-sm); transform: none; }

/* ========== Form ========== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-heading);
  background: #fff;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,122,144,0.12);
}
.form-input::placeholder { color: var(--text-light); }

/* ========== Password toggle (show/hide) ========== */
.password-input { padding-right: 3rem; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color 0.2s;
}
.password-toggle:hover { color: var(--primary); }

/* ========== Demo akun (login page) ========== */
.demo-chip {
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-body);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.demo-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(232, 122, 144, 0.06);
}

/* ========== Segmented Control ========== */
.segmented {
  display: flex;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 2px;
  flex-wrap: wrap;
}
.segmented-item {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.segmented-item.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ========== Animations ========== */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide-up-fade {
  animation: slideUpFade 0.35s ease forwards;
}

@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); }
  50%      { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
.pulse-alert {
  animation: alertPulse 2s ease infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Field "Tanggal Persalinan" (mode Daftar): kolaps/ekspansi mulus (grid 0fr↔1fr) */
.delivery-collapse {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.24s ease,
              margin 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.delivery-collapse.collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0 !important;
}
.delivery-collapse .delivery-inner {
  overflow: hidden;
  min-height: 0;
}
.delivery-collapse.collapsed .delivery-inner {
  visibility: hidden;
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.float-gentle {
  animation: floatGentle 3s ease-in-out infinite;
}

/* ========== Circular Progress ========== */
.circular-progress {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.circular-progress svg { transform: rotate(-90deg); }
.circular-progress .track {
  fill: none;
  stroke: var(--bg-alt);
  stroke-width: 6;
}
.circular-progress .fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}
.circular-progress .value {
  position: absolute;
  font-weight: 700;
  color: var(--text-heading);
}

/* ========== Badges ========== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: rgba(126,189,180,0.15); color: var(--secondary-dark); }
.badge-warning { background: rgba(251,191,36,0.15); color: #D97706; }
.badge-danger  { background: rgba(239,68,68,0.15);  color: var(--alert); }
.badge-normal  { background: rgba(96,165,250,0.12); color: var(--blue); }
.badge-primary { background: rgba(232,122,144,0.12); color: var(--primary); }

/* ========== Notification Dot ========== */
.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--alert);
  position: absolute;
  top: -2px; right: -2px;
}
@keyframes notifBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.notif-dot { animation: notifBlink 1.2s ease infinite; }

/* ========== Chat Badge (jumlah pesan belum dibaca) ========== */
.chat-badge {
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--alert);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

/* ========== Chat Bubble ========== */
.chat-bubble {
  max-width: 75%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius) var(--radius) var(--radius) 4px;
  background: var(--bg-alt);
  color: var(--text-heading);
  font-size: 0.9rem;
}
.chat-bubble.sent {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius) var(--radius) 4px var(--radius);
  margin-left: auto;
}

/* ========== Lampiran gambar dalam bubble ========== */
.chat-attach-blk {
  display: block;
  min-width: 120px;
  max-width: 100%;
}
.chat-attach-img {
  display: block;
  width: 100%;
  max-width: 260px;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  background: rgba(0,0,0,0.06);
}
.chat-attach-name {
  display: block;
  font-size: 10px;
  opacity: 0.75;
  margin-top: 2px;
  word-break: break-word;
}
.chat-attach-cap { display: block; }

/* ========== Thread admin: nama pengirim & tombol hapus per pesan ========== */
.chat-bubble-name {
  display: block;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.75;
  margin-bottom: 3px;
  word-break: break-word;
}
.chat-bubble { position: relative; }
.conv-del-msg {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 11px;
  border-radius: 50%;
  color: #fff;
  background: var(--alert2, #e11d48);
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.chat-bubble:hover .conv-del-msg,
.conv-del-msg:focus { opacity: 1; }
.chat-bubble.sent .conv-del-msg { right: auto; left: -6px; }

/* ========== Lightbox ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}
.lightbox.hidden { display: none; }
.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

/* ========== Emoji picker ========== */
.emoji-tab {
  background: none;
  border: none;
  font-size: 20px;
  padding: 6px 5px;
  width: 34px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  filter: grayscale(0.6);
  transition: opacity 0.15s, filter 0.15s;
  border-bottom: 2px solid transparent;
}
.emoji-tab.active { opacity: 1; filter: none; border-bottom-color: var(--primary); }
.emoji-tone {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
  background: var(--bg-alt);
  padding: 0;
}
.emoji-tone.active { box-shadow: 0 0 0 2px var(--primary); }
.emoji-tone.tone-1 { background: #F7E8D0; }
.emoji-tone.tone-2 { background: #EDCD9F; }
.emoji-tone.tone-3 { background: #D9A879; }
.emoji-tone.tone-4 { background: #C58A4C; }
.emoji-tone.tone-5 { background: #8A5A2B; }
.emoji-item {
  background: none;
  border: none;
  font-size: inherit;
  line-height: 1;
  padding: 4px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s, transform 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.emoji-item:hover { background: var(--primary-light); transform: scale(1.15); }

/* ========== FAB Chat ========== */
.fab-chat {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(232,122,144,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 100;
}
.fab-chat:hover {
  background: var(--primary-dark);
  transform: scale(1.08);
}
.fab-chat svg { width: 24px; height: 24px; }

/* ========== SIDEBAR (redesigned — pill style) ========== */
.sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  top: 0; left: 0;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: transform 0.3s ease;
}
@supports (height: 100dvh) {
  .sidebar { height: 100dvh; }
}
.sidebar-logo {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border-radius: var(--radius-sm);
  border-left: none;
}
.sidebar-link:hover {
  color: var(--primary);
  background: rgba(232,122,144,0.05);
}
.sidebar-link.active {
  color: var(--primary);
  background: rgba(232,122,144,0.08);
  font-weight: 600;
}
.sidebar-link svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Sidebar: section grouping divider (tanpa dropdown) ---------- */
.sidebar-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 4px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94A3B8;
  user-select: none;
  pointer-events: none;
}
.sidebar-nav .sidebar-divider {
  padding: 14px 16px 4px 16px;
}
.sidebar-divider span {
  flex-shrink: 0;
}
.sidebar-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

/* ========== Bottom Nav (mobile) ========== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0 env(safe-area-inset-bottom, 0.5rem);
  z-index: 50;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.4rem 0.5rem;
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 500;
  transition: color 0.2s;
  border: none;
  background: none;
  cursor: pointer;
}
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item svg { width: 22px; height: 22px; }

/* ========== Main Content Offset ========== */
.main-content {
  margin-left: 260px;
  padding: 1.5rem 2rem;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}
.main-content-mobile {
  margin-left: 0;
  padding: 1rem;
  padding-bottom: 5rem;
}

/* ========== Responsive (tier sidebar) ========== */
/* <1280: sidebar off-canvas (drawer overlay). >=1280: push (default terbuka). */
@media (max-width: 1023px) {
  .main-content,
  #mainContent { padding-bottom: 6rem; }
  /* Saat drawer sidebar terbuka, sembunyikan bottom-nav agar tidak menimpa
     footer sidebar (profil + logout) dan tidak tampak bertumpuk. */
  body.sidebar-open .bottom-nav { display: none; }
}
@media (max-width: 1279px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); z-index: 60; }
  .main-content,
  #mainContent,
  #mainContent.chat-main { margin-left: 0 !important; }
}
@media (min-width: 1024px) {
  .bottom-nav { display: none !important; }
}
@media (min-width: 1280px) {
  body.sidebar-closed .sidebar { transform: translateX(-100%); }
  body.sidebar-closed .main-content,
  body.sidebar-closed #mainContent,
  body.sidebar-closed #mainContent.chat-main { margin-left: 0 !important; }
  body:not(.sidebar-closed) .app-bar { padding-left: 260px; }
}

/* Tombol hamburger: tap-target nyaman di semua device */
.app-bar #menuBtn,
#menuBtn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ========== GREETING BANNER (new) ========== */
.greeting-banner {
  background: linear-gradient(135deg, #fce4ec 0%, #e8f4f8 50%, #f3e8ff 100%);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232,122,144,0.12);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.greeting-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(232,122,144,0.08);
}
.greeting-banner::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 80px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(126,189,180,0.08);
}
.greeting-text {
  flex: 1;
  z-index: 1;
}
.greeting-illustration {
  width: 160px;
  height: 140px;
  flex-shrink: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 639px) {
  .greeting-illustration { display: none; }
  .greeting-banner { padding: 1.25rem 1.5rem; }
}

/* ========== SCORE CARDS (redesigned — horizontal with icon + number) ========== */
.score-card-new {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  transition: all 0.3s ease;
}
.score-card-new:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.score-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.score-icon.fisik { background: rgba(232,122,144,0.12); }
.score-icon.mental { background: rgba(167,139,250,0.12); }
.score-icon.tidur { background: rgba(96,165,250,0.12); }
.score-icon.asi { background: rgba(251,191,36,0.12); }
.score-icon.keluarga { background: rgba(126,189,180,0.12); }
.score-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
}
.score-value sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
}
.score-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-body);
}
.score-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}
.score-status.good { background: rgba(126,189,180,0.15); color: var(--secondary-dark); }
.score-status.ok { background: rgba(96,165,250,0.12); color: var(--blue); }
.score-status.warn { background: rgba(251,191,36,0.15); color: #D97706; }
.score-status.danger { background: rgba(239,68,68,0.15); color: var(--alert); }

/* Legacy score-card support */
.score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
}
.score-card .label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-body);
}

/* ========== TIMELINE (redesigned — pill steps with labels) ========== */
.timeline {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}
.timeline-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  z-index: 1;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.timeline-step.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(232,122,144,0.2);
}
.timeline-step.done {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}
.timeline-line {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
}
.timeline-line.done { background: var(--secondary); }

/* ========== QUICK ACCESS GRID (new) ========== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}
.quick-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary);
}
.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.quick-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.3;
}

/* ========== EDUKASI CARD (new) ========== */
.edu-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
}
.edu-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.edu-card-banner {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.edu-card-banner.pink { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }
.edu-card-banner.blue { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.edu-card-banner.green { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.edu-card-banner.purple { background: linear-gradient(135deg, #f3e8ff, #e1bee7); }
.edu-card-content {
  padding: 1.25rem;
}

/* ========== SECTION TITLE ========== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
}
.section-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.2s;
}
.section-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* ========== Emoji Picker for Mood ========== */
.emoji-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.emoji-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  background: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
}
.emoji-btn:hover { transform: scale(1.12); border-color: var(--primary); }
.emoji-btn.selected {
  border-color: var(--primary);
  background: rgba(232,122,144,0.08);
  transform: scale(1.18);
}

/* ========== Slider ========== */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-alt);
  outline: none;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(232,122,144,0.35);
}
.range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
}

/* ========== Checkbox ========== */
.custom-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.custom-checkbox:checked {
  background: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ========== Grid Utilities ========== */
.grid-equal { display: grid; gap: 1rem; }
@media (max-width: 639px)  { .grid-equal { grid-template-columns: 1fr; } }
@media (min-width: 640px)  { .grid-equal { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-equal { grid-template-columns: repeat(5, 1fr); } }

/* ========== Scrollbar ========== */
.scroll-hidden::-webkit-scrollbar { display: none; }
.scroll-hidden { -ms-overflow-style: none; scrollbar-width: none; }

/* ========== Image Placeholder ========== */
.img-placeholder {
  background: linear-gradient(135deg, #fce4ec 0%, #e8f5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8rem;
  border-radius: var(--radius);
}

/* ========== BIDAN CARD (special) ========== */
.bidan-card {
  background: linear-gradient(135deg, #fff 0%, #fce4ec 100%);
  border: 1px solid rgba(232,122,144,0.15);
}

/* ========== SLEEP CHART CARD ========== */
.chart-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
}

/* ========== TOAST NOTIFICATION ========== */
.toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: 380px;
  width: calc(100vw - 2.5rem);
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  font-size: 0.85rem;
  color: var(--text-heading);
  line-height: 1.45;
  animation: toastIn 0.35s ease forwards;
  position: relative;
}
.toast.toast-out {
  animation: toastOut 0.3s ease forwards;
}
.toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #fff;
  margin-top: 1px;
}
.toast-success .toast-icon { background: var(--secondary); }
.toast-error .toast-icon { background: var(--alert); }
.toast-info .toast-icon { background: var(--blue); }
.toast-body { flex: 1; }
.toast-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-heading);
  margin-bottom: 1px;
}
.toast-msg {
  font-size: 0.8rem;
  color: var(--text-body);
}
.toast-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s;
}
.toast-close:hover { color: var(--text-heading); }
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: width linear;
}
.toast-success .toast-progress { background: var(--secondary); }
.toast-error .toast-progress { background: var(--alert); }
.toast-info .toast-progress { background: var(--blue); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(40px) scale(0.95); }
}

/* ========== CONFIRM MODAL ========== */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.confirm-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  padding: 1.75rem;
  max-width: 380px;
  width: 100%;
  animation: confirmPop 0.25s ease;
}
.confirm-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.confirm-icon.warn { background: rgba(251,191,36,0.15); }
.confirm-icon.danger { background: rgba(239,68,68,0.15); }
.confirm-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}
.confirm-msg {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.confirm-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}
.confirm-actions .btn {
  min-width: 90px;
}
@keyframes confirmPop {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ========== ADMIN TABS (modal detail user) ========== */
.admin-tabs {
  display: flex;
  gap: 0.35rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 1rem;
}
.admin-tab {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.admin-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ========== ADMIN ACTION BUTTONS ========== */
.admin-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-heading);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.admin-action:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(232,122,144,0.04);
}
.admin-action.danger:hover {
  border-color: var(--alert);
  color: var(--alert);
  background: rgba(239,68,68,0.04);
}
.admin-action svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ========== LOG ROW SCORE CHIPS ========== */
.score-chips {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-body);
}
.chip b { color: var(--text-heading); }
.chip.fisik { background: rgba(232,122,144,0.1); color: var(--primary); }
.chip.mental { background: rgba(167,139,250,0.1); color: var(--purple); }
.chip.tidur { background: rgba(96,165,250,0.1); color: var(--blue); }
.chip.asi { background: rgba(251,191,36,0.12); color: #D97706; }
.chip.keluarga { background: rgba(126,189,180,0.12); color: var(--secondary-dark); }

/* ========== IMPERSONATION BANNER ========== */
.impersonation-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: linear-gradient(90deg, #7c3aed, #A78BFA);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.82rem;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
  animation: slideDownImp 0.35s ease forwards;
}
@keyframes slideDownImp {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}
.imp-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.imp-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.imp-text strong { font-weight: 600; font-size: 0.82rem; }
.imp-text span { font-size: 0.72rem; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.impersonation-banner .btn {
  background: #fff;
  color: #7c3aed;
  font-weight: 700;
  flex-shrink: 0;
}
.impersonation-banner .btn:hover { background: #f3f0ff; }

/* ========== ADMIN DASHBOARD LOG FILTER SELECT ========== */
.filter-select {
  padding: 0.45rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--text-heading);
  background: #fff;
  cursor: pointer;
}

/* ============================================================
   UI/UX POLISH + RESPONSIVE + ANIMATION (referensi: Colorion,
   Tabler Icons, Originkit-style micro-interactions, bag-ui)
   ============================================================ */

/* ---------- Focus ring keyboard (aksesibilitas) ---------- */
:focus-visible {
  outline: 3px solid rgba(232, 122, 144, 0.4);
  outline-offset: 2px;
  border-radius: 6px;
}
a:focus-visible, button:focus-visible { outline-offset: 3px; }

/* ---------- Tombol animasi (Colorion-inspired) ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }

/* Primary: Shine Sweep + Lift (Colorion #29) */
.btn-primary {
  background-image:
    linear-gradient(100deg, transparent 32%, rgba(255,255,255,0.32) 50%, transparent 68%),
    linear-gradient(180deg, var(--primary), var(--primary-dark));
  background-size: 240% 100%, 100% 100%;
  background-position: 120% 0, 0 0;
  background-repeat: no-repeat, no-repeat;
  transition: background-position 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  background-position: -60% 0, 0 0;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(232, 122, 144, 0.4);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }

/* Secondary: Fill Left (Colorion #03) via background-size */
.btn-secondary {
  background-image: linear-gradient(90deg, var(--primary), var(--primary));
  background-size: 0% 100%;
  background-position: left center;
  background-repeat: no-repeat;
  transition: background-size 0.32s ease, color 0.28s ease, border-color 0.28s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.btn-secondary:hover {
  background-size: 100% 100%;
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(232, 122, 144, 0.28);
  transform: translateY(-1px);
}
.btn-secondary:active { transform: translateY(0) scale(0.99); }

/* Ghost: Underline Grow (Colorion #18) */
.btn-ghost { overflow: visible; }
.btn-ghost::after {
  content: '';
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}
.btn-ghost:hover::after { transform: scaleX(1); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--reveal-d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Icon micro-interactions (Originkit-style) ---------- */
.icon-bounce { display: inline-flex; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.icon-bounce:hover { transform: translateY(-4px) scale(1.12); }
.icon-nudge { display: inline-flex; transition: transform 0.2s ease; }
.icon-nudge:hover { transform: translateX(3px); }
.icon-wiggle { display: inline-flex; transition: transform 0.28s ease; }
.icon-wiggle:hover { animation: wiggle 0.45s ease; }
.icon-rotate-hover { transition: transform 0.35s ease; }
.icon-rotate-hover:hover { transform: rotate(-8deg) scale(1.08); }
.icon-spin-slow { animation: spinSlow 14s linear infinite; }

/* ---------- Keyframes tambahan ---------- */
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-9deg); }
  50% { transform: rotate(8deg); }
  75% { transform: rotate(-5deg); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes blobPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.18); opacity: 0.85; }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes shimmerText {
  to { background-position: -200% 0; }
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(126, 189, 180, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(126, 189, 180, 0); }
}

.float-soft { animation: floatY 3.6s ease-in-out infinite; }
.float-soft-delay { animation: floatY 4.4s ease-in-out 1.2s infinite; }
.anim-gradient {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}
.blob {
  position: absolute;
  border-radius: 50%;
  animation: blobPulse 6s ease-in-out infinite;
  pointer-events: none;
}
.pop-in { animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* ---------- Navbar underline ---------- */
.nav-link { position: relative; padding: 0.25rem 0; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transition: right 0.28s ease;
}
.nav-link:hover::after { right: 0; }

/* ---------- Card hover glow khusus ---------- */
.card-glow { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card-glow:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 122, 144, 0.35);
  box-shadow: 0 16px 36px rgba(232, 122, 144, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ---------- Glass ---------- */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ---------- Online / status dot pulse ---------- */
.online-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  animation: dotPulse 2s ease-in-out infinite;
}

/* ---------- Slider terisi (track gradient) ---------- */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary) var(--val, 50%), var(--bg-alt) var(--val, 50%));
  outline: none;
  cursor: pointer;
}

/* ---------- Segmented control polish ---------- */
.segmented-item { transition: all 0.28s ease; }
.segmented-item:not(.active):hover { color: var(--primary); background: rgba(232, 122, 144, 0.06); }

/* ---------- Emoji picker polish ---------- */
.emoji-btn { transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.22s, background 0.22s; }

/* ---------- Sticky table header ---------- */
.table-sticky thead th {
  position: sticky; top: 0;
  background: rgb(255, 255, 255);
  z-index: 5;
  box-shadow: 0 1px 0 var(--border);
}

/* ---------- Tabel -> kartu di layar < 640px ---------- */
@media (max-width: 639px) {
  .table-mobile thead { display: none !important; }
  .table-mobile, .table-mobile tbody { display: block; width: 100%; }
  .table-mobile tbody tr {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 0.6rem 1rem;
    margin-bottom: 0.8rem;
  }
  .table-mobile tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.42rem 0;
    border: none;
    text-align: right;
  }
  .table-mobile tbody td::before {
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-light);
    text-align: left;
    flex-shrink: 0;
  }
  .table-mobile tbody td:last-child { border-bottom: none; }
}
@media (min-width: 640px) {
  .table-mobile tbody td[data-label]::before { content: none; }
}
/* Kalau kolom memang disembunyikan (hidden sm:table-cell dll), jangan tampilkan di mode kartu */
.table-mobile tbody td.hidden { display: none !important; }

/* ---------- Scrollbar halus ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.7); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- CTA w/ animated gradient + shine ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--primary), #c25d76, var(--purple), var(--primary));
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
}

/* ---------- Score card glow & hover ---------- */
.score-card-new { position: relative; }
.score-card-new::after {
  content: '';
  position: absolute;
  right: -14px; top: -14px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.05;
  color: var(--primary);
  pointer-events: none;
}

/* ---------- Stat card admin ---------- */
.stat-card { position: relative; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08); }
.stat-card::after {
  content: '';
  position: absolute;
  right: -22px; top: -22px;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.07;
  pointer-events: none;
}

/* ---------- Chat bubble avatar ---------- */
.chat-bubble { position: relative; box-shadow: var(--shadow-sm); }
.chat-avatar-bubble {
  width: 30px; height: 30px;
  font-size: 0.7rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

/* ---------- Timeline step labels responsive ---------- */
.timeline-step { font-size: 0.72rem; }

/* ---------- Greeting banner: soft decorative ---------- */
.greeting-banner { position: relative; }

/* ---------- Wizard: transisi antar-step ---------- */
.step-panel:not(.hidden) { animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* ---------- Chat full-height layout ---------- */
#mainContent.chat-main { padding: 0 !important; margin-left: 260px; }
@media (max-width: 1279px) {
  #mainContent.chat-main { margin-left: 0 !important; padding-bottom: 0 !important; }
}

/* ---------- Reduce motion / aksesibilitas ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   UI-UX EXACT DESIGN REPLICATION (UI-UX_Example.jpeg & UI-UX_Example2.jpeg)
   ========================================================================== */

.font-caveat { font-family: 'Caveat', cursive; }
.font-jakarta { font-family: 'Plus Jakarta Sans', sans-serif; }

/* ---------- Landing Page Navbar ---------- */
.nav-pill-pink {
  background: #F27289;
  color: #fff !important;
  border-radius: 9999px;
  padding: 0.45rem 1.25rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(242, 114, 137, 0.35);
  display: inline-flex;
  align-items: center;
}
.nav-pill-pink:hover {
  background: #e05e75;
  color: #fff;
}
.nav-search-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F1F5F9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.nav-search-btn:hover {
  background: #E2E8F0;
  color: #1E293B;
}
.nav-btn-outline {
  border: 1.5px solid #CBD5E1;
  color: #334155;
  border-radius: 9999px;
  padding: 0.45rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  background: transparent;
  transition: all 0.2s;
}
.nav-btn-outline:hover {
  border-color: #F27289;
  color: #F27289;
}
.nav-btn-daftar {
  background: #F27289;
  color: #fff;
  border-radius: 9999px;
  padding: 0.45rem 1.35rem;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(242, 114, 137, 0.3);
  transition: all 0.2s;
}
.nav-btn-daftar:hover {
  background: #e05e75;
  box-shadow: 0 6px 16px rgba(242, 114, 137, 0.4);
}

/* ---------- Hero Section Styles ---------- */
.hero-gradient-bg {
  background: radial-gradient(circle at 80% 20%, rgba(254, 226, 232, 0.8) 0%, rgba(240, 253, 250, 0.7) 40%, rgba(255, 255, 255, 1) 80%);
  position: relative;
  overflow: hidden;
}
.hero-title-mbhc {
  font-size: 3.25rem;
  font-weight: 800;
  color: #1E293B;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
@media (max-width: 640px) {
  .hero-title-mbhc { font-size: 2.25rem; }
}
.hero-title-sub {
  font-size: 2rem;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.15;
  margin-top: 0.25rem;
}
@media (max-width: 640px) {
  .hero-title-sub { font-size: 1.35rem; }
}
.hero-slogan-wrap {
  display: inline-block;
  margin-left: 1.5rem;
  transform: rotate(-1.5deg);
}
.hero-slogan-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
}
.hero-photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-main-img {
  width: 100%;
  max-width: 420px;
  object-fit: cover;
  border-radius: 40px;
  filter: drop-shadow(0 15px 35px rgba(242, 114, 137, 0.15));
}
.hero-floating-pills-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.hero-floating-pill-item {
  background: #ffffff;
  border-radius: 9999px;
  padding: 0.55rem 1.15rem 0.55rem 0.65rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.25s ease;
  cursor: default;
}
.hero-floating-pill-item:hover {
  transform: translateX(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
  border-color: #F27289;
}
.hero-pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.hero-pill-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1E293B;
  white-space: nowrap;
}

/* ---------- 6-Column Unified Floating Bar ---------- */
.features-floating-bar {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.07);
  border: 1px solid #F1F5F9;
  padding: 1.75rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  z-index: 20;
}
@media (max-width: 1024px) {
  .features-floating-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 0.75rem;
    padding: 1.25rem;
  }
}
@media (max-width: 640px) {
  .features-floating-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.5rem;
    padding: 1rem;
  }
}
.feature-col-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0.75rem;
  position: relative;
  transition: all 0.25s ease;
}
.feature-col-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: #F1F5F9;
}
@media (max-width: 1024px) {
  .feature-col-item:not(:last-child)::after { display: none; }
}
.feature-col-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  transition: transform 0.25s;
}
.feature-col-item:hover .feature-col-icon {
  transform: scale(1.1);
}
.feature-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.35rem;
}
.feature-col-desc {
  font-size: 0.75rem;
  color: #64748B;
  line-height: 1.4;
}

/* ---------- Tentang MBHC Section ---------- */
.tentang-mbhc-badge {
  color: #F27289;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.tentang-mbhc-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: #1E293B;
  line-height: 1.2;
  margin-bottom: 1rem;
}
@media (max-width: 640px) {
  .tentang-mbhc-title { font-size: 1.6rem; }
}
.tentang-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid #F27289;
  color: #F27289;
  background: transparent;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s;
}
.tentang-btn-outline:hover {
  background: #F27289;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(242, 114, 137, 0.3);
}

.about-feature-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.35rem;
  border: 1px solid #F1F5F9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.about-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  border-color: rgba(242, 114, 137, 0.3);
}
.about-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.about-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.4rem;
}
.about-card-desc {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.5;
}

/* ---------- Wave Footer Banner ---------- */
.footer-wave-banner {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFF0F3 50%, #FCE7EB 100%);
  padding: 3rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer-wave-quote {
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Dashboard Exact Redesign ---------- */
.dash-banner-left {
  background: linear-gradient(135deg, #e8f7f5 0%, #f0fdf4 60%, #fef2f2 100%);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  border: 1px solid #ccfbf1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-timeline-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  border: 1px solid #F1F5F9;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.timeline-dot-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid #CBD5E1;
  background: #fff;
  color: #64748B;
  transition: all 0.2s;
}
.timeline-dot-step.done {
  background: #10B981;
  border-color: #10B981;
  color: #fff;
}
.timeline-dot-step.alert-active {
  background: #EF4444;
  border-color: #EF4444;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}
.timeline-connector {
  flex: 1;
  height: 2px;
  background: #E2E8F0;
  margin: 0 4px;
}
.timeline-connector.done {
  background: #10B981;
}

.score-card-exact {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #F1F5F9;
  padding: 1.15rem 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
}
.score-card-exact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.score-card-exact .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.score-card-exact .card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 0.25rem;
}
.score-card-exact .card-num {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1E293B;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.score-card-exact .card-num sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: #94A3B8;
}
.score-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  display: inline-block;
}
.score-status-pill.baik { background: #DCFCE7; color: #15803D; }
.score-status-pill.cukup { background: #FEF3C7; color: #B45309; }
.score-status-pill.perhatian { background: #FEE2E2; color: #B91C1C; }
.score-status-pill.sangat-baik { background: #CCFBF1; color: #0F766E; }

/* ---------- Quick Action Grid Exact ---------- */
.quick-action-tile {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #F1F5F9;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}
.quick-action-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  border-color: #F27289;
}
.quick-action-tile .tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.quick-action-tile .tile-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.3;
}

/* ==========================================================================
   RESPONSIVE FIXES (320px+) — tata letak sahaja, tidak mengubah desain
   ========================================================================== */

html, body { overflow-x: hidden; }

/* ---------- Sidebar ibu: area menu bisa digulir agar semua item (11+)
     selalu terlihat walau layar pendek ---------- */
.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sidebar-scroll::-webkit-scrollbar {
  width: 0;
  display: none;
}

/* ---------- Backdrop drawer mobile (di bawah sidebar, di atas top bar) ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Timeline "Perjalanan Nifas": aman di layar sempit ---------- */
@media (max-width: 480px) {
  .dashboard-timeline {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
    padding-left: 2px;
  }
  .dashboard-timeline > div { flex-shrink: 0; }
  .timeline-connector { min-width: 14px; }
}

/* ---------- Banner sambutan: sembunyikan tanaman dekoratif di layar sempit ---------- */
@media (max-width: 480px) {
  .dash-banner-plant { display: none; }
}

/* ---------- Layout compact untuk layar sangat kecil ---------- */
@media (max-width: 380px) {
  .main-content { padding-left: 0.75rem; padding-right: 0.75rem; }
  .tab-module-panel { padding: 1rem; }
  .hero-title-mbhc { font-size: 2rem; }
  .hero-slogan-text { font-size: 1.05rem; }
}

/* ==========================================================================
   ANIMASI (pop zoom modal, entrance halaman, perpindahan panel, ikon sidebar)
   Referensi suasana: tablericons / animatedbuttons / origin kit — diadaptasi
   halus agar konsisten dengan desain baru, tidak mengubahnya.
   ========================================================================== */

/* ---------- Modal ibu (Profil / Riwayat / Pengaturan) ---------- */
.ibu-backdrop { animation: fadeIn 0.25s ease; }
@keyframes fadeOutIbu { to { opacity: 0; } }
.ibu-backdrop.ibu-closing { animation: fadeOutIbu 0.2s ease forwards; }

.ibu-card { animation: popInIbu 0.28s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: center; }
@keyframes popInIbu {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes popOutIbu {
  to { opacity: 0; transform: scale(0.95) translateY(8px); }
}
.ibu-card.ibu-closing { animation: popOutIbu 0.2s ease forwards; }

/* ---------- Entrance halaman ibu (pindah fitur via sidebar) ---------- */
.page-enter { animation: pageIn 0.4s ease both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Perpindahan panel modul di log.html (auto replay via hidden) ---------- */
.tab-module-panel { animation: panelIn 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Mikro-animasi ikon sidebar (hover/aktif) ---------- */
.sidebar nav a svg,
.sidebar-link svg {
  transition: transform 0.2s ease;
}
.sidebar nav a:hover svg,
.sidebar-link:hover svg {
  transform: scale(1.15) translateX(2px);
}
.sidebar nav a.active svg,
.sidebar-link.active svg {
  transform: scale(1.05);
}

/* ---------- Kurangi gerak untuk pengguna sensitif ---------- */
@media (prefers-reduced-motion: reduce) {
  .ibu-backdrop, .ibu-card, .page-enter, .tab-module-panel,
  .sidebar nav a svg, .sidebar-link svg {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   NOTIFIKASI — lonceng [data-notif-bell] + panel dropdown
   ========================================================================== */
.notif-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  background: #EF4444;
  border-radius: 9999px;
  border: 2px solid #fff;
  display: none;
}

.notif-panel {
  position: fixed;
  z-index: 75;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  font-family: inherit;
  overflow: hidden;
  animation: popInIbu 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
}
.notif-panel.notif-out {
  animation: popOutIbu 0.18s ease forwards;
}
.notif-panel-head {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1E293B;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
}
.notif-panel-body {
  max-height: 68vh;
  overflow-y: auto;
  padding-bottom: 0.5rem;
  overscroll-behavior: contain;
}
.notif-sec {
  padding: 0.65rem 1rem 0.25rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94A3B8;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: background 0.15s ease;
}
.notif-item:hover { background: #F8FAFC; }
.notif-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #FDE8EC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.notif-item-text {
  flex: 1;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #334155;
}
.notif-item-arrow {
  color: #CBD5E1;
  font-size: 1rem;
  line-height: 1;
  margin-top: 0.25rem;
}
.notif-empty {
  padding: 0.45rem 1rem 0.6rem;
  font-size: 0.72rem;
  color: #94A3B8;
}

/* ---------- Select parameter Check My Body (berfungsi) ---------- */
.body-select {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  max-width: 150px;
}
.body-select:focus {
  border-color: #F27289;
  box-shadow: 0 0 0 3px rgba(242, 114, 137, 0.15);
}
.body-num {
  width: 74px;
}
@media (max-width: 380px) {
  .body-select { max-width: 130px; }
}

/* ========== Foto profil (avatar) ========== */
.avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #F1F5F9;
}
.avatar-photo {
  overflow: hidden;
}
.avatar-upload-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.avatar-upload-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* ========== Dropdown custom Check My Body (animasi + UI menu) ========== */
.body-dd {
  position: relative;
  display: inline-block;
}
.body-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  max-width: 100%;
  white-space: nowrap;
}
.body-dd-trigger:hover { border-color: #F0BCC7; color: #28303f; }
.body-dd.open .body-dd-trigger,
.body-dd-trigger:focus-visible {
  border-color: #F27289;
  box-shadow: 0 0 0 3px rgba(242, 114, 137, 0.15);
  color: #E87A90;
}
.body-dd-caret {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #94A3B8;
  flex-shrink: 0;
}
.body-dd.open .body-dd-trigger .body-dd-caret { transform: rotate(180deg); }
.body-dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 100%;
  min-width: max-content;
  max-width: min(240px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid #F1F5F9;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14), 0 4px 10px rgba(15, 23, 42, 0.06);
  padding: 6px;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: scale(0.96) translateY(-6px);
  transform-origin: top right;
  transition: opacity 0.16s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s linear 0.2s;
  pointer-events: none;
}
.body-dd-panel.drop-up {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom right;
  transform: scale(0.96) translateY(6px);
}
.body-dd.open .body-dd-panel {
  visibility: visible;
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 0.16s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}
.body-dd-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.body-dd-opt:hover { background: #FFF5F7; color: #E87A90; }
.body-dd-opt.is-selected {
  color: #E87A90;
  background: #FFF0F3;
  font-weight: 700;
}
.body-dd-opt.is-selected::after {
  content: '✓';
  font-weight: 800;
  flex-shrink: 0;
}
@keyframes bodyDdOptIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.body-dd.open .body-dd-opt { animation: bodyDdOptIn 0.26s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.body-dd.open .body-dd-opt:nth-child(1) { animation-delay: 0.02s; }
.body-dd.open .body-dd-opt:nth-child(2) { animation-delay: 0.05s; }
.body-dd.open .body-dd-opt:nth-child(3) { animation-delay: 0.08s; }
.body-dd.open .body-dd-opt:nth-child(4) { animation-delay: 0.11s; }
.body-dd .body-select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
@media (max-width: 380px) {
  .body-dd-panel { max-width: calc(100vw - 2rem); }
}

/* ========== Moody soal: pilihan perasaan Check My Mind ========== */
.mood-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0.625rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid #E2E8F0;
  background: #fff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748B;
  cursor: pointer;
  transition: all 0.22s ease;
}
.mood-btn:hover {
  border-color: #F0BCC7;
  transform: translateY(-2px);
}
.mood-btn.is-active {
  border: 2px solid #10B981;
  background: #ECFDF5;
  font-weight: 700;
  color: #065F46;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.18);
  animation: moodPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes moodPop {
  from { transform: scale(0.92); }
  to { transform: scale(1); }
}

/* ========== Slider Check My Mind: isi & lingkaran sinkron (CSS transition sama) ========== */
.mind-slider {
  position: relative;
  height: 26px;
}
.mind-slider .mind-range-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 8px;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #E87A90 0%, #E87A90 100%);
  transform: translateY(-50%);
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
}
.mind-slider .mind-range-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #E87A90;
  box-shadow: 0 2px 6px rgba(232, 122, 144, 0.35);
  transform: translateY(-50%);
  transition: left 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}
.mind-slider .range-slider {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
}
.mind-slider .range-slider::-webkit-slider-runnable-track {
  background: transparent;
  height: 8px;
}
.mind-slider .range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  margin-top: -7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  opacity: 0;
  cursor: pointer;
}
.mind-slider .range-slider::-moz-range-track {
  background: transparent;
  height: 8px;
}
.mind-slider .range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  opacity: 0;
  cursor: pointer;
}

/* ========== KUNJUNGAN BIDAN (jadwal wajib ibu nifas) ========== */
.badge-pending { background: rgba(96,165,250,0.14); color: var(--blue); }
.badge-missed  { background: rgba(239,68,68,0.14);  color: var(--alert); }

.k-banner {
  border-width: 2px;
  border-color: rgba(126,189,180,0.5);
  box-shadow: 0 8px 24px rgba(126,189,180,0.18);
}
.k-visit-card:hover { box-shadow: var(--shadow-md); }
.k-slot-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.k-slot-row:hover { border-color: #d7e7e4; background: #FDFFFF; }
.visit-photo-thumb {
  width: 56px; height: 56px; border-radius: 0.75rem;
  object-fit: cover; border: 1px solid var(--border); background: #F1F5F9;
}
.visit-photo-btn {
  width: 56px; height: 56px; border-radius: 0.75rem;
  border: 1.5px dashed var(--border); background: #FAFBFC;
  color: var(--text-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; cursor: pointer; transition: all .18s ease;
}
.visit-photo-btn:hover { border-color: var(--secondary); color: var(--secondary-dark); }

/* ========== CETAK FORM KUNJUNGAN (arsip hardfile) ========== */
.visit-print-wrap {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(15,23,42,0.45);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 2rem 1rem;
}
.visit-print-toolbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #fff; border: 1px solid var(--border); border-radius: 1rem;
  padding: 0.6rem 1rem; margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
}
.visit-print-sheet {
  background: #fff;
  width: 210mm; max-width: 100%;
  border-radius: 0.75rem;
  padding: 2rem 2.2rem;
  box-shadow: 0 20px 60px rgba(15,23,42,0.28);
  font-size: 13px; line-height: 1.55; color: #334155;
}
.print-sheet-head { display: flex; align-items: center; gap: 1rem; border-bottom: 2px solid var(--primary); padding-bottom: 0.9rem; margin-bottom: 1.1rem; }
.print-sheet-head img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.print-sheet-head .t1 { font-size: 17px; font-weight: 700; color: var(--text-heading); letter-spacing: 0.2px; }
.print-sheet-head .t2 { font-size: 11.5px; color: var(--text-light); }
.print-title { text-align: center; font-size: 15px; font-weight: 700; color: var(--text-heading); margin-bottom: 1.2rem; }
.print-kop { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem; margin-bottom: 1.2rem; }
.print-kop .lk { font-size: 12px; }
.print-kop .lb { font-weight: 600; color: var(--text-heading); font-size: 12px; }
.print-field { margin-bottom: 0.9rem; }
.print-field .pl { font-size: 11px; font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.15rem; }
.print-field .pv { font-size: 13px; color: #334155; white-space: pre-line; }
.print-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 2rem; }
.print-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.print-photos img { width: 100%; max-height: 190px; object-fit: cover; border-radius: 0.6rem; border: 1px solid var(--border); }
.print-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.2rem; }
.print-sign .psig { text-align: center; }
.print-sign .pname { font-weight: 600; color: var(--text-heading); font-size: 13px; }
.print-sign .pspace { height: 64px; }
@media print {
  body * { visibility: hidden; }
  .visit-print-wrap, .visit-print-wrap * { visibility: visible; }
  .visit-print-wrap { position: absolute; inset: 0; padding: 0; background: none; overflow: visible; }
  .visit-print-toolbar { display: none !important; }
  .visit-print-sheet { box-shadow: none; border-radius: 0; width: 100%; }
  .print-sheet-head { border-bottom: 2px solid #E87A90; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  @page { size: A4 portrait; margin: 12mm; }
}

/* ==========================================================================
   ANIMASI & TRANSISI LOADING PERPINDAHAN HALAMAN (LOGIN & LOGOUT)
   ========================================================================== */
.mbhc-page-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(248, 250, 252, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.mbhc-page-loader.active {
  opacity: 1;
  pointer-events: auto;
}

.mbhc-loader-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(242, 114, 137, 0.22);
  border-radius: 28px;
  box-shadow: 0 25px 60px -15px rgba(242, 114, 137, 0.22), 0 12px 30px -8px rgba(100, 188, 169, 0.15);
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.mbhc-page-loader.active .mbhc-loader-card {
  transform: scale(1) translateY(0);
}

/* Outer Spinning Halo */
.mbhc-loader-halo {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 3.5px;
  background: conic-gradient(from 0deg, #F27289, #64BCA9, #FBBF24, #F27289);
  animation: mbhcSpin 1.3s linear infinite;
  box-shadow: 0 0 25px rgba(242, 114, 137, 0.35);
  margin-bottom: 1.25rem;
}

.mbhc-loader-halo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}

.mbhc-loader-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  animation: mbhcPulseHeart 2s ease-in-out infinite;
}

/* Badge status */
.mbhc-loader-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 11px;
  font-weight: 700;
  color: #F27289;
  background: #FFF1F4;
  border: 1px solid rgba(242, 114, 137, 0.25);
  padding: 0.25rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

/* Title & Description */
.mbhc-loader-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1E293B;
  margin: 0;
  line-height: 1.35;
}

.mbhc-loader-desc {
  font-size: 0.82rem;
  color: #64748B;
  margin-top: 0.35rem;
  line-height: 1.5;
  max-width: 290px;
}

/* Animated Progress Bar */
.mbhc-loader-progress-track {
  width: 170px;
  height: 5px;
  background: #F1F5F9;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 1.25rem;
  position: relative;
}

.mbhc-loader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #F27289, #64BCA9);
  border-radius: 9999px;
  transition: width 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.mbhc-page-loader.active .mbhc-loader-progress-fill {
  width: 100%;
}

@keyframes mbhcSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes mbhcPulseHeart {
  0%, 100% { transform: scale(0.96); }
  50% { transform: scale(1.04); }
}

