/* Wisuda UDINUS — tema utama (menggantikan AdminLTE).
   Dibangun di atas Bootstrap 4.6 (grid, collapse, dropdown, tab, custom-file). */

:root {
  --navy-900: #0b2350;
  --navy-800: #12306b;
  --blue-600: #1f4fa3;
  --blue-500: #2a62c4;
  --blue-50: #e9f0fb;
  --gold-400: #f4b731;
  --gold-300: #f8cd6a;
  --gold-50: #fff6dc;
  --paper: #f4f6fa;
  --surface: #ffffff;
  --line: #dde3ee;
  --line-strong: #c4cddd;
  --ink: #172033;
  --muted: #5a6478;
  --success: #17784f;
  --success-bg: #e5f4ec;
  --danger: #b3372a;
  --danger-bg: #fbeae7;
  --warn: #7a5200;
  --warn-bg: #fff4d6;

  --radius-lg: 14px;
  --radius: 10px;
  --radius-sm: 6px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Dasar ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-main { flex: 1 0 auto; }
a { color: var(--blue-600); }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.num, .table td, .va-number { font-variant-numeric: tabular-nums; }
::selection { background: var(--gold-300); color: var(--navy-900); }

:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.btn:focus, .form-control:focus, .custom-file-input:focus ~ .custom-file-label {
  box-shadow: 0 0 0 3px rgba(42, 98, 196, .3);
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 2000;
  background: var(--gold-400); color: var(--navy-900); padding: .5rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1030;
}
.site-header .navbar { padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; }
.brand-text span { font-size: .78rem; color: var(--muted); }

.site-nav .nav-link {
  color: var(--ink); font-weight: 500; padding: .5rem .85rem !important;
  border-radius: var(--radius-sm);
}
.site-nav .nav-link:hover, .site-nav .show > .nav-link { background: var(--paper); color: var(--navy-900); }
.site-nav .nav-link.is-current { color: var(--blue-600); font-weight: 600; }
.site-nav .dropdown-menu {
  border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem;
  box-shadow: 0 12px 32px rgba(11, 35, 80, .12); min-width: 17rem;
}
.site-nav .dropdown-item { border-radius: var(--radius-sm); padding: .5rem .75rem; font-size: .95rem; white-space: normal; }
.site-nav .dropdown-item:hover { background: var(--blue-50); color: var(--navy-900); }
.site-nav .dropdown-header { font-size: .8rem; color: var(--muted); padding: .5rem .75rem .25rem; }
.site-nav .dropdown-divider { border-color: var(--line); }
.navbar-toggler { border: 1px solid var(--line); padding: .45rem .6rem; color: var(--ink); }
.user-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  font-variant-numeric: tabular-nums;
}
.user-chip .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); color: var(--gold-400);
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem;
}
@media (max-width: 991.98px) {
  .site-nav { padding: .75rem 0 .5rem; border-top: 1px solid var(--line); margin-top: .6rem; }
  .site-nav .dropdown-menu { box-shadow: none; border: 0; padding-left: .75rem; }
  .site-nav .btn { margin-top: .5rem; }
}

