/* =========================================================
 *  OAU MBA — LAYOUT v2
 *  Public nav, sticky programme bar, admin sidebar/topbar
 *  ========================================================= */

/* ── PUBLIC SITE — Top navigation bar ───────────────── */
.pub-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  height: var(--pubbar-h);
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pub-nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.pub-nav-brand {
  display: flex; align-items: center; gap: var(--sp-3); text-decoration: none;
  flex-shrink: 0;
}
.pub-nav-brand .brand-crest {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pub-nav-brand .brand-crest svg { width: 18px; height: 18px; }
.pub-nav-brand .brand-words strong {
  display: block; font-family: var(--font-display);
  font-size: 0.875rem; color: var(--white); line-height: 1.2;
}
.pub-nav-brand .brand-words span {
  display: block; font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold-400);
}
.pub-nav-links {
  display: flex; align-items: center; gap: 0;
}
.pub-nav-links a {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.01em;
  color: rgba(255,255,255,0.75); text-decoration: none;
  padding: 0 var(--sp-4); height: var(--pubbar-h);
  display: flex; align-items: center;
  border-bottom: 2.5px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.pub-nav-links a:hover { color: var(--white); border-bottom-color: var(--gold-400); }
.pub-nav-links a.active { color: var(--white); border-bottom-color: var(--gold-500); }
.pub-nav-actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.pub-nav-toggle { display: none; }

@media (max-width: 860px) {
  .pub-nav-links { display: none; }
  .pub-nav-toggle { display: flex; }
}

/* ── PUBLIC SITE — Programme sticky sub-nav (LBS strip) */
.prog-subnav {
  position: sticky; top: var(--pubbar-h); z-index: 60;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.prog-subnav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  display: flex; align-items: center;
  height: 50px; overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.prog-subnav-inner::-webkit-scrollbar { display: none; }
.prog-subnav a {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.01em;
  color: rgba(255,255,255,0.65); text-decoration: none; white-space: nowrap;
  padding: 0 var(--sp-4); height: 50px; display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
  flex-shrink: 0;
}
.prog-subnav a:hover { color: var(--white); }
.prog-subnav a.active { color: var(--white); border-bottom-color: var(--gold-400); }
.prog-subnav .subnav-cta { margin-left: auto; padding-left: var(--sp-5); flex-shrink: 0; }

/* ── PUBLIC SITE — Info strip (Dates / Duration / Location) */
.info-strip {
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.info-strip-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  display: flex; align-items: stretch; gap: 0;
}
.info-strip-cell {
  padding: var(--sp-5) var(--sp-6) var(--sp-5) 0;
  margin-right: var(--sp-6);
  border-right: 1px solid rgba(255,255,255,0.10);
}
.info-strip-cell:last-child { border-right: none; margin-right: 0; }
.info-strip-cell .i-label {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold-400); display: block; margin-bottom: 4px;
}
.info-strip-cell .i-value {
  font-size: var(--text-base); font-weight: 500; color: var(--white);
}
.info-strip .strip-cta { margin-left: auto; display: flex; align-items: center; }

/* ── ADMIN — Shell ───────────────────────────────────── */
.shell { display: flex; min-height: 100vh; }
.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--ink-50); }
.content { flex: 1; padding: var(--sp-7) var(--sp-6); max-width: 1320px; width: 100%; margin: 0 auto; }

