/* public/css/style.css */

/* ------------ GLOBAL RESET & BASE ------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #111827;
  line-height: 1.5;
}

:root {
  --lu-red: #c8102e;        /* blazer red */
  --lu-red-dark: #8b0d22;   /* deeper blazer red */
  --lu-grey-dark: #1f2933;  /* deep grey/navy */
  --lu-grey: #4b5563;       /* jersey grey */
  --lu-grey-light: #e5e7eb; /* light grey borders */
  --lu-bg-soft: #f9fafb;    /* soft background */
}
/* Links */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Simple icons placeholders if needed */
.icon {
  margin-right: 0.5rem;
}

/* ------------ LAYOUT: DASHBOARD SHELL ------------ */

.dashboard-body {
  background: #0b1723;
}

/* Whole page frame */
.dashboard-layout {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, #0b1723 0%, #111827 40%, #020617 100%);
}

/* Content area beside sidebar */
.dashboard-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ------------ SIDEBAR ------------ */

.sidebar {
  width: 250px;
  background: #020617;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.25);
  transition: width 0.2s ease;
  position: relative;
}

/* Collapsed mode – labels hidden, icons only */
body.sidebar-collapsed .sidebar {
  width: 72px;
}

/* Sidebar header (logo + toggle) */
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.sidebar-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 999px;   /* keep logo circular */
  background: #fff;
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f9fafb;
}

/* Hide title when collapsed */
body.sidebar-collapsed .sidebar-title {
  display: none;
}

/* Toggle button (hamburger) */
.sidebar-toggle {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.25rem;
}

/* Sidebar navigation */
.sidebar-nav {
  padding: 0.75rem 0.5rem 1rem;
  flex: 1;
  overflow-y: auto;
}

/* Section headings */
.nav-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  padding: 0.5rem 1.25rem;
}

/* Hide section titles when collapsed */
body.sidebar-collapsed .nav-section-title {
  display: none;
}

/* Link list */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item + .nav-item {
  margin-top: 0.15rem;
}

/* Actual link style */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  border-radius: 0;          /* straight corners */
  color: #e5e7eb;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

/* Icon bubble */
.nav-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;       /* keep icon round */
  background: rgba(15, 23, 42, 0.9);
  font-size: 1rem;
}

/* Label text */
.nav-link-label {
  white-space: nowrap;
}

/* Hide labels in collapsed mode */
body.sidebar-collapsed .nav-link-label {
  display: none;
}

/* Active/hover states */
.nav-link:hover {
  background: rgba(55, 65, 81, 0.9);
  transform: translateX(1px);
}

.nav-link.active {
  background: #4b5563;      /* soft grey bar */
  color: #f9fafb;
  font-weight: 600;
}

.nav-link.active .nav-link-icon {
  background: #9ca3af;      /* lighter grey icon bubble */
}

