/* Trend DOPS: token desain bersama (dashboard dan Brainstorm).
   Warna brand diambil dari logo TREND DOPS (gradasi cyan ke pink di atas hitam).
   Struktur komponen mengikuti Untitled UI. Tema gelap memakai hitam murni seperti latar logo. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/static/fonts/playfair-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Brand (dari logo) */
  --brand-cyan: #11f7fc;
  --brand-mint: #a9ece4;
  --brand-cream: #ede3d5;
  --brand-peach: #fbbfad;
  --brand-pink: #fb7387;
  --brand-gradient: linear-gradient(90deg, #11f7fc 0%, #a9ece4 27%, #ede3d5 50%, #fbbfad 73%, #fb7387 100%);
  --logo-black: #000;
  /* Gradasi untuk teks besar: versi diperdalam di tema terang, warna asli logo di tema gelap */
  --brand-gradient-text: linear-gradient(90deg, #007b7d 0%, #006461 25%, #5d4f40 50%, #88443a 75%, #b0425d 100%);

  /* Permukaan */
  --bg: #fff;
  --bg-subtle: #fafafa;
  --bg-muted: #f5f5f5;
  --surface: #fff;
  --surface-raised: #fff;
  --sidebar: #fff;
  --border: #e9eaeb;
  --border-strong: #d5d7da;

  /* Teks */
  --text: #181d27;
  --text-2: #414651;
  --text-3: #535862;
  --text-4: #717680;

  /* Aksen: turunan pekat dari warna logo supaya terbaca di latar putih */
  --accent: #c8164a;
  --accent-2: #0b7c88;
  --accent-soft: #fff1f3;
  --primary: #000;
  --primary-text: #fff;
  --primary-hover: #26272b;

  /* Status */
  --success: #067647; --success-bg: #ecfdf3; --success-border: #abefc6;
  --error: #b42318; --error-bg: #fef3f2; --error-border: #fecdca;
  --warning: #b54708; --warning-bg: #fffaeb; --warning-border: #fedf89;
  --info: #175cd3; --info-bg: #eff8ff; --info-border: #b2ddff;

  --shadow-xs: 0 1px 2px rgba(10, 13, 18, .05);
  --shadow-sm: 0 1px 3px rgba(10, 13, 18, .1), 0 1px 2px -1px rgba(10, 13, 18, .1);
  --shadow-lg: 0 12px 16px -4px rgba(10, 13, 18, .08), 0 4px 6px -2px rgba(10, 13, 18, .03);
  --ring: 0 0 0 4px rgba(200, 22, 74, .14);

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

[data-theme="dark"] {
  --brand-gradient-text: var(--brand-gradient);
  color-scheme: dark;
  --bg: #000;
  --bg-subtle: #0b0b0d;
  --bg-muted: #151518;
  --surface: #0b0b0d;
  --surface-raised: #141417;
  --sidebar: #000;
  --border: #222329;
  --border-strong: #33343b;

  --text: #f5f5f6;
  --text-2: #d7d8db;
  --text-3: #a4a7ae;
  --text-4: #85888e;

  --accent: #ff8fa1;
  --accent-2: #5eeff5;
  --accent-soft: rgba(251, 115, 135, .12);
  --primary: #fff;
  --primary-text: #000;
  --primary-hover: #e4e4e7;

  --success: #47cd89; --success-bg: rgba(71, 205, 137, .1); --success-border: rgba(71, 205, 137, .28);
  --error: #f97066; --error-bg: rgba(249, 112, 102, .1); --error-border: rgba(249, 112, 102, .3);
  --warning: #fdb022; --warning-bg: rgba(253, 176, 34, .1); --warning-border: rgba(253, 176, 34, .3);
  --info: #53b1fd; --info-bg: rgba(83, 177, 253, .1); --info-border: rgba(83, 177, 253, .3);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .6);
  --shadow-lg: 0 16px 32px -8px rgba(0, 0, 0, .85);
  --ring: 0 0 0 4px rgba(255, 143, 161, .2);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(251, 115, 135, .28); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Logo: versi terang tampil di tema terang, versi gelap di tema gelap (tanpa kotak hitam). */
img.logo-on-dark { display: none; }
[data-theme="dark"] img.logo-on-light { display: none; }
[data-theme="dark"] img.logo-on-dark { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
