@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0f172a;
  --blue: #1e3a8a;
  --blue-dark: #1e40af;
  --blue-gradient: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  --gold: #b45309;
  --green: #16a34a;
  --red: #dc2626;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: #f8fafc;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ===== NAVBAR ===== */
.navbar-campus {
  width: 100%;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: 10px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand-wrap { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-wrap img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.brand-text-title { font-size: 13px; font-weight: 700; letter-spacing: .5px; color: #f8fafc; text-transform: uppercase; }
.brand-text-sub { font-size: 11px; color: #94a3b8; font-weight: 500; }
.badge-portal { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #e2e8f0; border-radius: 6px; padding: 4px 10px; font-size: 11px; font-family: ui-monospace, monospace; letter-spacing: .5px; }

/* ===== PORTAL CARD ===== */
.main-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 28px 16px 40px;
}
.portal-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, .08), 0 8px 10px -6px rgba(15, 23, 42, .04);
  overflow: hidden;
  align-self: flex-start;
}
.card-header-campus {
  background: var(--blue-gradient);
  color: #fff;
  padding: 28px 24px 22px;
  text-align: center;
}
.school-logo { width: 80px; height: 80px; object-fit: contain; background: #fff; border-radius: 50%; padding: 5px; box-shadow: 0 4px 12px rgba(0,0,0,.25); margin-bottom: 14px; }
.portal-title { font-size: 20px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.2px; color: #fff; }
.portal-subtitle { font-size: 13px; color: #cbd5e1; font-weight: 500; margin: 0; }
.card-body-campus { padding: 26px 24px; }

/* status badge */
.badge-row { display: flex; justify-content: center; margin-bottom: 16px; }
.badge-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; padding: 7px 16px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .6px;
}
.badge-open { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.badge-closed { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.badge-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

.info-box { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 18px; text-align: center; color: #475569; }
.info-box h6 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #1e293b; }
.info-box p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.info-box i { font-size: 26px; color: #64748b; margin-bottom: 8px; display: block; }

/* ===== FORM ===== */
.form-label { font-size: 12.5px; font-weight: 600; color: #334155; margin: 14px 0 6px; display: block; }
.form-control {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: #0f172a;
  font-family: inherit;
  transition: all .2s ease;
  background: #fff;
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,58,138,.12); }
.muted { color: var(--muted); font-size: 12.5px; }

.alert { border-radius: 8px; padding: 11px 14px; margin: 10px 0; font-size: 13px; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

.btn-campus-primary {
  width: 100%;
  background: var(--blue);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s ease, transform .1s ease;
  margin-top: 18px;
}
.btn-campus-primary:hover { background: var(--blue-dark); }
.btn-campus-primary:active { transform: scale(.99); }
.btn-ghost-campus {
  display: inline-block; background: transparent; border: 1px solid var(--blue);
  color: var(--blue); border-radius: 8px; padding: 10px 18px; font-weight: 700; font-size: 13px;
  text-decoration: none; cursor: pointer; font-family: inherit;
}
.btn-ghost-campus:hover { background: #eff6ff; }

/* ekskul choices */
.excur-choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; margin: 8px 0; cursor: pointer; background: #fff; transition: all .15s; }
.excur-choice:hover { border-color: #93c5fd; background: #f0f7ff; }
.excur-choice input { margin-top: 3px; accent-color: var(--blue); width: 18px; height: 18px; }
.excur-choice.selected { border-color: var(--blue); background: #eff6ff; box-shadow: 0 0 0 2px rgba(30,58,138,.15); }
.excur-choice.full { opacity: .55; cursor: not-allowed; background: #f1f5f9; }
.excur-code { display: inline-block; min-width: 46px; text-align: center; background: var(--navy); color: #fbbf24; font-weight: 800; font-size: 11px; padding: 4px 6px; border-radius: 6px; letter-spacing: .5px; }
.excur-name { font-weight: 700; color: #1e293b; font-size: 13.5px; }
.excur-meta { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.quota-bar { height: 5px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-top: 6px; width: 100%; }
.quota-fill { height: 100%; background: var(--green); border-radius: 999px; }
.quota-fill.warn { background: #f59e0b; }

/* data table (landing) */
.table-wrap { max-width: 860px; margin: 8px auto 0; padding: 0 16px; width: 100%; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 13px; box-shadow: 0 4px 14px rgba(15,23,42,.06); }
.data-table th { background: var(--navy); color: #f8fafc; text-align: left; padding: 10px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid #eef2f7; }
.data-table tr:nth-child(even) td { background: #f8fafc; }
.table-title { max-width: 860px; margin: 22px auto 10px; padding: 0 16px; font-size: 12px; font-weight: 800; letter-spacing: .6px; color: var(--muted); text-transform: uppercase; }

/* unit picker */
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 16px; }
.unit-card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; text-align: center; transition: all .15s; }
.unit-card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(15,23,42,.12); border-color: #93c5fd; }
.unit-card-title { font-size: 16px; font-weight: 800; color: var(--blue); }
.unit-card-body { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* success */
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: #f0fdf4; border: 2px solid #86efac; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.success-icon svg { width: 36px; height: 36px; stroke: #16a34a; stroke-width: 3; fill: none; }
.summary-list { text-align: left; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 14px 0; font-size: 13px; }
.summary-list li { margin: 6px 0; }

.footer-campus { width: 100%; background: #fff; border-top: 1px solid var(--border); padding: 14px 20px; text-align: center; font-size: 12px; color: var(--muted); }

@media (max-width: 560px) {
  .navbar-campus { padding: 8px 14px; }
  .badge-portal { display: none; }
  .card-header-campus { padding: 22px 18px 18px; }
  .card-body-campus { padding: 20px 16px; }
}
