/* Google Fonts — loaded via <link> in HTML for speed; @import is fallback */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Baloo+2:wght@700;800&display=swap');
/* ============================================================
   SKILLSAPLING - MAIN STYLESHEET
   Theme: Playful Green + Yellow + Coral + Mint
   Font: Baloo 2 (headings) + Nunito (body)
   ============================================================ */

/* ---- CSS VARIABLES ---- */
:root {
  /* Core brand palette */
  --brand:        #16a34a;   /* Forest Green */
  --brand-light:  #4ade80;   /* Mint Green */
  --brand-dark:   #14532d;   /* Deep Green */
  --brand-soft:   #dcfce7;   /* Pale Green */

  /* Accent colours */
  --yellow:       #fbbf24;   /* Sunny Yellow */
  --yellow-light: #fef9c3;   /* Pale Yellow */
  --orange:       #f97316;   /* Energetic Orange */
  --coral:        #fb7185;   /* Coral Pink */
  --sky:          #38bdf8;   /* Sky Blue */
  --purple:       #a78bfa;   /* Soft Lavender */
  --teal:         #14b8a6;   /* Teal */
  --red:          #ef4444;
  --green:        #22c55e;

  /* Surface / background */
  --bg:           #f0fdf4;   /* Very light green tint */
  --bg-alt:       #ecfdf5;
  --card-bg:      #ffffff;
  --text:         #14532d;
  --text-muted:   #5a7a62;
  --border:       #bbf7d0;
  --shadow:       0 4px 24px rgba(22,163,74,.12);
  --shadow-lg:    0 8px 40px rgba(22,163,74,.20);
  --radius:       20px;
  --radius-sm:    12px;
  --radius-xs:    8px;
  --transition:   all .22s ease;
}

[data-theme="dark"] {
  --bg:       #052e16;
  --bg-alt:   #14532d;
  --card-bg:  #166534;
  --text:     #f0fdf4;
  --text-muted:#a3e635;
  --border:   #16a34a;
  --shadow:   0 4px 24px rgba(0,0,0,.4);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
h1,h2,h3,.brand-name,.page-title { font-family: 'Baloo 2', cursive; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--brand-soft); }
::-webkit-scrollbar-thumb { background: var(--brand-light); border-radius: 10px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.main-navbar {
  background: var(--card-bg);
  border-bottom: 3px solid var(--brand-soft);
  box-shadow: 0 4px 20px rgba(22,163,74,.10);
  padding: 10px 0;
  z-index: 1030;
}
.brand-logo { font-size: 1.8rem; animation: spin-bounce 3s ease-in-out infinite; }
.brand-name { font-size: 1.6rem; color: var(--brand); letter-spacing: -.5px; font-weight: 800; }
.main-navbar .nav-link {
  font-weight: 800;
  color: var(--text-muted);
  border-radius: 12px;
  padding: 7px 16px;
  transition: var(--transition);
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  background: var(--brand-soft);
  color: var(--brand);
  transform: translateY(-1px);
}
.nav-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 3px solid var(--brand-light); }
.btn-notif {
  background: var(--yellow-light);
  border: 2px solid var(--yellow);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 1rem; cursor: pointer; position: relative;
  transition: var(--transition);
}
.btn-notif:hover { background: var(--yellow); transform: scale(1.1); }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--coral); color: #fff;
  font-size: .6rem; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.btn-circle {
  background: var(--brand-soft);
  border: 2px solid var(--border);
  border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.btn-circle:hover { background: var(--yellow-light); border-color: var(--yellow); transform: rotate(20deg) scale(1.1); }
.btn-rounded { border-radius: 50px; font-weight: 800; }

/* Notification Dropdown */
.notif-dropdown { border-radius: 18px; box-shadow: var(--shadow-lg); border: 2px solid var(--border); }
.notif-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; margin-bottom: 4px; transition: var(--transition); }
.notif-item:hover { background: var(--brand-soft); }
.notif-icon { font-size: 1.3rem; min-width: 28px; }
.notif-title { font-weight: 800; font-size: .8rem; color: var(--brand); }
.notif-msg { font-size: .75rem; color: var(--text-muted); line-height: 1.4; }
.notif-time { font-size: .7rem; color: var(--orange); margin-top: 2px; font-weight: 700; }

