@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* LIGHT MODE: Crisp Ice Blue & Emerald Slate */
  --bg-body: #eef4f8;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-subtle: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.85);
  --bg-nav: rgba(9, 14, 23, 0.94);

  --text-main: #090d16;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --blue: #0284c7;
  --blue-bright: #0ea5e9;
  --blue-bg: rgba(14, 165, 233, 0.12);

  --emerald: #059669;
  --emerald-bright: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.12);

  --cyan: #0891b2;
  --cyan-bg: rgba(6, 182, 212, 0.12);
  --teal: #0d9488;
  --teal-bg: rgba(20, 184, 166, 0.12);
  --indigo: #4f46e5;
  --indigo-bg: rgba(99, 102, 241, 0.12);
  --sky: #2563eb;
  --sky-bg: rgba(37, 99, 235, 0.12);

  --brand-gradient: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  --border: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 4px 20px -4px rgba(9, 13, 22, 0.06);
  --shadow-glow: 0 8px 25px -4px rgba(14, 165, 233, 0.35);
}

[data-theme="dark"] {
  /* DARK MODE: Pitch Obsidian Black, Electric Blue & Neon Emerald */
  --bg-body: #05070b;
  --bg-card: rgba(13, 19, 31, 0.78);
  --bg-subtle: rgba(22, 31, 48, 0.75);
  --bg-header: rgba(5, 7, 11, 0.82);
  --bg-nav: rgba(11, 17, 29, 0.92);

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --blue: #38bdf8;
  --blue-bright: #0ea5e9;
  --blue-bg: rgba(14, 165, 233, 0.15);

  --emerald: #34d399;
  --emerald-bright: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.15);

  --cyan: #22d3ee;
  --cyan-bg: rgba(34, 211, 238, 0.15);
  --teal: #2dd4bf;
  --teal-bg: rgba(45, 212, 191, 0.15);
  --indigo: #818cf8;
  --indigo-bg: rgba(129, 140, 248, 0.15);
  --sky: #60a5fa;
  --sky-bg: rgba(96, 165, 250, 0.15);

  --border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 8px 28px -4px rgba(16, 185, 129, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  padding-top: 74px;
  padding-bottom: 108px;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* CAHAYA LATAR AURORA (BIRU & HIJAU) */
.ambient-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.glow-blue {
  top: -60px;
  left: -60px;
  background: #0ea5e9;
}

.glow-green {
  bottom: 80px;
  right: -70px;
  background: #10b981;
}

/* HEADER KORPORAT */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  max-width: 480px;
  height: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #05070b;
  box-shadow: var(--shadow-glow);
}

.brand-logo svg {
  width: 22px;
  height: 22px;
  stroke: #05070b;
  stroke-width: 2.3;
  fill: none;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-main);
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.71rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-chip.offline .status-dot {
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
}

.status-chip.syncing .status-dot {
  background: #0ea5e9;
  box-shadow: 0 0 8px #0ea5e9;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* SLIDING VIEWPORT */
.viewport-shell {
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.views-track {
  display: flex;
  width: 300%;
  transform: translateX(-33.3333%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.view-panel {
  width: 33.3333%;
  padding: 16px 18px;
  flex-shrink: 0;
}

/* KAD KACA (GLASSMORPHISM CARDS) */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

/* HERO TELEMETRY CARD (HITAM + BIRU + HIJAU) */
.hero-card {
  background: linear-gradient(145deg, #090e1a 0%, #050811 100%);
  color: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.28);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.65);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(14, 165, 233, 0.15) 50%, transparent 70%);
  pointer-events: none;
}

.exec-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
}

.exec-date {
  font-size: 0.7rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.3px;
}

.exec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}

.live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.exec-greeting {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.exec-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 16px;
  line-height: 1.4;
}

.exec-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.exec-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.exec-stat-lbl {
  font-size: 0.66rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}

