/* ==========================================================================
   EduManage — Good News School of Hope
   Master Mobile-First Design System
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
    /* Brand Color Palette */
    --color-primary: #0F2C59;          /* Deep Royal Navy (Discipline & Authority) */
    --color-primary-dark: #071933;     /* Darker Header/Footer Navy */
    --color-primary-light: #1E4E8C;    /* Vibrant Accent Blue */
    --color-secondary: #C8102E;        /* Crimson Red (Badges, CTA) */
    --color-secondary-hover: #9E0B22;  /* Dark Red Hover */
    --color-accent: #D4AF37;           /* Academic Gold / Wisdom (HUNU NYANSA) */
    --color-accent-light: #FDF4D2;     /* Gold Soft Highlight */

    /* Neutrals & Surfaces */
    --color-bg-main: #F8FAFC;          /* Clean Slate Background */
    --color-bg-card: #FFFFFF;          /* Pure White Card Surface */
    --color-bg-subtle: #F1F5F9;        /* Subtle Grey/Blue Tint */
    --color-text-main: #1E293B;        /* High Contrast Charcoal Body Text */
    --color-text-muted: #64748B;       /* Secondary Slate Text */
    --color-text-light: #94A3B8;       /* Muted Light Text */
    --color-border: #E2E8F0;           /* Clean Border */
    --color-border-focus: #1E4E8C;     /* Border Focus Ring */

    /* Feedback States */
    --color-success: #10B981;
    --color-success-bg: #ECFDF5;
    --color-warning: #F59E0B;
    --color-warning-bg: #FFFBEB;
    --color-danger: #EF4444;
    --color-danger-bg: #FEF2F2;
    --color-info: #0EA5E9;
    --color-info-bg: #F0F9FF;

    /* ── Legacy Aliases (keep existing components working) ── */
    --primary: var(--color-primary-light);
    --primary-dark: var(--color-primary-dark);
    --primary-light: var(--color-primary-light);
    --primary-glow: rgba(30, 78, 140, 0.25);
    --accent: var(--color-accent);
    --accent-dark: #b8942e;
    --accent-light: #e8ca5f;

    /* Sidebar (Deep Navy palette) */
    --sidebar-bg: var(--color-primary-dark);
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --sidebar-active: rgba(212, 175, 55, 0.18);
    --sidebar-border: rgba(255, 255, 255, 0.07);
    --sidebar-text: rgba(255, 255, 255, 0.85);
    --sidebar-icon: rgba(255, 255, 255, 0.55);

    /* Surface aliases */
    --surface: var(--color-bg-main);
    --surface-2: var(--color-border);
    --card-bg: var(--color-bg-card);
    --card-border: rgba(226, 232, 240, 0.8);

    /* Status aliases */
    --success: var(--color-success);
    --success-bg: var(--color-success-bg);
    --warning: var(--color-warning);
    --warning-bg: var(--color-warning-bg);
    --danger: var(--color-danger);
    --danger-bg: var(--color-danger-bg);
    --info: var(--color-info);
    --info-bg: var(--color-info-bg);

    /* Text aliases */
    --text-primary: var(--color-text-main);
    --text-secondary: #334155;
    --text-muted: var(--color-text-muted);
    --text-light: var(--color-text-light);
    --text-white: #FFFFFF;

    /* Fluid Mobile-First Typography */
    --font-heading: 'Outfit', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --text-xs:   clamp(0.6875rem, 1.2vw, 0.75rem);   /* 11–12px  badges, metadata */
    --text-sm:   clamp(0.8125rem, 1.4vw, 0.875rem);   /* 13–14px  secondary copy  */
    --text-base: clamp(0.875rem,  1.6vw, 0.9375rem);  /* 14–15px  body text       */
    --text-lg:   clamp(1rem,      2vw,   1.125rem);   /* 16–18px  card titles     */
    --text-xl:   clamp(1.125rem,  2.4vw, 1.25rem);    /* 18–20px  H3, modals      */
    --text-2xl:  clamp(1.35rem,   3vw,   1.65rem);    /* 21–26px  H2, sections    */
    --text-3xl:  clamp(1.6rem,    3.6vw, 2rem);       /* 25–32px  H1, banners     */
    --text-hero: clamp(1.85rem,   4.5vw, 2.65rem);    /* 29–42px  Hero headlines  */

    /* Fluid Spacing */
    --space-xs: clamp(0.25rem,  0.75vw, 0.375rem);
    --space-sm: clamp(0.5rem,   1vw,    0.625rem);
    --space-md: clamp(0.75rem,  1.5vw,  1.125rem);
    --space-lg: clamp(1.125rem, 2.5vw,  1.75rem);
    --space-xl: clamp(1.75rem,  3.5vw,  2.35rem);

    /* Layout */
    --sidebar-w: 260px;
    --topbar-h: 64px;
    --container-max: 1200px;
    --touch-target-min: 44px;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius:    10px;    /* alias for legacy code */
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Elevation & Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow:    0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),  0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),  0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 20px rgba(15, 44, 89, 0.35);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 200ms;
    --transition-fast:   150ms ease;
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Reset & Box Sizing
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    overflow-x: hidden;
    padding-bottom: 64px; /* Space for mobile sticky bottom bar */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

