/* ===== DU FSR Admission — theme ===== */
:root{
  --du:#1EB0D7;            /* deep DU maroon */
  --du-dark:#178ba9;
  --du-light:#e8f7fb;
  --du-accent:#1592b4;
  --ink:#1f2733;
  --muted:#6b7280;
  --line:#e6e8ec;
  --bg:#f4f5f7;
  --radius:10px;
  --shadow:0 1px 2px rgba(16,24,40,.06),0 1px 3px rgba(16,24,40,.10);
  --shadow-lg:0 10px 30px rgba(16,24,40,.12);
}
*{ box-sizing:border-box; }
body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:14.5px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,h5,h6{ font-weight:600; letter-spacing:-.01em; color:var(--ink); }
a{ text-decoration:none; }

/* ===== Top navbar ===== */
.app-navbar{
  background:linear-gradient(90deg,var(--du-dark),var(--du));
  box-shadow:0 2px 8px rgba(0,0,0,.12);
  min-height:60px;
}
.app-navbar .navbar-brand{ font-weight:700; letter-spacing:-.02em; font-size:1.02rem; }
.app-navbar .navbar-brand .logo-badge{
  width:30px;height:30px;border-radius:7px;background:rgba(255,255,255,.15);
  display:inline-flex;align-items:center;justify-content:center;margin-right:8px;
}
.app-navbar .user-chip{
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18);
  border-radius:30px; padding:5px 12px; color:#fff; font-size:.82rem;
}

