/* ============================================================
   GRACIOUS JEY INTERNATIONAL SCHOOL — DESIGN SYSTEM
   ============================================================ */

:root {
  --green: #1F7A4D;
  --green-dark: #145233;
  --green-light: #2E9E67;
  --green-pale: #EAF5EE;
  --green-mid: #C6E8D4;

  --accent: #F0A93A;
  --accent-dark: #C98620;
  --accent-pale: #FDF1DD;

  --white: #FFFFFF;
  --off-white: #F8FAF8;
  --ink: #122019;
  --text-mid: #4B5D53;
  --text-soft: #7C8C81;
  --border: #E6E9E4;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 2px 18px rgba(18, 32, 25, 0.06);
  --shadow-md: 0 10px 32px rgba(18, 32, 25, 0.10);

  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-pale);
  border: 1px solid var(--green-mid);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 18px;
}

.section-title {
  font-size: 34px;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 15.5px;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.75;
}

.section-head {
  margin-bottom: 44px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head.center .section-desc { margin: 0 auto; }

section { padding: 90px 0; }
section.tight { padding: 60px 0; }
section.alt { background: var(--off-white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn i { font-size: 14px; }
.btn-accent {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(240, 169, 58, 0.35);
}
.btn-accent:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-2px); }

.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Navbar ---------- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 42px; height: 42px;
  background: var(--green);
  color: var(--white);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
}
.logo-name { display: block; font-size: 15px; font-weight: 800; font-family: var(--font-head); }
.logo-tag { display: block; font-size: 10.5px; color: var(--text-soft); letter-spacing: 0.3px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-mid);
  padding: 10px 16px;
  border-radius: 7px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); background: var(--green-pale); }
.nav-cta-wrap { display: flex; align-items: center; gap: 10px; }

.hamburger {
  display: none;
  background: none;
  border: none;
  width: 38px; height: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 10px 24px 22px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-menu a {
  padding: 13px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a.active { color: var(--green); }
.mobile-menu.open { display: flex; }

@media (max-width: 900px) {
  .nav-links, .nav-cta-wrap .btn-outline { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Hero (green diagonal panel, white dominant) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 76px 32px 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  font-size: 50px;
  margin-bottom: 20px;
}
.hero-content h1 .hi-accent { color: var(--green); }
.hero-desc {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 460px;
  margin-bottom: 32px;
  line-height: 1.75;
}
.hero-btns { display: flex; gap: 14px; margin-bottom: 44px; flex-wrap: wrap; }
.hero-dots {
  display: grid;
  grid-template-columns: repeat(6, 8px);
  gap: 8px;
}
.hero-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--green-mid); }

.hero-visual {
  position: relative;
  min-height: 480px;
}
.hero-panel {
  position: absolute;
  top: -76px;
  bottom: -1px;
  right: -32px;
  left: 8%;
  background: var(--green);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green-dark);
  clip-path: polygon(28% 0, 40% 0, 12% 100%, 0% 100%);
  opacity: 0.5;
}
.hero-photo-wrap {
  position: absolute;
  top: 50%; left: 56%;
  transform: translate(-50%, -50%);
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 8px solid var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  z-index: 3;
}
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }

.hero-shape {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
}
.hero-shape.s1 { width: 60px; height: 60px; background: var(--accent); top: 14%; right: 6%; }
.hero-shape.s2 { width: 24px; height: 24px; background: var(--white); border: 3px solid var(--accent); bottom: 12%; left: 4%; }
.hero-shape.s3 { width: 34px; height: 34px; background: var(--green-light); bottom: 8%; right: 16%; }

.hero-stats {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding: 34px 0;
  display: flex;
  gap: 44px;
}
.hero-stats .stat-num { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--ink); }
.hero-stats .stat-label { font-size: 12.5px; color: var(--text-soft); margin-top: 2px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-content h1 { font-size: 38px; }
  .hero-visual { min-height: 320px; }
  .hero-panel { left: 0; right: 0; top: 0; }
  .hero-photo-wrap { width: 240px; height: 240px; left: 50%; }
  .hero-stats { flex-wrap: wrap; gap: 28px; }
}

/* ---------- Page header (for interior pages) ---------- */
.page-header {
  background: var(--green);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.page-header .eyebrow { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.2); color: var(--white); }