/* ==========================================================================
   Typography Defaults
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

h1 { font-size: var(--text-3xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.015em; }
h3 { font-size: var(--text-xl);  letter-spacing: -0.01em; }
h4 { font-size: var(--text-lg);  letter-spacing: -0.005em; }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

img, svg, picture, video {
    display: block;
    max-width: 100%;
    height: auto;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: var(--space-md);
}

li {
    margin-bottom: 0.35rem;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.container-narrow {
    max-width: 860px;
}

.section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.section-bg-white  { background-color: #FFFFFF; }
.section-bg-subtle { background-color: var(--color-bg-subtle); }

.section-bg-navy {
    background-color: var(--color-primary-dark);
    color: #FFFFFF;
}

.section-bg-navy h1,
.section-bg-navy h2,
.section-bg-navy h3,
.section-bg-navy h4 {
    color: #FFFFFF;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-secondary);
    background: rgba(200, 16, 46, 0.08);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 0.4rem;
}

.section-title {
    font-size: var(--text-2xl);
    color: var(--color-primary);
    margin-bottom: 0.4rem;
    letter-spacing: -0.015em;
}

.section-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ==========================================================================
   Grid Utilities (Mobile-First — 1 column base)
   ========================================================================== */
.grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .grid-2-sm { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Flex Utilities
   ========================================================================== */
.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.items-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap      { flex-wrap: wrap; }
.gap-xs         { gap: var(--space-xs); }
.gap-sm         { gap: var(--space-sm); }
.gap-md         { gap: var(--space-md); }
.gap-lg         { gap: var(--space-lg); }

/* ==========================================================================
   Text Utilities
   ========================================================================== */
.text-center   { text-align: center; }
.text-left     { text-align: left; }
.text-right    { text-align: right; }
.text-muted    { color: var(--color-text-muted); }
.text-gold     { color: var(--color-accent); }
.text-crimson  { color: var(--color-secondary); }
.text-navy     { color: var(--color-primary); }
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ==========================================================================
   Visibility Helpers
   ========================================================================== */
.mobile-only  { display: block; }
.desktop-only { display: none; }

@media (min-width: 768px) {
    .mobile-only  { display: none !important; }
    .desktop-only { display: block !important; }
}



/* ─── Dashboard Shell ───────────────────────────────────────── */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width var(--duration) var(--ease), transform var(--duration) var(--ease);
  overflow: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(200, 16, 46, 0.35);
}

.brand-text {
  overflow: hidden;
}

.brand-text h2 {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.brand-text span {
  font-size: 10px;
  color: var(--sidebar-icon);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.sidebar-school-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-left: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--sidebar-border);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px;
  transition: transform var(--duration) var(--ease);
}

.sidebar-school-logo:hover {
  transform: scale(1.08);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--sidebar-icon);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 12px 20px 4px;
}

.nav-item {
  position: relative;
  margin: 2px 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--sidebar-text);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  position: relative;
}

.nav-link .nav-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  flex-shrink: 0;
  transition: opacity var(--duration) var(--ease);
}

.nav-link:hover {
  background: var(--sidebar-hover);
  color: #FFFFFF;
  transform: translateX(2px);
}

.nav-link:hover .nav-icon {
  opacity: 1;
}

.nav-link.active,
.nav-link.active:hover {
  background: var(--sidebar-active);
  color: var(--color-accent);
  box-shadow: inset 3px 0 0 var(--color-accent);
}

.nav-link.active .nav-icon {
  color: var(--color-accent);
  opacity: 1;
}