/* ===== Sidebar ===== */
.admin-sidebar{
  background:linear-gradient(180deg,var(--du),var(--du-dark));
  min-height:calc(100vh - 60px);
  border-right:1px solid rgba(0,0,0,.06); padding:14px 10px;
}
.admin-sidebar .nav-label{
  font-size:.68rem; text-transform:uppercase; letter-spacing:.09em;
  color:rgba(255,255,255,.7); font-weight:600; padding:10px 12px 6px;
}
.admin-sidebar .side-link{
  display:flex; align-items:center; gap:11px;
  padding:9px 12px; margin:2px 0; border-radius:8px;
  color:rgba(255,255,255,.92); font-weight:500; font-size:.9rem;
  transition:background .12s,color .12s;
}
.admin-sidebar .side-link i{ font-size:1.05rem; width:20px; text-align:center; color:rgba(255,255,255,.8); }
.admin-sidebar .side-link:hover{ background:rgba(255,255,255,.16); color:#fff; }
.admin-sidebar .side-link:hover i{ color:#fff; }
.admin-sidebar .side-link.active{ background:#fff; color:var(--du-dark); box-shadow:var(--shadow); font-weight:600; }
.admin-sidebar .side-link.active i{ color:var(--du-dark); }

/* ===== Cards ===== */
.card{ border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.card h6{ font-weight:600; color:var(--ink); }
.page-title{ font-size:1.35rem; font-weight:600; margin-bottom:2px; }
.page-sub{ color:var(--muted); font-size:.88rem; margin-bottom:18px; }

/* ===== Stat cards ===== */
.stat-card{ border:1px solid var(--line); border-left:4px solid var(--du); border-radius:var(--radius); }
.stat-card .stat-num{ font-size:1.7rem; font-weight:700; color:var(--du); line-height:1.1; }
.stat-card .stat-label{ color:var(--muted); font-size:.8rem; text-transform:uppercase; letter-spacing:.04em; }
.stat-card .stat-ico{ font-size:1.5rem; color:var(--du); opacity:.35; }

/* ===== Buttons ===== */
.btn{ border-radius:8px; font-weight:500; font-size:.9rem; }
.btn-du{ background:var(--du); color:#fff; border:1px solid var(--du); }
.btn-du:hover{ background:var(--du-dark); border-color:var(--du-dark); color:#fff; }
.btn-outline-primary{ color:var(--du); border-color:var(--du); }
.btn-outline-primary:hover{ background:var(--du); border-color:var(--du); }

/* ===== Forms ===== */
.form-label{ font-weight:500; font-size:.85rem; color:#374151; margin-bottom:4px; }
.form-control,.form-select{ border-radius:8px; border-color:#d5d9e0; font-size:.9rem; }
.form-control:focus,.form-select:focus{ border-color:var(--du-accent); box-shadow:0 0 0 3px rgba(30,176,215,.18); }
.form-text{ font-size:.78rem; }

/* ===== Tables ===== */
.table{ font-size:.88rem; }
.table thead th{
  background:#f7f8fa; color:#4b5563; font-weight:600; font-size:.78rem;
  text-transform:uppercase; letter-spacing:.03em; border-bottom:1px solid var(--line);
}
.table tbody td{ vertical-align:middle; }
.table-hover tbody tr:hover{ background:var(--du-light); }

/* ===== Pagination ===== */
.pagination .page-link{ color:var(--du); border-radius:7px; margin:0 2px; border-color:var(--line); font-size:.85rem; }
.pagination .page-item.active .page-link{ background:var(--du); border-color:var(--du); color:#fff; }

/* ===== Badges ===== */
.badge{ font-weight:600; letter-spacing:.02em; }

/* ===== Auth screens ===== */
.auth-bg{
  min-height:calc(100vh - 60px);
  background:
    radial-gradient(1200px 500px at 10% -10%,rgba(30,176,215,.12),transparent 60%),
    radial-gradient(900px 500px at 110% 110%,rgba(30,176,215,.10),transparent 55%),
    var(--bg);
  display:flex; align-items:center; justify-content:center; padding:24px;
}
.auth-card{
  width:100%; max-width:410px; background:#fff;
  border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow-lg);
  overflow:hidden;
}
.auth-card .auth-head{
  background:linear-gradient(135deg,var(--du-dark),var(--du));
  color:#fff; padding:26px 28px 22px; text-align:center;
}
.auth-card .auth-head .crest{
  width:52px;height:52px;border-radius:14px;background:rgba(255,255,255,.16);
  display:inline-flex;align-items:center;justify-content:center;font-size:1.6rem;margin-bottom:10px;
}
.auth-card .auth-head h1{ color:#fff; font-size:1.15rem; margin:0; font-weight:600; }
.auth-card .auth-head p{ color:rgba(255,255,255,.8); font-size:.8rem; margin:4px 0 0; }
.auth-card .auth-body{ padding:26px 28px; }
.auth-card .auth-body h2{ font-size:1.05rem; margin-bottom:2px; }
.auth-card .auth-foot{ text-align:center; padding:0 28px 24px; }
.auth-card .auth-foot a{ color:var(--muted); font-size:.83rem; }
.auth-card .auth-foot a:hover{ color:var(--du); }
.otp-input{ letter-spacing:.7rem; text-align:center; font-size:1.7rem; font-weight:600; padding:.5rem; }
.auth-wrap{ max-width:460px; margin:8vh auto; padding:0 16px; }

/* ===== Misc ===== */
.text-du{ color:var(--du)!important; }
.brand-head{ color:var(--du); }
hr{ border-color:var(--line); opacity:1; }

/* ===== Application form: section nav + panels ===== */
.app-shell{ display:flex; gap:20px; align-items:flex-start; }
.app-side{ position:sticky; top:16px; flex:0 0 260px; width:260px; }
.app-main{ flex:1 1 auto; min-width:0; }
@media (max-width:991px){ .app-shell{ flex-direction:column; } .app-side{ position:static; width:100%; flex-basis:auto; } }

.status-panel{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:16px; margin-bottom:14px; }
.status-panel h6{ font-size:.95rem; margin-bottom:10px; }
.status-row{ display:flex; justify-content:space-between; font-size:.83rem; padding:4px 0; }
.status-row .lbl{ color:var(--muted); }
.status-note{ font-size:.78rem; color:var(--muted); background:var(--du-light); border-radius:8px; padding:9px 11px; margin-top:10px; line-height:1.45; }

.section-nav{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.section-nav .sn-item{
  display:flex; align-items:center; gap:10px; width:100%; text-align:left;
  padding:11px 14px; border:0; background:transparent; color:#3a4250;
  font-size:.88rem; font-weight:500; border-left:3px solid transparent; cursor:pointer;
}
.section-nav .sn-item .sn-num{
  width:22px;height:22px;border-radius:50%;background:#eef0f3;color:#6b7280;
  display:inline-flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:600;flex:0 0 auto;
}
.section-nav .sn-item:hover{ background:var(--du-light); }
.section-nav .sn-item.active{ background:var(--du-light); color:var(--du-dark); border-left-color:var(--du); font-weight:600; }
.section-nav .sn-item.active .sn-num{ background:var(--du); color:#fff; }
.section-nav .sn-item.done .sn-num{ background:#1b7a43; color:#fff; }

.form-section{ display:none; }
.form-section.active{ display:block; animation:fadeIn .18s ease; }
@keyframes fadeIn{ from{opacity:0; transform:translateY(4px);} to{opacity:1; transform:none;} }
.section-head{ font-size:1.05rem; font-weight:600; color:var(--du-dark); margin-bottom:2px; }
.section-sub{ color:var(--muted); font-size:.82rem; margin-bottom:16px; }
.form-footer{
  display:flex; justify-content:space-between; gap:8px;
  position:sticky; bottom:0; background:#fff; border-top:1px solid var(--line);
  padding:12px 4px; margin-top:8px;
}

/* ===== Student pages: 80% centered width ===== */
.student-container{ width:80%; max-width:1250px; margin:0 auto; padding:26px 0 40px; }
@media (max-width:991px){ .student-container{ width:96%; padding:18px 0 30px; } }
