@charset "UTF-8";
/*!
 * framework-global.css — Dasar Framework v1.0 (merged final)
 * Gabungan: dasar.css + dasar-components.css
 * Includes: reset, design tokens, utilities, grid, components,
 *           dark mode, navbar, dropdown, modal, tabs, accordion,
 *           toast, pagination, progress, spinner, tooltip, offcanvas
 * No dependencies. Lisensi: MIT
 *
 * Pemakaian: <link rel="stylesheet" href="framework-global.css">
 * Dark mode manual: <html data-theme="dark">
 * Dark mode otomatis: ikut prefers-color-scheme OS
 */

/* =========================================================
   BAGIAN 1 — TOKEN, RESET, UTILITY, GRID, KOMPONEN DASAR
   ========================================================= */

/* ---------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------- */
:root {
  /* ---- Warna brand & semantik ---- */
  --c-primary:        #0d6efd;
  --c-primary-hover:  #0b5ed7;
  --c-primary-rgb:    13, 110, 253;

  --c-secondary:      #6c757d;
  --c-secondary-hover:#5c636a;
  --c-secondary-rgb:  108, 117, 125;

  --c-success:        #198754;
  --c-success-hover:  #157347;
  --c-success-rgb:    25, 135, 84;

  --c-info:           #0dcaf0;
  --c-info-hover:     #31d2f2;
  --c-info-rgb:       13, 202, 240;

  --c-warning:        #ffc107;
  --c-warning-hover:  #ffca2c;
  --c-warning-rgb:    255, 193, 7;

  --c-danger:         #dc3545;
  --c-danger-hover:   #bb2d3b;
  --c-danger-rgb:     220, 53, 69;

  --c-light:          #f8f9fa;
  --c-light-rgb:      248, 249, 250;
  --c-dark:           #212529;
  --c-dark-rgb:       33, 37, 41;

  /* ---- Netral ---- */
  --c-white:          #ffffff;
  --c-black:          #000000;
  --c-gray-100:       #f8f9fa;
  --c-gray-200:       #e9ecef;
  --c-gray-300:       #dee2e6;
  --c-gray-400:       #ced4da;
  --c-gray-500:       #adb5bd;
  --c-gray-600:       #6c757d;
  --c-gray-700:       #495057;
  --c-gray-800:       #343a40;
  --c-gray-900:       #212529;

  /* ---- Warna peran (role) ---- */
  --c-body:           var(--c-gray-900);
  --c-body-bg:        var(--c-white);
  --c-muted:          var(--c-gray-600);
  --c-border:         var(--c-gray-300);
  --c-border-strong:  var(--c-gray-400);
  --c-link:           var(--c-primary);
  --c-link-hover:     var(--c-primary-hover);
  --c-focus:          rgba(var(--c-primary-rgb), 0.25);

  /* ---- Spacing scale ---- */
  --sp-0: 0;
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  /* ---- Tipografi ---- */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;
  --fs-base: 1rem;
  --lh-base: 1.5;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ---- Radius ---- */
  --radius-sm: .25rem;
  --radius:    .375rem;
  --radius-md: .5rem;
  --radius-lg: 1rem;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* ---- Shadow ---- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow:    0 1px 3px rgba(0, 0, 0, .10), 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .10), 0 2px 4px -2px rgba(0, 0, 0, .06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .10), 0 4px 6px -4px rgba(0, 0, 0, .05);

  /* ---- Layout ---- */
  --gutter-x: 1.5rem;
  --gutter-y: 0;

  /* ---- Transisi ---- */
  --transition: .15s ease-in-out;

  /* ---- Z-index ---- */
  --z-dropdown: 1000;
  --z-sticky:   1020;
  --z-fixed:    1030;
  --z-modal:    1050;
  --z-tooltip:  1070;
}


/* Override variabel framework agar tombol & link jadi oranye */
:root {
  --c-primary:        #ea580c;
  --c-primary-hover:  #c2410c;
  --c-primary-rgb:    234, 88, 12;
  --c-link:           #ea580c;
  --c-link-hover:     #c2410c;
  --c-focus:          rgba(234, 88, 12, 0.25);
}



/* ---------------------------------------------------------
   2. RESET / REBOOT
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.5;
  tab-size: 4;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-base);
  color: var(--c-body);
  background-color: var(--c-body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
}
img, video {
  height: auto;
}

ul, ol {
  padding-left: var(--sp-5);
}
.list-unstyled {
  list-style: none;
  padding-left: 0;
}
.list-inline {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

a {
  color: var(--c-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--c-link-hover);
}

b, strong { font-weight: var(--fw-bold); }
small     { font-size: .875em; }
mark      { background-color: #fff3cd; padding: 0 .15em; }

sub, sup {
  font-size: .75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup { top: -.5em; }
sub { bottom: -.25em; }

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: .875em;
}
code {
  color: #d63384;
  word-wrap: break-word;
}
pre {
  display: block;
  overflow: auto;
  padding: var(--sp-4);
  background-color: var(--c-gray-100);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
pre code {
  color: inherit;
  font-size: inherit;
  word-break: normal;
}
kbd {
  padding: .125rem .375rem;
  background: var(--c-gray-900);
  color: var(--c-white);
  border-radius: var(--radius-sm);
}

table {
  border-collapse: collapse;
  caption-side: bottom;
  width: 100%;
}
th { text-align: inherit; }

hr {
  margin: var(--sp-4) 0;
  color: inherit;
  border: 0;
  border-top: 1px solid;
  opacity: .25;
}

button, input, optgroup, select, textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  margin: 0;
}
textarea { resize: vertical; }
button  { cursor: pointer; }
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .65;
}
fieldset {
  border: 0;
  padding: 0;
}
legend {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-2);
}

::selection {
  background: var(--c-primary);
  color: var(--c-white);
}
:focus-visible {
  outline: 3px solid rgba(var(--c-primary-rgb), .35);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------
   3. ELEMEN DASAR (BASE)
   --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--sp-3);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--c-gray-900);
}
h1 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); }
h2 { font-size: clamp(1.5rem,  1.3rem + 1vw,   2rem); }
h3 { font-size: clamp(1.375rem, 1.25rem + .6vw, 1.75rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--sp-4);
}
p:last-child { margin-bottom: 0; }

blockquote {
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  border-left: .25rem solid var(--c-gray-300);
  color: var(--c-gray-700);
  font-style: italic;
}

/* ---------------------------------------------------------
   4. LAYOUT: CONTAINER & GRID
   --------------------------------------------------------- */
