/* Shared theme for the public admission pages
   (Check Admission, Evidence of Admission, Resume Account Creation, Evidence view).
   Sits on top of AdminLTE / Bootstrap 4. */
:root {
  --udus-green: #2f7a28;
  --udus-green-dark: #22591d;
  --udus-green-soft: #e9f4e7;
  --udus-gold: #c9a227;
  --udus-ink: #1f2933;
  --udus-muted: #5f6b76;
  --udus-line: #dfe5e2;
  --udus-bg: #f3f6f4;
}

html, body.udus-public { height: 100%; }
body.udus-public {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--udus-bg);
  color: var(--udus-ink);
  font-family: 'Source Sans Pro', 'Segoe UI', Tahoma, sans-serif;
}
.udus-main { flex: 1 0 auto; padding: 32px 16px 48px; }

/* ---------- header ---------- */
.udus-header {
  background: var(--udus-green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.udus-header .inner {
  max-width: 1140px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.udus-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.udus-brand:hover { color: #fff; text-decoration: none; }
.udus-brand img { width: 48px; height: 48px; border-radius: 50%; background: #fff; padding: 2px; }
.udus-brand .t1 { font-weight: 700; font-size: 1.1rem; line-height: 1.1; display: block; }
.udus-brand .t2 { font-size: .8rem; opacity: .85; letter-spacing: .04em; text-transform: uppercase; }
.udus-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.udus-nav a {
  color: #fff; text-decoration: none; font-size: .92rem;
  padding: 6px 10px; border-radius: 6px;
}
.udus-nav a:hover { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.udus-nav a.active { background: rgba(255,255,255,.22); font-weight: 600; }
.udus-nav { align-items: center; }
.udus-nav-sep { width: 1px; height: 18px; background: rgba(255,255,255,.35); margin: 0 6px; }
@media (max-width: 576px) { .udus-nav-sep { display: none; } }

/* ---------- page heading ---------- */
.udus-hero { text-align: center; margin: 0 auto 24px; max-width: 680px; }
.udus-hero .crest { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.12); background: #fff; }
.udus-hero h1 { font-size: 1.7rem; font-weight: 700; margin: 14px 0 4px; color: var(--udus-green-dark); }
.udus-hero p { color: var(--udus-muted); margin: 0; }

/* ---------- cards ---------- */
.udus-card {
  background: #fff; border: 1px solid var(--udus-line); border-radius: 12px;
  box-shadow: 0 6px 24px rgba(31,41,51,.06);
  max-width: 560px; margin: 0 auto 24px; padding: 28px;
}
.udus-card.wide { max-width: 960px; }
.udus-card h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; }
.udus-card .sub { color: var(--udus-muted); margin-bottom: 18px; }
.udus-card label { font-weight: 600; font-size: .9rem; }
.udus-card .form-control { height: 46px; font-size: 1rem; border-radius: 8px; }
.udus-card .form-control.text-uppercase::placeholder { text-transform: none; }
.udus-card .form-control:focus { border-color: var(--udus-green); box-shadow: 0 0 0 .2rem rgba(47,122,40,.18); }

.btn-udus {
  background: var(--udus-green); border-color: var(--udus-green); color: #fff;
  font-weight: 600; border-radius: 8px; padding: 10px 18px;
}
.btn-udus:hover, .btn-udus:focus { background: var(--udus-green-dark); border-color: var(--udus-green-dark); color: #fff; }
.btn-udus-outline {
  background: #fff; border: 1px solid var(--udus-green); color: var(--udus-green);
  font-weight: 600; border-radius: 8px; padding: 10px 18px;
}
.btn-udus-outline:hover { background: var(--udus-green-soft); color: var(--udus-green-dark); }

.udus-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: .92rem; }
.udus-links a { color: var(--udus-green); font-weight: 600; }

/* ---------- result / status blocks ---------- */
.udus-result { max-width: 960px; margin: 0 auto; }
.udus-status {
  border-radius: 12px; padding: 20px 22px; margin-bottom: 20px;
  display: flex; gap: 16px; align-items: flex-start; border: 1px solid;
}
.udus-status .ico { font-size: 1.8rem; line-height: 1; margin-top: 2px; }
.udus-status h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; }
.udus-status p { margin: 0; }
.udus-status.success { background: var(--udus-green-soft); border-color: #bfdfba; color: #1e4d19; }
.udus-status.danger  { background: #fdecec; border-color: #f3c2c2; color: #7d1f1f; }
.udus-status.warning { background: #fff7e0; border-color: #f1dc9c; color: #6b4d00; }
.udus-status.info    { background: #e8f2fb; border-color: #bcd8f1; color: #1c4a73; }

.udus-course {
  display: inline-block; margin-top: 8px; padding: 6px 12px; border-radius: 6px;
  background: #fff; border: 1px solid #bfdfba; font-weight: 700; letter-spacing: .02em;
}

.udus-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.udus-steps > li {
  counter-increment: step; position: relative; padding: 0 0 14px 44px; line-height: 1.5;
}
.udus-steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--udus-green); color: #fff;
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.udus-steps ol { margin: 6px 0 0; padding-left: 20px; }

.udus-fee-table { width: 100%; margin: 10px 0 4px; border-collapse: collapse; font-size: .95rem; }
.udus-fee-table td { padding: 7px 10px; border-bottom: 1px solid var(--udus-line); }
.udus-fee-table td:last-child { text-align: right; white-space: nowrap; }
.udus-fee-table tr.total td { font-weight: 700; border-top: 2px solid var(--udus-green); border-bottom: 0; }

.udus-rrr {
  font-family: Consolas, monospace; font-size: 1.4rem; font-weight: 700; letter-spacing: .08em;
  background: #fff; border: 1px dashed #d4b04a; border-radius: 8px; padding: 6px 14px; display: inline-block;
}

.udus-spinner { display: flex; justify-content: center; padding: 20px 0; }

/* ---------- footer ---------- */
.udus-footer {
  flex-shrink: 0; background: #1d3b1a; color: rgba(255,255,255,.82); font-size: .9rem;
}
.udus-footer .inner {
  max-width: 1140px; margin: 0 auto; padding: 20px 16px; text-align: center; line-height: 1.6;
}
.udus-footer a { color: #fff; text-decoration: none; }
.udus-footer a:hover { text-decoration: underline; }

@media (max-width: 576px) {
  .udus-card { padding: 20px 16px; }
  .udus-hero h1 { font-size: 1.4rem; }
  .udus-nav { width: 100%; }
  .udus-status { flex-direction: column; gap: 8px; }
}

@media print {
  .udus-header, .udus-footer, .no-print { display: none !important; }
  /* Bootstrap 4 print css forces body min-width:992px, which shrinks A4 output */
  body.udus-public { background: #fff; min-width: 0 !important; }
  .udus-main { padding: 0; }
}