/* ============================================================
   PAGE WRAPPER & BOTTOM NAV
   ============================================================ */
.page-wrapper { min-height: calc(100vh - 70px); padding-bottom: 24px; }
.page-title { font-size: 1.9rem; color: var(--brand); margin: 0; }

.mobile-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--card-bg);
  border-top: 3px solid var(--brand-soft);
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(22,163,74,.15);
}
.mobile-bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text-muted); font-size: .65rem; font-weight: 800;
  padding: 4px 12px; border-radius: 14px; transition: var(--transition);
  min-width: 56px;
}
.mobile-bottom-nav a i { font-size: 1.3rem; }
.mobile-bottom-nav a.active { color: var(--brand); background: var(--brand-soft); }
.mobile-bottom-nav a:hover { color: var(--brand); transform: translateY(-3px); }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-page { overflow: hidden; }
.hero-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #fefce8 50%, #fff7ed 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, #052e16 0%, #14532d 50%, #1c1917 100%);
}
.hero-emoji-row { font-size: 1.8rem; letter-spacing: 8px; margin-bottom: 16px; animation: float 3s ease-in-out infinite; }
.hero-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--brand);
  line-height: 1.1; margin-bottom: 16px;
  text-shadow: 3px 3px 0 rgba(22,163,74,.12);
}
.hero-subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 520px; margin: 0 auto 24px; font-weight: 700; }
.btn-hero-primary {
  background: linear-gradient(135deg, var(--brand), var(--teal));
  color: #fff; border: none; border-radius: 50px;
  font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 6px 24px rgba(22,163,74,.4);
  transition: var(--transition);
}
.btn-hero-primary:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 12px 36px rgba(22,163,74,.5); color: #fff; }
.btn-hero-secondary {
  background: var(--yellow);
  color: var(--brand-dark); border: none; border-radius: 50px;
  font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 6px 24px rgba(251,191,36,.4);
  transition: var(--transition);
}
.btn-hero-secondary:hover { background: var(--orange); color: #fff; transform: translateY(-4px); }
.hero-float { position: absolute; font-size: 2.5rem; animation: float 4s ease-in-out infinite; pointer-events: none; }

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius); padding: 22px 18px;
  box-shadow: var(--shadow); transition: var(--transition);
  border: 2px solid var(--border);
}
.feature-card:hover { transform: translateY(-8px) rotate(-1deg); border-color: var(--brand-light); box-shadow: var(--shadow-lg); }
.feature-icon { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto; }

.section-title { font-family: 'Baloo 2', cursive; font-size: 2rem; color: var(--text); }
.course-preview-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: var(--transition); height: 100%;
  border: 2px solid var(--border);
}
.course-preview-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--yellow); }
.course-icon-wrap { width: 80px; height: 80px; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.cta-section { background: linear-gradient(135deg, var(--brand), var(--teal)); color: #fff; }
.cta-section h2, .cta-section p { color: #fff; }

/* ============================================================
   DASHBOARD CARDS
   ============================================================ */
.greeting-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--teal) 50%, #059669 100%);
  border-radius: var(--radius); padding: 28px 32px; color: #fff;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.greeting-banner::before {
  content: '🌱'; position: absolute; right: 24px; top: 10px;
  font-size: 6rem; opacity: .18;
  animation: float 4s ease-in-out infinite;
}
.greeting-banner::after {
  content: ''; position: absolute;
  top: -40px; left: -40px; width: 180px; height: 180px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
}
.greeting-title { font-family: 'Baloo 2', cursive; font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0; }
.greeting-sub { opacity: .9; margin: 4px 0 0; font-weight: 700; }
.greeting-avatar-wrap { text-align: center; }
.greeting-avatar { width: 84px; height: 84px; border-radius: 50%; border: 4px solid rgba(255,255,255,.6); object-fit: cover; }
.level-badge { background: rgba(255,255,255,.28); border-radius: 20px; padding: 5px 14px; font-size: .75rem; font-weight: 800; margin-top: 6px; display: inline-block; }
.badge-pill { border-radius: 50px; padding: 5px 14px; font-size: .78rem; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.badge-student { background: rgba(255,255,255,.25); color: #fff; }
.badge-id { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }

/* STAT CARDS */
.stat-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 22px 18px; text-align: center;
  box-shadow: var(--shadow); transition: var(--transition);
  position: relative; overflow: hidden;
  border: 2.5px solid var(--border);
}
.stat-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-lg); }
.stat-card::after { content: ''; position: absolute; bottom: -24px; right: -24px; width: 90px; height: 90px; border-radius: 50%; opacity: .10; }
.stat-blue::after  { background: var(--sky); }
.stat-green::after { background: var(--brand); }
.stat-yellow::after{ background: var(--yellow); }
.stat-purple::after{ background: var(--coral); }
.stat-red::after   { background: var(--orange); }
.stat-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.stat-value { font-family: 'Baloo 2', cursive; font-size: 2.2rem; line-height: 1; font-weight: 800; }
.stat-label { font-size: .8rem; font-weight: 800; color: var(--text-muted); margin-top: 4px; }