.nav-badge {
  margin-left: auto;
  background: var(--color-secondary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background var(--duration) var(--ease);
  cursor: pointer;
}

.user-card:hover {
  background: var(--sidebar-hover);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  overflow: hidden;
}

.user-info .user-name {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info .user-role {
  font-size: 11px;
  color: var(--sidebar-icon);
  text-transform: capitalize;
  white-space: nowrap;
}

/* ─── Main Content ──────────────────────────────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--duration) var(--ease), width var(--duration) var(--ease);
  /* Do NOT add overflow:hidden here — it breaks position:sticky on the topbar */
}

/* ─── Top Bar ───────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--color-primary-dark); /* Deep navy #071933 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  /* Sticky: sticks to the top of its scroll container (.main-wrapper) as you scroll */
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.20);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  will-change: box-shadow;
}

.topbar.topbar-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.08);
  background: rgba(7, 25, 51, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.sidebar-toggle {
  width: 38px;
  height: 38px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
  transition: all var(--duration) var(--ease);
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.topbar-search {
  position: relative;
  max-width: 340px;
  flex: 1;
}

.topbar-search input {
  width: 100%;
  height: 38px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 0 16px 0 38px;
  font-size: 13.5px;
  font-weight: 500;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  transition: all var(--duration) var(--ease);
  outline: none;
}

.topbar-search input::placeholder {
  color: rgba(255, 255, 255, 0.60);
  font-size: 13px;
}

.topbar-search input:focus {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
  color: #FFFFFF;
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  transition: all var(--duration) var(--ease);
}

.topbar-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: var(--color-secondary);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-primary-dark);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.topbar-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.16);
  margin: 0 4px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--duration) var(--ease);
}

.topbar-user:hover {
  background: rgba(255, 255, 255, 0.10);
}

.topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.35);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.topbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.topbar-user-info .name {
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.15px;
}

.topbar-user-info .role {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.topbar-user svg {
  color: rgba(255, 255, 255, 0.70);
  transition: color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.topbar-user:hover svg {
  color: #FFFFFF;
}

/* ─── Page Content ──────────────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 28px 28px;
  animation: fadeInUp 0.3s var(--ease);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.page-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--color-secondary);
}

.breadcrumb .sep {
  color: var(--text-light);
}

.breadcrumb .current {
  color: var(--text-primary);
  font-weight: 500;
}

/* ─── KPI Cards ─────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  opacity: 0.08;
  transform: translate(30%, -30%);
}

.kpi-card.indigo::before {
  background: var(--primary);
}

.kpi-card.pink::before {
  background: var(--accent);
}

.kpi-card.green::before {
  background: var(--success);
}

.kpi-card.amber::before {
  background: var(--warning);
}

.kpi-card.red::before {
  background: var(--danger);
}

.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.kpi-icon.indigo {
  background: rgba(15, 44, 89, 0.12);
  color: var(--color-primary);
}

.kpi-icon.pink {
  background: rgba(200, 16, 46, 0.12);
  color: var(--color-secondary);
}

.kpi-icon.green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.kpi-icon.amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
}

.kpi-icon.red {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.kpi-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  color: var(--info);
}

.kpi-value {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 2px;
}

.kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}

.kpi-trend.up {
  color: var(--success);
}

.kpi-trend.down {
  color: var(--danger);
}

.kpi-trend.flat {
  color: var(--text-muted);
}

/* ─── Chart Cards ───────────────────────────────────────────── */
.chart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 0;
  margin-bottom: 10px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-body {
  padding: 0 18px 14px;
}

.card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--card-border);
  background: var(--surface);
}

.chart-wrapper {
  position: relative;
  height: 260px;
}

.chart-wrapper canvas {
  max-height: 260px;
}

/* ─── Data Tables ───────────────────────────────────────────── */
.table-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--card-border);
  gap: 12px;
  flex-wrap: wrap;
}

.table-search {
  position: relative;
  width: 240px;
}

.table-search input {
  width: 100%;
  height: 36px;
  border: 1.5px solid var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 0 12px 0 36px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color var(--duration) var(--ease);
}

.table-search input:focus {
  border-color: var(--color-primary);
}

.table-search .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 14px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table thead tr {
  background: var(--surface);
  border-bottom: 2px solid var(--card-border);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--duration) var(--ease);
}

.data-table tbody tr:hover {
  background: rgba(15, 44, 89, 0.04);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.cell-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cell-avatar .mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.cell-name {
  font-weight: 600;
  color: var(--text-primary);
}

.cell-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Pagination */
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--card-border);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.pagination {
  display: flex;
  gap: 4px;
}

