/* IRINE — stylesheet bersama (tokens, nav, footer, form) */
:root {
  --bg: #faf5f0;
  --surface: #ffffff;
  --ink: #35292f;
  --ink-soft: #6b5a62;
  --ink-faint: #9a8a90;
  --rose: #c58197;
  --rose-deep: #a85f78;
  --rose-soft: #f4e2e8;
  --gold: #bd9860;
  --line: #ede2da;
  --danger: #b3534f;
  --ok: #4f8a63;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--rose-soft); color: var(--rose-deep); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(250, 245, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--rose-deep); }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--rose-deep); }
@media (max-width: 640px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.84rem; }
}

/* ---------- Page header ---------- */
.page-head { padding: 150px 0 44px; }
.page-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 18px;
}
.page-head .eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--rose);
}
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 500;
  line-height: 1.12;
}
.page-head p.lead {
  margin-top: 16px;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}
.btn-primary {
  background: var(--rose-deep);
  color: #fff;
  box-shadow: 0 8px 24px rgba(168,95,120,0.28);
}
.btn-primary:hover { background: var(--rose); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose-deep); }

/* ---------- Kartu & form ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.field label .req { color: var(--rose-deep); }
.field .hint { font-size: 0.8rem; color: var(--ink-faint); margin-top: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(197,129,151,0.14);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }

/* Pilihan jenis */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.type-option {
  position: relative;
}
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option .box {
  display: block;
  padding: 20px 16px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: all .2s ease;
}
.type-option .box .t { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; display: block; }
.type-option .box .d { font-size: 0.78rem; color: var(--ink-faint); display: block; margin-top: 4px; }
.type-option input:checked + .box {
  background: var(--rose-soft);
  border-color: var(--rose);
}
.type-option input:checked + .box .t { color: var(--rose-deep); }
@media (max-width: 640px) { .type-grid { grid-template-columns: 1fr; } }

/* Alert */
.alert {
  display: none;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 0.94rem;
  margin-bottom: 22px;
}
.alert.show { display: block; }
.alert.ok { background: #eef5f0; color: var(--ok); border: 1px solid #d3e7da; }
.alert.err { background: #f9ecec; color: var(--danger); border: 1px solid #eccfcf; }

/* ---------- Tabel admin ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}
.badge.menunggu { background: #f6eadb; color: #a3713a; }
.badge.dijadwalkan { background: #e3edf7; color: #3f6f9e; }
.badge.selesai { background: #e8f2ec; color: var(--ok); }
.badge.dibatalkan { background: #f3e4e4; color: var(--danger); }
.badge.pkl { background: var(--rose-soft); color: var(--rose-deep); }
.badge.skripsi { background: #e9e3f3; color: #6b4fa3; }
.badge.akademik { background: #e3efee; color: #3e7a74; }

/* ---------- Footer ---------- */
footer {
  padding: 64px 0 48px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
footer .mark {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 8px;
}
footer a { color: var(--rose-deep); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