/* ---------- Tombol ---------- */
.btn { font-weight: 600; border-radius: var(--radius-sm); padding: .55rem 1.1rem; }
.btn-lg { padding: .75rem 1.4rem; font-size: 1.02rem; }
.btn-sm { padding: .3rem .7rem; }
.btn-primary { background: var(--blue-600); border-color: var(--blue-600); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active {
  background: var(--navy-800); border-color: var(--navy-800);
}
.btn-gold { background: var(--gold-400); border-color: var(--gold-400); color: var(--navy-900); }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-300); border-color: var(--gold-300); color: var(--navy-900); }
.btn-success { background: var(--success); border-color: var(--success); }
.btn-success:hover { background: #0f5e3c; border-color: #0f5e3c; }
.btn-outline { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-wa { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.btn-wa:hover { background: #17793f; color: #fff; }

/* ---------- Hero beranda ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--navy-900);
}
.hero-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  opacity: .35; mix-blend-mode: luminosity;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy-900) 30%, rgba(11, 35, 80, .55) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 3.5rem; padding-bottom: 4.5rem; }
.hero-kicker { color: var(--gold-300); font-weight: 600; margin-bottom: .5rem; }
.hero-title {
  color: #fff; font-weight: 800; line-height: 1;
  font-size: clamp(2.6rem, 7vw, 4.75rem); letter-spacing: -0.03em; margin-bottom: 1.25rem;
}
.hero-date { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 600; margin-bottom: .25rem; }
.hero-place { color: rgba(255, 255, 255, .78); margin-bottom: 1.75rem; }
.hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem 2rem; max-width: 40rem; }
.hero-fact { border-left: 3px solid var(--gold-400); padding-left: .85rem; }
.hero-fact dt { font-weight: 500; font-size: .85rem; color: rgba(255, 255, 255, .7); }
.hero-fact dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Tali rumbai: penanda khas wisuda di tepi kanan hero */
.tassel {
  position: absolute; top: 0; right: 7%; width: 2px; height: 120px;
  background: var(--gold-400); z-index: 1;
}
.tassel::after {
  content: ""; position: absolute; left: -7px; bottom: -34px; width: 16px; height: 36px;
  background: repeating-linear-gradient(90deg, var(--gold-400) 0 2px, var(--gold-300) 2px 4px);
  border-radius: 3px 3px 8px 8px;
}
@media (max-width: 991.98px) { .tassel { display: none; } }

.entry-card {
  background: var(--surface); color: var(--ink); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: 0 24px 60px rgba(4, 16, 42, .35);
}
.entry-card h2 { font-size: 1.35rem; margin-bottom: .25rem; }
.entry-card .lead-sm { color: var(--muted); margin-bottom: 1.25rem; }
.status-line {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem;
  padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1rem;
}
.status-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-open { background: var(--success-bg); color: var(--success); }
.status-closed { background: var(--danger-bg); color: var(--danger); }
@media (max-width: 991.98px) {
  .hero .container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .entry-card { margin-top: 2rem; }
}

/* ---------- Form ---------- */
label, .field-label { font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: .35rem; }
.form-control {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  min-height: calc(1.5em + 1rem + 2px); padding: .5rem .8rem; color: var(--ink);
}
textarea.form-control { min-height: 6rem; }
.form-control:focus { border-color: var(--blue-500); }
.form-control[readonly] { background: var(--paper); color: var(--muted); }
.form-control::placeholder { color: #8a93a6; }
.field { margin-bottom: 1.15rem; }
.field-help { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.field-help small { color: inherit !important; background: none !important; font-size: inherit !important; }
.field-errors { list-style: none; padding: 0; margin: .35rem 0 0; color: var(--danger); font-size: .88rem; font-weight: 500; }
.field.has-error .form-control { border-color: var(--danger); }
.input-icon { position: relative; }
.input-icon .fas { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .form-control { padding-left: 2.4rem; }

.fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
.fieldset legend {
  font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; float: left; width: 100%;
}
.fieldset legend + * { clear: both; }
.fieldset .fieldset-note { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.fieldset + .fieldset { border-top: 1px solid var(--line); padding-top: 1.75rem; }

.check-confirm {
  display: flex; gap: .75rem; align-items: flex-start; padding: 1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 500; cursor: pointer;
}
.check-confirm input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--blue-600); flex: none; }

.custom-file-label { border-color: var(--line-strong); border-radius: var(--radius-sm); }
.custom-file-label::after { content: "Pilih berkas"; font-weight: 600; }
.custom-file-input:lang(en) ~ .custom-file-label::after { content: "Pilih berkas"; }

/* ---------- Panel & halaman ---------- */
.page { padding-top: 2rem; padding-bottom: 3.5rem; }
.page-head { margin-bottom: 1.75rem; }
.page-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 800; margin-bottom: .35rem; }
.page-head p { color: var(--muted); max-width: 46rem; margin: 0; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.panel + .panel { margin-top: 1.25rem; }
.panel-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .25rem; }
.panel-sub { color: var(--muted); margin-bottom: 1.25rem; }
.panel-foot {
  margin: 1.5rem -1.5rem -1.5rem; padding: 1rem 1.5rem; border-top: 1px solid var(--line);
  background: var(--paper); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: center;
}
@media (min-width: 768px) {
  .panel { padding: 2rem; }
  .panel-foot { margin: 2rem -2rem -2rem; padding: 1.1rem 2rem; }
}

.prose { max-width: 46rem; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .55rem .5rem; vertical-align: top; text-align: left; }
.prose h1, .prose h2, .prose h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .3rem; }
.prose-wide { max-width: none; overflow-x: auto; }

/* ---------- Notice / alert ---------- */
.notice {
  display: flex; gap: .85rem; align-items: flex-start;
  border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1.25rem;
  background: var(--blue-50); color: var(--navy-900); border: 1px solid #cddbf3;
}
.notice > .fas { margin-top: .25rem; flex: none; }
.notice p { margin: 0; }
.notice p + p { margin-top: .35rem; }
.notice a { font-weight: 600; }
.notice-warn { background: var(--warn-bg); color: var(--warn); border-color: #f2dc9c; }
.notice-success { background: var(--success-bg); color: var(--success); border-color: #bfe3cf; }
.notice-danger { background: var(--danger-bg); color: var(--danger); border-color: #f1c4bd; }
.notice-warn a, .notice-success a, .notice-danger a { color: inherit; text-decoration: underline; }
.messages .error { color: inherit; }

/* ---------- Langkah pendaftaran ---------- */
.reg-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 992px) {
  .reg-layout { grid-template-columns: 17.5rem minmax(0, 1fr); gap: 2rem; align-items: start; }
  .steps-wrap { position: sticky; top: 6rem; }
}
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { position: relative; padding-left: 3rem; padding-bottom: 1.1rem; }
.step::before {
  /* garis penghubung antar langkah */
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line);
}
.step:last-child::before { display: none; }
.step-marker {
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--line-strong); background: var(--surface);
  font-weight: 700; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
.step-link { display: block; color: var(--ink); font-weight: 600; padding-top: .2rem; }
.step-link:hover { color: var(--blue-600); text-decoration: none; }
.step-desc { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; line-height: 1.4; margin-top: .1rem; }
.step.is-active .step-marker { background: var(--navy-900); border-color: var(--navy-900); color: var(--gold-400); }
.step.is-active .step-link { color: var(--navy-900); }
.step.is-active::after {
  /* rumbai emas penanda langkah aktif */
  content: ""; position: absolute; left: -10px; top: 6px; width: 4px; height: 20px; border-radius: 2px; background: var(--gold-400);
}
.step.is-done .step-marker { background: var(--success); border-color: var(--success); color: #fff; }
.step.is-waiting .step-desc { color: var(--warn); }
.steps-extra { list-style: none; padding: 1rem 0 0; margin: .25rem 0 0; border-top: 1px solid var(--line); }
.steps-extra li + li { margin-top: .4rem; }
.steps-extra a { font-size: .92rem; font-weight: 500; }
.steps-extra .fas { width: 1.1rem; color: var(--muted); }

@media (max-width: 991.98px) {
  .steps-wrap.panel { padding: 1rem; }
  .steps { display: flex; overflow-x: auto; gap: .5rem; padding-bottom: .25rem; scroll-snap-type: x mandatory; }
  .step { padding: 0; flex: none; scroll-snap-align: start; }
  .step::before, .step::after { display: none; }
  .step-marker { position: static; width: 24px; height: 24px; font-size: .75rem; border-width: 2px; }
  .step-link {
    display: flex; align-items: center; gap: .5rem; padding: .45rem .8rem .45rem .45rem;
    border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; white-space: nowrap;
  }
  .step.is-active .step-link { border-color: var(--navy-900); background: var(--blue-50); }
  .step-desc { display: none; }
  .steps-extra { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding-top: .75rem; }
  .steps-extra li + li { margin-top: 0; }
}

/* ---------- Upload berkas ---------- */
.upload-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .upload-grid { grid-template-columns: 1fr 1fr; } }
.upload-tile { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 1rem; background: var(--paper); }
.upload-tile.is-filled { border-style: solid; border-color: #bfe3cf; background: #f6fbf8; }
.upload-tile .file-current { font-size: .86rem; margin-top: .5rem; display: flex; gap: .4rem; align-items: center; word-break: break-all; }
.upload-tile .file-current .fas { color: var(--success); }

/* ---------- Ringkasan data / slip ---------- */
.data-list { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: .6rem 1.5rem; margin: 0 0 1.5rem; }
.data-list dt { font-weight: 500; color: var(--muted); }
.data-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-word; }
@media (max-width: 575.98px) {
  .data-list { grid-template-columns: 1fr; gap: .1rem; }
  .data-list dd { margin-bottom: .6rem; }
}
.pay-slip { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.pay-total { background: var(--navy-900); color: #fff; padding: 1.1rem 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem; }
.pay-total span { color: rgba(255, 255, 255, .75); }
.pay-total strong { font-size: 1.6rem; font-weight: 800; color: var(--gold-400); font-variant-numeric: tabular-nums; }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .9rem 1.25rem; border-top: 1px solid var(--line); }
.pay-row:first-of-type { border-top: 0; }
.pay-row .pay-label { color: var(--muted); font-size: .92rem; }
.va-number { font-size: 1.15rem; font-weight: 700; letter-spacing: .03em; }
.copy-btn { margin-left: .5rem; }

.contact-box { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--paper); border-radius: var(--radius); }
.contact-box p { margin: 0; }

/* ---------- Ordered guide ---------- */
.guide { list-style: none; padding: 0; margin: 0; counter-reset: guide; }
.guide li { counter-increment: guide; position: relative; padding: 0 0 1.25rem 2.75rem; }
.guide li::before {
  content: counter(guide); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--blue-50); color: var(--navy-900); font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Tabel & tab ---------- */
.table { color: var(--ink); margin-bottom: 0; }
.table thead th, .table thead td {
  border-top: 0; border-bottom: 1px solid var(--line-strong); font-weight: 600; font-size: .88rem; color: var(--muted);
  background: var(--paper); white-space: nowrap;
}
.table td, .table th { border-top: 1px solid var(--line); padding: .7rem .85rem; vertical-align: middle; }
.table-hover tbody tr:hover { background: #f8fafd; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap .table { min-width: 32rem; }
.thumb { width: 56px; height: 76px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); background: var(--paper); }

.tabs-scroll { overflow-x: auto; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.tabs-scroll .nav { flex-wrap: nowrap; }
.tabs-scroll .nav-link {
  white-space: nowrap; color: var(--muted); font-weight: 600; border: 0; border-bottom: 3px solid transparent;
  border-radius: 0; padding: .7rem 1rem;
}
.tabs-scroll .nav-link:hover { color: var(--ink); }
.tabs-scroll .nav-link.active { color: var(--navy-900); border-bottom-color: var(--gold-400); background: none; }
.tabs-scroll .count { font-weight: 500; color: var(--muted); margin-left: .25rem; font-variant-numeric: tabular-nums; }

/* DataTables */
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .4rem .7rem; margin-left: .5rem; min-height: 38px;
}
.dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info { color: var(--muted); font-size: .9rem; }
.dataTables_wrapper .dataTables_filter label { display: inline-flex; align-items: center; font-weight: 500; color: var(--muted); }
.dataTables_wrapper .row:first-child { margin-bottom: .75rem; }
.dataTables_wrapper .row:last-child { margin-top: .75rem; }
.page-item.active .page-link { background: var(--navy-900); border-color: var(--navy-900); }
.page-link { color: var(--blue-600); }
table.dataTable { border-collapse: collapse !important; }
@media (max-width: 575.98px) {
  .dataTables_wrapper .dataTables_filter { text-align: left; }
  .dataTables_wrapper .dataTables_filter input { width: 100%; margin: .35rem 0 0; }
  .dataTables_wrapper .dataTables_filter label { display: block; width: 100%; }
}

/* ---------- Kartu tautan informasi ---------- */
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list a {
  display: flex; align-items: center; gap: .85rem; padding: .8rem .25rem; color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.link-list li:last-child a { border-bottom: 0; }
.link-list a:hover { color: var(--blue-600); text-decoration: none; }
.link-list .fas { width: 1.25rem; text-align: center; color: var(--blue-600); }
.link-list .ext { margin-left: auto; color: var(--muted); font-size: .8rem; }

/* ---------- Status pill ---------- */
.pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.pill-success { background: var(--success-bg); color: var(--success); }

/* ---------- Kosong ---------- */
.empty { text-align: center; padding: 3rem 1rem; }
.empty .fas { font-size: 2rem; color: var(--line-strong); margin-bottom: 1rem; }
.empty h2 { font-size: 1.25rem; }
.empty p { color: var(--muted); max-width: 30rem; margin: 0 auto 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .78); padding: 2.75rem 0 1.5rem; font-size: .93rem; flex-shrink: 0; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .35rem; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text span { color: rgba(255, 255, 255, .7); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; }

/* ---------- Cetak ---------- */
@media print {
  .site-header, .site-footer, .steps-wrap, .btn { display: none !important; }
  body { background: #fff; }
  .panel { border: 0; padding: 0; }
}