/* Coloured top borders for stat cards */
.stat-blue   { border-top: 5px solid var(--sky); }
.stat-green  { border-top: 5px solid var(--brand); }
.stat-yellow { border-top: 5px solid var(--yellow); }
.stat-purple { border-top: 5px solid var(--coral); }
.stat-red    { border-top: 5px solid var(--orange); }

/* DASH CARDS */
.dash-card {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  border: 2px solid var(--border);
  transition: var(--transition);
}
.dash-card:hover { box-shadow: var(--shadow-lg); border-color: var(--brand-light); }
.dash-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px 12px;
  border-bottom: 2px dashed var(--border);
  background: linear-gradient(90deg, var(--brand-soft), transparent);
}
.dash-card-header h5 { font-family: 'Baloo 2', cursive; font-size: 1.2rem; margin: 0; color: var(--brand); }
.btn-link-sm { color: var(--orange); font-weight: 800; font-size: .82rem; background: none; border: none; cursor: pointer; padding: 0; }
.btn-link-sm:hover { color: var(--brand); text-decoration: underline; }

/* TODAY CLASS */
.today-class-card { display: flex; gap: 16px; padding: 18px 20px; align-items: flex-start; }
.today-class-emoji { font-size: 3rem; min-width: 54px; text-align: center; animation: bounce 2s infinite; }
.today-meta { font-size: .78rem; font-weight: 800; color: var(--brand); background: var(--brand-soft); padding: 3px 12px; border-radius: 20px; }
.today-learn-box { background: linear-gradient(90deg, var(--brand-soft), var(--yellow-light)); border-left: 4px solid var(--brand); border-radius: 0 10px 10px 0; padding: 10px 14px; margin-top: 10px; }

/* PROGRESS */
.progress-section { padding: 18px 20px; }
.progress-bar-wrap { background: var(--brand-soft); border-radius: 50px; height: 26px; overflow: visible; position: relative; border: 2px solid var(--border); }
.progress-bar-fill {
  height: 100%; border-radius: 50px;
  background: linear-gradient(90deg, var(--brand), var(--teal), var(--yellow));
  background-size: 200% 100%;
  animation: shimmer-move 2s linear infinite;
  position: relative; display: flex; align-items: center; justify-content: flex-end;
  transition: width 1.5s cubic-bezier(.4,0,.2,1);
}
@keyframes shimmer-move {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.progress-star { position: absolute; right: -14px; font-size: 1.6rem; animation: spin-bounce 2s infinite; }
.progress-milestones { display: flex; justify-content: space-between; }
.milestone { font-size: .75rem; font-weight: 800; color: var(--text-muted); }
.milestone.reached { color: var(--brand); }

/* FEEDBACK */
.feedback-card { padding: 16px 20px; border-bottom: 2px dashed var(--border); }
.feedback-card:last-child { border-bottom: none; }
.feedback-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.feedback-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--teal)); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.feedback-meta { font-size: .8rem; font-weight: 700; }
.feedback-subject { font-weight: 800; font-size: .95rem; margin: 0 0 6px; color: var(--brand); }
.feedback-msg { color: var(--text-muted); font-size: .85rem; line-height: 1.5; margin: 0; }