/* Footer inside sidebar */
.sidebar-footer {
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Hide footer when collapsed */
body.sidebar-collapsed .sidebar-footer {
  display: none;
}

/* ------------ TOP BAR ------------ */

.dashboard-topbar {
  height: 64px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(12px);
  color: #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-left {
  display: flex;
  flex-direction: column;
}

.topbar-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.topbar-subtitle {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* User info / logout */
.user-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.btn-logout {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
  font-size: 0.8rem;
}

.btn-logout:hover {
  background: rgba(248, 250, 252, 0.1);
  text-decoration: none;
}

/* ------------ MAIN CONTENT AREA ------------ */

.dashboard-main {
  padding: 1.75rem 1.5rem 2rem;
  color: #e5e7eb;
}

.dashboard-main h1 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.dashboard-main p {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: #cbd5f5;
}

/* ------------ CARDS GRID ------------ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  /* neutral grey gradient instead of red */
  background: radial-gradient(circle at top left, #9ca3af 0%, #6b7280 30%, #020617 100%);
  border-radius: 0;          /* straight corners */
  padding: 1.2rem 1.4rem;
  color: #f9fafb;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  font-size: 0.95rem;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 45px rgba(15, 23, 42, 0.85);
  text-decoration: none;
}

/* Alternative neutral card (can be used for reports) */
.card-neutral {
  background: linear-gradient(135deg, #020617, #111827);
  border-radius: 0;          /* straight */
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.6);
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
  letter-spacing: 0.03em;
}

.card-description {
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* Disabled card (coming soon) */
.card.disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* ------------ DASHBOARD STATS ROW ------------ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}

/* Flatter, cleaner stat card */
.stat-card {
  background: #020617;
  border-radius: 0;          /* straight corners */
  padding: 0.9rem 1.1rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* subtle grey strip at the top instead of red */
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 4px;
  background: linear-gradient(90deg, #e5e7eb, #9ca3af, #6b7280);
  opacity: 0.95;
}

/* label at top */
.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-top: 0.35rem;  /* push below glow strip */
  margin-bottom: 0.2rem;
}

/* main number – bigger & brighter */
.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 0.1rem;
}

/* small description */
.stat-note {
  font-size: 0.75rem;
  color: #d1d5db;  /* light grey note text */
}

/* small screens: 2 per row */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* very small: 1 per row */
@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------ SIMPLE RESPONSIVE ------------ */

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-topbar {
    padding-inline: 1rem;
  }

  .dashboard-main {
    padding-inline: 1rem;
  }
}

/* ---------- AUTH / LOGIN PAGE (new structure: .auth-shell / .auth-card) ---------- */

.auth-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #1f2937 0, #020617 55%, #000 100%);
  color: #e5e7eb;
}

.auth-shell {
  width: 100%;
  max-width: 480px;
  padding: 1.5rem;
}