.container,
.container-fluid {
  width: 100%;
  padding-inline: var(--gutter-x);
  margin-inline: auto;
}

@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* ---- Row & Col ---- */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: calc(var(--gutter-x) * -.5);
}
.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-inline: calc(var(--gutter-x) * .5);
  margin-top: var(--gutter-y);
}

.col       { flex: 1 0 0%; }
.col-auto  { flex: 0 0 auto; width: auto; }
.col-1     { flex: 0 0 auto; width: 8.33333333%; }
.col-2     { flex: 0 0 auto; width: 16.66666667%; }
.col-3     { flex: 0 0 auto; width: 25%; }
.col-4     { flex: 0 0 auto; width: 33.33333333%; }
.col-5     { flex: 0 0 auto; width: 41.66666667%; }
.col-6     { flex: 0 0 auto; width: 50%; }
.col-7     { flex: 0 0 auto; width: 58.33333333%; }
.col-8     { flex: 0 0 auto; width: 66.66666667%; }
.col-9     { flex: 0 0 auto; width: 75%; }
.col-10    { flex: 0 0 auto; width: 83.33333333%; }
.col-11    { flex: 0 0 auto; width: 91.66666667%; }
.col-12    { flex: 0 0 auto; width: 100%; }

/* ---- Gutter modifier ---- */
.g-0 { --gutter-x: 0;      --gutter-y: 0; }
.g-1 { --gutter-x: .5rem;  --gutter-y: .5rem; }
.g-2 { --gutter-x: 1rem;   --gutter-y: 1rem; }
.g-3 { --gutter-x: 1.5rem; --gutter-y: 1.5rem; }
.g-4 { --gutter-x: 2rem;   --gutter-y: 2rem; }
.g-5 { --gutter-x: 3rem;   --gutter-y: 3rem; }

