/* ==========================================================================
   Super App Klinik TeraDursaw — Design System & Stylesheet
   Palet Warna Resmi PRD:
   - Hijau Utama: #0399b1 (Dominan positif, tombol submit, sukses, navigasi)
   - Merah Peringatan: #ff7a7d (Peringatan kuota penuh, hari libur, belum lunas)
   - Coklat / Oranye: #fa9253 (Aksen kartu dasbor, metrik netral)
   ========================================================================== */

:root {
  /* Brand Tokens */
  --primary: #0399b1;
  --primary-hover: #028399;
  --primary-light: rgba(3, 153, 177, 0.12);
  --primary-border: rgba(3, 153, 177, 0.25);
  
  --danger: #ff7a7d;
  --danger-hover: #f06a6d;
  --danger-light: rgba(255, 122, 125, 0.12);
  --danger-border: rgba(255, 122, 125, 0.3);

  --accent: #fa9253;
  --accent-hover: #e88242;
  --accent-light: rgba(250, 146, 83, 0.12);
  --accent-border: rgba(250, 146, 83, 0.3);

  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.12);

  /* Neutrals & Surfaces */
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --border-subtle: #e2e8f0;
  --border-focus: #0399b1;
  
  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-glow-primary: 0 0 20px rgba(3, 153, 177, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Dark Mode Tokens */
body.dark-theme {
  --bg-app: #090d16;
  --bg-card: #131b2e;
  --bg-subtle: #1c263f;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-subtle: #23304e;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Containers */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   Top Header Bar
   ========================================================================== */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), #028399);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-primary);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Profile Chip Button */
.profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-chip:hover {
  background: rgba(3, 153, 177, 0.2);
  transform: translateY(-1px);
}

.profile-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.profile-name {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sync Badge */
.sync-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

.sync-dot.synced {
  background-color: var(--primary);
}

.sync-dot.error {
  background-color: var(--danger);
}

/* Header Buttons */
.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  color: var(--primary);
  border-color: var(--primary-border);
  background: var(--primary-light);
}

/* ==========================================================================
   Navigation Tabs (Super App Modules)
   ========================================================================== */
.module-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  position: sticky;
  top: 64px;
  z-index: 90;
}

.nav-pill-group {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.nav-pill-group::-webkit-scrollbar {
  display: none;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-pill svg {
  width: 17px;
  height: 17px;
}

.nav-pill:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.nav-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(3, 153, 177, 0.35);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-wrapper {
  flex: 1;
  padding: 24px 0 40px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Cards */
.glass-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(3, 153, 177, 0.2);
}

.card-title-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   MODULE 1: Input Pasien Harian (Fast Path)
   ========================================================================== */
.hero-input-card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-app));
  border: 2px solid var(--primary-border);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-input-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(3, 153, 177, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.greeting-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.greeting-text h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.greeting-text p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.active-therapist-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}

.fast-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .fast-form-grid {
    grid-template-columns: 1fr;
  }
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.custom-select, .custom-date-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
}

.custom-select:focus, .custom-date-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Patient Counter Box */
.counter-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.counter-stepper-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.btn-stepper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.btn-stepper:active {
  transform: scale(0.92);
}

.btn-stepper:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

.counter-value-input {
  width: 100px;
  height: 60px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  background: transparent;
  border: none;
  outline: none;
}

/* Quick Number Chips */
.quick-chips-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--primary-border);
  color: var(--primary);
  background: var(--primary-light);
}

.chip-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Submit Button */
.btn-submit-hero {
  width: 100%;
  height: 52px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(3, 153, 177, 0.4);
  transition: all 0.2s ease;
}

.btn-submit-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3, 153, 177, 0.5);
}

.btn-submit-hero:active {
  transform: translateY(0);
}

/* ==========================================================================
   MODULE 2: Dasbor Kinerja & Cut-Off 26–25
   ========================================================================== */