/* ── ADMIN — Sidebar ─────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--navy-900);
  color: var(--navy-100);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

.sidebar-brand {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.sidebar-brand .sb-crest {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold-500); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-brand .sb-crest svg { width: 20px; height: 20px; }
.sidebar-brand .sb-text { min-width: 0; }
.sidebar-brand .sb-text strong {
  display: block; font-family: var(--font-display);
  font-size: 0.875rem; color: var(--white); font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-brand .sb-text span {
  display: block; font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold-400); white-space: nowrap;
}

.sidebar-nav { flex: 1; padding: var(--sp-4) var(--sp-3); }
.nav-section-label {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.10em;
  color: rgba(255,255,255,0.30); font-weight: 700;
  padding: var(--sp-4) var(--sp-3) var(--sp-2);
}
.sidebar-nav a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 0.6rem var(--sp-3); border-radius: var(--radius-md);
  color: rgba(255,255,255,0.65); font-size: var(--text-sm);
  font-weight: 500; text-decoration: none; margin-bottom: 1px;
  position: relative;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.sidebar-nav a svg { flex-shrink: 0; width: 17px; height: 17px; opacity: 0.7; }
.sidebar-nav a:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.sidebar-nav a:hover svg { opacity: 1; }
.sidebar-nav a.active {
  background: rgba(201,145,30,0.15);
  color: var(--white); font-weight: 600;
}
.sidebar-nav a.active svg { opacity: 1; color: var(--gold-400); }
.sidebar-nav a.active::before {
  content: ''; position: absolute; left: 0; top: 25%; bottom: 25%;
  width: 3px; background: var(--gold-500);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}
.sidebar-nav .nav-count {
  margin-left: auto; background: var(--gold-500); color: var(--navy-900);
  font-size: 0.6rem; font-weight: 800; padding: 1px 6px;
  border-radius: var(--radius-full);
}

.sidebar-foot {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.sidebar-user-row { display: flex; align-items: center; gap: var(--sp-3); }
.sidebar-user-row .su-info { min-width: 0; }
.sidebar-user-row .su-info strong { display: block; font-size: var(--text-sm); color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-row .su-info span { display: block; font-size: var(--text-xs); color: rgba(255,255,255,0.45); }

@media (max-width: 980px) {
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 100;
    transform: translateX(-100%);
    transition: transform var(--dur-slow) var(--ease);
    box-shadow: var(--shadow-3);
    height: 100dvh;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(11,37,69,0.5); z-index: 90;
    backdrop-filter: blur(2px);
  }
  .sidebar-backdrop.show { display: block; }
}

/* ── ADMIN — Topbar ──────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--ink-100);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); padding: 0 var(--sp-6);
  position: sticky; top: 0; z-index: 50; flex-shrink: 0;
}
.topbar-left { display: flex; align-items: center; gap: var(--sp-4); min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }

.breadcrumbs {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-sm); color: var(--ink-400); flex-wrap: nowrap;
}
.breadcrumbs a { color: var(--ink-400); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy-700); }
.breadcrumbs .bc-sep { color: var(--ink-200); }
.breadcrumbs .bc-current { color: var(--navy-900); font-weight: 600; }

.topbar-search { position: relative; width: 240px; }
.topbar-search input {
  background: var(--ink-50); border-color: transparent;
  padding-left: 2.4rem; font-size: var(--text-sm);
}
.topbar-search input:focus { background: var(--white); border-color: var(--navy-700); }
.topbar-search .ts-icon {
  position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%);
  color: var(--ink-300); pointer-events: none;
}

.notif-btn { position: relative; }
.notif-dot {
  position: absolute; top: 4px; right: 5px;
  width: 8px; height: 8px; background: var(--danger-600);
  border: 2px solid var(--white); border-radius: 50%;
}

@media (max-width: 640px) {
  .topbar { padding: 0 var(--sp-4); }
  .topbar-search, .breadcrumbs { display: none; }
}

/* ── ADMIN — Page header ─────────────────────────────── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--sp-5); margin-bottom: var(--sp-6); flex-wrap: wrap;
}
.page-header .ph-eyebrow {
  display: block; font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--gold-500); margin-bottom: var(--sp-2);
}
.page-header h1 { margin-bottom: var(--sp-2); }
.page-header p { margin: 0; }

/* ── AUTH — Split screen ─────────────────────────────── */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-panel-brand {
  background: var(--navy-900);
  color: var(--white); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--sp-8) var(--sp-9);
}
.auth-panel-brand .amb {
  position: absolute; pointer-events: none;
}
.auth-panel-brand .amb-1 { right: -80px; top: -80px; width: 380px; height: 380px; opacity: 0.07; }
.auth-panel-brand .amb-2 { left: -60px; bottom: -60px; width: 240px; height: 240px; opacity: 0.05; }

.auth-brand-top { display: flex; align-items: center; gap: var(--sp-3); position: relative; z-index: 2; }
.auth-brand-top .crest {
  width: 46px; height: 46px; border-radius: 50%; background: var(--gold-500);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.auth-brand-top .crest svg { width: 24px; height: 24px; }
.auth-brand-top strong { display: block; font-family: var(--font-display); color: var(--white); font-size: 0.95rem; }
.auth-brand-top span { display: block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-400); }

