/* =====================================================================
   LPPM ISTN — Design Tokens
   DEMO PROTOTYPE — DATA SIMULASI
   ===================================================================== */

:root {
  /* Brand */
  --navy-950: #06182c;
  --navy-900: #0a2340;
  --navy-850: #0e2a4d;
  --navy-800: #12325a;
  --navy-700: #17406f;
  --navy-600: #1d4f88;

  --royal-700: #1a3f8f;
  --royal-600: #1e4fbf;
  --royal-500: #2b62d9;
  --royal-100: #e6eefc;
  --royal-50: #f1f6fe;

  --gold-700: #a67c00;
  --gold-600: #c29413;
  --gold-500: #d9ab2b;
  --gold-300: #efd479;
  --gold-100: #fdf6e0;
  --gold-50: #fffaec;

  /* Semantic */
  --primary: var(--navy-900);
  --primary-strong: var(--navy-800);
  --secondary: var(--royal-600);
  --accent: var(--gold-500);
  --accent-strong: var(--gold-600);

  --success: #0f6b4c;
  --success-bg: #e6f6f0;
  --success-border: #b7e3d3;
  --warning: #8f4e06;
  --warning-bg: #fdf2e2;
  --warning-border: #f3d6ab;
  --danger: #b3261e;
  --danger-bg: #fdeceb;
  --danger-border: #f3c4c0;
  --info: #1d4ed8;
  --info-bg: #eaf1fd;
  --info-border: #c3d7f8;
  --neutral: #5f6b7a;
  --neutral-bg: #eef1f5;
  --neutral-border: #dde3ea;

  /* Surfaces */
  --bg: #f2f5f9;
  --bg-alt: #e9eef6;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f4f9;
  --overlay: rgba(6, 24, 44, 0.55);

  /* Text */
  --text: #0d1b2e;
  --text-soft: #33425a;
  --muted: #64748b;
  --muted-2: #8894a6;
  --on-dark: #eaf1fb;
  --on-dark-soft: #a9bdd6;

  /* Lines */
  --border: #e2e8f0;
  --border-strong: #cfd8e5;
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Shape */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(15, 32, 55, 0.06);
  --shadow-sm: 0 1px 3px rgba(15, 32, 55, 0.08), 0 1px 2px rgba(15, 32, 55, 0.04);
  --shadow: 0 6px 18px rgba(15, 32, 55, 0.08);
  --shadow-md: 0 12px 30px rgba(15, 32, 55, 0.10);
  --shadow-lg: 0 24px 60px rgba(6, 24, 44, 0.18);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 56px;

  /* Layout */
  --ribbon-h: 26px;
  --sidebar-w: 268px;
  --sidebar-w-collapsed: 76px;
  --topbar-h: 62px;
  --content-max: 1560px;

  /* Type */
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  --fs-xs: 11px;
  --fs-sm: 12.5px;
  --fs-base: 13.5px;
  --fs-md: 14.5px;
  --fs-lg: 16px;
  --fs-xl: 19px;
  --fs-2xl: 24px;
  --fs-3xl: 30px;
  --fs-4xl: 38px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 120ms;
  --t: 200ms;
  --t-slow: 320ms;

  --z-sidebar: 85;
  --z-topbar: 50;
  --z-backdrop: 70;
  --z-modal: 90;
  --z-toast: 110;
  --z-fab: 70;
}

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

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

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

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--sp-5) 0;
}

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

::selection {
  background: var(--gold-300);
  color: var(--navy-950);
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--royal-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: #b9c4d3 transparent;
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-thumb {
  background: #b9c4d3;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

/* ----------------------------------------------------------- Utilities */
.u-hidden { display: none !important; }
.u-invisible { visibility: hidden !important; }
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.u-flex { display: flex; }
.u-flex-col { display: flex; flex-direction: column; }
.u-items-center { align-items: center; }
.u-justify-between { justify-content: space-between; }
.u-gap-1 { gap: var(--sp-1); }
.u-gap-2 { gap: var(--sp-2); }
.u-gap-3 { gap: var(--sp-3); }
.u-gap-4 { gap: var(--sp-4); }
.u-gap-5 { gap: var(--sp-5); }
.u-gap-6 { gap: var(--sp-6); }
.u-wrap { flex-wrap: wrap; }
.u-grow { flex: 1 1 auto; }
.u-nowrap { white-space: nowrap; }
.u-text-center { text-align: center; }
.u-text-right { text-align: right; }
.u-muted { color: var(--muted); }
.u-soft { color: var(--text-soft); }
.u-small { font-size: var(--fs-sm); }
.u-xs { font-size: var(--fs-xs); }
.u-bold { font-weight: 700; }
.u-semi { font-weight: 600; }
.u-mono { font-family: var(--font-mono); }
.u-uppercase { text-transform: uppercase; letter-spacing: 0.06em; }
.u-mt-0 { margin-top: 0; }
.u-mt-2 { margin-top: var(--sp-2); }
.u-mt-3 { margin-top: var(--sp-3); }
.u-mt-4 { margin-top: var(--sp-4); }
.u-mt-5 { margin-top: var(--sp-5); }
.u-mt-6 { margin-top: var(--sp-6); }
.u-mb-2 { margin-bottom: var(--sp-2); }
.u-mb-3 { margin-bottom: var(--sp-3); }
.u-mb-4 { margin-bottom: var(--sp-4); }
.u-mb-5 { margin-bottom: var(--sp-5); }
.u-mb-6 { margin-bottom: var(--sp-6); }
.u-full { width: 100%; }
.u-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.u-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.u-divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-4) 0;
}
.u-scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