.cutoff-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  margin-bottom: 20px;
}

.cutoff-label-group {
  text-align: center;
}

.cutoff-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.cutoff-dates-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.kpi-card.accent::before {
  background: var(--accent);
}

.kpi-card.danger::before {
  background: var(--danger);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-card.accent .kpi-icon {
  background: var(--accent-light);
  color: var(--accent);
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 4px;
}

.kpi-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Comparison Bars Table */
.therapist-perf-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perf-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.perf-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.perf-therapist-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.perf-stats-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}

.perf-bar-track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  overflow: hidden;
}

.perf-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   MODULE 3: Cuti Terapis (Sistem Rebutan Max 4)
   ========================================================================== */
.alert-banner {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.alert-banner.info {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
}

.alert-banner.danger {
  background: var(--danger-light);
  border: 1px solid var(--danger-border);
  color: #d32f2f;
}

.alert-banner svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 12-Month Cuti Grid */
.cuti-months-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.month-slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
  position: relative;
}

.month-slot-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.month-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.month-slot-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.slot-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.slot-status-pill.open {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.slot-status-pill.warning {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.slot-status-pill.full {
  background: var(--danger-light);
  color: #d32f2f;
  border: 1px solid var(--danger-border);
}

.month-therapists-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 48px;
}

.cuti-therapist-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-size: 0.78rem;
}

.cuti-dates-text {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Cuti Multi-Stage Wizard Card */
.wizard-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary-border);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.wizard-steps-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.wizard-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 2px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-step-node.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.wizard-step-node.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   MODULE 4: Kas Bulanan
   ========================================================================== */
.kas-summary-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kas-stat-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kas-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.kas-stat-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.kas-list-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.kas-row {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.kas-row:hover {
  box-shadow: var(--shadow-sm);
}

.kas-cell {
  padding: 14px 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-badge.paid {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.status-badge.unpaid {
  background: var(--danger-light);
  color: #d32f2f;
  border: 1px solid var(--danger-border);
}

/* ==========================================================================
   Modal Dialogs & Popups
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-sheet {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  color: var(--text-main);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.25s ease;
}

.toast.danger {
  border-left-color: var(--danger);
}

.toast.accent {
  border-left-color: var(--accent);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Buttons Helper */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--primary-border);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: var(--danger-hover);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* ==========================================================================
   Dual UI Mode: Smartphone vs Komputer Transitions
   ========================================================================== */
body.ui-smartphone {
  background-color: #f1f5f9;
}

body.ui-smartphone #desktopSidebar,
body.ui-smartphone #desktopTopHeader {
  display: none !important;
}

body.ui-smartphone #mobileHeader {
  display: flex !important;
}

body.ui-smartphone #mobileBottomNav {
  display: block !important;
}

body.ui-smartphone #appContainer {
  max-width: 480px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-shadow: 0 12px 40px rgba(14, 29, 38, 0.12) !important;
  border-left: 1px solid rgba(227, 231, 232, 0.8) !important;
  border-right: 1px solid rgba(227, 231, 232, 0.8) !important;
  background-color: #f5faff !important;
}

body.ui-smartphone main {
  padding-top: 4.5rem !important;
  padding-bottom: 6rem !important;
  max-width: 480px !important;
}

body.ui-komputer {
  background-color: #f8fafc;
}

body.ui-komputer #desktopSidebar {
  display: flex !important;
}

body.ui-komputer #desktopTopHeader {
  display: flex !important;
}

body.ui-komputer #mobileHeader {
  display: none !important;
}

body.ui-komputer #mobileBottomNav {
  display: none !important;
}

body.ui-komputer #appContainer {
  max-width: 100% !important;
  width: 100% !important;
  box-shadow: none !important;
  border: none !important;
  background-color: transparent !important;
}

body.ui-komputer main {
  padding-top: 1.25rem !important;
  padding-bottom: 3.5rem !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