/* ---- Col responsif ---- */
@media (min-width: 576px) {
  .col-sm     { flex: 1 0 0%; }
  .col-sm-auto{ flex: 0 0 auto; width: auto; }
  .col-sm-1   { flex: 0 0 auto; width: 8.33333333%; }
  .col-sm-2   { flex: 0 0 auto; width: 16.66666667%; }
  .col-sm-3   { flex: 0 0 auto; width: 25%; }
  .col-sm-4   { flex: 0 0 auto; width: 33.33333333%; }
  .col-sm-5   { flex: 0 0 auto; width: 41.66666667%; }
  .col-sm-6   { flex: 0 0 auto; width: 50%; }
  .col-sm-7   { flex: 0 0 auto; width: 58.33333333%; }
  .col-sm-8   { flex: 0 0 auto; width: 66.66666667%; }
  .col-sm-9   { flex: 0 0 auto; width: 75%; }
  .col-sm-10  { flex: 0 0 auto; width: 83.33333333%; }
  .col-sm-11  { flex: 0 0 auto; width: 91.66666667%; }
  .col-sm-12  { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 768px) {
  .col-md     { flex: 1 0 0%; }
  .col-md-auto{ flex: 0 0 auto; width: auto; }
  .col-md-1   { flex: 0 0 auto; width: 8.33333333%; }
  .col-md-2   { flex: 0 0 auto; width: 16.66666667%; }
  .col-md-3   { flex: 0 0 auto; width: 25%; }
  .col-md-4   { flex: 0 0 auto; width: 33.33333333%; }
  .col-md-5   { flex: 0 0 auto; width: 41.66666667%; }
  .col-md-6   { flex: 0 0 auto; width: 50%; }
  .col-md-7   { flex: 0 0 auto; width: 58.33333333%; }
  .col-md-8   { flex: 0 0 auto; width: 66.66666667%; }
  .col-md-9   { flex: 0 0 auto; width: 75%; }
  .col-md-10  { flex: 0 0 auto; width: 83.33333333%; }
  .col-md-11  { flex: 0 0 auto; width: 91.66666667%; }
  .col-md-12  { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 992px) {
  .col-lg     { flex: 1 0 0%; }
  .col-lg-auto{ flex: 0 0 auto; width: auto; }
  .col-lg-1   { flex: 0 0 auto; width: 8.33333333%; }
  .col-lg-2   { flex: 0 0 auto; width: 16.66666667%; }
  .col-lg-3   { flex: 0 0 auto; width: 25%; }
  .col-lg-4   { flex: 0 0 auto; width: 33.33333333%; }
  .col-lg-5   { flex: 0 0 auto; width: 41.66666667%; }
  .col-lg-6   { flex: 0 0 auto; width: 50%; }
  .col-lg-7   { flex: 0 0 auto; width: 58.33333333%; }
  .col-lg-8   { flex: 0 0 auto; width: 66.66666667%; }
  .col-lg-9   { flex: 0 0 auto; width: 75%; }
  .col-lg-10  { flex: 0 0 auto; width: 83.33333333%; }
  .col-lg-11  { flex: 0 0 auto; width: 91.66666667%; }
  .col-lg-12  { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 1200px) {
  .col-xl     { flex: 1 0 0%; }
  .col-xl-auto{ flex: 0 0 auto; width: auto; }
  .col-xl-1   { flex: 0 0 auto; width: 8.33333333%; }
  .col-xl-2   { flex: 0 0 auto; width: 16.66666667%; }
  .col-xl-3   { flex: 0 0 auto; width: 25%; }
  .col-xl-4   { flex: 0 0 auto; width: 33.33333333%; }
  .col-xl-5   { flex: 0 0 auto; width: 41.66666667%; }
  .col-xl-6   { flex: 0 0 auto; width: 50%; }
  .col-xl-7   { flex: 0 0 auto; width: 58.33333333%; }
  .col-xl-8   { flex: 0 0 auto; width: 66.66666667%; }
  .col-xl-9   { flex: 0 0 auto; width: 75%; }
  .col-xl-10  { flex: 0 0 auto; width: 83.33333333%; }
  .col-xl-11  { flex: 0 0 auto; width: 91.66666667%; }
  .col-xl-12  { flex: 0 0 auto; width: 100%; }
}

/* ---------------------------------------------------------
   5. UTILITIES
   --------------------------------------------------------- */

/* ---- 5.1 Spacing ---- */
.m-0 { margin: 0 !important; }
.m-1 { margin: .25rem !important; }
.m-2 { margin: .5rem !important; }
.m-3 { margin: .75rem !important; }
.m-4 { margin: 1rem !important; }
.m-5 { margin: 1.5rem !important; }
.m-6 { margin: 2rem !important; }
.m-auto { margin: auto !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: .75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-5 { margin-top: 1.5rem !important; }
.mt-6 { margin-top: 2rem !important; }
.mt-auto { margin-top: auto !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: .75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.5rem !important; }
.mb-6 { margin-bottom: 2rem !important; }
.mb-auto { margin-bottom: auto !important; }

.ms-0 { margin-left: 0 !important; }
.ms-1 { margin-left: .25rem !important; }
.ms-2 { margin-left: .5rem !important; }
.ms-3 { margin-left: .75rem !important; }
.ms-4 { margin-left: 1rem !important; }
.ms-5 { margin-left: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }

.me-0 { margin-right: 0 !important; }
.me-1 { margin-right: .25rem !important; }
.me-2 { margin-right: .5rem !important; }
.me-3 { margin-right: .75rem !important; }
.me-4 { margin-right: 1rem !important; }
.me-5 { margin-right: 1.5rem !important; }
.me-auto { margin-right: auto !important; }

.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: .25rem !important; margin-right: .25rem !important; }
.mx-2 { margin-left: .5rem !important; margin-right: .5rem !important; }
.mx-3 { margin-left: .75rem !important; margin-right: .75rem !important; }
.mx-4 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-5 { margin-left: 1.5rem !important; margin-right: 1.5rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: .25rem !important; margin-bottom: .25rem !important; }
.my-2 { margin-top: .5rem !important; margin-bottom: .5rem !important; }
.my-3 { margin-top: .75rem !important; margin-bottom: .75rem !important; }
.my-4 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-5 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: .25rem !important; }
.p-2 { padding: .5rem !important; }
.p-3 { padding: .75rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.5rem !important; }
.p-6 { padding: 2rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: .25rem !important; }
.pt-2 { padding-top: .5rem !important; }
.pt-3 { padding-top: .75rem !important; }
.pt-4 { padding-top: 1rem !important; }
.pt-5 { padding-top: 1.5rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: .25rem !important; }
.pb-2 { padding-bottom: .5rem !important; }
.pb-3 { padding-bottom: .75rem !important; }
.pb-4 { padding-bottom: 1rem !important; }
.pb-5 { padding-bottom: 1.5rem !important; }

.ps-0 { padding-left: 0 !important; }
.ps-1 { padding-left: .25rem !important; }
.ps-2 { padding-left: .5rem !important; }
.ps-3 { padding-left: .75rem !important; }
.ps-4 { padding-left: 1rem !important; }
.ps-5 { padding-left: 1.5rem !important; }

.pe-0 { padding-right: 0 !important; }
.pe-1 { padding-right: .25rem !important; }
.pe-2 { padding-right: .5rem !important; }
.pe-3 { padding-right: .75rem !important; }
.pe-4 { padding-right: 1rem !important; }
.pe-5 { padding-right: 1.5rem !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: .25rem !important; padding-right: .25rem !important; }
.px-2 { padding-left: .5rem !important; padding-right: .5rem !important; }
.px-3 { padding-left: .75rem !important; padding-right: .75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: .25rem !important; padding-bottom: .25rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.py-3 { padding-top: .75rem !important; padding-bottom: .75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

/* ---- 5.2 Warna teks ---- */
.text-primary   { color: var(--c-primary) !important; }
.text-secondary { color: var(--c-secondary) !important; }
.text-success   { color: var(--c-success) !important; }
.text-info      { color: var(--c-info) !important; }
.text-warning   { color: var(--c-warning) !important; }
.text-danger    { color: var(--c-danger) !important; }
.text-light     { color: var(--c-light) !important; }
.text-dark      { color: var(--c-dark) !important; }
.text-muted     { color: var(--c-muted) !important; }
.text-body      { color: var(--c-body) !important; }
.text-white     { color: var(--c-white) !important; }
.text-black     { color: var(--c-black) !important; }

/* ---- 5.3 Background ---- */
.bg-primary   { background-color: var(--c-primary) !important; }
.bg-secondary { background-color: var(--c-secondary) !important; }
.bg-success   { background-color: var(--c-success) !important; }
.bg-info      { background-color: var(--c-info) !important; }
.bg-warning   { background-color: var(--c-warning) !important; }
.bg-danger    { background-color: var(--c-danger) !important; }
.bg-light     { background-color: var(--c-light) !important; }
.bg-dark      { background-color: var(--c-dark) !important; }
.bg-white     { background-color: var(--c-white) !important; }
.bg-transparent { background-color: transparent !important; }

/* ---- 5.4 Display ---- */
.d-none         { display: none !important; }
.d-block        { display: block !important; }
.d-inline       { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex         { display: flex !important; }
.d-inline-flex  { display: inline-flex !important; }
.d-grid         { display: grid !important; }
.d-table        { display: table !important; }

/* ---- 5.5 Flexbox ---- */
.flex-row          { flex-direction: row !important; }
.flex-column       { flex-direction: column !important; }
.flex-row-reverse  { flex-direction: row-reverse !important; }
.flex-column-reverse { flex-direction: column-reverse !important; }
.flex-wrap         { flex-wrap: wrap !important; }
.flex-nowrap       { flex-wrap: nowrap !important; }
.flex-fill         { flex: 1 1 auto !important; }
.flex-grow-0       { flex-grow: 0 !important; }
.flex-grow-1       { flex-grow: 1 !important; }
.flex-shrink-0     { flex-shrink: 0 !important; }
.flex-shrink-1     { flex-shrink: 1 !important; }

.justify-content-start   { justify-content: flex-start !important; }
.justify-content-end     { justify-content: flex-end !important; }
.justify-content-center  { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around  { justify-content: space-around !important; }
.justify-content-evenly  { justify-content: space-evenly !important; }

.align-items-start    { align-items: flex-start !important; }
.align-items-end      { align-items: flex-end !important; }
.align-items-center   { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch  { align-items: stretch !important; }

.align-self-start    { align-self: flex-start !important; }
.align-self-end      { align-self: flex-end !important; }
.align-self-center   { align-self: center !important; }
.align-self-stretch  { align-self: stretch !important; }

.gap-0 { gap: 0 !important; }
.gap-1 { gap: .25rem !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: .75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.5rem !important; }
.gap-6 { gap: 2rem !important; }

/* ---- 5.6 Tipografi ---- */
.text-start   { text-align: left !important; }
.text-center  { text-align: center !important; }
.text-end     { text-align: right !important; }
.text-justify { text-align: justify !important; }

.text-uppercase  { text-transform: uppercase !important; }
.text-lowercase  { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }

.text-decoration-none      { text-decoration: none !important; }
.text-decoration-underline { text-decoration: underline !important; }
.text-decoration-line-through { text-decoration: line-through !important; }

.text-nowrap { white-space: nowrap !important; }
.text-wrap   { white-space: normal !important; }
.text-break  { word-wrap: break-word !important; overflow-wrap: break-word !important; }

.fw-normal   { font-weight: 400 !important; }
.fw-medium   { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold     { font-weight: 700 !important; }
.fst-italic  { font-style: italic !important; }
.fst-normal  { font-style: normal !important; }

.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }
.fs-sm { font-size: .875rem !important; }

.lh-1    { line-height: 1 !important; }
.lh-sm   { line-height: 1.25 !important; }
.lh-base { line-height: 1.5 !important; }
.lh-lg   { line-height: 2 !important; }

.text-truncate {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* ---- 5.7 Border & Radius ---- */
.border        { border: 1px solid var(--c-border) !important; }
.border-0      { border: 0 !important; }
.border-top    { border-top: 1px solid var(--c-border) !important; }
.border-bottom { border-bottom: 1px solid var(--c-border) !important; }
.border-start  { border-left: 1px solid var(--c-border) !important; }
.border-end    { border-right: 1px solid var(--c-border) !important; }

.border-primary { border-color: var(--c-primary) !important; }
.border-success { border-color: var(--c-success) !important; }
.border-danger  { border-color: var(--c-danger) !important; }
.border-warning { border-color: var(--c-warning) !important; }
.border-light   { border-color: var(--c-light) !important; }
.border-dark    { border-color: var(--c-dark) !important; }

.rounded-0      { border-radius: 0 !important; }
.rounded-sm     { border-radius: var(--radius-sm) !important; }
.rounded        { border-radius: var(--radius) !important; }
.rounded-md     { border-radius: var(--radius-md) !important; }
.rounded-lg     { border-radius: var(--radius-lg) !important; }
.rounded-pill   { border-radius: var(--radius-pill) !important; }
.rounded-circle { border-radius: var(--radius-circle) !important; }

/* ---- 5.8 Shadow ---- */
.shadow-none { box-shadow: none !important; }
.shadow-sm   { box-shadow: var(--shadow-sm) !important; }
.shadow      { box-shadow: var(--shadow) !important; }
.shadow-md   { box-shadow: var(--shadow-md) !important; }
.shadow-lg   { box-shadow: var(--shadow-lg) !important; }

/* ---- 5.9 Sizing ---- */
.w-25  { width: 25% !important; }
.w-50  { width: 50% !important; }
.w-75  { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto{ width: auto !important; }
.h-25  { height: 25% !important; }
.h-50  { height: 50% !important; }
.h-75  { height: 75% !important; }
.h-100 { height: 100% !important; }
.h-auto{ height: auto !important; }
.mw-100 { max-width: 100% !important; }
.mh-100 { max-height: 100% !important; }
.min-vh-100 { min-height: 100vh !important; }

/* ---- 5.10 Posisi & overflow ---- */
.position-static   { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed    { position: fixed !important; }
.position-sticky   { position: sticky !important; }

.top-0    { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0  { left: 0 !important; }
.end-0    { right: 0 !important; }
.top-50   { top: 50% !important; }
.start-50 { left: 50% !important; }

.translate-middle {
  transform: translate(-50%, -50%) !important;
}

.overflow-auto   { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-visible{ overflow: visible !important; }
.overflow-scroll { overflow: scroll !important; }

.z-0 { z-index: 0 !important; }
.z-1 { z-index: 1 !important; }
.z-2 { z-index: 2 !important; }
.z-3 { z-index: 3 !important; }

/* ---- 5.11 Visually hidden ---- */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---- 5.12 Responsive: display ---- */
@media (min-width: 576px) {
  .d-sm-none { display: none !important; }
  .d-sm-block { display: block !important; }
  .d-sm-flex { display: flex !important; }
  .d-sm-inline { display: inline !important; }
  .d-sm-inline-block { display: inline-block !important; }
}
@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-flex { display: flex !important; }
  .d-md-inline { display: inline !important; }
  .d-md-inline-block { display: inline-block !important; }
}
@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
  .d-lg-inline { display: inline !important; }
  .d-lg-inline-block { display: inline-block !important; }
}
@media (min-width: 1200px) {
  .d-xl-none { display: none !important; }
  .d-xl-block { display: block !important; }
  .d-xl-flex { display: flex !important; }
  .d-xl-inline { display: inline !important; }
  .d-xl-inline-block { display: inline-block !important; }
}

/* ---- 5.13 Responsive: spacing (md & lg) ---- */
@media (min-width: 768px) {
  .m-md-0 { margin: 0 !important; }
  .m-md-1 { margin: .25rem !important; }
  .m-md-2 { margin: .5rem !important; }
  .m-md-3 { margin: .75rem !important; }
  .m-md-4 { margin: 1rem !important; }
  .m-md-5 { margin: 1.5rem !important; }
  .m-md-auto { margin: auto !important; }

  .mt-md-0 { margin-top: 0 !important; }
  .mt-md-1 { margin-top: .25rem !important; }
  .mt-md-2 { margin-top: .5rem !important; }
  .mt-md-3 { margin-top: .75rem !important; }
  .mt-md-4 { margin-top: 1rem !important; }
  .mt-md-5 { margin-top: 1.5rem !important; }
  .mt-md-auto { margin-top: auto !important; }

  .mb-md-0 { margin-bottom: 0 !important; }
  .mb-md-1 { margin-bottom: .25rem !important; }
  .mb-md-2 { margin-bottom: .5rem !important; }
  .mb-md-3 { margin-bottom: .75rem !important; }
  .mb-md-4 { margin-bottom: 1rem !important; }
  .mb-md-5 { margin-bottom: 1.5rem !important; }
  .mb-md-auto { margin-bottom: auto !important; }

  .ms-md-0 { margin-left: 0 !important; }
  .ms-md-1 { margin-left: .25rem !important; }
  .ms-md-2 { margin-left: .5rem !important; }
  .ms-md-3 { margin-left: .75rem !important; }
  .ms-md-4 { margin-left: 1rem !important; }
  .ms-md-5 { margin-left: 1.5rem !important; }
  .ms-md-auto { margin-left: auto !important; }

  .me-md-0 { margin-right: 0 !important; }
  .me-md-1 { margin-right: .25rem !important; }
  .me-md-2 { margin-right: .5rem !important; }
  .me-md-3 { margin-right: .75rem !important; }
  .me-md-4 { margin-right: 1rem !important; }
  .me-md-5 { margin-right: 1.5rem !important; }
  .me-md-auto { margin-right: auto !important; }

  .p-md-0 { padding: 0 !important; }
  .p-md-1 { padding: .25rem !important; }
  .p-md-2 { padding: .5rem !important; }
  .p-md-3 { padding: .75rem !important; }
  .p-md-4 { padding: 1rem !important; }
  .p-md-5 { padding: 1.5rem !important; }

  .pt-md-0 { padding-top: 0 !important; }
  .pt-md-1 { padding-top: .25rem !important; }
  .pt-md-2 { padding-top: .5rem !important; }
  .pt-md-3 { padding-top: .75rem !important; }
  .pt-md-4 { padding-top: 1rem !important; }
  .pt-md-5 { padding-top: 1.5rem !important; }

  .pb-md-0 { padding-bottom: 0 !important; }
  .pb-md-1 { padding-bottom: .25rem !important; }
  .pb-md-2 { padding-bottom: .5rem !important; }
  .pb-md-3 { padding-bottom: .75rem !important; }
  .pb-md-4 { padding-bottom: 1rem !important; }
  .pb-md-5 { padding-bottom: 1.5rem !important; }

  .ps-md-0 { padding-left: 0 !important; }
  .ps-md-1 { padding-left: .25rem !important; }
  .ps-md-2 { padding-left: .5rem !important; }
  .ps-md-3 { padding-left: .75rem !important; }
  .ps-md-4 { padding-left: 1rem !important; }
  .ps-md-5 { padding-left: 1.5rem !important; }

  .pe-md-0 { padding-right: 0 !important; }
  .pe-md-1 { padding-right: .25rem !important; }
  .pe-md-2 { padding-right: .5rem !important; }
  .pe-md-3 { padding-right: .75rem !important; }
  .pe-md-4 { padding-right: 1rem !important; }
  .pe-md-5 { padding-right: 1.5rem !important; }
}

@media (min-width: 992px) {
  .m-lg-0 { margin: 0 !important; }
  .m-lg-1 { margin: .25rem !important; }
  .m-lg-2 { margin: .5rem !important; }
  .m-lg-3 { margin: .75rem !important; }
  .m-lg-4 { margin: 1rem !important; }
  .m-lg-5 { margin: 1.5rem !important; }
  .m-lg-auto { margin: auto !important; }

  .mt-lg-0 { margin-top: 0 !important; }
  .mt-lg-1 { margin-top: .25rem !important; }
  .mt-lg-2 { margin-top: .5rem !important; }
  .mt-lg-3 { margin-top: .75rem !important; }
  .mt-lg-4 { margin-top: 1rem !important; }
  .mt-lg-5 { margin-top: 1.5rem !important; }
  .mt-lg-auto { margin-top: auto !important; }

  .mb-lg-0 { margin-bottom: 0 !important; }
  .mb-lg-1 { margin-bottom: .25rem !important; }
  .mb-lg-2 { margin-bottom: .5rem !important; }
  .mb-lg-3 { margin-bottom: .75rem !important; }
  .mb-lg-4 { margin-bottom: 1rem !important; }
  .mb-lg-5 { margin-bottom: 1.5rem !important; }
  .mb-lg-auto { margin-bottom: auto !important; }

  .p-lg-0 { padding: 0 !important; }
  .p-lg-1 { padding: .25rem !important; }
  .p-lg-2 { padding: .5rem !important; }
  .p-lg-3 { padding: .75rem !important; }
  .p-lg-4 { padding: 1rem !important; }
  .p-lg-5 { padding: 1.5rem !important; }

  .pt-lg-0 { padding-top: 0 !important; }
  .pt-lg-1 { padding-top: .25rem !important; }
  .pt-lg-2 { padding-top: .5rem !important; }
  .pt-lg-3 { padding-top: .75rem !important; }
  .pt-lg-4 { padding-top: 1rem !important; }
  .pt-lg-5 { padding-top: 1.5rem !important; }

  .pb-lg-0 { padding-bottom: 0 !important; }
  .pb-lg-1 { padding-bottom: .25rem !important; }
  .pb-lg-2 { padding-bottom: .5rem !important; }
  .pb-lg-3 { padding-bottom: .75rem !important; }
  .pb-lg-4 { padding-bottom: 1rem !important; }
  .pb-lg-5 { padding-bottom: 1.5rem !important; }
}

/* ---------------------------------------------------------
   6. KOMPONEN DASAR
   --------------------------------------------------------- */

/* ---- 6.1 Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .5rem 1rem;
  font-size: 1rem;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background-color: transparent;
  color: var(--c-body);
  transition: color var(--transition), background-color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
}
.btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 .25rem var(--c-focus);
}
.btn:disabled,
.btn.disabled {
  opacity: .65;
  pointer-events: none;
}

.btn-primary   { background-color: var(--c-primary);   border-color: var(--c-primary);   color: #fff; }
.btn-primary:hover   { background-color: var(--c-primary-hover);   border-color: var(--c-primary-hover);   color: #fff; }

.btn-secondary { background-color: var(--c-secondary); border-color: var(--c-secondary); color: #fff; }
.btn-secondary:hover { background-color: var(--c-secondary-hover); border-color: var(--c-secondary-hover); color: #fff; }

.btn-success   { background-color: var(--c-success);   border-color: var(--c-success);   color: #fff; }
.btn-success:hover   { background-color: var(--c-success-hover);   border-color: var(--c-success-hover);   color: #fff; }

.btn-info      { background-color: var(--c-info);      border-color: var(--c-info);      color: #000; }
.btn-info:hover      { background-color: var(--c-info-hover);      border-color: var(--c-info-hover);      color: #000; }

.btn-warning   { background-color: var(--c-warning);   border-color: var(--c-warning);   color: #000; }
.btn-warning:hover   { background-color: var(--c-warning-hover);   border-color: var(--c-warning-hover);   color: #000; }

.btn-danger    { background-color: var(--c-danger);    border-color: var(--c-danger);    color: #fff; }
.btn-danger:hover    { background-color: var(--c-danger-hover);    border-color: var(--c-danger-hover);    color: #fff; }

.btn-light     { background-color: var(--c-light);     border-color: var(--c-light);     color: #000; }
.btn-light:hover     { background-color: var(--c-gray-200);        border-color: var(--c-gray-200);        color: #000; }

.btn-dark      { background-color: var(--c-dark);      border-color: var(--c-dark);      color: #fff; }
.btn-dark:hover      { background-color: #1c1f23;                  border-color: #1c1f23;                  color: #fff; }

.btn-outline-primary   { color: var(--c-primary);   border-color: var(--c-primary); }
.btn-outline-primary:hover   { background-color: var(--c-primary);   color: #fff; }
.btn-outline-secondary { color: var(--c-secondary); border-color: var(--c-secondary); }
.btn-outline-secondary:hover { background-color: var(--c-secondary); color: #fff; }
.btn-outline-success   { color: var(--c-success);   border-color: var(--c-success); }
.btn-outline-success:hover   { background-color: var(--c-success);   color: #fff; }
.btn-outline-danger    { color: var(--c-danger);    border-color: var(--c-danger); }
.btn-outline-danger:hover    { background-color: var(--c-danger);    color: #fff; }
.btn-outline-dark      { color: var(--c-dark);      border-color: var(--c-dark); }
.btn-outline-dark:hover      { background-color: var(--c-dark);      color: #fff; }

.btn-sm { padding: .25rem .5rem; font-size: .875rem; border-radius: var(--radius-sm); }
.btn-lg { padding: .75rem 1.5rem; font-size: 1.125rem; border-radius: var(--radius-md); }
.btn-block { display: flex; width: 100%; }

/* ---- 6.2 Alert ---- */
.alert {
  position: relative;
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  border: 1px solid transparent;
  border-radius: var(--radius);
}
.alert-primary { color: #084298; background-color: #cfe2ff; border-color: #b6d4fe; }
.alert-success { color: #0f5132; background-color: #d1e7dd; border-color: #badbcc; }
.alert-info    { color: #055160; background-color: #cff4fc; border-color: #b6effb; }
.alert-warning { color: #664d03; background-color: #fff3cd; border-color: #ffecb5; }
.alert-danger  { color: #842029; background-color: #f8d7da; border-color: #f5c2c7; }
.alert-light   { color: #636464; background-color: #fefefe; border-color: #fdfdfe; }
.alert-dark    { color: #141619; background-color: #d3d3d4; border-color: #bcbebf; }

/* ---- 6.3 Badge ---- */
.badge {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75em;
  font-weight: var(--fw-bold);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--radius-sm);
}
.badge-primary { background-color: var(--c-primary);   color: #fff; }
.badge-secondary { background-color: var(--c-secondary); color: #fff; }
.badge-success { background-color: var(--c-success);   color: #fff; }
.badge-info    { background-color: var(--c-info);      color: #000; }
.badge-warning { background-color: var(--c-warning);   color: #000; }
.badge-danger  { background-color: var(--c-danger);    color: #fff; }
.badge-light   { background-color: var(--c-light);     color: #000; }
.badge-dark    { background-color: var(--c-dark);      color: #fff; }

/* ---- 6.4 Card ---- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--c-white);
  background-clip: border-box;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.card-body    { flex: 1 1 auto; padding: var(--sp-4); }
.card-title   { margin-bottom: var(--sp-2); font-size: 1.25rem; font-weight: var(--fw-semibold); }
.card-subtitle{ margin-top: calc(var(--sp-2) * -1); margin-bottom: var(--sp-2); color: var(--c-muted); }
.card-text:last-child { margin-bottom: 0; }
.card-header  { padding: var(--sp-3) var(--sp-4); background-color: var(--c-gray-100); border-bottom: 1px solid var(--c-border); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.card-footer  { padding: var(--sp-3) var(--sp-4); background-color: var(--c-gray-100); border-top: 1px solid var(--c-border); border-radius: 0 0 var(--radius-md) var(--radius-md); }

/* ---- 6.5 Form ---- */
.form-label {
  display: inline-block;
  margin-bottom: var(--sp-2);
  font-weight: var(--fw-medium);
}
.form-text {
  display: block;
  margin-top: var(--sp-1);
  font-size: .875rem;
  color: var(--c-muted);
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: .5rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-body);
  background-color: var(--c-white);
  background-clip: padding-box;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus,
.form-select:focus {
  outline: 0;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 .25rem var(--c-focus);
}
.form-control::placeholder { color: var(--c-gray-500); opacity: 1; }
.form-control:disabled,
.form-select:disabled {
  background-color: var(--c-gray-200);
  opacity: 1;
}
textarea.form-control { min-height: calc(1.5em + 1rem + 2px); }

.form-select {
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px 12px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 1.5rem;
  margin-bottom: var(--sp-2);
}
.form-check-input {
  width: 1rem;
  height: 1rem;
  margin-top: 0;
  accent-color: var(--c-primary);
  cursor: pointer;
  flex-shrink: 0;
}
.form-check-label { cursor: pointer; }

/* ---- 6.6 Table ---- */
.table {
  width: 100%;
  margin-bottom: var(--sp-4);
  color: var(--c-body);
  vertical-align: top;
  border-color: var(--c-border);
}
.table > thead {
  vertical-align: bottom;
  border-bottom: 2px solid var(--c-border);
}
.table > tbody > tr + tr > td,
.table > tbody > tr + tr > th {
  border-top: 1px solid var(--c-border);
}
.table th,
.table td {
  padding: var(--sp-2) var(--sp-3);
  text-align: left;
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: var(--c-gray-100);
}
.table-hover > tbody > tr:hover > * {
  background-color: var(--c-gray-200);
}

/* =========================================================
   BAGIAN 2 — DARK MODE + KOMPONEN LANJUTAN
   ========================================================= */

/* ---------------------------------------------------------
   7. DARK MODE
   --------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-body:          #e9ecef;
    --c-body-bg:       #121212;
    --c-muted:         #adb5bd;
    --c-border:        #2b2f33;
    --c-border-strong: #3a4046;

    --c-gray-100:      #1e1e1e;
    --c-gray-200:      #262626;
    --c-gray-300:      #2f2f2f;
    --c-gray-400:      #3a3a3a;
    --c-gray-500:      #6c757d;
    --c-gray-600:      #adb5bd;
    --c-gray-700:      #ced4da;
    --c-gray-800:      #dee2e6;
    --c-gray-900:      #f8f9fa;

    --c-light:         #1e1e1e;
    --c-dark:          #f8f9fa;

    --c-link:          #6ea8fe;
    --c-link-hover:    #9ec5fe;
    --c-focus:         rgba(110, 168, 254, 0.35);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow:    0 1px 3px rgba(0, 0, 0, .6), 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .6), 0 2px 4px -2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .7), 0 4px 6px -4px rgba(0, 0, 0, .5);
  }
}

[data-theme="dark"] {
  --c-body:          #e9ecef;
  --c-body-bg:       #121212;
  --c-muted:         #adb5bd;
  --c-border:        #2b2f33;
  --c-border-strong: #3a4046;
  --c-gray-100:      #1e1e1e;
  --c-gray-200:      #262626;
  --c-gray-300:      #2f2f2f;
  --c-gray-400:      #3a3a3a;
  --c-gray-500:      #6c757d;
  --c-gray-600:      #adb5bd;
  --c-gray-700:      #ced4da;
  --c-gray-800:      #dee2e6;
  --c-gray-900:      #f8f9fa;
  --c-light:         #1e1e1e;
  --c-dark:          #f8f9fa;
  --c-link:          #6ea8fe;
  --c-link-hover:    #9ec5fe;
  --c-focus:         rgba(110, 168, 254, 0.35);
}
[data-theme="dark"] body,
body:has([data-theme="dark"]) {
  color-scheme: dark;
}
[data-theme="light"] {
  color-scheme: light;
}

/* ---------------------------------------------------------
   8. NAVBAR
   --------------------------------------------------------- */
.navbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background-color: var(--c-white);
  border-bottom: 1px solid var(--c-border);
}

/* FIX: dark mode navbar dipisah jadi dua blok terpisah */
[data-theme="dark"] .navbar {
  background-color: var(--c-gray-200);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .navbar {
    background-color: var(--c-gray-200);
  }
}

.navbar-fluid { width: 100%; }

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--c-body);
  text-decoration: none;
  white-space: nowrap;
}
.navbar-brand:hover { color: var(--c-body); }

.navbar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding-left: 0;
  margin: 0;
  list-style: none;
}
.navbar-nav .nav-link {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  color: var(--c-gray-700);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color var(--transition), color var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible {
  background-color: var(--c-gray-100);
  color: var(--c-body);
}
.navbar-nav .nav-link.active {
  color: var(--c-primary);
  font-weight: var(--fw-semibold);
}
.navbar-nav .nav-link.disabled {
  color: var(--c-gray-500);
  pointer-events: none;
}

.navbar-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--c-body);
  cursor: pointer;
}
.navbar-toggler:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 .25rem var(--c-focus);
}

.navbar-collapse { display: none; flex-basis: 100%; flex-grow: 1; }
.navbar-collapse.show { display: block; }

@media (min-width: 768px) {
  .navbar { flex-wrap: nowrap; }
  .navbar-toggler { display: none; }
  .navbar-collapse { display: flex !important; flex-basis: auto; flex-grow: 1; }
  .navbar-nav { flex-direction: row; align-items: center; }
  .navbar-nav.ms-auto { margin-left: auto; }
}

/* ---------------------------------------------------------
   9. DROPDOWN (CSS-only via :focus-within)
   --------------------------------------------------------- */
.dropdown { position: relative; display: inline-block; }

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background-color: var(--c-white);
  color: var(--c-body);
  cursor: pointer;
  font: inherit;
  transition: background-color var(--transition), border-color var(--transition);
}
.dropdown-toggle:hover { background-color: var(--c-gray-100); }
.dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: .4em; height: .4em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--sp-1));
  left: 0;
  z-index: var(--z-dropdown);
  display: none;
  min-width: 10rem;
  padding: var(--sp-1) 0;
  margin: 0;
  list-style: none;
  background-color: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.dropdown-menu.show,
.dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-menu-end { left: auto; right: 0; }
.dropdown-item {
  display: block;
  width: 100%;
  padding: var(--sp-2) var(--sp-4);
  color: var(--c-gray-800);
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.dropdown-item:hover,
.dropdown-item:focus-visible {
  background-color: var(--c-gray-100);
  color: var(--c-body);
}
.dropdown-item.active { background-color: var(--c-primary); color: #fff; }
.dropdown-item.disabled { color: var(--c-gray-500); pointer-events: none; }
.dropdown-divider {
  height: 0;
  margin: var(--sp-1) 0;
  border-top: 1px solid var(--c-border);
}

/* ---------------------------------------------------------
   10. MODAL (menggunakan <dialog> native)
   --------------------------------------------------------- */
dialog.modal {
  display: none;
  width: min(500px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background-color: var(--c-white);
  color: var(--c-body);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
dialog.modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-in .2s ease-out;
}
dialog.modal::backdrop {
  background-color: rgba(0, 0, 0, .5);
  backdrop-filter: blur(2px);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}
.modal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
}
.modal-body {
  padding: var(--sp-4);
  overflow-y: auto;
  flex: 1 1 auto;
}
.modal-footer {
  display: flex;
  gap: var(--sp-2);
  justify-content: flex-end;
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--c-border);
}
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--c-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background-color: var(--c-gray-100); color: var(--c-body); }

/* ---------------------------------------------------------
   11. TABS (CSS-only via radio)
   --------------------------------------------------------- */
.tabs { display: flex; flex-direction: column; }

.tabs > input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--sp-4);
}
.tabs-nav > label {
  padding: var(--sp-2) var(--sp-4);
  color: var(--c-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: var(--fw-medium);
  transition: color var(--transition), border-color var(--transition);
}
.tabs-nav > label:hover { color: var(--c-body); }

.tabs-panel { display: none; }

.tabs > input:nth-of-type(1):checked ~ .tabs-nav > label:nth-of-type(1),
.tabs > input:nth-of-type(2):checked ~ .tabs-nav > label:nth-of-type(2),
.tabs > input:nth-of-type(3):checked ~ .tabs-nav > label:nth-of-type(3),
.tabs > input:nth-of-type(4):checked ~ .tabs-nav > label:nth-of-type(4),
.tabs > input:nth-of-type(5):checked ~ .tabs-nav > label:nth-of-type(5) {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}

.tabs > input:nth-of-type(1):checked ~ .tabs-body > .tabs-panel:nth-child(1),
.tabs > input:nth-of-type(2):checked ~ .tabs-body > .tabs-panel:nth-child(2),
.tabs > input:nth-of-type(3):checked ~ .tabs-body > .tabs-panel:nth-child(3),
.tabs > input:nth-of-type(4):checked ~ .tabs-body > .tabs-panel:nth-child(4),
.tabs > input:nth-of-type(5):checked ~ .tabs-body > .tabs-panel:nth-child(5) {
  display: block;
}

/* ---------------------------------------------------------
   12. ACCORDION (native <details>)
   --------------------------------------------------------- */
.accordion {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.accordion-item + .accordion-item {
  border-top: 1px solid var(--c-border);
}
.accordion-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  background-color: var(--c-white);
  color: var(--c-body);
  font-weight: var(--fw-medium);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.accordion-item > summary::-webkit-details-marker { display: none; }
.accordion-item > summary::after {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
  color: var(--c-muted);
  transition: transform var(--transition);
}
.accordion-item[open] > summary::after { transform: rotate(45deg); }
.accordion-item > summary:hover { background-color: var(--c-gray-100); }
.accordion-body {
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--c-border);
  background-color: var(--c-white);
}

/* ---------------------------------------------------------
   13. TOAST
   --------------------------------------------------------- */
.toast-container {
  position: fixed;
  z-index: var(--z-tooltip);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}
.toast-container.top-end    { top: 1rem;    right: 1rem; }
.toast-container.top-start  { top: 1rem;    left: 1rem; }
.toast-container.bottom-end { bottom: 1rem; right: 1rem; }
.toast-container.bottom-start{ bottom: 1rem; left: 1rem; }

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  min-width: 260px;
  max-width: 380px;
  padding: var(--sp-3);
  background-color: var(--c-white);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: toast-in .25s ease-out;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast.success { border-left-color: var(--c-success); }
.toast.danger  { border-left-color: var(--c-danger); }
.toast.warning { border-left-color: var(--c-warning); }
.toast.info    { border-left-color: var(--c-info); }

.toast-body { flex: 1; font-size: .95rem; }
.toast-close {
  background: none;
  border: 0;
  padding: 0;
  color: var(--c-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------------------------------------------------------
   14. PAGINATION
   --------------------------------------------------------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  padding-left: 0;
  margin: var(--sp-4) 0;
  list-style: none;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 var(--sp-2);
  color: var(--c-primary);
  text-decoration: none;
  background-color: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: .95rem;
  transition: background-color var(--transition), color var(--transition);
}
.page-link:hover { background-color: var(--c-gray-100); }
.page-link.active {
  background-color: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.page-link.disabled { color: var(--c-gray-500); pointer-events: none; }

/* ---------------------------------------------------------
   15. PROGRESS
   --------------------------------------------------------- */
.progress {
  display: flex;
  height: .75rem;
  overflow: hidden;
  background-color: var(--c-gray-200);
  border-radius: var(--radius-pill);
}
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--c-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: var(--fw-semibold);
  transition: width var(--transition);
}
.progress-bar.success { background-color: var(--c-success); }
.progress-bar.warning { background-color: var(--c-warning); color: #000; }
.progress-bar.danger  { background-color: var(--c-danger); }
.progress-bar.striped {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, .2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, .2) 50%,
    rgba(255, 255, 255, .2) 75%,
    transparent 75%
  );
  background-size: 1rem 1rem;
}
.progress-bar.animated {
  animation: progress-stripes 1s linear infinite;
}
@keyframes progress-stripes {
  from { background-position: 1rem 0; }
  to   { background-position: 0 0; }
}

/* ---------------------------------------------------------
   16. SPINNER
   --------------------------------------------------------- */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: .25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-rotate .75s linear infinite;
}
.spinner-border-sm { width: 1rem; height: 1rem; border-width: .18em; }
@keyframes spinner-rotate { to { transform: rotate(360deg); } }

.spinner-grow {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: currentColor;
  animation: spinner-grow .9s ease-in-out infinite;
}
@keyframes spinner-grow {
  0%   { transform: scale(0); opacity: 1; }
  50%  { transform: scale(1); opacity: .3; }
  100% { transform: scale(0); opacity: 1; }
}

/* ---------------------------------------------------------
   17. TOOLTIP (CSS-only via data-tooltip)
   --------------------------------------------------------- */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::before,
[data-tooltip]::after {
  position: absolute;
  z-index: var(--z-tooltip);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
[data-tooltip]::before {
  content: attr(data-tooltip);
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: var(--sp-1) var(--sp-2);
  background-color: var(--c-dark);
  color: var(--c-light);
  font-size: .75rem;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}
[data-tooltip]::after {
  content: "";
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, 4px) rotate(45deg);
  width: .5rem;
  height: .5rem;
  margin-bottom: 1px;
  background-color: var(--c-dark);
}
[data-tooltip]:hover::before,
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::before,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) rotate(0);
}
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  transform: translate(-50%, 0) rotate(45deg);
}

/* ---------------------------------------------------------
   18. OFFCANVAS (CSS-only via checkbox)
   --------------------------------------------------------- */
.offcanvas-toggle { display: none; }

.offcanvas {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  width: min(320px, 80vw);
  background-color: var(--c-white);
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform .25s ease-in-out;
  overflow-y: auto;
}
.offcanvas-start { left: 0; transform: translateX(-100%); }
.offcanvas-end   { right: 0; transform: translateX(100%); }

.offcanvas-toggle:checked ~ .offcanvas-start,
.offcanvas-toggle:checked ~ .offcanvas-end {
  transform: translateX(0);
}
.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) - 1);
  background-color: rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.offcanvas-toggle:checked ~ .offcanvas-backdrop {
  opacity: 1;
  visibility: visible;
}

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}
.offcanvas-title { margin: 0; font-size: 1.125rem; font-weight: var(--fw-semibold); }
.offcanvas-body  { flex: 1; padding: var(--sp-4); overflow-y: auto; }