.page-header h1 { color: var(--white); font-size: 38px; }
.page-header .crumb { color: rgba(255,255,255,0.75); font-size: 13.5px; margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.page-header .crumb a { color: var(--white); font-weight: 600; }

/* ---------- Icon cards ---------- */
.icon-badge {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--green-pale);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  margin-bottom: 18px;
}
.icon-badge.amber { background: var(--accent-pale); color: var(--accent-dark); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.card h3 { font-size: 17px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .section-title { font-size: 27px; }
  section { padding: 60px 0; }
}

/* ---------- Split content block (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); width: 100%; height: 400px; object-fit: cover; }
.split-media .float-tag {
  position: absolute;
  bottom: -20px; left: -20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.float-tag .icon-badge { margin: 0; width: 40px; height: 40px; font-size: 17px; }
.float-tag .num { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.float-tag .lbl { font-size: 11.5px; color: var(--text-soft); }

.value-list { margin-top: 22px; display: flex; flex-direction: column; gap: 13px; }
.value-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--text-mid); }
.value-list li i { color: var(--green); font-size: 15px; margin-top: 3px; }

@media (max-width: 900px) {
  .split, .split.reverse .split-media { grid-template-columns: 1fr; order: 0; }
  .split { grid-template-columns: 1fr; }
}

/* ---------- Stat band ---------- */
.stat-band {
  background: var(--green);
  padding: 48px 0;
}
.stat-band .grid-4 { text-align: center; }
.stat-band .stat-num { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--white); }
.stat-band .stat-label { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 4px; }