/* CERTIFICATE */
.cert-locked { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.cert-unlocked { background: linear-gradient(135deg, #fef9c3, #fde68a); }
[data-theme="dark"] .cert-locked { background: linear-gradient(135deg, #14532d, #166534); }
.cert-lock-progress { background: var(--brand-soft); border-radius: 50px; height: 12px; overflow: hidden; border: 2px solid var(--border); }
.cert-lock-bar { height: 100%; background: linear-gradient(90deg, var(--brand), var(--yellow)); border-radius: 50px; transition: width 1s ease; }

/* FEES */
.fees-summary { padding: 16px 20px; }
.fee-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 2px dashed var(--border); font-size: .9rem; font-weight: 700; }
.fee-row:last-child { border-bottom: none; }
.fees-bar-wrap { background: var(--brand-soft); border-radius: 50px; height: 10px; overflow: hidden; }
.fees-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--yellow)); border-radius: 50px; transition: width 1s ease; }

/* ACHIEVEMENTS GRID */
.achievements-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px; }
.ach-badge {
  border-radius: 16px; padding: 14px 10px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  transition: var(--transition); cursor: pointer;
  border: 2px solid var(--border);
}
.ach-badge:hover { transform: scale(1.08) rotate(-2deg); box-shadow: var(--shadow); }
.ach-title { font-size: .72rem; font-weight: 800; line-height: 1.2; }

/* ACHIEVEMENT CARDS */
.achievement-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 22px 16px; text-align: center;
  border: 2.5px solid var(--badge-color, var(--border));
  box-shadow: var(--shadow); transition: var(--transition);
  position: relative; overflow: hidden;
}
.achievement-card:hover { transform: translateY(-8px) rotate(1deg); box-shadow: 0 16px 48px rgba(0,0,0,.15); }
.ach-glow { position: absolute; top: -30px; right: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--badge-color, var(--yellow)); opacity: .12; }
.ach-big-icon { font-size: 3rem; display: block; margin-bottom: 8px; animation: bounce 2s infinite; }
.ach-card-title { font-family: 'Baloo 2', cursive; font-size: 1rem; margin: 0 0 6px; color: var(--brand); }
.ach-card-desc { color: var(--text-muted); font-size: .78rem; line-height: 1.4; font-weight: 700; }
.ach-date { font-size: .72rem; color: var(--orange); margin-top: 6px; font-weight: 800; }