.exec-stat-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.emerald-text { color: #34d399; }
.blue-text { color: #38bdf8; }

/* SECTION HEADERS & BADGES */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.section-sub {
  font-size: 0.71rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.section-hint {
  font-size: 0.71rem;
  color: var(--blue);
  font-weight: 600;
}

.badge-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-pill.emerald {
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-pill.blue {
  background: var(--blue-bg);
  color: var(--blue);
  border: 1px solid rgba(14, 165, 233, 0.25);
}

/* SLIDING QUICK ACTIONS (IKON MENARIK) */
.icon-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.icon-slider::-webkit-scrollbar { display: none; }

.action-pill {
  flex: 0 0 auto;
  width: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.action-pill:active {
  transform: scale(0.94);
  border-color: var(--blue-bright);
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.icon-box.emerald { background: var(--emerald-bg); color: var(--emerald); }
.icon-box.blue    { background: var(--blue-bg); color: var(--blue); }
.icon-box.cyan    { background: var(--cyan-bg); color: var(--cyan); }
.icon-box.teal    { background: var(--teal-bg); color: var(--teal); }
.icon-box.indigo  { background: var(--indigo-bg); color: var(--indigo); }
.icon-box.sky     { background: var(--sky-bg); color: var(--sky); }

.action-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
}

/* CARTA KEWANGAN GLOW SVG */
.finance-box {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  align-items: center;
}

.donut-box {
  position: relative;
  width: 114px;
  height: 114px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-svg {
  width: 114px;
  height: 114px;
  transform: rotate(-90deg);
}

.donut-bg {
  fill: none;
  stroke: var(--bg-subtle);
  stroke-width: 10;
}

.donut-ring {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.glow-ring-green {
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.45));
}

.glow-ring-blue {
  filter: drop-shadow(0 0 5px rgba(14, 165, 233, 0.45));
}

.donut-center {
  position: absolute;
  text-align: center;
}

.donut-pct {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.donut-sub {
  font-size: 0.58rem;
  color: var(--emerald);
  font-weight: 700;
  letter-spacing: 0.6px;
}

.finance-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.fin-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.fin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.fin-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

/* SENARAI ITEM & CHECKLIST INTERAKTIF */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.list-card:active {
  transform: scale(0.98);
}

.list-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-ring {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.list-card.done .check-ring {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #05070b;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.list-card.done .list-title {
  text-decoration: line-through;
  opacity: 0.65;
}

.list-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-main);
}

.list-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.list-tag {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--blue);
  border: 1px solid var(--border);
}

/* SLIDING CALENDAR RIBBON */
.date-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.date-slider::-webkit-scrollbar { display: none; }

.date-card {
  flex: 0 0 58px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.date-card.active {
  background: var(--brand-gradient);
  color: #05070b;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.date-day {
  font-size: 0.64rem;
  font-weight: 700;
  opacity: 0.75;
}

.date-num {
  font-size: 1rem;
  font-weight: 800;
  margin-top: 2px;
}

/* GRID MODUL (MORE) */
.corp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.corp-module {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.corp-module:hover {
  border-color: var(--blue-bright);
}

.corp-module:active {
  transform: scale(0.97);
}

.corp-mod-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.corp-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
}

.corp-mod-title {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text-main);
}

.corp-mod-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.35;
}

/* SLIDING NAVBAR (BIRU-HIJAU NEON GLIDER) */
.nav-wrapper {
  position: fixed;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 18px;
  pointer-events: none;
}

.sliding-navbar {
  position: relative;
  max-width: 380px;
  height: 64px;
  margin: 0 auto;
  background: var(--bg-nav);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 999px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  pointer-events: auto;
  user-select: none;
  touch-action: pan-y;
}

.nav-glider {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc((100% - 12px) / 3);
  background: var(--brand-gradient);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.nav-tab {
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  border-radius: 999px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease;
}

.nav-tab svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.nav-tab.active {
  color: #05070b;
  font-weight: 800;
}