/* ---------- Testimonials ---------- */
.test-wrap {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
}
.test-quote-icon { font-size: 32px; color: var(--green-mid); margin-bottom: 18px; }
.test-text { font-size: 20px; font-family: var(--font-head); font-weight: 600; color: var(--ink); line-height: 1.5; max-width: 760px; }
.test-author { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.test-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.test-name { font-weight: 700; font-size: 14.5px; }
.test-role { font-size: 12.5px; color: var(--text-soft); }
.test-nav { display: flex; gap: 10px; margin-top: 28px; }
.test-nav button {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.test-nav button:hover { background: var(--green); color: var(--white); border-color: var(--green); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 16px;
}
.gallery-item { border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.big { grid-column: span 2; grid-row: span 1; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); font-size: 28px; max-width: 480px; }
.cta-banner p { color: rgba(255,255,255,0.65); margin-top: 10px; font-size: 14.5px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.form-group .required { color: var(--accent-dark); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  background: var(--off-white);
  transition: border-color 0.15s, background 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green); background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-divider {
  font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--green); margin: 26px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.form-divider:first-child { margin-top: 0; }
.file-drop {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 22px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.file-drop:hover { border-color: var(--green); background: var(--green-pale); }
.file-drop i { font-size: 22px; color: var(--green); display: block; margin-bottom: 8px; }
.file-name { font-size: 12.5px; color: var(--green); margin-top: 8px; font-weight: 600; }

.form-note { font-size: 12.5px; color: var(--text-soft); text-align: center; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; }

.field-error { font-size: 12px; color: #C24545; margin-top: 5px; display: none; }
.field-error.show { display: block; }
.form-group.invalid input, .form-group.invalid select, .form-group.invalid textarea { border-color: #C24545; }

.success-panel {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.success-panel.show { display: block; }
.success-panel .icon-badge { margin: 0 auto 18px; width: 64px; height: 64px; font-size: 28px; border-radius: 50%; }
.success-panel h3 { font-size: 22px; margin-bottom: 10px; }
.success-panel p { color: var(--text-mid); font-size: 14.5px; line-height: 1.7; }
.ref-code { display: inline-block; margin-top: 6px; font-family: var(--font-head); font-weight: 800; color: var(--green); font-size: 16px; }

.alert {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 20px;
}
.alert.show { display: flex; }
.alert.error { background: #FBEAEA; color: #A23A3A; border: 1px solid #F0CCCC; }
.alert.info { background: var(--green-pale); color: var(--green-dark); border: 1px solid var(--green-mid); }

/* ---------- Steps (admission process) ---------- */
.step-list { counter-reset: step; display: flex; flex-direction: column; gap: 22px; }
.step-item { display: flex; gap: 18px; }
.step-num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
}
.step-item h4 { font-size: 15.5px; margin-bottom: 4px; }
.step-item p { font-size: 13.5px; color: var(--text-mid); }

/* ---------- Contact ---------- */
.contact-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: none; }
.contact-label { font-size: 12px; color: var(--text-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.contact-value { font-size: 15px; font-weight: 600; margin-top: 4px; }
.contact-value a:hover { color: var(--green); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); height: 100%; min-height: 380px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(255,255,255,0.7); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 68px 32px 36px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .logo-name, .footer-brand .logo-tag { color: var(--white); }
.footer-desc { font-size: 13.5px; line-height: 1.8; margin: 18px 0 20px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.footer-social a:hover { background: var(--green); }
footer h4 { color: var(--white); font-size: 14px; margin-bottom: 18px; }
.footer-links li { margin-bottom: 11px; font-size: 13.5px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 32px;
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; font-size: 12.5px;
  flex-wrap: wrap; gap: 8px;
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 10px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px;
  z-index: 999;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-md);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast i { color: var(--green-light); font-size: 16px; }
.toast.error i { color: #E57373; }

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */
.admin-shell { min-height: 100vh; background: var(--off-white); }

.login-wrap {
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.login-card .icon-badge { margin: 0 auto 18px; }
.login-card h2 { font-size: 20px; text-align: center; margin-bottom: 6px; }
.login-card .sub { text-align: center; font-size: 13.5px; color: var(--text-soft); margin-bottom: 26px; }

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 50;
}
.admin-topbar .nav-inner { padding: 0 32px; }

.admin-body { display: none; }
.admin-body.show { display: block; }
.login-screen { display: block; }
.login-screen.hide { display: none; }

.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.stat-tile { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-tile .tile-label { font-size: 12px; color: var(--text-soft); font-weight: 600; }
.stat-tile .tile-num { font-family: var(--font-head); font-size: 28px; font-weight: 800; margin-top: 6px; }

.tabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.tab-btn {
  background: none; border: none; padding: 12px 18px; font-size: 14px; font-weight: 600;
  color: var(--text-soft); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-btn.active { color: var(--green); border-color: var(--green); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar select, .toolbar input {
  padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 7px; font-size: 13.5px; background: var(--white);
}

.data-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.data-table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--text-soft); background: var(--off-white); padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.data-table td { padding: 14px 16px; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr.row-btn { cursor: pointer; transition: background 0.15s; }
.data-table tr.row-btn:hover { background: var(--green-pale); }
.data-table .empty-row td { text-align: center; color: var(--text-soft); padding: 40px 16px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 20px; }
.badge.pending { background: var(--accent-pale); color: var(--accent-dark); }
.badge.reviewed { background: #E7EEFB; color: #3A5FA8; }
.badge.accepted { background: var(--green-pale); color: var(--green-dark); }
.badge.rejected { background: #FBEAEA; color: #A23A3A; }

.modal-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(18,32,25,0.5);
  align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg); max-width: 600px; width: 100%;
  max-height: 86vh; overflow-y: auto; padding: 32px;
}
.modal-close { position: absolute; top: 20px; right: 20px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-bottom: 24px; }
.detail-item .k { font-size: 11.5px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.3px; }
.detail-item .v { font-size: 14.5px; font-weight: 600; margin-top: 3px; }
.detail-full { grid-column: 1 / -1; }
.status-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.status-actions button {
  font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: 7px; border: 1.5px solid var(--border); background: var(--white);
}
.status-actions button:hover { border-color: var(--green); color: var(--green); }
.status-actions button.current { background: var(--green); color: var(--white); border-color: var(--green); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: 14px !important; }
.text-center { text-align: center; }
.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ============================================================
   NAVBAR LOGIN DROPDOWN
   ============================================================ */
.nav-login-wrap {
  position: relative;
}
.nav-login-btn {
  background: var(--green);
  color: var(--white);
  border: none;
  gap: 7px;
  padding: 11px 18px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.nav-login-btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.nav-login-btn .nav-login-chevron {
  font-size: 12px;
  transition: transform 0.22s ease;
}
.nav-login-wrap.open .nav-login-chevron { transform: rotate(180deg); }

.nav-login-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(18,32,25,0.13);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 200;
  animation: dropIn 0.2s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-login-wrap.open .nav-login-dropdown { display: flex; }

.nav-login-option {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  border-radius: 9px;
  transition: background 0.15s;
  color: var(--ink);
}
.nav-login-option:hover { background: var(--off-white); }

.nlo-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.nlo-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.nlo-desc {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 1px;
}

/* Mobile menu divider + login links */
.mobile-menu-divider {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-soft);
  padding: 14px 4px 6px;
}
.mobile-login-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: var(--green) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
.mobile-login-link i { font-size: 16px; }

/* Role icon colour variants */
.student-icon { background: #EAF0FB; color: #3B68C9; }
.teacher-icon { background: var(--accent-pale); color: var(--accent-dark); }
.principal-icon { background: var(--green-pale); color: var(--green); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page-body {
  background: var(--off-white);
  min-height: 100vh;
}

.login-main {
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

/* Decorative background blobs */
.login-bg-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.login-bg-shape.s1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(31,122,77,0.07) 0%, transparent 70%);
  top: -120px; right: -100px;
}
.login-bg-shape.s2 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(240,169,58,0.07) 0%, transparent 70%);
  bottom: -80px; left: -80px;
}
.login-bg-shape.s3 {
  width: 180px; height: 180px;
  background: rgba(31,122,77,0.04);
  bottom: 20%; right: 8%;
}

.login-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

/* Panel switching */
.login-screen-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 8px 40px rgba(18,32,25,0.09);
  animation: panelIn 0.25s ease;
}
.login-screen-panel.exit {
  animation: panelOut 0.22s ease forwards;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes panelOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* Brand block */
.login-brand { text-align: center; margin-bottom: 32px; }
.login-logo-icon {
  width: 60px; height: 60px;
  background: var(--green);
  color: var(--white);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  margin: 0 auto 16px;
  box-shadow: 0 6px 20px rgba(31,122,77,0.3);
}
.login-school-name {
  font-size: 20px;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
}
.login-tagline {
  font-size: 13.5px;
  color: var(--text-soft);
}

/* Role cards */
.role-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.role-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  text-align: left;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.15s;
  cursor: pointer;
  width: 100%;
}
.role-card:hover {
  border-color: var(--green);
  background: var(--green-pale);
  box-shadow: 0 4px 16px rgba(31,122,77,0.1);
  transform: translateY(-2px);
}
.role-card .role-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  margin-bottom: 0;
}
.role-info { flex: 1; }
.role-title {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.role-desc {
  display: block;
  font-size: 12.5px;
  color: var(--text-soft);
  margin-top: 2px;
}
.role-arrow {
  color: var(--text-soft);
  font-size: 16px;
  transition: transform 0.15s, color 0.15s;
}
.role-card:hover .role-arrow { transform: translateX(4px); color: var(--green); }

/* Login form header */
.login-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color 0.15s;
}
.login-back-btn:hover { color: var(--green); }

.login-form-header {
  text-align: center;
  margin-bottom: 28px;
}
.login-form-icon {
  margin: 0 auto 14px !important;
  width: 52px !important;
  height: 52px !important;
  font-size: 22px !important;
  border-radius: 12px !important;
}
.login-form-header h2 {
  font-size: 20px;
  margin-bottom: 5px;
}
.login-form-header p {
  font-size: 13.5px;
  color: var(--text-soft);
}

/* Input with icon */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon > i:first-child {
  position: absolute;
  left: 13px;
  font-size: 16px;
  color: var(--text-soft);
  pointer-events: none;
  z-index: 1;
}
.input-with-icon input {
  padding-left: 40px !important;
  padding-right: 42px;
}
.pass-toggle {
  position: absolute;
  right: 11px;
  background: none;
  border: none;
  padding: 4px;
  color: var(--text-soft);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.15s;
  display: flex; align-items: center;
}
.pass-toggle:hover { color: var(--green); }

/* Login alert */
.login-alert {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.login-alert.show { display: flex; }
.login-alert.error { background: #FBEAEA; color: #A23A3A; border-color: #F0CCCC; }
.login-alert i { font-size: 16px; margin-top: 1px; flex-shrink: 0; }

/* Login submit button */
.login-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  padding: 14px;
  font-size: 15px;
}
.login-submit-btn:disabled { opacity: 0.75; cursor: not-allowed; transform: none !important; }

/* Help text */
.login-help-text {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-soft);
  text-align: center;
  justify-content: center;
  margin-top: 20px;
  line-height: 1.6;
}
.login-help-text i { flex-shrink: 0; margin-top: 1px; font-size: 14px; }

@media (max-width: 480px) {
  .login-screen-panel { padding: 30px 22px; }
  .login-school-name { font-size: 17px; }
}

