:root {
  --primary: #2d60ff;
  --primary-dark: #1a3cb0;
  --accent: #f97316;
  --bg-light: #f5f7fb;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --card-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #eef2ff, #fdf2f8);
  color: var(--text-dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 45%;
  filter: blur(60px);
  opacity: 0.55;
  animation: floatBlob 18s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

body::before {
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(45, 96, 255, 0.4), rgba(45, 96, 255, 0));
}

body::after {
  bottom: -180px;
  right: -100px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.35), rgba(249, 115, 22, 0));
  animation-delay: 4s;
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  35% {
    transform: translate(40px, -30px) scale(1.05);
  }
  65% {
    transform: translate(-30px, 20px) scale(0.98);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

.admin-shell {
  background: #f5f7fb;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  background: #111827;
  color: #f3f4f6;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.sidebar-section + .sidebar-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-brand small {
  color: #fff;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.brand-icon--image {
  padding: 4px;
  overflow: hidden;
}

.brand-icon--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-sidebar .nav-link {
  color: #d1d5db;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 500;
}

.sidebar-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(243, 244, 246, 0.7);
  margin-bottom: 0.75rem;
}

.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
  background: rgba(45, 96, 255, 0.2);
  color: #fff;
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  background: #fff;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-content {
  flex: 1;
  padding: 2rem;
}