.page-link {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1.5px solid var(--surface-2);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.page-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.page-link.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 44, 89, 0.50);
  color: white;
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-hover) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.30);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.45);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.30);
}

.btn-success:hover {
  transform: translateY(-1px);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #DC2626 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.30);
}

.btn-danger:hover {
  transform: translateY(-1px);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1.5px solid var(--surface-2);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

.btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
  justify-content: center;
}

/* ─── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-primary {
  background: rgba(15, 44, 89, 0.10);
  color: var(--color-primary);
}

.badge-success {
  background: var(--success-bg);
  color: #065F46;
}

.badge-warning {
  background: var(--warning-bg);
  color: #92400E;
}

.badge-danger {
  background: var(--danger-bg);
  color: #991B1B;
}

.badge-info {
  background: var(--info-bg);
  color: #1E40AF;
}

.badge-muted {
  background: var(--surface-2);
  color: var(--text-muted);
}

.badge-orange {
  background: #FED7AA;
  color: #9A3412;
}

/* ─── Forms ─────────────────────────────────────────────────── */
.form-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.col-span-full {
  grid-column: 1 / -1;
}

.col-span-2 {
  grid-column: span 2;
}

.col-span-1 {
  grid-column: span 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-control {
  height: 42px;
  border: 1.5px solid var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--card-bg);
  transition: all var(--duration) var(--ease);
  outline: none;
  width: 100%;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.12);
}

.form-control.error {
  border-color: var(--danger);
}

textarea.form-control {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  cursor: pointer;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  font-weight: 500;
}

.form-actions,
.form-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}

/* ─── Alerts ────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 20px;
  animation: slideDown 0.3s var(--ease);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: var(--success-bg);
  color: #065F46;
  border-left: 4px solid var(--success);
}

.alert-error {
  background: var(--danger-bg);
  color: #991B1B;
  border-left: 4px solid var(--danger);
}

.alert-warning {
  background: var(--warning-bg);
  color: #92400E;
  border-left: 4px solid var(--warning);
}

.alert-info {
  background: var(--info-bg);
  color: #1E40AF;
  border-left: 4px solid var(--info);
}

/* ─── Modals ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s var(--ease);
}

.modal-overlay.open {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.2s var(--ease);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}

.modal-close:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  padding: 0 24px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ─── Stat Row ──────────────────────────────────────────────── */
.stat-row {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius);
}

.stat-item .stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-item .stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Dropdown ──────────────────────────────────────────────── */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  z-index: 300;
  display: none;
  animation: scaleIn 0.15s var(--ease);
  overflow: hidden;
}

.dropdown-menu.open {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.dropdown-item:hover {
  background: var(--surface);
  color: var(--color-primary);
}

.dropdown-item.danger:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.dropdown-divider {
  height: 1px;
  background: var(--card-border);
  margin: 4px 0;
}

/* ─── Notification Panel ────────────────────────────────────── */
.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 340px;
  max-height: 440px;
  overflow-y: auto;
  z-index: 300;
  display: none;
}

.notif-panel.open {
  display: block;
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--card-border);
}

.notif-panel-title {
  font-size: 14px;
  font-weight: 700;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: background var(--duration) var(--ease);
  cursor: pointer;
}

.notif-item:hover {
  background: var(--surface);
}

.notif-item.unread {
  background: rgba(212, 175, 55, 0.04);
}

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.notif-content .notif-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.notif-content .notif-msg {
  font-size: 12px;
  color: var(--text-muted);
}