.auth-brand-mid { position: relative; z-index: 2; max-width: 460px; }
.auth-brand-mid h1 { color: var(--white); font-size: var(--text-3xl); margin-bottom: var(--sp-4); line-height: 1.1; }
.auth-brand-mid p { color: rgba(255,255,255,0.75); font-size: var(--text-md); line-height: 1.6; }

.auth-stats-row { display: flex; gap: var(--sp-7); position: relative; z-index: 2; margin-top: var(--sp-6); }
.auth-stat strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); color: var(--gold-400); }
.auth-stat span { font-size: var(--text-xs); color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.05em; }

.auth-brand-foot { font-size: var(--text-xs); color: rgba(255,255,255,0.35); position: relative; z-index: 2; }

.auth-panel-form {
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-8) var(--sp-7);
}
.auth-form-box { width: 100%; max-width: 420px; }
.auth-form-box .form-hed { margin-bottom: var(--sp-6); }
.auth-form-box .form-hed h2 { margin-bottom: var(--sp-2); }
.auth-meta { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-sm); margin-bottom: var(--sp-5); }
.auth-switch { text-align: center; margin-top: var(--sp-6); font-size: var(--text-sm); color: var(--ink-400); }
.auth-divider {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-300); margin: var(--sp-5) 0;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--ink-100); }

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-panel-brand { display: none; }
  .auth-panel-form { padding: var(--sp-6) var(--sp-4); min-height: 100vh; }
}

/* ── STEPPER ─────────────────────────────────────────── */
.stepper { display: flex; align-items: center; margin-bottom: var(--sp-7); }
.stepper .step { display: flex; align-items: center; gap: var(--sp-3); flex: 1; position: relative; }
.step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--ink-200); background: var(--white);
  color: var(--ink-300); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--text-sm); flex-shrink: 0; z-index: 2;
}
.step-label { font-size: var(--text-sm); font-weight: 600; color: var(--ink-300); white-space: nowrap; }
.stepper .step:not(:last-child)::after {
  content: ''; position: absolute; left: 32px; right: -32px;
  top: 16px; height: 2px; background: var(--ink-100); z-index: 1;
}
.step.done .step-dot { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }
.step.done .step-label { color: var(--navy-900); }
.step.done:not(:last-child)::after { background: var(--navy-700); }
.step.current .step-dot { border-color: var(--gold-500); color: var(--gold-600); box-shadow: 0 0 0 4px var(--gold-100); }
.step.current .step-label { color: var(--navy-900); font-weight: 700; }
@media (max-width: 600px) { .step-label { display: none; } }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--ink-100); background: var(--white);
  padding: var(--sp-5) var(--sp-6); text-align: center;
  font-size: var(--text-xs); color: var(--ink-400);
}
.site-footer a { color: var(--ink-400); }

.pub-footer { background: var(--navy-950); color: rgba(255,255,255,0.55); }
.pub-footer-inner {
  max-width: var(--max-w); margin-inline: auto; padding: var(--sp-9) var(--sp-6) var(--sp-6);
}
.pub-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-8); margin-bottom: var(--sp-7); }
.pub-footer h5 { color: var(--white); font-family: var(--font-body); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-4); }
.pub-footer a { display: block; color: rgba(255,255,255,0.50); text-decoration: none; font-size: var(--text-sm); margin-bottom: var(--sp-2); }
.pub-footer a:hover { color: var(--white); }
.pub-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--sp-5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); font-size: var(--text-xs); }
@media (max-width: 780px) { .pub-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pub-footer-grid { grid-template-columns: 1fr; } }

/* ── Pub-nav responsive show/hide ────────────────── */
@media (max-width: 860px) {
  .pub-nav-links { display: none; }
}

/* ── Notif button dot ────────────────────────────── */
.notif-btn { position: relative; }
.notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 8px; height: 8px;
  background: var(--danger-600);
  border: 2px solid var(--white);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Page-size selector ──────────────────────────── */
.table-pagesize-wrap {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-xs); color: var(--ink-500);
}
.table-pagesize-wrap select {
  width: auto; padding: 0.3rem 1.8rem 0.3rem 0.5rem;
  font-size: var(--text-xs);
}
