@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ==========================================================================
   AUTO PELAYANAN CKG — WEBSITE DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Sidebar gradient */
  --sidebar-from: #0b2a6b;
  --sidebar-to: #0e6e5b;
  --sidebar-text: #dce8ff;
  --sidebar-text-dim: #93a9d6;

  /* Stat card accents */
  --blue-1: #3f8cff;
  --blue-2: #2f6fe0;
  --green-1: #22c58b;
  --green-2: #12a06e;
  --orange-1: #ffa53d;
  --orange-2: #f0821a;
  --purple-1: #a45dff;
  --purple-2: #7d33e6;

  /* Neutrals */
  --bg-app: #f2f4f9;
  --bg-card: #ffffff;
  --border-soft: #e7eaf3;
  --text-title: #131a2e;
  --text-body: #4b5468;
  --text-muted: #8991a6;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 10px 30px rgba(21, 34, 74, 0.06);
  --shadow-raised: 0 14px 34px rgba(21, 34, 74, 0.10);

  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  background: var(--bg-app);
  color: var(--text-body);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------------------------------------------------------------------- */
/* App shell                                                              */
/* ---------------------------------------------------------------------- */

.app-shell {
  display: grid;
  grid-template-columns: 272px 1fr;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; height: 100vh; transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .mobile-topbar { display: flex !important; }
}

/* ---------------------------------------------------------------------- */
/* Sidebar                                                                */
/* ---------------------------------------------------------------------- */

.sidebar {
  background: linear-gradient(160deg, var(--sidebar-from) 0%, var(--sidebar-to) 100%);
  color: var(--sidebar-text);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 10px;
}
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.brand-name { font-weight: 700; font-size: 14.5px; line-height: 1.25; color: #fff; }
.brand-sub { font-size: 11.5px; color: var(--sidebar-text-dim); letter-spacing: .02em; }

.nav-group { display: flex; flex-direction: column; gap: 4px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--sidebar-text-dim);
  transition: background .15s, color .15s;
}
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.nav-cta {
  margin-top: 4px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-cta strong { color: #fff; font-size: 14px; }
.nav-cta span { color: rgba(255,255,255,0.85); font-size: 12px; }

.sidebar-spacer { flex: 1; }

.sidebar-footer {
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.sidebar-footer img { width: 32px; height: 32px; max-width: 32px; object-fit: contain; opacity: .9; margin-bottom: 6px; }
.sidebar-footer .org { font-weight: 700; color: #fff; font-size: 13px; }
.sidebar-footer small { display:block; color: var(--sidebar-text-dim); font-size: 10.5px; margin-top: 2px; }
.version-pill {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 11px;
  color: #fff;
}

/* ---------------------------------------------------------------------- */
/* Main / topbar                                                          */
/* ---------------------------------------------------------------------- */

.main { display: flex; flex-direction: column; min-height: 100vh; }

.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--sidebar-from);
  color: #fff;
}
.mobile-topbar button { background: none; border: none; color: #fff; font-size: 20px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 34px 10px;
}
.topbar h1 { font-size: 22px; margin: 0 0 4px; color: var(--text-title); }
.topbar p { margin: 0; font-size: 13.5px; color: var(--text-muted); }

.user-chip { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-1), var(--purple-1));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.user-chip .who { font-size: 13.5px; font-weight: 700; color: var(--text-title); }
.user-chip .status { font-size: 11.5px; color: var(--green-2); display:flex; align-items:center; gap:5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-1); display:inline-block; }

.content { padding: 10px 34px 44px; }

/* ---------------------------------------------------------------------- */
/* Stat cards                                                             */
/* ---------------------------------------------------------------------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
@media (max-width: 1200px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }

.stat-card {
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  color: #fff;
  box-shadow: var(--shadow-raised);
  position: relative;
  overflow: hidden;
}
.stat-card.blue { background: linear-gradient(135deg, var(--blue-1), var(--blue-2)); }
.stat-card.green { background: linear-gradient(135deg, var(--green-1), var(--green-2)); }
.stat-card.orange { background: linear-gradient(135deg, var(--orange-1), var(--orange-2)); }
.stat-card.purple { background: linear-gradient(135deg, var(--purple-1), var(--purple-2)); }

.stat-icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.stat-icon svg { width: 19px; height: 19px; }
.stat-label { font-size: 13px; opacity: .92; margin-bottom: 2px; }
.stat-value { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.stat-delta {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.2);
  padding: 5px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
}

/* ---------------------------------------------------------------------- */
/* Panels / cards                                                         */
/* ---------------------------------------------------------------------- */