.notif-content .notif-time {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ─── Attendance Grid ───────────────────────────────────────── */
.att-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.att-row {
  display: grid;
  grid-template-columns: 1fr repeat(4, 80px);
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.att-row:last-child {
  border: none;
}

.att-row.header {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.att-radio-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.att-radio input[type="radio"] {
  display: none;
}

.att-radio label {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--surface-2);
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}

.att-radio input[value="present"]:checked+label {
  background: var(--success-bg);
  border-color: var(--success);
  color: #065F46;
}

.att-radio input[value="absent"]:checked+label {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: #991B1B;
}

.att-radio input[value="late"]:checked+label {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: #92400E;
}

.att-radio input[value="excused"]:checked+label {
  background: var(--info-bg);
  border-color: var(--info);
  color: #1E40AF;
}

/* ─── Score Entry Grid ──────────────────────────────────────── */
.score-input {
  width: 72px;
  height: 36px;
  border: 1.5px solid var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 0 8px;
  font-size: 13px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color var(--duration) var(--ease);
}

.score-input:focus {
  border-color: var(--color-primary);
}

.grade-cell {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-align: center;
  min-width: 48px;
}

/* ─── Progress Bar ──────────────────────────────────────────── */
.progress {
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s var(--ease);
}

.progress-fill.primary {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
}

.progress-fill.success {
  background: linear-gradient(90deg, var(--success), #34D399);
}

.progress-fill.danger {
  background: linear-gradient(90deg, var(--danger), #F87171);
}

.progress-fill.warning {
  background: linear-gradient(90deg, var(--warning), #FCD34D);
}

/* ─── Empty State ───────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 13.5px;
  max-width: 320px;
}

/* ─── Login Page ────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #071933 0%, #0F2C59 40%, #1E4E8C 70%, #0F2C59 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(7, 25, 51, 0.80) 0%, rgba(15, 44, 89, 0.85) 100%);
  z-index: 1;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.20) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  z-index: 1;
  animation: float 8s ease-in-out infinite;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
  z-index: 1;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, -20px) scale(1.05);
  }
}

.login-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 2;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.4s var(--ease);
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
}

.login-logo-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.login-logo h1 {
  font-size: 26px;
  font-weight: 800;
  color: white;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 4px;
}

.login-logo p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form .form-label {
  color: rgba(255, 255, 255, 0.75);
}

.login-input {
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 14px;
  color: white;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all var(--duration) var(--ease);
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.login-input:focus {
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.login-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.3px;
  transition: all var(--duration) var(--ease);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  margin-top: 8px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.5);
}

.login-btn:active {
  transform: translateY(0);
}

.login-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 20px;
  text-align: center;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── Utilities ─────────────────────────────────────────────── */
.text-primary {
  color: var(--primary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.bg-primary {
  background: var(--primary) !important;
}

.bg-success {
  background: var(--success) !important;
}

.bg-warning {
  background: var(--warning) !important;
}

.bg-danger {
  background: var(--danger) !important;
}

.d-flex {
  display: flex !important;
}

.d-grid {
  display: grid !important;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.align-center {
  align-items: center !important;
}

.justify-between {
  justify-content: space-between !important;
}

.justify-end {
  justify-content: flex-end !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.gap-sm {
  gap: 8px !important;
}

.gap-md {
  gap: 16px !important;
}

.gap-lg {
  gap: 24px !important;
}

.w-full {
  width: 100% !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 8px !important;
}

.mt-2 {
  margin-top: 16px !important;
}

.mt-3 {
  margin-top: 24px !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 6px !important;
}

.mb-2 {
  margin-bottom: 10px !important;
}

.mb-3 {
  margin-bottom: 14px !important;
}

.mb-4 {
  margin-bottom: 18px !important;
}

.fw-600 {
  font-weight: 600 !important;
}

.fw-700 {
  font-weight: 700 !important;
}

.fs-sm {
  font-size: 12px !important;
}

.fs-lg {
  font-size: 16px !important;
}

.rounded {
  border-radius: var(--radius) !important;
}

.rounded-sm {
  border-radius: var(--radius-sm) !important;
}

.rounded-full {
  border-radius: 50% !important;
}

.shadow {
  box-shadow: var(--shadow) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

/* ─── Loading Spinner ───────────────────────────────────────── */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--surface-2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* ─── Student ID Card Design System ─────────────────────────── */
.student-id-card {
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
  font-family: 'Inter', sans-serif;
  page-break-inside: avoid;
  width: 8.6cm !important;
  height: 5.4cm !important;
  max-width: 8.6cm !important;
  min-width: 8.6cm !important;
  max-height: 5.4cm !important;
  min-height: 5.4cm !important;
  box-sizing: border-box !important;
  margin: 0 auto;
}

.card-header-badge {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  color: white;
  padding: 4px 8px 4px 38px;
  position: relative;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-bottom: 3px solid #fbbf24;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
  box-sizing: border-box;
}

.school-logo-badge {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 1.5px solid #fbbf24;
  box-shadow: 0 0 4px rgba(251, 191, 36, 0.4);
  flex-shrink: 0;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
  box-sizing: border-box;
}

.school-logo-badge img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.school-name-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.school-name-badge h5 {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: white;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.school-name-badge .school-motto {
  font-size: 7px;
  font-style: italic;
  color: #fbbf24;
  font-weight: 600;
  margin-top: 1px;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.school-contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
  font-size: 6.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.school-contact-info span {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.school-contact-info span svg {
  width: 6px;
  height: 6px;
  display: inline-block;
  vertical-align: middle;
}

.card-body-badge {
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex: 1;
  box-sizing: border-box;
  overflow: hidden;
}

.student-details-badge {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.badge-student-photo {
  width: 48px;
  height: 56px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.badge-student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-student-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.badge-student-info p {
  margin: 2px 0 0 0;
  font-size: 9px;
  color: #475569;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-student-info code {
  font-family: monospace;
  background: #f1f5f9;
  padding: 1px 3px;
  border-radius: 2px;
  color: #0f172a;
  font-size: 8.5px;
  font-weight: 600;
}

.student-name-text {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-qr-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.badge-qr-code img {
  width: 52px;
  height: 52px;
  border: 1.5px solid #cbd5e1;
  padding: 2px;
  border-radius: 6px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.qr-subtext {
  font-size: 6px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-top: 1px;
}

.card-footer-badge {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 4px;
  text-align: center;
  font-size: 7.5px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-sizing: border-box;
}

/* ============================================================
   Proprietor Robust Portal Additions
   ============================================================ */

/* Collapsible Folders in Sidebar */
.sidebar-folder {
  margin: 2px 10px;
}

.sidebar-folder-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--sidebar-text);
  font-size: 13.5px;
  font-weight: 500;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all var(--duration) var(--ease);
}

.sidebar-folder-trigger:hover {
  background: var(--sidebar-hover);
  color: #FFFFFF;
}

.sidebar-folder-trigger .folder-arrow {
  margin-left: auto;
  font-size: 10px;
  transition: transform var(--duration) var(--ease);
  opacity: 0.7;
}

.sidebar-folder.open .sidebar-folder-trigger .folder-arrow {
  transform: rotate(90deg);
}

.sidebar-folder-content {
  display: none;
  padding-left: 20px;
  margin-top: 2px;
  border-left: 1px solid var(--sidebar-border);
  margin-left: 20px;
}

.sidebar-folder.open .sidebar-folder-content {
  display: block;
}

.sidebar-folder-link {
  display: block;
  padding: 8px 12px;
  color: var(--sidebar-text);
  font-size: 12.5px;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
}

.sidebar-folder-link:hover {
  background: var(--sidebar-hover);
  color: #FFFFFF;
}

.sidebar-folder-link.active,
.sidebar-folder-link.active:hover {
  background: var(--sidebar-active);
  color: var(--color-accent);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--color-accent);
  padding-left: 16px;
}

.sidebar-folder.has-active .sidebar-folder-trigger {
  color: #FFFFFF;
  font-weight: 600;
}

.sidebar-folder.has-active .sidebar-folder-trigger .nav-icon {
  color: var(--color-accent);
  opacity: 1;
}

.sidebar-folder.has-active .sidebar-folder-trigger .folder-arrow {
  color: var(--color-accent);
  opacity: 1;
}

/* Tabbed Layout System */
.tab-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-top: 20px;
}

.tab-nav {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--surface-2);
  padding: 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 14px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  padding: 24px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* School Health Score Circular Chart & Details */
.health-score-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  background: #ffffff;
  border-radius: var(--radius-lg, 14px);
  border: 1px solid #E2E8F0;
  border-left: 5px solid #4F46E5;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.health-score-gauge {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.health-score-circle {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.health-score-circle-bg {
  fill: none;
  stroke: #E2E8F0;
  stroke-width: 10;
}

.health-score-circle-progress {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}

.health-score-circle-progress.green {
  stroke: #10B981;
}

.health-score-circle-progress.amber {
  stroke: #F59E0B;
}

.health-score-circle-progress.red {
  stroke: #EF4444;
}

.health-score-value {
  position: absolute;
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #1E1B4B;
  line-height: 1;
}

.health-score-info {
  flex: 1;
  min-width: 0;
  color: #1E293B;
}

.health-score-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  font-family: 'Outfit', sans-serif;
  color: #1E1B4B;
}

.health-score-desc {
  font-size: 13px;
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.5;
}

.health-score-components {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  width: 100%;
}

.health-comp-item {
  background: #F8FAFC;
  border-radius: var(--radius-sm, 8px);
  padding: 8px 12px;
  border: 1px solid #E2E8F0;
  box-sizing: border-box;
}

.health-comp-lbl {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.health-comp-val {
  font-size: 15px;
  font-weight: 700;
  color: #1E1B4B;
  margin-top: 3px;
}

/* Responsive Health Score Widget */
@media (max-width: 860px) {
  .health-score-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    gap: 18px;
  }

  .health-score-gauge {
    margin: 0 auto;
    width: 120px;
    height: 120px;
  }

  .health-score-value {
    font-size: 28px;
  }

  .health-score-info {
    width: 100%;
    text-align: center;
  }

  .health-score-title {
    font-size: 17px;
    text-align: center;
  }

  .health-score-desc {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 14px;
    text-align: center;
  }

  .health-score-components {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .health-comp-item {
    text-align: center;
  }
}

@media (max-width: 540px) {
  .health-score-container {
    padding: 16px 14px;
    gap: 14px;
    border-left-width: 4px;
  }

  .health-score-gauge {
    width: 105px;
    height: 105px;
  }

  .health-score-value {
    font-size: 24px;
  }

  .health-score-title {
    font-size: 16px;
  }

  .health-score-desc {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .health-score-components {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .health-comp-item {
    padding: 8px 10px;
  }

  .health-comp-lbl {
    font-size: 10px;
  }

  .health-comp-val {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .health-score-container {
    padding: 12px 10px;
    gap: 12px;
  }

  .health-score-gauge {
    width: 90px;
    height: 90px;
  }

  .health-score-value {
    font-size: 22px;
  }

  .health-score-components {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .health-comp-item {
    padding: 6px 8px;
  }

  .health-comp-lbl {
    font-size: 9.5px;
  }

  .health-comp-val {
    font-size: 13px;
  }
}


/* Strategic Reports & Printable Layouts */
.report-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.report-sheet {
  background: #FFFFFF;
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.report-sheet-header {
  text-align: center;
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.report-sheet-title {
  font-size: 24px;
  text-transform: uppercase;
  margin-top: 10px;
  letter-spacing: 1px;
}

.report-sheet-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.report-table th,
.report-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--surface-2);
  font-size: 13.5px;
}

.report-table th {
  font-weight: 700;
  background: var(--surface);
  color: var(--text-primary);
}

.report-table tr.total-row {
  font-weight: 700;
  background: var(--surface);
}

.report-table tr.total-row td {
  border-top: 2px solid var(--text-primary);
  border-bottom: 2px double var(--text-primary);
}

.report-table tr.subcategory-row td {
  padding-left: 24px;
  color: var(--text-secondary);
}

@media print {
  body {
    background: #FFFFFF;
    color: #000000;
  }

  .sidebar,
  .topbar,
  .report-controls,
  footer,
  .page-header {
    display: none !important;
  }

  .main-wrapper {
    margin-left: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .report-sheet {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
}

/* Alerts and risk list */
.risk-banner {
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #991B1B;
}

.risk-banner-title {
  font-weight: 700;
  font-size: 13.5px;
}

/* ============================================================
   Landing Page Styles (EduManage Gold/Navy Theme)
   ============================================================ */
.landing-page-body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.landing-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Top bar */
.landing-top-bar {
  background-color: #071424;
  color: #94a3b8;
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-top-bar .landing-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-top-bar a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 15px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.landing-top-bar a:hover {
  color: var(--primary-light);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-right {
  display: flex;
  align-items: center;
}

.top-bar-separator {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 10px;
}

/* Header & Navbar */
.landing-header {
  background-color: rgba(12, 54, 100, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}

.landing-header .landing-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.landing-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.landing-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.landing-nav a:hover {
  color: var(--primary-light);
}

/* Mobile Navigation Dropdown */
.mobile-nav {
  display: none;
  background-color: rgba(12, 54, 100, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 15px 24px;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 99;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  display: block;
  padding: 5px 0;
}

.mobile-nav a:hover {
  color: var(--primary-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, #ff7c00 0%, #ffb300 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 124, 0, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #ff6a00 0%, #ffa200 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 124, 0, 0.45);
  color: #ffffff;
}

.btn-outline-white {
  border: 1.5px solid white;
  color: white;
  background: transparent;
}

.btn-outline-white:hover {
  background-color: white;
  color: #0f172a;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 8px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Hero Section */
.landing-hero {
  position: relative;
  min-height: 600px;
  padding: 120px 0 200px 0;
  color: white;
  text-align: center;
  overflow: visible;
  background-color: #0c3664;
}

/* Background Slider styling */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(12, 54, 100, 0.85) 0%,
      rgba(12, 54, 100, 0.75) 50%,
      rgba(6, 30, 56, 0.92) 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-img-bg,
.hero-video-fallback {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.12);
  transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.12);
  transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide.active .hero-img-bg,
.hero-slide.active .hero-video-fallback {
  transform: scale(1);
}

.hero-slide.active .hero-video-bg {
  transform: translate(-50%, -50%) scale(1);
}

.hero-video-fallback {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  color: #cbd5e1;
  font-size: 54px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px 0;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 18px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Overlay highlights banner at bottom of hero */
.hero-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: translateY(50%);
  z-index: 10;
}

.overlay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.overlay-card {
  background-color: rgba(12, 54, 100, 0.96);
  border: 1px solid rgba(0, 146, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.overlay-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 146, 255, 0.2);
}

.overlay-card-icon {
  background-color: rgba(255, 124, 0, 0.1);
  border-radius: 8px;
  padding: 12px;
  height: 48px;
  width: 48px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.overlay-card-info h4 {
  font-family: 'Outfit', sans-serif;
  margin: 0 0 8px 0;
  font-size: 16px;
  color: white;
  letter-spacing: 0.5px;
}

.overlay-card-info p {
  margin: 0 0 15px 0;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.view-more {
  color: var(--accent-light);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.view-more:hover .arrow {
  transform: translateX(4px);
}

.arrow {
  transition: transform 0.2s;
}

.text-gold {
  color: #ff9e00 !important;
  background: linear-gradient(135deg, #ff8500 0%, #ffc400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Sections General */
.landing-section {
  padding: 140px 0 100px 0;
}

.section-bg-dark {
  background-color: #06101e;
  color: white;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.section-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 15px 0;
  color: #0f172a;
}

.section-bg-dark .section-title {
  color: white;
}

.section-subtitle {
  font-size: 16px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.section-bg-dark .section-subtitle {
  color: #94a3b8;
}

/* About / Welcome Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.about-feature-item {
  display: flex;
  gap: 16px;
}

.about-feature-icon {
  background-color: rgba(0, 146, 255, 0.1);
  border-radius: 50%;
  padding: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.about-feature-text h4 {
  font-family: 'Outfit', sans-serif;
  margin: 0 0 4px 0;
  font-size: 16px;
  color: #0f172a;
}

.about-feature-text p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.45;
}

/* Portals Section */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portal-card {
  background-color: #0c1f38;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.portal-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 146, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 146, 255, 0.15);
}

.portal-icon {
  width: 52px;
  height: 52px;
  background-color: rgba(255, 140, 0, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff8c00;
  margin-bottom: 20px;
}

.portal-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  color: white;
  margin: 0 0 12px 0;
}

.portal-card p {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.portal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-list li {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.portal-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ff8c00;
  font-weight: bold;
}

/* Core Modules Section */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.module-card {
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.module-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(0, 146, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.module-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  color: #0f172a;
  margin: 0 0 12px 0;
}

.module-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* FAQ Section */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: #64748b;
  font-weight: bold;
}

.faq-item.active .faq-question::after {
  content: "-";
}

.faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info-panel h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  color: #0f172a;
  margin: 0 0 15px 0;
}

.contact-info-panel p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 30px 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 140, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff8c00;
  flex-shrink: 0;
}

.contact-detail-text h5 {
  margin: 0;
  font-size: 14px;
  color: #0f172a;
}

.contact-detail-text p {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
}

.contact-form-panel {
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02);
}

.contact-form-panel h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  color: #0f172a;
  margin: 0 0 25px 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-col label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.form-col input,
.form-col select,
.form-col textarea {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  outline: none;
  background-color: #f8fafc;
  transition: all 0.2s;
}

.form-col input:focus,
.form-col select:focus,
.form-col textarea:focus {
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Landing Footer */
.landing-footer {
  background-color: #040b15;
  color: #94a3b8;
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 20px;
}

.footer-logo svg {
  color: var(--accent);
}

.footer-about p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.footer-links-col h4 {
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  margin: 0 0 20px 0;
  letter-spacing: 0.5px;
}

.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
  margin: 0;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 42px;
  }

  .hero-banner-overlay {
    position: relative;
    transform: none;
    margin-top: 40px;
    padding: 20px 0;
    z-index: 10;
  }

  .overlay-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .landing-hero {
    padding-bottom: 80px;
  }

  .portals-grid,
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .landing-top-bar {
    display: none;
  }

  .landing-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .portals-grid,
  .modules-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .landing-logo span {
    font-size: 18px;
  }

  .landing-logo img {
    height: 32px !important;
  }

  .landing-header-actions .btn {
    display: none;
    /* Hide top header button on small viewports to save space */
  }

  .mobile-nav {
    top: 64px;
  }
}