@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

:root {
  --afca-bg: #f7f9fc;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #6b7280;
  --slate-100: #e2e8f0;
  --navy: #0b2545;
  --card: #ffffff;
  --accent: #1d4ed8;
  --legend-inactive: #9ca3af;
  --legend-lect: #fbbf24;
  --legend-dept: #ef4444;
  --legend-facty: #10b981;
}

body {
  background: var(--afca-bg);
}

.has-role-sidebar {
  padding-left: 230px;
}

.bg-navy {
  background-color: #001233 !important;
}

.navbar.bg-navy .navbar-brand,
.navbar.bg-navy .navbar-nav .nav-link {
  color: #fff;
}

.navbar.bg-navy .navbar-nav .nav-link:hover,
.navbar.bg-navy .navbar-nav .nav-link:focus {
  color: #e0e8ff;
}

.hero {
  background: linear-gradient(135deg, #0d6efd, #563d7c);
  color: #fff;
  border-radius: 1rem;
}

.card {
  border: 0;
}

.student-statement {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
}

.statement-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.statement-sidebar {
  background: var(--card);
  border-radius: 12px;
  padding: 18px 16px;
  position: sticky;
  top: 88px;
}

.sidebar-title {
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 10px;
}

.statement-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.statement-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--slate-700);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.statement-menu a:hover {
  background: #eef2ff;
  border-color: #e0e7ff;
  color: #312e81;
}

.statement-menu a.active {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
  font-weight: 700;
}

.statement-content {
  min-width: 0;
}

.statement-card {
  background: var(--card);
  border-radius: 16px;
  padding: 22px;
  border: 1px solid var(--slate-100);
}

.doc-brand-name {
  font-weight: 800;
  color: var(--slate-900);
  font-size: 18px;
}

.doc-brand-sub {
  color: var(--slate-600, #475569);
  font-size: 13px;
  line-height: 1.4;
}

.doc-brand-logo img {
  max-height: 70px;
  max-width: 160px;
  object-fit: contain;
}

.statement-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.statement-kicker {
  color: var(--slate-500);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
}

.statement-title {
  font-weight: 700;
  color: var(--slate-900);
  margin: 4px 0;
}

.statement-subtitle {
  color: var(--slate-500);
  font-weight: 600;
}

.statement-filter {
  min-width: 220px;
}

.statement-note {
  background: #fff8f8;
  border: 1px solid #ffe4e6;
  border-radius: 12px;
  padding: 12px 14px;
  color: #b91c1c;
  font-weight: 600;
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.note-title {
  font-size: 13px;
  letter-spacing: 0.03em;
}

.note-body {
  display: grid;
  gap: 4px;
  color: var(--slate-700);
  font-weight: 600;
}

.legend {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 6px;
}

.legend-inactive { background: var(--legend-inactive); }
.legend-lect { background: var(--legend-lect); }
.legend-dept { background: var(--legend-dept); }
.legend-facty { background: var(--legend-facty); }

.statement-table-wrapper {
  border: 1px solid var(--slate-100);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #f8fafc;
}

.statement-semester {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--slate-900);
  padding: 12px 16px;
  border-bottom: 1px solid var(--slate-100);
}

.statement-table thead th {
  background: #4b5563;
  color: #fff;
  font-weight: 700;
  border: 0;
}

.statement-table tbody tr td {
  vertical-align: middle;
}

.statement-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.statement-table tbody tr:nth-child(odd) {
  background: #fff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  color: var(--slate-900);
  background: #e5e7eb;
}

.status-pill.with-dept {
  background: #fef2f2;
  color: #b91c1c;
}

.status-pill.with-facty {
  background: #ecfdf3;
  color: #047857;
}

.totals-row td {
  background: #e2e8f0 !important;
}

.statement-gpa {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  justify-content: flex-end;
  background: #f1f5f9;
  border-top: 1px solid var(--slate-100);
  font-weight: 700;
  color: var(--slate-700);
}

@media (max-width: 991px) {
  .statement-shell {
    grid-template-columns: 1fr;
  }

  .statement-sidebar {
    position: static;
  }

  .statement-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.role-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100%;
  background: #0b2545;
  color: #fff;
  padding: 80px 12px 16px;
  z-index: 1020;
  overflow-y: auto;
}

.role-sidebar-header {
  padding: 0 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

.role-sidebar-title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.role-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.role-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e5e7eb;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.role-sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.role-sidebar-overlay {
  display: none;
}

.role-sidebar-nav i {
  width: 18px;
}

@media (max-width: 991px) {
  .has-role-sidebar {
    padding-left: 0;
  }
  .role-sidebar {
    display: none;
  }
  .role-sidebar.show {
    display: block;
    background: #0b2545;
    z-index: 1050;
  }
  .role-sidebar-overlay {
    display: none;
  }
  .role-sidebar-overlay.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
  }
}

.transcript-sheet {
  position: relative;
  background: #f7fbff;
  border-radius: 18px;
  border: 1px solid #c3d4e6;
  padding: 22px;
  overflow: hidden;
}

.transcript-watermark {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(0, 123, 255, 0.05), transparent 35%),
    radial-gradient(circle at 80% 40%, rgba(0, 123, 255, 0.05), transparent 35%);
  opacity: 0.8;
  pointer-events: none;
}

.transcript-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 12px;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
}

.transcript-header .crest-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 2px solid #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #1d4ed8;
  background: #fff;
}

.transcript-university {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #0066cc;
}

.transcript-institute {
  font-weight: 700;
  color: #374151;
}

.transcript-contact {
  font-size: 13px;
  color: #4b5563;
}

.transcript-title {
  font-weight: 800;
  color: #0f172a;
  margin-top: 4px;
}

.transcript-banner {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #b91c1c;
  font-weight: 700;
}

.transcript-body {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 16px;
  border: 1px dashed #c3d4e6;
}

.transcript-field {
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
  margin-bottom: 6px;
}

.transcript-field span {
  color: #4b5563;
  margin-right: 6px;
}

.transcript-semester {
  margin-top: 16px;
  border-top: 1px solid #d8e2f0;
  padding-top: 10px;
}

.transcript-semester-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.transcript-table thead th {
  background: #1e293b;
  color: #fff;
  border: 0;
}

.transcript-table tbody tr:nth-child(even) {
  background: #eef2f7;
}

.transcript-table td {
  vertical-align: middle;
}

.transcript-gpa {
  text-align: right;
  font-weight: 700;
  color: #0f172a;
  margin-top: 4px;
}