.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 1100px) { .panel-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-title { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; color: var(--text-title); }
.card-title svg { width: 18px; height: 18px; color: var(--blue-2); }
.card-select {
  border: 1px solid var(--border-soft);
  background: #f8f9fc;
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 12.5px;
  color: var(--text-body);
}

.chart-wrap { position: relative; height: 260px; }

.mini-stats { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.mini-stats div { font-size: 12px; color: var(--text-muted); }
.mini-stats strong { display: block; font-size: 16px; color: var(--text-title); margin-top: 2px; }
.mini-stats strong.accent { color: var(--blue-2); }

/* Info rows */
.info-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
.info-row:last-child { border-bottom: none; }
.info-row .lbl { display: flex; align-items: center; gap: 10px; color: var(--text-body); }
.info-row .lbl svg { width: 16px; height: 16px; color: var(--blue-2); }
.badge { padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.badge.ok { background: #e4f9ee; color: #14985f; }
.badge.warn { background: #fff2e0; color: #c1791a; }
.badge.info { background: #e8f0ff; color: #2f6fe0; }

.system-ok {
  margin-top: 14px; padding: 12px 14px;
  background: #eefaf3; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #14985f; font-weight: 700; font-size: 13px;
}

/* Activity list */
.activity-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.activity-item:last-child { border-bottom: none; }
.activity-ico { width: 34px; height: 34px; border-radius: 50%; background: #eaf1ff; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.activity-ico svg { width: 16px; height: 16px; color: var(--blue-2); }
.activity-body { flex: 1; min-width: 0; }
.activity-title { font-size: 13.5px; font-weight: 700; color: var(--text-title); }
.activity-sub { font-size: 12px; color: var(--text-muted); }
.activity-time { font-size: 11.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }

.link-more { display: block; text-align: center; margin-top: 10px; color: var(--blue-2); font-weight: 700; font-size: 13px; }

/* ---------------------------------------------------------------------- */
/* Tables                                                                 */
/* ---------------------------------------------------------------------- */

.table-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.input, select.input {
  border: 1px solid var(--border-soft);
  background: #f8f9fc;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 13.5px;
  color: var(--text-body);
}
.input:focus, select.input:focus { outline: 2px solid #cddcff; border-color: var(--blue-2); }
.search-input { flex: 1; min-width: 200px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-soft); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
table.data-table th {
  text-align: left; padding: 12px 14px; background: #f8f9fc;
  color: var(--text-muted); font-weight: 700; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid var(--border-soft);
  position: sticky; top: 0;
}
table.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); color: var(--text-body); }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: #fafbff; }

.pill { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; display: inline-block; }
.pill.done { background: #e4f9ee; color: #14985f; }
.pill.partial { background: #fff2e0; color: #c1791a; }
.pill.failed { background: #fdeaea; color: #d34848; }

.pagination { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; align-items:center;}
.pagination button {
  border: 1px solid var(--border-soft); background: #fff; border-radius: 8px;
  padding: 7px 12px; font-size: 12.5px; cursor: pointer; color: var(--text-body);
}
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination span { font-size: 12.5px; color: var(--text-muted); }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 11px; padding: 11px 18px;
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: transform .1s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue-1), var(--blue-2)); color: #fff; box-shadow: 0 8px 20px rgba(63,140,255,.35); width: 100%; }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(63,140,255,.45); }
.btn-primary:disabled { opacity: .65; cursor: not-allowed; box-shadow:none; }
.btn-outline { background: #fff; color: var(--text-body); border: 1px solid var(--border-soft); }
.btn-danger { background: #fdeaea; color: #d34848; }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 8px; }
.btn-approve { background: linear-gradient(135deg, var(--green-1), var(--green-2)); color: #fff; }
.btn-reject { background: #fdeaea; color: #d34848; }

/* ---------------------------------------------------------------------- */
/* Auth pages                                                             */
/* ---------------------------------------------------------------------- */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--bg-app);
}
@media (max-width: 880px) { .auth-page { grid-template-columns: 1fr; } .auth-visual { display: none; } }

.auth-visual {
  background: linear-gradient(160deg, var(--sidebar-from) 0%, var(--sidebar-to) 100%);
  color: #fff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255,255,255,0.14), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(255,255,255,0.10), transparent 40%);
}
.auth-visual .brand { padding: 0; position: relative; z-index: 1; }
.auth-visual .pitch { position: relative; z-index: 1; max-width: 420px; }
.auth-visual .pitch h2 { font-size: 30px; line-height: 1.3; margin-bottom: 14px; }
.auth-visual .pitch p { color: rgba(255,255,255,0.82); font-size: 14.5px; line-height: 1.6; }
.auth-visual .feature-list { list-style: none; padding: 0; margin: 26px 0 0; display:flex; flex-direction:column; gap: 14px; position:relative; z-index:1;}
.auth-visual .feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: rgba(255,255,255,0.92); }
.auth-visual .feature-list svg { width: 20px; height:20px; flex-shrink:0; margin-top:1px; color: #b6f5cd; }
.auth-visual .foot { position: relative; z-index: 1; font-size: 12px; color: rgba(255,255,255,0.6); }

.auth-form-area { display: flex; align-items: center; justify-content: center; padding: 40px 28px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .logo-row { display:flex; align-items:center; gap:10px; margin-bottom: 28px; }
.auth-card .logo-row img { width: 30px; height:30px; border-radius:8px; }
.auth-card .logo-row span { font-weight:700; color: var(--text-title); font-size: 14px; }
.auth-card h1 { font-size: 24px; color: var(--text-title); margin: 0 0 6px; }
.auth-card .sub { font-size: 13.5px; color: var(--text-muted); margin-bottom: 26px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-title); margin-bottom: 6px; }
.field input {
  width: 100%; border: 1px solid var(--border-soft); background: #f8f9fc;
  border-radius: 11px; padding: 12px 14px; font-size: 14px; color: var(--text-title);
}
.field input:focus { outline: 2px solid #cddcff; border-color: var(--blue-2); background:#fff; }
.field-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; }

.form-msg { font-size: 13px; padding: 11px 13px; border-radius: 10px; margin-bottom: 16px; display:none; }
.form-msg.show { display: block; }
.form-msg.error { background: #fdeaea; color: #c23636; }
.form-msg.success { background: #e4f9ee; color: #14985f; }

.auth-switch { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 22px; }
.auth-switch a { color: var(--blue-2); font-weight: 700; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Pending / verification state page */
.status-page {
  min-height: 100vh; display:flex; align-items:center; justify-content:center;
  background: var(--bg-app); padding: 24px;
}
.status-card {
  max-width: 460px; width:100%; background:#fff; border-radius: var(--radius-lg);
  border:1px solid var(--border-soft); box-shadow: var(--shadow-card);
  padding: 40px 34px; text-align:center;
}
.status-card .icon-wrap {
  width: 68px; height:68px; border-radius:50%; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--orange-1), var(--orange-2));
  display:flex; align-items:center; justify-content:center;
}
.status-card .icon-wrap svg { width:32px; height:32px; color:#fff; }
.status-card h1 { font-size: 20px; color: var(--text-title); margin: 0 0 10px; }
.status-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 22px; }

/* Empty state */
.empty-state { text-align:center; padding: 46px 20px; color: var(--text-muted); }
.empty-state svg { width: 40px; height:40px; margin-bottom: 12px; color: #c7cede; }
.empty-state p { font-size: 13.5px; }

/* Toast */
#toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  display:flex; flex-direction:column; gap:10px;
}
.toast-item {
  background: var(--text-title); color:#fff; padding: 12px 18px; border-radius: 11px;
  font-size: 13px; box-shadow: 0 10px 24px rgba(0,0,0,.25); min-width: 220px;
}
.toast-item.error { background: #c23636; }
.toast-item.success { background: #14985f; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cfd6e6; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- CKG dimensional glass system ---------- */
:root {
  --sidebar-from: #092d3a;
  --sidebar-to: #0a5b5b;
  --sidebar-text: #ecfffc;
  --sidebar-text-dim: #b1d6d3;
  --blue-1: #43c9d2;
  --blue-2: #258a9d;
  --green-1: #43d6b1;
  --green-2: #15957f;
  --orange-1: #f4bd72;
  --orange-2: #d9854d;
  --purple-1: #8d9eff;
  --purple-2: #6173c8;
  --bg-app: #e7f2f0;
  --bg-card: rgba(247, 255, 253, .7);
  --border-soft: rgba(36, 105, 111, .13);
  --text-title: #15373c;
  --text-body: #385c61;
  --text-muted: #65858a;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 20px 48px -30px rgba(22, 73, 77, .33), 0 1px 0 rgba(255,255,255,.94) inset;
  --shadow-raised: 0 22px 46px -26px rgba(18, 68, 75, .38), 0 1px 0 rgba(255,255,255,.54) inset;
  --font-ui: "Manrope", "Segoe UI", sans-serif;
}

html, body {
  min-height: 100%;
  background:
    radial-gradient(ellipse 52rem 32rem at 8% 4%, rgba(108, 218, 203, .32), transparent 70%),
    radial-gradient(ellipse 50rem 34rem at 95% 22%, rgba(126, 190, 219, .23), transparent 68%),
    linear-gradient(145deg, #edf7f4 0%, #e5f0ef 48%, #dcebea 100%);
  color: var(--text-body);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
html { color-scheme: light; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #bf6f2a; outline-offset: 3px; }

.app-shell { min-height: 100dvh; grid-template-columns: 270px minmax(0, 1fr); }
.sidebar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(106,255,231,.2), transparent 42%),
    radial-gradient(ellipse at 100% 76%, rgba(83,171,222,.16), transparent 42%),
    linear-gradient(158deg, rgba(8,39,51,.97), rgba(7,76,76,.96) 62%, rgba(10,91,88,.98));
  border-right: 1px solid rgba(222,255,250,.22);
  box-shadow: 18px 0 48px -36px rgba(13,56,64,.6), inset -1px 0 rgba(255,255,255,.1);
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .4;
  background: linear-gradient(124deg, rgba(255,255,255,.12), transparent 25% 75%, rgba(119,239,220,.1));
}
.brand img { border-radius: 14px; box-shadow: 0 10px 24px -12px rgba(77,255,224,.72), 0 1px 0 rgba(255,255,255,.56) inset; }
.brand-name { font-family: "Space Grotesk", var(--font-ui); letter-spacing: .025em; }
.nav-link {
  border: 1px solid transparent;
  border-radius: 13px;
  color: #b9d5d3;
  transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease;
}
.nav-link:hover { transform: translateX(3px); background: rgba(219,255,249,.1); border-color: rgba(222,255,250,.12); }
.nav-link.active {
  color: #f5fffd;
  background: linear-gradient(135deg, rgba(142,255,233,.22), rgba(118,196,221,.12));
  border-color: rgba(196,255,246,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 24px -18px rgba(0,0,0,.8);
}
.nav-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(77,222,190,.3), rgba(24,128,121,.36));
  border: 1px solid rgba(197,255,246,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 18px 32px -24px rgba(0,0,0,.8);
}
.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
}
.nav-cta strong { position: relative; color: #f4fffc; }
.nav-cta span { position: relative; color: #cee9e4; }
.version-pill { background: rgba(215,255,247,.12); border: 1px solid rgba(223,255,251,.14); }
.main { min-width: 0; background: transparent; }
.topbar {
  position: relative;
  padding: 26px 34px 14px;
  background: linear-gradient(180deg, rgba(248,255,253,.62), rgba(240,250,248,.2));
  border-bottom: 1px solid rgba(40,110,115,.12);
}
.topbar h1 {
  color: #15373c;
  font-family: "Space Grotesk", var(--font-ui);
  letter-spacing: -.035em;
}
.topbar p { color: #68858a; }
.user-chip .who { color: #183b40; }
.user-chip .status { color: #237d6b; }
.avatar {
  background: linear-gradient(145deg, #9affdf, #40cbb9 52%, #6fbde1);
  color: #07363a;
  box-shadow: 0 10px 25px -15px rgba(26,148,137,.8), inset 0 1px 0 rgba(255,255,255,.82), inset 0 -2px rgba(20,100,105,.16);
}
.content { padding: 14px 34px 48px; }
.card, .status-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.84), rgba(239,251,248,.59) 55%, rgba(229,246,243,.56));
  border: 1px solid rgba(255,255,255,.83);
  box-shadow: 0 23px 54px -34px rgba(19,77,81,.38), 0 1px 0 rgba(255,255,255,.97) inset, 0 -1px 0 rgba(73,164,156,.09) inset;
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}
.card::before, .status-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(360px 190px at 0% 0%, rgba(255,255,255,.7), transparent 72%),
    linear-gradient(125deg, rgba(255,255,255,.24), transparent 36% 74%, rgba(96,219,198,.07));
}
.welcome { border-radius: 26px; padding: 28px; }
.welcome-title { color: #15383c; font-family: "Space Grotesk", var(--font-ui); letter-spacing: -.04em; }
.eyebrow, .section-label { color: #52787c; }
.divider { border-top-color: rgba(32,112,114,.15); }
.sub-status { color: #46676b; }
.badge-blue { background: rgba(61,176,190,.13); border-color: rgba(36,146,161,.28); color: #176e7d; }
.btn {
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 12px 25px -17px rgba(13,74,80,.5);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 17px 30px -17px rgba(13,74,80,.6); }
.btn-teal {
  background: linear-gradient(145deg, #38c9b0, #138c82 65%, #0d7778);
  border: 1px solid rgba(255,255,255,.27);
  color: #f7fffd;
}
.btn-teal:hover { background: linear-gradient(145deg, #55dac0, #158e84); }
.btn-dark {
  background: linear-gradient(145deg, #276474, #153e50);
  color: #f4fffc;
}
.btn-soft { background: linear-gradient(145deg, rgba(101,218,195,.22), rgba(91,177,193,.12)); border-color: rgba(38,152,145,.26); color: #176d69; }
.btn-outline { background: rgba(255,255,255,.65); color: #345c61; border-color: rgba(46,117,120,.22); }
.btn-danger, .btn-reject { background: rgba(218,85,83,.12); color: #a63739; border: 1px solid rgba(187,68,68,.18); }
.btn-approve { background: linear-gradient(145deg, #48d2ad, #168a76); color: #fff; }
.section { margin-top: 1.9rem; }
.report { padding: 1.35rem; }
.range {
  border: 1px solid transparent;
  background: rgba(50,126,128,.07);
  color: #527477;
}
.range.is-active, .range.is-active:hover {
  background: linear-gradient(145deg, #56d6bd, #208f91);
  color: #fff;
  box-shadow: inset 0 1px rgba(255,255,255,.62), 0 8px 20px -13px rgba(23,134,130,.78);
}
.chart { background: linear-gradient(145deg, rgba(231,247,244,.82), rgba(212,235,232,.65)); border: 1px solid rgba(45,133,133,.13); }
.chart-grid { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, rgba(27,115,120,.11) 43px, rgba(27,115,120,.11) 44px); }
.chart-empty-title { color: #3f696c; }
.chart-empty-text { color: #708f91; }
.stat {
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(230,247,243,.72));
  border-color: rgba(255,255,255,.9);
}
.stat:nth-child(1) { box-shadow: 0 20px 43px -30px rgba(35,160,144,.42), 0 1px 0 rgba(255,255,255,.96) inset; }
.stat:nth-child(2) { box-shadow: 0 20px 43px -30px rgba(91,122,205,.32), 0 1px 0 rgba(255,255,255,.96) inset; }
.stat:nth-child(3) { box-shadow: 0 20px 43px -30px rgba(204,137,59,.32), 0 1px 0 rgba(255,255,255,.96) inset; }
.stat:nth-child(4) { box-shadow: 0 20px 43px -30px rgba(193,76,78,.28), 0 1px 0 rgba(255,255,255,.96) inset; }
.stat-label, .stat-caption { color: #658286; }
.stat-value { color: #20474b; font-family: "Space Grotesk", var(--font-ui); letter-spacing: -.045em; }
.text-teal { color: #168d7b; }
.text-violet { color: #5c6dbd; }
.text-yellow { color: #a66d21; }
.text-red { color: #b54c4c; }
.ranking-row { border-top-color: rgba(36,112,114,.13); }
.rank-1 { background: linear-gradient(145deg,#fff0bd,#f1cc72); color:#785216; box-shadow: inset 0 1px rgba(255,255,255,.85); }
.rank-2 { background: rgba(63,145,152,.13); color: #39757a; }
.rank-3 { background: rgba(220,157,91,.18); color: #8a5d2e; }
.rank-4 { background: rgba(67,133,136,.08); color: #68878a; }
.rank-name { color: #284d52; }
.rank-value { color: #188777; }
.tablist { background: rgba(75,143,146,.11); border: 1px solid rgba(255,255,255,.63); box-shadow: inset 0 1px 3px rgba(38,104,104,.06); }
.tab { color: #52777a; }
.tab.is-active { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(225,247,242,.8)); color: #19484c; box-shadow: 0 7px 18px -12px rgba(18,77,80,.38), inset 0 1px 0 #fff; }
.tab-count { color: #368e87; }
.patient-card { overflow: hidden; }
.filters { background: linear-gradient(145deg, rgba(248,255,253,.58), rgba(226,243,240,.4)); border-bottom-color: rgba(42,119,120,.15); }
.filter-col + .filter-col { border-left-color: rgba(42,119,120,.15); }
.filter-label { color: #557a7e; }
.filter-btn, .square-btn, .page-btn, .page-size select {
  background: rgba(255,255,255,.7);
  border-color: rgba(46,124,126,.2);
  color: #426c70;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 5px 14px -12px rgba(18,78,81,.45);
}
.filter-btn:hover, .square-btn:hover, .page-btn:hover:not(:disabled) { background: #f8fffd; }
.filter-value, .page-size select { color: #315d61; }
.table-empty { background: rgba(248,255,253,.18); }
.empty-text { color: #718e91; }
.pagination { border-top-color: rgba(42,119,120,.14); }
.page-range, .page-current, .page-size { color: #638185; }
.menu, .popover {
  background: rgba(240,251,248,.94);
  border-color: rgba(255,255,255,.92);
  box-shadow: 0 24px 55px -25px rgba(14,64,69,.42), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.menu-label { border-bottom-color: rgba(42,119,120,.13); color: #718c8f; }
.menu-label strong, .menu-item { color: #2a565a; }
.menu-item:hover:not(:disabled) { background: rgba(54,171,154,.12); }
.menu-item.is-selected { color: #137d72; }
.field { color: #58777a; }
.field input, .input, select.input {
  color: #234b50;
  background: rgba(255,255,255,.76);
  border-color: rgba(49,126,128,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 6px 16px -14px rgba(16,72,76,.5);
}
.field input:focus-visible, .input:focus-visible, select.input:focus-visible { outline: 3px solid rgba(28,135,130,.42); border-color: #258a83; }
.text-btn { color: #5b7779; }
.page-btn:disabled { opacity: .42; }
.footer { color: #6a898b; }
.footer a:hover { color: #215c60; }
.wa-fab {
  background: linear-gradient(145deg, #3ed6a0, #12866f);
  border: 1px solid rgba(255,255,255,.56);
  box-shadow: 0 18px 35px -18px rgba(20,127,99,.72), inset 0 1px 0 rgba(255,255,255,.72), inset 0 -2px rgba(10,104,83,.15);
}
.wa-fab:hover { background: linear-gradient(145deg, #5be4b0, #168b75); }
#toast { gap: 10px; }
.toast-item {
  background: rgba(17,65,70,.94);
  border: 1px solid rgba(255,255,255,.26);
  box-shadow: 0 20px 48px -23px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.22);
  backdrop-filter: blur(18px);
}
.toast-item.error { background: rgba(150,48,51,.95); }
.toast-item.success { background: rgba(18,116,88,.95); }
.status-page {
  background:
    radial-gradient(ellipse at 18% 0%, rgba(105,221,202,.31), transparent 55%),
    linear-gradient(145deg,#edf7f4,#dcebea);
}
.status-card { padding: 42px 36px; }
.status-card h1 { color: #183e42; }
.status-card p { color: #648286; }
.empty-state { color: #68898b; }
.empty-state svg { color: #84b9b4; }
.mobile-topbar {
  background: linear-gradient(145deg, #0a3541, #0b6a65);
  box-shadow: 0 12px 28px -22px rgba(0,0,0,.8), inset 0 1px rgba(255,255,255,.18);
}
.mobile-topbar button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(224,255,250,.24);
  background: rgba(225,255,249,.12);
}
.mobile-topbar button:focus-visible { outline-color: #f4c47e; }

/* Auth surfaces: same glass language, stronger reading contrast. */
.auth-page {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 55rem 38rem at 7% 0%, rgba(89,205,189,.29), transparent 68%),
    radial-gradient(ellipse 45rem 34rem at 100% 100%, rgba(119,177,207,.24), transparent 70%),
    linear-gradient(145deg,#e9f5f2,#dcebea);
}
.auth-visual {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 4% 8%, rgba(97,255,222,.24), transparent 48%),
    radial-gradient(ellipse at 100% 76%, rgba(118,183,229,.2), transparent 48%),
    linear-gradient(155deg, #092d3a, #0a5957 72%, #123d4a);
}
.auth-visual::after { z-index: -1; background: linear-gradient(125deg, rgba(255,255,255,.14), transparent 35% 72%, rgba(142,255,239,.11)); }
.auth-visual .pitch h2 { font-family: "Space Grotesk", var(--font-ui); letter-spacing: -.035em; text-shadow: 0 12px 30px rgba(0,0,0,.24); }
.auth-visual .pitch p { color: #d0e9e5; }
.auth-visual .feature-list li { color: #e1f2ee; }
.auth-visual .feature-list svg { color: #9effdd; }
.auth-form-area { position: relative; }
.auth-card {
  max-width: 430px;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(235,249,246,.65));
  box-shadow: 0 35px 78px -42px rgba(19,77,81,.46), inset 0 1px 0 #fff, inset 0 -1px rgba(56,155,146,.1);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
}
.auth-card .logo-row span, .auth-card h1, .field label { color: #1d464b; }
.auth-card h1 { font-family: "Space Grotesk", var(--font-ui); letter-spacing: -.035em; }
.auth-card .sub { color: #638084; }
.auth-card .logo-row img { box-shadow: 0 10px 24px -13px rgba(27,141,131,.65), 0 1px 0 rgba(255,255,255,.85) inset; }
.field input {
  background: rgba(255,255,255,.76);
  border-color: rgba(46,123,125,.21);
  color: #224b50;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.97), 0 8px 19px -16px rgba(20,76,78,.5);
}
.field input:focus { outline: 3px solid rgba(39,147,139,.23); border-color: #279389; background: rgba(255,255,255,.94); }
.field-hint { color: #6c888b; }
.form-msg.error { background: rgba(210,83,79,.12); color: #a53838; border: 1px solid rgba(179,63,59,.18); }
.form-msg.success { background: rgba(39,159,120,.13); color: #176d53; border: 1px solid rgba(27,143,106,.18); }
.auth-switch { color: #688488; }
.auth-switch a { color: #167e76; }
.spinner { border-color: rgba(255,255,255,.52); border-top-color: #fff; }
::-webkit-scrollbar-thumb { background: #95bdb9; }
::-webkit-scrollbar-track { background: rgba(62,130,130,.08); }

@media (max-width: 900px) {
  .sidebar { box-shadow: 18px 0 48px -22px rgba(5,40,45,.58); }
  .topbar { background: linear-gradient(180deg, rgba(248,255,253,.8), rgba(240,250,248,.45)); }
}
@media (max-width: 640px) {
  .content { padding: 8px 16px 34px; }
  .welcome { border-radius: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .nav-link:hover, .btn:hover { transform: none; }
}



/* Logo sizing consistency: keep brand marks compact across application pages. */
.brand > img { width: 30px; height: 30px; max-width: 30px; object-fit: contain; flex: none; }
.auth-card .logo-row img { width: 30px; height: 30px; max-width: 30px; object-fit: contain; }
.sidebar-footer img { display: block; }