.admin-footer {
  padding: 1rem 2rem;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

@media (max-width: 992px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .admin-sidebar .nav-link {
    flex: 1 1 auto;
    text-align: center;
  }
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card-modern {
  border: none;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  background: #fff;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-accent {
  background: var(--accent);
  border: none;
  color: #fff;
}

.table-modern thead {
  background: #f8fafc;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.table-modern tbody tr {
  border-bottom: 1px solid #edf2f7;
}

.hero {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.announcement-ribbon {
  background: linear-gradient(90deg, rgba(45, 96, 255, 0.15), rgba(249, 115, 22, 0.15));
  border: 1px solid rgba(45, 96, 255, 0.2);
  border-radius: 16px;
  padding: 0.9rem 1.25rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 500;
  color: var(--text-dark);
}

.announcement-label {
  background: var(--primary);
  color: #fff;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feedback-impact .impact-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.impact-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(45, 96, 255, 0.1);
  font-weight: 600;
  color: var(--primary);
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(45, 96, 255, 0.15), rgba(17, 24, 39, 0.1));
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.page-title h1 {
  letter-spacing: 0.05em;
}


.site-hero {
  background: linear-gradient(125deg, rgba(45, 96, 255, 0.12), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(45, 96, 255, 0.15);
  padding: 2.5rem;
}

.site-hero__seal {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  padding: 1.5rem 1rem;
  box-shadow: 0 20px 35px rgba(17, 24, 39, 0.08);
  max-width: 280px;
}

.site-hero__logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 25px rgba(17, 24, 39, 0.1);
  border: 4px solid rgba(45, 96, 255, 0.12);
}

.school-logo-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.seal-caption {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seal-subcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.crest-code {
  font-size: 1.35rem;
  letter-spacing: 0.2em;
}

.crest-region {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  opacity: 0.8;
}

.badge-soft {
  background: rgba(45, 96, 255, 0.1);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 600;
}

.section-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.dashboard-stat {
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  background: linear-gradient(135deg, #fff, #f0f4ff);
}

.dashboard-stat h3 {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.info-field {
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  height: 100%;
}

.rating-scale-table th,
.rating-scale-table td {
  vertical-align: middle;
  font-size: 0.95rem;
}

.annex-table th,
.annex-table td {
  vertical-align: top;
}

.annex-table__course-code,
.annex-table__course-title {
  display: block;
  line-height: 1.15;
}

.annex-table__course-code {
  font-weight: 600;
  text-transform: uppercase;
}

.annex-table__course-title {
  color: var(--text-dark);
}

.mov-lines {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mov-line {
  border-left: 3px solid rgba(45, 96, 255, 0.35);
  padding-left: 0.5rem;
  font-size: 0.92rem;
  position: relative;
  margin-left: 0.35rem;
}

.mov-line::before {
  content: '\2022';
  position: absolute;
  left: -0.35rem;
  top: 0;
  color: rgba(17, 24, 39, 0.7);
  font-size: 1rem;
  line-height: 1;
}

.benchmark-text {
  margin-top: 0;
}

.annex-table td.align-top {
  vertical-align: top !important;
}

.table-choice {
  white-space: nowrap;
}

.statement-number {
  font-weight: 600;
  font-size: 1.05rem;
  min-width: 32px;
}

.rating-choice-group {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.75rem;
}

.rating-choice-group .form-check {
  min-width: 70px;
  text-align: center;
  margin: 0;
}

.rating-choice-group .form-check-label {
  display: block;
  width: 100%;
}

.rating-choice-group .form-check-input:checked + .form-check-label {
  color: var(--primary-dark);
  font-weight: 600;
}

.evaluation-form .form-control.bg-light {
  border: 1px dashed #cbd5f5;
}

.set-summary {
  background: linear-gradient(135deg, #ffffff, #eef2ff);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.summary-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.summary-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.summary-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.summary-value {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

.summary-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.annex-report {
  font-size: 0.95rem;
}

.annex-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.annex-summary-card {
  border: 1px solid #e2e8ff;
  border-radius: 16px;
  padding: 1.25rem;
  background: linear-gradient(135deg, #ffffff, #f3f6ff);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.annex-summary-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.15rem 0 0.35rem;
}

.annex-summary-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.annex-section {
  border: 1px solid #e0e7ff;
  box-shadow: none;
}

.annex-section h6 {
  letter-spacing: 0.08em;
}

.annex-table thead th {
  background: #f8f9ff;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.annex-comments-table th {
  background: #f0f4ff;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.annex-report-steps {
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.annex-comments-table td {
  vertical-align: top;
}

.signature-block label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.signature-line {
  border-bottom: 1px dashed #c7d2fe;
  min-height: 1.5rem;
}

.signature-value {
  font-weight: 600;
  margin-top: 0.35rem;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.signature-value--print {
  color: #111;
  font-size: 10pt;
}

.annex-d-report .writing-area {
  border: 1px dashed #cbd5f5;
  border-radius: 12px;
  padding: 1.5rem;
  background: repeating-linear-gradient(
    0deg,
    rgba(203, 213, 245, 0.4),
    rgba(203, 213, 245, 0.4) 1px,
    transparent 1px,
    transparent 28px
  );
  min-height: 140px;
}

.writing-area--lines {
  min-height: 110px;
}

.writing-area--tall {
  min-height: 160px;
}

.plan-entry {
  border: 1px solid #d4dcff;
  border-radius: 12px;
  padding: 1rem;
  background: #f8f9ff;
  white-space: pre-line;
}

.faculty-edit-form {
  border: 1px dashed #cfd8ff;
  border-radius: 16px;
  padding: 1.5rem;
  background: #f7f8ff;
}

body.print-annex-body {
  background: #fff;
  color: #000;
  font-family: 'Times New Roman', 'Segoe UI', serif;
  font-size: 12pt;
  margin: 0;
}

.annex-print {
  max-width: 8.27in;
  margin: 0 auto;
  padding: 0.4in 0.45in 0.3in;
}

.annex-print__header {
  text-align: center;
  margin-bottom: 1.2rem;
}

.annex-print__annex-label {
  font-size: 11pt;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.annex-print__title {
  font-size: 14pt;
  font-weight: 700;
  margin: 0.2rem 0 0;
  letter-spacing: 0.04em;
}

.annex-print__section {
  margin-bottom: 0.9rem;
  page-break-inside: avoid;
}

.annex-print__section-title {
  font-size: 12pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.annex-print__info {
  width: 100%;
  border-collapse: collapse;
  font-size: 11pt;
}

.annex-print__info td {
  padding: 0.2rem 0.25rem;
}

.annex-print__info td:first-child {
  width: 42%;
}

.annex-print__info td:nth-child(2) {
  width: 3%;
}

.annex-print__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.35rem;
  font-size: 11pt;
}

.annex-print__table--summary {
  margin-top: 0.6rem;
}

.annex-print__table th,
.annex-print__table td {
  border: 1px solid #000;
  padding: 0.35rem 0.4rem;
}

.annex-print__table th {
  text-transform: uppercase;
  font-size: 10pt;
  text-align: center;
  letter-spacing: 0.04em;
}

.annex-print__table--comments td {
  min-height: 0.85in;
  vertical-align: top;
}

.annex-print__cell--center {
  text-align: center;
}

.annex-print__cell--right {
  text-align: right;
}

.annex-print__row-total td {
  font-weight: 700;
}

.annex-print__text {
  font-size: 11pt;
  margin-bottom: 0.35rem;
}

.annex-print__steps {
  font-size: 11pt;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.annex-print__steps div {
  display: block;
}

.annex-print__step-label {
  font-weight: 600;
  margin-right: 0.25rem;
}

.annex-print__note {
  font-size: 10pt;
  color: #333;
  margin-top: 0.35rem;
}

.annex-print__footnote {
  font-size: 10pt;
  font-style: italic;
  margin-top: 0.4rem;
}

.annex-print__comments {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

@media (min-width: 900px) {
  .annex-print__comments {
    grid-template-columns: 1fr 1fr;
  }
}

.annex-print__signature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.annex-print__signature-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11pt;
}

.annex-print__signature-table td {
  padding: 0.25rem 0.3rem;
  vertical-align: top;
}

.annex-print__signature-table td:first-child {
  width: 35%;
}

.annex-print__signature-table td:nth-child(2) {
  width: 5%;
}

.annex-print__signature-table td:nth-child(3) {
  width: 60%;
}

.annex-print__line {
  display: block;
  width: 100%;
  border-bottom: 1px solid #000;
  min-height: 1.1rem;
}

.annex-print__subtext {
  font-size: 10pt;
  color: #333;
}

.annex-print .fw-semibold {
  font-weight: 600;
}

.print-annex-body .annex-table__course-code,
.print-annex-body .annex-table__course-title {
  display: block;
}

.print-annex-body .annex-table__course-code {
  font-weight: 700;
}

.print-annex-body .annex-table__course-title {
  font-size: 10pt;
  color: #111;
}

.annex-d-print__summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.4rem;
  border: 1px solid #000;
  font-size: 11pt;
}

.annex-d-print__summary-table th,
.annex-d-print__summary-table td {
  border: 1px solid #000;
  text-align: center;
  padding: 0.4rem;
}

.annex-d-print__summary-table th[colspan="2"] {
  background: #e8eafc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.annex-d-print__plan-table {
  width: 100%;
  border: 1px solid #000;
  border-collapse: collapse;
  margin-top: 0.35rem;
}

.annex-d-print__plan-table th {
  background: #f5f7ff;
  border-bottom: 1px solid #000;
  padding: 0.35rem;
  text-align: left;
  text-transform: uppercase;
  font-size: 10pt;
}

.annex-d-print__plan-table td {
  padding: 0.75rem;
  min-height: 1.4in;
}

.annex-d-print__signature-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 11pt;
}

.annex-d-print__signature-table th {
  background: #eaeafa;
  text-align: left;
  text-transform: uppercase;
  padding: 0.35rem 0.4rem;
  border: 1px solid #000;
}

.annex-d-print__signature-table td {
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  padding: 0.35rem 0.4rem;
}

.annex-d-print__signature-table td:first-child {
  width: 28%;
}

.annex-d-print__signature-table td:nth-child(2) {
  width: 5%;
}

.annex-d-print__signature-table td:nth-child(3) {
  width: 67%;
}

.annex-d-print__signature-table tbody tr:last-child td {
  border-bottom: 1px solid #000;
}

@media print {
  body.print-annex-body .annex-print {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .rating-choice-group {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 1.5rem;
  }
  .card-modern {
    border-radius: 16px;
  }

  .summary-metric {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-value {
    font-size: 1.8rem;
  }
}
