/* ═══════════════════════════════════════════════════════════
   PANDUAN FORM TRACER STUDY UDN
   Sidebar layout ala tracerstudy.kemdiktisaintek.go.id
   Theme: Hijau Darunnajah + Emas
   ═══════════════════════════════════════════════════════════ */

:root {
  --green-900: #0a1e3a;
  --green-800: #0f2a52;
  --green-700: #1e3a8a;
  --green-600: #2563eb;
  --green-500: #3b82f6;
  --green-50:  #e0e7ff;
  --gold-600:  #b8860b;
  --gold-500:  #d4a017;
  --gold-400:  #e8b923;
  --ink:       #0a0e1a;
  --ink-2:     #2a3343;
  --ink-3:     #5a6478;
  --ink-4:     #8a93a8;
  --paper:     #fdfcf8;
  --paper-2:   #f5f2e8;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-300:  #cbd5e1;
  --red-500:   #dc2626;
  --red-50:    #fef2f2;
  --line:      rgba(11, 61, 46, 0.12);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --sidebar-w:    270px;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ═══ APP LAYOUT ═══════════════════════════ */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ─── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--green-900);
  color: rgba(255,255,255,0.85);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand-link {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: white;
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--green-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.brand-text { line-height: 1.2; }
.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: white;
}
.brand-text span {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.55);
}

.sidebar-nav {
  flex: 1;
  padding: 18px 12px;
}
.nav-section {
  margin-bottom: 24px;
}
.nav-section-title {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  padding: 8px 12px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  position: relative;
  transition: all 0.2s;
}
.nav-item i { width: 18px; text-align: center; flex-shrink: 0; }
.nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}
.nav-item.active {
  background: rgba(212, 160, 23, 0.15);
  color: var(--gold-400);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--gold-500);
}

.nav-submenu {
  margin-top: 6px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.nav-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 2px;
  transition: all 0.2s;
}
.nav-sub:hover { color: white; background: rgba(255,255,255,0.04); }
.nav-sub.active { color: var(--gold-400); }
.nav-sub i { width: 14px; font-size: 11px; }

.sidebar-footer {
  padding: 16px 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* ─── Main Content ─── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top bar */
.topbar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.sidebar-toggle, .mobile-toggle {
  display: none;
  background: var(--gray-100);
  border: none;
  width: 38px; height: 38px;
  border-radius: 8px;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 16px;
}
.topbar-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--green-900);
  flex: 1;
}
.topbar-right .back-link {
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--gray-100);
  transition: all 0.2s;
}
.topbar-right .back-link:hover {
  background: var(--green-50);
  color: var(--green-800);
}

/* Content wrapper */
.content-wrapper {
  flex: 1;
  padding: 32px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* ─── Page Header ─── */
.page-header {
  margin-bottom: 32px;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--green-900);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.page-subtitle {
  color: var(--ink-3);
  font-size: 14.5px;
  max-width: 720px;
}
.link-edit {
  color: var(--green-700);
  text-decoration: none;
  font-size: 13px;
  margin-left: 8px;
}
.link-edit:hover { color: var(--gold-600); }

/* ─── Progress Steps ─── */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  gap: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-display);
  transition: all 0.3s;
}
.step.active .step-num {
  background: var(--green-800);
  color: white;
  box-shadow: 0 0 0 4px var(--green-50);
}
.step.done .step-num {
  background: var(--green-600);
  color: white;
}
.step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}
.step.active .step-label { color: var(--green-800); }
.step.done .step-label { color: var(--green-700); }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  max-width: 100px;
  margin: 0 8px;
  margin-bottom: 24px;
}
.step-line.done { background: var(--green-600); }

/* ─── Alerts ─── */
.alert {
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}
.alert i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success {
  background: var(--green-50);
  color: var(--green-800);
  border: 1px solid rgba(26, 154, 98, 0.2);
}
.alert-error {
  background: var(--red-50);
  color: var(--red-500);
  border: 1px solid rgba(220, 38, 38, 0.2);
}
.alert-warning {
  background: #fef9e7;
  color: var(--gold-600);
  border: 1px solid rgba(212, 160, 23, 0.25);
}

/* ─── Form Card ─── */
.form-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 18px;
  position: relative;
  transition: all 0.2s;
}
.form-card:hover {
  border-color: var(--green-50);
  box-shadow: 0 4px 14px rgba(15, 82, 54, 0.04);
}
.form-card-header { margin-bottom: 20px; }
.form-card-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 6px;
}
.form-card-header p { font-size: 13px; color: var(--ink-3); }

.q-num {
  position: absolute;
  top: 22px;
  right: 24px;
  background: var(--green-50);
  color: var(--green-700);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.q-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 14px;
  padding-right: 60px;
  line-height: 1.4;
}
.q-title .code {
  color: var(--ink-4);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-body);
}
.required { color: var(--red-500); font-weight: 700; }
.optional { color: var(--ink-4); font-size: 13px; font-weight: 400; }

.hint {
  font-size: 12.5px;
  color: var(--ink-4);
  margin-top: 4px;
}
.code {
  font-size: 11px;
  color: var(--ink-4);
  font-weight: 500;
  background: var(--gray-100);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

/* ─── Form Inputs ─── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; }
.form-group-full { grid-column: 1 / -1; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea,
.conditional-input input,
.form-card input[type="text"],
.form-card input[type="number"],
.form-card select,
.form-card textarea {
  padding: 11px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: white;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: all 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.conditional-input input:focus,
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(26, 154, 98, 0.12);
}

/* ─── Radio & Checkbox ─── */
.radio-group, .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio-row { flex-direction: row; flex-wrap: wrap; gap: 12px; }
.radio-option, .check-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
  transition: all 0.2s;
  background: white;
}
.radio-option:hover, .check-option:hover {
  border-color: var(--green-500);
  background: var(--green-50);
}
.radio-option input, .check-option input {
  accent-color: var(--green-700);
  cursor: pointer;
}
.radio-option input:checked + .radio-label,
.check-option input:checked + .check-label {
  color: var(--green-800);
  font-weight: 600;
}
.radio-option input:checked ~ * { font-weight: 600; }
.radio-option:has(input:checked),
.check-option:has(input:checked) {
  border-color: var(--green-600);
  background: var(--green-50);
}

