/* SANAD APP — Material Design 3 / Gemini UI Design System */
/* Menggantikan Clay UI lama dengan gaya profesional, bersih, dan flat */

:root {
  /* Palet Warna ala Google Material 3 */
  --md-sys-color-background: #F0F4F9;
  --md-sys-color-surface: #FFFFFF;
  --md-sys-color-primary: #0B57D0; /* Google Blue */
  --md-sys-color-on-primary: #FFFFFF;
  --md-sys-color-primary-container: #C2E7FF;
  --md-sys-color-on-primary-container: #001D35;
  --md-sys-color-outline: #747775;
  --md-sys-color-surface-variant: #E1E5EA;
  --md-sys-color-on-surface: #1F1F1F;
  --md-sys-color-on-surface-variant: #444746;
}

body {
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-surface);
  font-family: 'Outfit', 'Google Sans', 'Inter', system-ui, sans-serif;
}

.dark body {
  background: #131314;
  color: #E3E3E3;
}

/* ---------- Card / Wadah Konten (Dulu 'Clay') ---------- */
/* Kita tetap gunakan nama class .clay agar halaman lain tidak rusak, tapi desainnya diubah 180 derajat */
.clay, .card-pro {
  background: var(--md-sys-color-surface);
  border-radius: 24px;
  border: 1px solid var(--md-sys-color-surface-variant);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

.dark .clay, .dark .card-pro {
  background: #1E1F20;
  border: 1px solid #444746;
  box-shadow: none;
}

/* ---------- Tombol ala Gemini (Pill-shaped) ---------- */
.btn-clay, .btn-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px; /* Bentuk kapsul bulat sempurna */
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  box-shadow: none;
  border: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.btn-clay:hover, .btn-pro:hover {
  background: #0842A0; /* Biru lebih gelap saat disentuh */
  box-shadow: 0 1px 3px 1px rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.2);
}
.btn-clay:active, .btn-pro:active {
  background: #062E6F;
}

.btn-clay-outline, .btn-pro-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  color: var(--md-sys-color-primary);
  border: 1px solid var(--md-sys-color-outline);
  transition: background-color 0.2s ease;
}
.btn-clay-outline:hover, .btn-pro-outline:hover {
  background: rgba(11, 87, 208, 0.08); /* Efek sentuh transparan */
}

/* Mengubah tombol amber menjadi gaya Tonal sekunder */
.btn-clay-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border: none;
  box-shadow: none;
  transition: background-color 0.2s ease;
}
.btn-clay-amber:hover {
  background: #A9D6F5; /* Biru langit */
}

/* ---------- Input Form Bersih ---------- */
.input-clay, .input-pro {
  border-radius: 12px;
  border: 1px solid var(--md-sys-color-outline);
  padding: 0.75rem 1rem;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-clay:focus, .input-pro:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 2px rgba(11, 87, 208, 0.15); /* Pendaran biru halus saat diketik */
}

/* ---------- Badge (Label Status) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 8px; /* Lebih kotak profesional dibanding versi lama */
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
}
/* Warna pastel Tonal ala Material 3 */
.badge-green { background: #C4EED0; color: #072711; }
.badge-amber { background: #FFDAB8; color: #321300; }
.badge-red { background: #FFDAD6; color: #410002; }
.badge-gray { background: var(--md-sys-color-surface-variant); color: var(--md-sys-color-on-surface); }

/* ---------- Sidebar Link (Backup jika tidak menggunakan Tailwind penuh) ---------- */
.sidebar-link {
  display: flex; 
  align-items: center; 
  gap: 0.75rem;
  padding: 0.75rem 1rem; 
  border-radius: 100px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
  transition: background-color 0.2s ease;
}
.sidebar-link:hover { 
  background: var(--md-sys-color-surface-variant); 
  color: var(--md-sys-color-on-surface);
}
.sidebar-link.active {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  box-shadow: none;
}