/* Anak Energi UNDIP — Design System
   Palet netral + 1 aksen, tipografi Plus Jakarta Sans, spacing/radius/border konsisten.
   Mode terang default, mode gelap via prefers-color-scheme. */

:root {
  --accent-50: #eef2ff;
  --accent-100: #e0e7ff;
  --accent-500: #4f63e8;
  --accent-600: #3d51db;
  --accent-700: #2f3fb8;

  --gray-0: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f1f3f7;
  --gray-200: #e4e7ee;
  --gray-300: #d3d7e0;
  --gray-400: #a3a9b8;
  --gray-500: #7c8296;
  --gray-600: #5b6178;
  --gray-700: #40465c;
  --gray-800: #292d3e;
  --gray-900: #161823;

  --bg: var(--gray-50);
  --surface: var(--gray-0);
  --text: #1a1d2b;
  --text-muted: var(--gray-600);
  --border: var(--gray-200);
  --border-strong: var(--gray-300);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --shadow-card: 0 1px 2px rgba(16, 20, 40, .04), 0 12px 32px rgba(16, 20, 40, .08);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101220;
    --surface: #171a2b;
    --text: #eef0f6;
    --text-muted: #9aa0b4;
    --border: #2a2e42;
    --border-strong: #3a3f58;
    --accent-50: #1b2040;
    --accent-100: #232a52;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }

a { color: var(--accent-600); }

.ae-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: var(--space-2); }

.ae-input {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ae-input:focus {
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px var(--accent-100);
}

.ae-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-600);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s ease;
}

.ae-button:hover { background: var(--accent-700); }

.ae-error { font-size: 12px; color: #dc2626; margin-top: var(--space-2); }

.ae-status { font-size: 13px; color: var(--accent-700); background: var(--accent-50); border-radius: var(--radius-sm); padding: var(--space-3); margin-bottom: var(--space-4); }