/* MINI CALENDAR */
.mini-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 12px 16px; }
.cal-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800; border-radius: 10px; cursor: default; background: var(--bg-alt); transition: var(--transition); }
.cal-cell.empty { background: transparent; }
.cal-cell.cal-today { background: var(--brand); color: #fff; box-shadow: 0 3px 10px rgba(22,163,74,.4); }
.cal-cell.cal-present { background: var(--brand); color: #fff; }
.cal-cell.cal-absent { background: var(--coral); color: #fff; }
.cal-cell.cal-late { background: var(--yellow); color: var(--brand-dark); }
.cal-legend { display: flex; gap: 12px; flex-wrap: wrap; padding: 0 16px 12px; }
.cal-legend-item { font-size: .75rem; font-weight: 800; display: flex; align-items: center; gap: 4px; }

/* FULL ATTENDANCE CALENDAR */
.attendance-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 16px; }
.att-cal-header { text-align: center; font-size: .72rem; font-weight: 800; color: var(--brand); padding: 4px; }
.att-cal-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: .78rem; font-weight: 800; background: var(--bg-alt); transition: var(--transition); }
.att-cal-cell.empty { background: transparent; }
.att-cal-cell.att-today { border: 3px solid var(--brand); }
.att-cal-cell.att-present { background: #d1fae5; color: #065f46; font-size: 1.1rem; }
.att-cal-cell.att-absent  { background: #ffe4e6; color: #9f1239; font-size: 1.1rem; }
.att-cal-cell.att-late    { background: #fef9c3; color: #854d0e; font-size: 1.1rem; }
.att-cal-cell.att-excused { background: #e0f2fe; color: #0c4a6e; font-size: 1.1rem; }
[data-theme="dark"] .att-cal-cell.att-present { background: #14532d; color: #86efac; }
[data-theme="dark"] .att-cal-cell.att-absent  { background: #881337; color: #fda4af; }
[data-theme="dark"] .att-cal-cell.att-late    { background: #78350f; color: #fcd34d; }

/* SCHEDULE */
.schedule-list { padding: 12px 20px; }
.schedule-item {
  display: flex; gap: 16px; align-items: center;
  padding: 16px; border-radius: 16px; margin-bottom: 10px;
  background: var(--bg-alt); transition: var(--transition);
  border: 2px solid transparent;
}
.schedule-item:hover { transform: translateX(6px); border-color: var(--brand-light); background: var(--brand-soft); }
.schedule-today { background: linear-gradient(135deg, var(--brand-soft), var(--yellow-light)); border: 2.5px solid var(--brand); }
.schedule-day { display: flex; flex-direction: column; align-items: center; min-width: 80px; }
.schedule-day-emoji { font-size: 1.6rem; }
.schedule-day-name { font-size: .78rem; font-weight: 800; color: var(--brand); }
.today-badge { background: var(--brand); color: #fff; font-size: .65rem; font-weight: 800; padding: 2px 8px; border-radius: 20px; margin-top: 3px; animation: pulse 2s infinite; }
.schedule-details { flex: 1; }
.schedule-meta { font-size: .75rem; font-weight: 800; background: var(--card-bg); padding: 3px 12px; border-radius: 20px; color: var(--text-muted); border: 1.5px solid var(--border); }

/* PROJECTS */
.project-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-bottom: 2px dashed var(--border); }
.project-card:last-child { border-bottom: none; }
.project-icon { font-size: 2rem; min-width: 44px; }
.project-big-card {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition); border: 2px solid var(--border);
}
.project-big-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--yellow); }
.project-big-icon { background: var(--brand-soft); padding: 24px; text-align: center; min-height: 120px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.teacher-comment-box { background: var(--yellow-light); border-left: 4px solid var(--yellow); padding: 10px 14px; border-radius: 0 10px 10px 0; }

/* CERTIFICATE PAGE */
.certificate-preview { padding: 20px; }
.cert-bg {
  border: 3px solid var(--brand);
  border-radius: 20px; padding: 40px 32px;
  background: linear-gradient(135deg, #f0fdf4, #fefce8);
  position: relative; overflow: hidden;
}
[data-theme="dark"] .cert-bg { background: linear-gradient(135deg, #052e16, #14532d); }
.cert-bg::before { content: ''; position: absolute; top: 8px; left: 8px; right: 8px; bottom: 8px; border: 2px dashed var(--brand-light); border-radius: 14px; pointer-events: none; }
.cert-top-banner { font-family: 'Baloo 2', cursive; font-size: 1.6rem; color: var(--brand); letter-spacing: 4px; }
.cert-subtitle { font-size: 1.1rem; font-weight: 800; color: var(--text-muted); margin: 6px 0; }
.cert-divider { width: 80px; height: 4px; background: linear-gradient(90deg, var(--brand), var(--yellow)); margin: 16px auto; border-radius: 2px; }
.cert-body-text { color: var(--text-muted); font-size: .95rem; font-weight: 700; }
.cert-student-name { font-family: 'Baloo 2', cursive; font-size: 2.2rem; color: var(--brand); margin: 8px 0; }
.cert-course-name { font-family: 'Baloo 2', cursive; font-size: 1.5rem; color: var(--orange); margin: 8px 0; }
.cert-badges { font-size: 2rem; letter-spacing: 8px; margin: 16px 0; }
.cert-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 24px; padding-top: 16px; border-top: 2px dashed var(--border); }
.cert-sign { font-family: 'Baloo 2', cursive; font-size: 1.1rem; color: var(--brand); }
.cert-sign-label { font-size: .75rem; color: var(--text-muted); font-weight: 700; }
.cert-id { font-size: .8rem; font-weight: 800; color: var(--orange); }

/* PROFILE */
.profile-header-wrap { display: flex; align-items: center; gap: 24px; padding: 24px; flex-wrap: wrap; }
.profile-photo-wrap { position: relative; flex-shrink: 0; }
.profile-photo-big { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 4px solid var(--brand-light); }
.photo-edit-btn { position: absolute; bottom: 0; right: 0; background: var(--yellow); color: var(--brand-dark); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; cursor: pointer; border: 2px solid #fff; transition: var(--transition); }
.photo-edit-btn:hover { background: var(--orange); color: #fff; }

/* FEES PAGE */
.pay-method-card { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 20px 16px; text-align: center; border: 2px solid var(--border); transition: var(--transition); }
.pay-method-card:hover { border-color: var(--brand); background: var(--brand-soft); }

/* ============================================================
   FLASH MESSAGE
   ============================================================ */
.flash-overlay { position: fixed; top: 80px; right: 20px; z-index: 9999; animation: slideInRight .4s ease; }
.flash-toast {
  background: var(--card-bg); border-radius: 16px; padding: 14px 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: .9rem; max-width: 380px; border-left: 5px solid;
}
.flash-success { border-color: var(--brand); }
.flash-error   { border-color: var(--coral); }
.flash-info    { border-color: var(--sky); }
.flash-warning { border-color: var(--yellow); }
.flash-close { background: none; border: none; font-size: 1rem; cursor: pointer; color: var(--text-muted); padding: 0 0 0 8px; margin-left: auto; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 40px 20px; }
.empty-state span { font-size: 3.5rem; display: block; margin-bottom: 12px; animation: bounce 2s infinite; }
.empty-state p { color: var(--text-muted); font-weight: 700; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed; bottom: 90px; right: 20px;
  width: 56px; height: 56px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4); z-index: 999;
  transition: var(--transition);
}
@media (min-width: 992px) { .whatsapp-float { bottom: 24px; } }
.whatsapp-float:hover { transform: scale(1.15) rotate(-10deg); box-shadow: 0 8px 32px rgba(37,211,102,.6); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-xs { padding: 4px 10px; font-size: .75rem; font-weight: 800; }
.btn-login {
  background: linear-gradient(135deg, var(--brand), var(--teal));
  color: #fff; border: none; border-radius: 16px; font-weight: 900;
  font-size: 1.1rem; padding: 14px;
  box-shadow: 0 6px 24px rgba(22,163,74,.4); transition: var(--transition);
}
.btn-login:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(22,163,74,.5); color: #fff; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-body {
  background: linear-gradient(135deg, #f0fdf4 0%, #fefce8 50%, #fff7ed 100%);
  min-height: 100vh;
}
[data-theme="dark"] .login-body { background: linear-gradient(135deg, #052e16, #14532d, #1c0a05); }
.login-card {
  background: var(--card-bg); border-radius: 26px; padding: 38px 34px;
  width: 100%; max-width: 470px;
  box-shadow: 0 20px 60px rgba(22,163,74,.18);
  position: relative; z-index: 1;
  border: 3px solid var(--brand-soft);
}
.login-brand-logo { font-size: 3.5rem; display: block; animation: bounce 2s infinite; }
.login-brand-name { font-family: 'Baloo 2', cursive; font-size: 2rem; color: var(--brand); margin: 4px 0; font-weight: 800; }
.login-tagline { color: var(--text-muted); font-weight: 800; font-size: .9rem; }
.login-tabs { display: flex; gap: 8px; background: var(--bg-alt); border-radius: 14px; padding: 4px; }
.login-tab { flex: 1; text-align: center; padding: 10px; border-radius: 10px; font-weight: 800; font-size: .9rem; color: var(--text-muted); transition: var(--transition); }
.login-tab.active { background: var(--card-bg); color: var(--brand); box-shadow: 0 2px 10px rgba(22,163,74,.2); }
.login-tab:hover { color: var(--brand); }
.parent-mode-notice { background: var(--yellow-light); border-radius: var(--radius-sm); border: 2px solid var(--yellow); }
.demo-creds { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; border: 2px dashed var(--brand-light); }
.demo-btn { font-size: .78rem; font-weight: 800; }

/* BG Emojis */
.login-bg-emojis { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-emoji { position: absolute; animation: floatUp 8s ease-in-out infinite; opacity: .15; }

/* ============================================================
   FORM OVERRIDES
   ============================================================ */
.form-control, .form-select {
  border: 2px solid var(--border) !important;
  border-radius: 12px !important;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px rgba(22,163,74,.15) !important;
}
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .input-group-text { background: var(--bg-alt); border-color: var(--border) !important; color: var(--text); }

/* ============================================================
   DARK MODE EXTRAS
   ============================================================ */
[data-theme="dark"] .table { color: var(--text); }
[data-theme="dark"] .table-light { background: var(--bg-alt); color: var(--text); }
[data-theme="dark"] .table-hover > tbody > tr:hover > td { background: var(--bg-alt); }
[data-theme="dark"] .dropdown-menu { background: var(--card-bg); border-color: var(--border); }
[data-theme="dark"] .dropdown-item { color: var(--text); }
[data-theme="dark"] .dropdown-item:hover { background: var(--bg-alt); }
[data-theme="dark"] .modal-content { background: var(--card-bg); color: var(--text); }
[data-theme="dark"] .btn-close { filter: invert(1); }
[data-theme="dark"] .bg-light { background: var(--bg-alt) !important; }
[data-theme="dark"] .text-dark { color: var(--text) !important; }
[data-theme="dark"] .border { border-color: var(--border) !important; }
[data-theme="dark"] .alert-danger { background: rgba(251,113,133,.15); border-color: var(--coral); color: #fda4af; }
[data-theme="dark"] .alert-success { background: rgba(74,222,128,.12); border-color: var(--brand); color: #86efac; }
[data-theme="dark"] .cert-bg { border-color: var(--brand-light); }

/* Bootstrap colour overrides */
.btn-primary { background: var(--brand) !important; border-color: var(--brand) !important; font-weight: 800; }
.btn-primary:hover { background: var(--brand-dark) !important; border-color: var(--brand-dark) !important; transform: translateY(-2px); }
.btn-warning { background: var(--yellow) !important; border-color: var(--yellow) !important; color: var(--brand-dark) !important; font-weight: 800; }
.btn-warning:hover { background: var(--orange) !important; border-color: var(--orange) !important; color: #fff !important; }
.btn-success { background: var(--teal) !important; border-color: var(--teal) !important; font-weight: 800; }
.btn-danger { background: var(--coral) !important; border-color: var(--coral) !important; font-weight: 800; }
.badge.bg-success { background: var(--brand) !important; }
.badge.bg-warning { background: var(--yellow) !important; color: var(--brand-dark) !important; }
.badge.bg-danger { background: var(--coral) !important; }
.badge.bg-info { background: var(--sky) !important; }
.text-primary { color: var(--brand) !important; }
.bg-primary { background: var(--brand) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .page-wrapper { padding-bottom: 80px; }
  .greeting-banner { padding: 20px; }
  .dash-card-header { flex-wrap: wrap; gap: 8px; }
  .today-class-card { flex-direction: column; }
}
@media (max-width: 575px) {
  .greeting-title { font-size: 1.4rem; }
  .stat-value { font-size: 1.6rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-emoji-row { font-size: 1.3rem; letter-spacing: 4px; }
  .login-card { padding: 24px 20px; border-radius: 20px; }
  .achievements-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* Extra utility */
.object-fit-cover { object-fit: cover; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.lh-lg { line-height: 1.8; }
.badge-coral  { background: var(--coral) !important; color: #fff; }
.badge-yellow { background: var(--yellow) !important; color: var(--brand-dark); }
.badge-teal   { background: var(--teal) !important; color: #fff; }
.bg-coral   { background: var(--coral) !important; }
.bg-yellow  { background: var(--yellow) !important; }
.bg-teal    { background: var(--teal) !important; }
.text-brand { color: var(--brand) !important; }
.text-coral { color: var(--coral) !important; }
.text-orange{ color: var(--orange) !important; }