/* ============================================================
   ACADEMIC RECORDS SYSTEM  –  style.css
   Font: Plus Jakarta Sans (headings) + DM Sans (body)
   Palette: Deep Navy #0d1b3e  |  Teal #0ea5a0  |  Soft white
   ============================================================ */

:root {
  --primary:      #0d1b3e;
  --primary-light:#1a3060;
  --accent:       #0ea5a0;
  --accent-hover: #0c8f8a;
  --accent-soft:  rgba(14,165,160,.12);
  --surface:      #f8fafc;
  --card-bg:      #ffffff;
  --border:       #e2e8f0;
  --text-main:    #1e293b;
  --text-muted:   #64748b;
  --success:      #16a34a;
  --warning:      #d97706;
  --danger:       #dc2626;
  --navbar-h:     64px;
  --sidebar-w:    0px;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md:    0 4px 12px rgba(0,0,0,.10), 0 8px 32px rgba(0,0,0,.08);
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--surface);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,h2,h3,h4,h5,h6,.navbar-brand,.card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Navbar ──────────────────────────────────────────────── */
.app-navbar {
  background: var(--primary);
  height: var(--navbar-h);
  border-bottom: 2px solid var(--accent);
  z-index: 1030;
}

.app-navbar .navbar-toggler {
  border-color: rgba(255,255,255,.3);
}
.app-navbar .navbar-toggler-icon {
  filter: invert(1);
}

.brand-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.brand-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.3px;
}

.app-navbar .nav-link {
  color: rgba(255,255,255,.7) !important;
  font-size: .875rem;
  font-weight: 500;
  padding: .45rem .7rem;
  border-radius: var(--radius-sm);
  transition: all .2s;
  display: flex; align-items: center; gap: .4rem;
}
.app-navbar .nav-link:hover,
.app-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.12);
}
.app-navbar .nav-link.active {
  background: var(--accent) !important;
  color: #fff !important;
}

/* Notification bell */
.notif-bell { position: relative; }
.notif-badge {
  position: absolute;
  top: 2px; right: 0px;
  background: var(--danger);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 999px;
  min-width: 16px;
  line-height: 1.4;
  text-align: center;
}

/* User avatar */
.user-avatar {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Layout ──────────────────────────────────────────────── */
.page-wrapper { flex: 1; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0 !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  padding: 1rem 1.25rem;
}

/* ── Stat cards ──────────────────────────────────────────── */
.stat-card {
  border-radius: var(--radius);
  padding: 1.4rem;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: rgba(255,255,255,.2);
  color: #fff;
  margin-bottom: .9rem;
}
.stat-card .stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-card .stat-label {
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  font-weight: 500;
  margin-top: .3rem;
}
.stat-card::after {
  content: '';
  position: absolute;
  right: -20px; bottom: -20px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}

.bg-stat-primary  { background: linear-gradient(135deg, #0d1b3e 0%, #1a3060 100%); }
.bg-stat-teal     { background: linear-gradient(135deg, #0ea5a0 0%, #0c7a76 100%); }
.bg-stat-warning  { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }
.bg-stat-success  { background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); }
.bg-stat-danger   { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.bg-stat-info     { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); }

/* ── Tables ──────────────────────────────────────────────── */
.table-card .table {
  margin: 0;
  font-size: .875rem;
}
.table-card .table th {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  background: #f8fafc;
  padding: .85rem 1rem;
}
.table-card .table td {
  padding: .8rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}
.table-card .table tbody tr:last-child td { border-bottom: none; }
.table-card .table tbody tr:hover { background: var(--accent-soft); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

/* ── Forms ───────────────────────────────────────────────── */
.form-control, .form-select {
  border-color: var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  padding: .55rem .85rem;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,165,160,.18);
}
.form-label {
  font-weight: 600;
  font-size: .85rem;
  color: var(--text-main);
  margin-bottom: .35rem;
}

/* ── Badges ──────────────────────────────────────────────── */
.badge { font-size: .72rem; padding: .35em .6em; letter-spacing: .04em; }

/* ── Auth pages ──────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.auth-wrapper::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(14,165,160,.15);
  top: -200px; right: -200px;
}
.auth-wrapper::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(14,165,160,.08);
  bottom: -150px; left: -100px;
}
.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  position: relative;
  z-index: 1;
}
.auth-logo {
  width: 60px; height: 60px;
  background: var(--primary);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem;
  margin: 0 auto 1.2rem;
}
.auth-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: .3rem;
}
.auth-subtitle {
  color: var(--text-muted);
  text-align: center;
  font-size: .88rem;
  margin-bottom: 2rem;
}

/* ── Page header ─────────────────────────────────────────── */
.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}
.page-header .breadcrumb {
  margin: 0;
  font-size: .82rem;
}

/* ── Timeline ────────────────────────────────────────────── */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline-item { display: flex; gap: 1rem; padding-bottom: 1.2rem; position: relative; }
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 16px; top: 32px;
  width: 2px;
  height: calc(100% - 16px);
  background: var(--border);
}
.timeline-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: #fff;
  z-index: 1;
}
.timeline-content { flex: 1; padding-top: .25rem; }
.timeline-content .fw-semibold { font-size: .875rem; }
.timeline-content small { font-size: .78rem; color: var(--text-muted); }

/* ── Status progress tracker ─────────────────────────────── */
.status-track {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1rem 0;
}
.st-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}
.st-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.st-step.done:not(:last-child)::after  { background: var(--accent); }
.st-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  color: var(--text-muted);
  position: relative; z-index: 1;
  transition: all .3s;
}
.st-step.done .st-dot  { background: var(--accent); border-color: var(--accent); color: #fff; }
.st-step.active .st-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.st-label { font-size: .72rem; font-weight: 600; margin-top: .4rem; color: var(--text-muted); text-align: center; }
.st-step.done .st-label, .st-step.active .st-label { color: var(--text-main); }

/* ── Footer ──────────────────────────────────────────────── */
.app-footer {
  background: var(--primary);
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  padding: .9rem 0;
  margin-top: auto;
}

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 768px) {
  .stat-card .stat-value { font-size: 1.6rem; }
  .auth-card { padding: 1.8rem; }
  .page-header h1 { font-size: 1.25rem; }
}

/* ── Animations ──────────────────────────────────────────── */
.fade-in { animation: fadeIn .4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.card { animation: fadeIn .35s ease both; }

/* ── Lost & Found type pills ─────────────────────────────── */
.pill-lost  { background: #fee2e2; color: #b91c1c; border-radius: 999px; padding: .2em .7em; font-size: .78rem; font-weight: 600; }
.pill-found { background: #dcfce7; color: #15803d; border-radius: 999px; padding: .2em .7em; font-size: .78rem; font-weight: 600; }