.auth-card {
  padding: 2rem 2.25rem;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-logo img {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
}

.auth-title {
  text-align: center;
  font-size: 1.75rem;
  margin: 0 0 0.25rem;
}

.auth-subtitle {
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.auth-form label {
  font-size: 0.9rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid #4b5563;
  background: #020617;
  color: #e5e7eb;
}

.auth-form input:focus {
  outline: 2px solid #6366f1;
  outline-offset: 1px;
  border-color: #6366f1;
}

.btn-primary {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.auth-hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
  opacity: 0.9;
}

.auth-hint .muted {
  opacity: 0.75;
}

/* ---------- AUTH / LOGIN PAGE (legacy structure: .auth-container) ---------- */
/* This makes the *old* login markup also look like a centered card */

.auth-body .auth-container {
  max-width: 480px;
  width: 100%;
  margin: 3rem auto;
  padding: 2rem 2.25rem;
  background: radial-gradient(circle at top left, #111827 0%, #020617 55%, #000 100%);
  color: #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.7);
}

.auth-body .auth-container h1 {
  text-align: center;
  margin: 0 0 0.3rem;
}

.auth-body .auth-container .subtitle {
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

.auth-body .auth-container .auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.auth-body .auth-container label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.auth-body .auth-container input[type="email"],
.auth-body .auth-container input[type="password"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid #4b5563;
  background: #020617;
  color: #e5e7eb;
}

.auth-body .auth-container button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.auth-body .auth-container .hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
  opacity: 0.9;
}
.dashboard-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.dash-btn {
  display: block;
  padding: 14px;
  text-align: center;
  background: #1e293b;
  color: #ffffff;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
  border: 1px solid #0f172a;
}

.dash-btn:hover {
  background: #334155;
  transform: translateY(-2px);
}

/* Optional role colors */
.dash-btn.admin     { background: #3b82f6; }
.dash-btn.director  { background: #475569; }
.dash-btn.teacher   { background: #22c55e; }
.dash-btn.student   { background: #f97316; }
.dash-btn.parent    { background: #eab308; }
.dash-btn.principal { background: #8b5cf6; }
.dash-btn.shop      { background: #0ea5e9; }
.dash-btn.security  { background: #ef4444; }
.dash-btn.cleaner   { background: #14b8a6; }

.dash-btn.admin:hover     { background: #2563eb; }
.dash-btn.teacher:hover   { background: #16a34a; }
.dash-btn.student:hover   { background: #ea580c; }
.dash-btn.parent:hover    { background: #ca8a04; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-back-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.2);
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.header-back-btn:hover {
  background: rgba(30, 64, 175, 0.9);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.5);
  transform: translateY(-1px);
}
/* ====== LUZUKOLWAKHESS LANDING PAGE ====== */

.landing-body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #111827;
}

.landing-container {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
}

/* HEADER / NAV */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-text {
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
}

.brand-tagline {
  font-size: 0.75rem;
  color: #6b7280;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
  background: #111827;
  color: #f9fafb;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}

.btn-primary {
  background: #dc2626;
  color: #fef2f2;
  border-color: #b91c1c;
}

.btn-primary:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  color: #111827;
  border-color: #e5e7eb;
}

.btn-outline:hover {
  background: #111827;
  color: #f9fafb;
}

.btn-ghost {
  background: transparent;
  color: #111827;
  border-color: #d1d5db;
}
.btn-accent {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ecfdf5;
  border-color: #15803d;
}

.btn-accent:hover {
  background: #15803d;
  transform: translateY(-1px);
}
.btn-ghost:hover {
  background: #f3f4f6;
}

/* HERO */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.35));
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 2rem;
  padding: 3.5rem 0;
  color: #f9fafb;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin-bottom: 1rem;
}

.hero-text p {
  max-width: 32rem;
  font-size: 0.98rem;
  color: #e5e7eb;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-side-card {
  background: rgba(15, 23, 42, 0.9);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(248, 250, 252, 0.08);
}

.hero-side-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.hero-side-card ul {
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* SECTIONS */
.section {
  padding: 3rem 0;
  background: #f9fafb;
}

.section-light {
  background: #ffffff;
}

.section-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: center;
}

.section-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.section-intro {
  text-align: center;
  margin-bottom: 2rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.section-text h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.section-text p {
  font-size: 0.95rem;
  color: #4b5563;
}

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-item {
  background: #f3f4f6;
  border-radius: 0.9rem;
  padding: 0.9rem;
  text-align: center;
}

.stat-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: #dc2626;
}

.stat-label {
  font-size: 0.8rem;
  color: #6b7280;
}

/* IMAGE CARD */
.section-image-card {
  justify-self: center;
}

.rounded-img {
  width: 100%;
  max-width: 420px;
  border-radius: 1.2rem;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

/* INFO CARDS */
.cards-grid {
  display: grid;
  gap: 1.25rem;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.info-card p {
  font-size: 0.9rem;
  color: #4b5563;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 0.8rem;
  border: 1px solid #e5e7eb;
}

.gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* CTA SECTION */
.cta-section {
  background: #111827;
  color: #f9fafb;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-inner h2 {
  margin: 0 0 0.5rem 0;
}

.cta-inner p {
  margin: 0;
  color: #e5e7eb;
  max-width: 32rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* FOOTER */
.site-footer {
  background: #020617;
  color: #e5e7eb;
  padding-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}

.footer-block h3 {
  margin-top: 0;
  font-size: 1rem;
}

.footer-block p,
.footer-block li {
  font-size: 0.85rem;
  color: #9ca3af;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #111827;
  text-align: center;
  padding: 0.75rem 0;
  font-size: 0.8rem;
  color: #6b7280;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .main-nav {
    display: none; /* you can later replace with mobile menu if you want */
  }
}
/* ====== LUZUKOLWAKHESS DASHBOARD COLOUR THEME (UNIFORM) ====== */

/* Page background for dashboards */
.dashboard-body {
  background: radial-gradient(circle at top left, #fef2f2 0, #f9fafb 45%, #eef2ff 100%);
  color: var(--lu-grey-dark);
}

/* Keep wrapper transparent so background shows */
.dashboard-layout {
  background: transparent;
}

/* SIDEBAR */
.sidebar {
  background: linear-gradient(180deg, var(--lu-red-dark), var(--lu-red));
  color: #fef2f2;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
}

.sidebar-header {
  border-bottom: 1px solid rgba(248, 250, 252, 0.15);
}

.sidebar-title {
  color: #fef2f2;
}

.sidebar-logo img {
  background: #ffffff;
  border-radius: 999px;
  padding: 4px;
}

/* Sidebar section titles */
.nav-section-title {
  color: rgba(249, 250, 251, 0.85);
}

/* Sidebar links */
.nav-item {
  color: #f9fafb;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.08s ease,
    border-color 0.15s ease;
}

.nav-item:hover {
  background: rgba(248, 250, 252, 0.12);
  border-color: rgba(248, 250, 252, 0.3);
  transform: translateX(2px);
}

/* Logout link */
.nav-item.nav-item-danger {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.6);
}

.nav-item.nav-item-danger:hover {
  background: rgba(248, 113, 113, 0.2);
}

/* MAIN AREA */
.dashboard-main {
  background: transparent;
}

/* Top bar */
.dashboard-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.topbar-title {
  color: var(--lu-grey-dark);
}

.topbar-subtitle {
  color: #6b7280;
}

/* User badge */
.user-info {
  background: linear-gradient(135deg, #fee2e2, #eff6ff);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  border: 1px solid #fecaca;
}

.user-name {
  color: var(--lu-grey-dark);
}

/* DASHBOARD CARDS (stats & actions) */
.stat-card,
.action-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.stat-card .stat-label {
  color: #6b7280;
}

.stat-card .stat-value {
  color: var(--lu-red-dark);
}

.stat-card .stat-meta {
  color: #9ca3af;
}

/* Action cards hover */
.action-card {
  color: var(--lu-grey-dark);
}

.action-card .action-icon {
  color: var(--lu-red);
}

.action-card:hover {
  border-color: #fecaca;
  box-shadow: 0 18px 40px rgba(248, 113, 113, 0.25);
  transform: translateY(-1px);
}

/* System / notice panel */
.system-panel {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.system-list li::marker {
  color: var(--lu-red);
}

/* Section titles inside dashboards */
.dashboard-section .section-title {
  color: var(--lu-grey-dark);
}

/* Primary buttons everywhere (landing + dashboards) */
.btn-primary {
  background: var(--lu-red);
  border-color: var(--lu-red-dark);
}

.btn-primary:hover {
  background: var(--lu-red-dark);
}

/* Links get red accent */
a {
  color: var(--lu-red-dark);
}

a:hover {
  color: #991b1b;
}
/* === LUZUKOLWAKHESS DASHBOARD TWEAK – STRAIGHT CORNERS & CLEAN SIDEBAR === */

/* 1. Straight corners for main dashboard cards */
.stat-card,
.action-card,
.system-panel {
  border-radius: 0;              /* no rounding on admin/director cards */
}

/* 2. Slightly softer sidebar shadow (less "glow") */
.sidebar {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.45);
}

/* 3. Sidebar spacing + alignment */
.sidebar-nav {
  padding: 0.75rem 0 1rem;
}

.sidebar .nav-list {
  padding: 0;
}

.sidebar .nav-item {
  margin: 0;
}

/* 4. Real sidebar link style (only inside sidebar) */
.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.4rem;
  border-radius: 0;                          /* straight bar */
  background: transparent;
  color: #f9fafb;
  border-left: 3px solid transparent;
  text-decoration: none;
  transform: none;
  transition:
    background 0.15s ease,
    border-left-color 0.15s ease,
    color 0.15s ease;
}

.sidebar .nav-link:hover {
  background: rgba(15, 23, 42, 0.35);
  border-left-color: rgba(248, 250, 252, 0.85);
}

/* Active menu item */
.sidebar .nav-link.active {
  background: rgba(15, 23, 42, 0.6);
  border-left-color: #ffffff;
  font-weight: 600;
}

/* Make sure labels stay bright and readable */
.sidebar .nav-link .nav-link-label {
  color: #f9fafb;
}

/* Section titles on sidebar: slightly brighter */
.sidebar .nav-section-title {
  color: rgba(248, 250, 252, 0.8);
}

/* 5. Stronger, clearer text on stat cards */
.stat-card .stat-label {
  color: #4b5563;   /* darker grey for readability */
}

.stat-card .stat-meta,
.stat-card .stat-note {
  color: #6b7280;
}
/* === LUZUKOLWAKHESS – DASHBOARD TEXT VISIBILITY FIX === */

/* Make all main dashboard text use darker, readable colours */
.dashboard-main {
  color: var(--lu-grey-dark);
}

/* Headings on dashboards (Welcome, Student Dashboard, etc.) */
.dashboard-main h1,
.dashboard-main h2,
.dashboard-main h3 {
  color: var(--lu-grey-dark);
}

/* Normal paragraph text (welcome message, descriptions) */
.dashboard-main p {
  color: #4b5563;       /* clear grey on light background */
}

/* Optional subtitles / softer lines if these classes exist */
.dashboard-main .subheading,
.dashboard-main .page-subtitle,
.dashboard-main .welcome-subtitle {
  color: #6b7280;
}
/* === LUZUKOLWAKHESS – UNIFY SIDEBAR STYLING ON ALL DASHBOARDS === */

/* Remove old pill look from generic .nav-item so it doesn't fight sidebar */
.nav-item {
  border-radius: 0;
  border: none;
  background: transparent;
}

/* Make sure all lists are clean in sidebar */
.sidebar .nav-list,
.sidebar .nav-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Treat ANY sidebar item (.nav-link OR .nav-item) the same */
.sidebar .nav-link,
.sidebar a.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.4rem;
  border-radius: 0;                        /* straight strip */
  background: transparent;
  color: #f9fafb;
  border-left: 3px solid transparent;
  text-decoration: none;
  transform: none;
  transition:
    background 0.15s ease,
    border-left-color 0.15s ease,
    color 0.15s ease;
}

/* Hover state */
.sidebar .nav-link:hover,
.sidebar a.nav-item:hover {
  background: rgba(15, 23, 42, 0.35);
  border-left-color: rgba(248, 250, 252, 0.85);
}

/* Active state (current page) */
.sidebar .nav-link.active,
.sidebar a.nav-item.active {
  background: rgba(15, 23, 42, 0.6);
  border-left-color: #ffffff;
  font-weight: 600;
}

/* Ensure label text is bright and readable */
.sidebar .nav-link .nav-link-label,
.sidebar a.nav-item .nav-link-label {
  color: #f9fafb;
}
/* === LUZUKOLWAKHESS – UNIFIED DASHBOARD PAGE HEADER === */

.dashboard-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 0.75rem 0 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.dashboard-page-header-left h1 {
  margin: 0 0 0.25rem;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--lu-grey-dark);
}

.dashboard-page-header-left p {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
}

/* Right side (back button + role pill, etc.) */
.dashboard-page-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Role pill (Admin / Director / Teacher etc.) */
.role-pill {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fee2e2, #f9fafb);
  border: 1px solid #fecaca;
  display: flex;
  flex-direction: column;
  min-width: 170px;
}

.role-pill-main {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lu-red-dark);
}

.role-pill-sub {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Make sure the “Back to Main Dashboard” sits nicely with it */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
/* ================================================
   LUZUKOLWAKHESS – Admin/Students layout polish
   ================================================ */

/* Center the main content and give breathing space */
.dashboard-content .dashboard-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2.5rem;
}

/* Header row: title on the left, button on the right */
.dashboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.header-actions-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Small primary button */
.btn-primary.btn-sm {
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

/* Card around tables / forms */
.table-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  overflow-x: auto;
}

/* Data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table thead {
  background: rgba(15, 23, 42, 0.04);
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.data-table th {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.data-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.03);
}

/* Simple alerts */
.alert {
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}

.alert-success {
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #166534;
}

.alert-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #991b1b;
}
/* ================================================
   LUZUKOLWAKHESS – Students page layout & table
   ================================================ */

.students-page .dashboard-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2.5rem;
}

/* Header row: title left, button right */
.students-page .dashboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.students-page .header-actions-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Small primary button */
.students-page .btn-primary.btn-sm {
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

/* Card container around table / forms */
.students-page .table-card {
  /* make it wide like the dashboard */
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 1.5rem;

  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  overflow-x: auto;
}

/* Data table styling */
.students-page .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.students-page .data-table thead {
  background: rgba(15, 23, 42, 0.04);
}

.students-page .data-table th,
.students-page .data-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.students-page .data-table th {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.students-page .data-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.03);
}

/* Alerts on this page */
.students-page .alert {
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}

.students-page .alert-success {
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #166534;
}

.students-page .alert-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #991b1b;
}
/* ================================================
   Students page – form layout & buttons
   ================================================ */

.students-page .simple-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.students-page .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.students-page .form-row label {
  flex: 1 1 220px;
  font-size: 0.9rem;
  font-weight: 500;
}

.students-page .form-row input,
.students-page .form-row select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

/* Form action row */
.students-page .form-row.form-actions {
  justify-content: flex-end;
  align-items: center;
}

/* Secondary buttons (Edit / Delete / Cancel) */
.students-page .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #ffffff;
  font-size: 0.85rem;
  text-decoration: none;
  color: #111827;
}

.students-page .btn-secondary.btn-sm {
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
}

.students-page .btn-secondary:hover {
  background: #f3f4f6;
}
/* ==========================================================
   FIX — Make Edit/Add Student forms WIDE and properly aligned
   ========================================================== */

.students-page .form-card {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem;
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

/* Fix form rows so fields do not stretch full width weirdly */
.students-page .form-row {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.students-page .form-row label {
    flex: 1;
}

.students-page .form-row input,
.students-page .form-row select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 0.4rem;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
}

/* Buttons alignment */
.students-page .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.students-page .btn-primary {
    padding: 0.55rem 1.8rem;
    font-size: 0.9rem;
}

.students-page .btn-secondary {
    padding: 0.55rem 1.4rem;
    font-size: 0.9rem;
}
/* Timetable pages */
.timetable-page .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

.page-title {
    text-align: center;
    margin-bottom: 1rem;
}

.grade-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0.5rem 0 1rem;
}

.grade-selector label {
    font-weight: 600;
}

.grade-selector select {
    padding: 0.3rem 0.5rem;
}

/* Download button area */
.timetable-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #0F4C81;
    background: #0F4C81;
    color: #fff;
    font-size: 0.9rem;
}

.btn:hover {
    background: #093258;
}

/* Table wrapper – horizontal scroll on small screens */
.timetable-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.timetable-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.timetable-table th,
.timetable-table td {
    border: 1px solid #ddd;
    padding: 0.4rem 0.5rem;
    text-align: center;
}

.timetable-table thead th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.timetable-table .day-cell {
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

/* Smaller screens */
@media (max-width: 768px) {
    .timetable-table {
        font-size: 0.75rem;
    }

    .grade-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    .timetable-actions {
        justify-content: center;
    }
}
/* ======================================================
   HOD – Subject Overview (contrast fix)
   ====================================================== */

/* Main content area text */
.hod-subject-overview,
.hod-subject-overview * {
  color: #1f2937; /* dark slate */
}

/* Headings */
.hod-subject-overview h1,
.hod-subject-overview h2,
.hod-subject-overview h3 {
  color: #111827;
}

/* Cards / panels */
.hod-subject-overview .card,
.hod-subject-overview .system-panel,
.hod-subject-overview .table-wrapper {
  background: #ffffff;
  color: #1f2937;
}

/* Tables */
.hod-subject-overview table {
  color: #1f2937;
}

.hod-subject-overview table th {
  background: #f3f4f6;
  color: #111827;
}

.hod-subject-overview table td {
  background: #ffffff;
  color: #1f2937;
}

/* Filters box */
.hod-subject-overview .filters,
.hod-subject-overview .filters label {
  color: #111827;
}

/* Buttons inside overview */
.hod-subject-overview button,
.hod-subject-overview .btn {
  color: #ffffff;
}