/* ─── Conditional sections ─── */
.conditional {
  display: none;
}
.conditional.show {
  display: block;
  animation: fadeIn 0.3s ease-out;
}
.conditional-input {
  display: none;
  margin-top: 14px;
  padding: 14px;
  background: var(--gray-50);
  border-radius: 8px;
}
.conditional-input.show {
  display: block;
  animation: fadeIn 0.3s ease-out;
}
.conditional-input label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Matrix Table (Kompetensi) ─── */
.matrix-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.matrix-table th, .matrix-table td {
  padding: 10px 8px;
  border: 1px solid var(--gray-200);
  text-align: center;
  background: white;
}
.matrix-table th {
  background: var(--green-50);
  color: var(--green-800);
  font-weight: 600;
  font-size: 12px;
}
.matrix-table .text-left { text-align: left; padding-left: 14px; }
.matrix-table td input[type="radio"] {
  accent-color: var(--green-700);
  cursor: pointer;
  transform: scale(1.2);
}

/* ─── Metode Pembelajaran ─── */
.metode-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metode-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gray-50);
}
.metode-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.metode-row .radio-row { gap: 4px; }
.metode-row .radio-option {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  background: white;
  flex: 1;
  justify-content: center;
}

/* ─── Form Actions ─── */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.btn {
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-primary {
  background: var(--green-800);
  color: white;
}
.btn-primary:hover {
  background: var(--green-900);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11, 61, 46, 0.18);
}
.btn-secondary {
  background: var(--gray-100);
  color: var(--ink-2);
}
.btn-secondary:hover {
  background: var(--gray-200);
}
.btn-large { padding: 14px 28px; font-size: 15px; }

/* ─── Sukses Card ─── */
.sukses-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 48px 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.sukses-icon {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  margin: 0 auto 22px;
}
.sukses-card h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.sukses-card .lead {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.sukses-info {
  display: flex;
  justify-content: center;
  gap: 32px;
  background: var(--gray-50);
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.info-item i {
  font-size: 22px;
  color: var(--green-600);
}
.info-item strong {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.info-item span {
  font-size: 15px;
  color: var(--green-900);
  font-weight: 700;
  font-family: var(--font-display);
}
.sukses-card p {
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto 28px;
}
.sukses-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.sukses-quote {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: white;
  padding: 28px;
  border-radius: 14px;
  text-align: center;
  position: relative;
}
.sukses-quote i.fa-quote-left {
  font-size: 28px;
  color: var(--gold-400);
  opacity: 0.6;
  margin-bottom: 10px;
}
.sukses-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: white;
  margin: 8px 0 14px;
}
.sukses-quote small {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.3px;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
  .mobile-toggle {
    display: flex;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 30;
    background: var(--green-800);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    align-items: center;
    justify-content: center;
  }
  .topbar { padding-left: 70px; }
}

@media (max-width: 720px) {
  .content-wrapper { padding: 20px 18px; }
  .form-card { padding: 20px 18px; }
  .page-header h1 { font-size: 24px; }
  .q-title { padding-right: 0; padding-top: 28px; }
  .q-num { top: 18px; left: 18px; right: auto; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .progress-steps { gap: 0; }
  .step-line { max-width: 30px; margin: 0 4px 22px; }
  .step-label { font-size: 11px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .metode-row { grid-template-columns: 1fr; gap: 8px; }
  .matrix-table { font-size: 11px; }
  .sukses-card { padding: 28px 20px; }
  .sukses-info { flex-direction: column; gap: 14px; }
}
/* ═══════════════════════════════════════════════════════════
   CSS PATCH — Logo IMG Baru (UDN Biro Alumni)
   Tambahkan baris-baris ini di AKHIR file landing.css
   (dan kalau perlu, juga di panduan.css & panduan-kemdikti.css)
   ═══════════════════════════════════════════════════════════ */

/* Override brand-mark untuk versi IMG */
.brand-mark.brand-mark-img {
  /* Reset style dari brand-mark text */
  font-family: inherit !important;
  font-size: 0 !important;
  line-height: 0 !important;
  background: white !important;
  
  /* Card putih untuk logo */
  padding: 6px;
  border-radius: 12px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  
  /* Size logo */
  width: 56px;
  height: 56px;
  object-fit: contain;
  
  /* Shadow lembut */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  
  /* Transition smooth */
  transition: transform 0.2s, box-shadow 0.2s;
}

.brand-mark.brand-mark-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(212, 160, 23, 0.25);
}

/* Sidebar logo (panduan-form & panduan-form-kemdikti) — lebih besar */
.sidebar .brand-mark.brand-mark-img,
aside .brand-mark.brand-mark-img {
  width: 60px;
  height: 60px;
  padding: 8px;
}

/* Footer logo — lebih kecil */
footer .brand-mark.brand-mark-img,
.footer .brand-mark.brand-mark-img {
  width: 48px;
  height: 48px;
  padding: 5px;
}

/* Responsive — Mobile */
@media (max-width: 720px) {
  .brand-mark.brand-mark-img {
    width: 48px;
    height: 48px;
    padding: 5px;
  }
}
