/* ═══════════════════════════════════════════════
   THE MAKERS ACADEMY — APP STYLES v3.0
   Modern Mobile-First App Aesthetic
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Sora:wght@400;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* Brand */
  --navy:    #0b1220;
  --navy2:   #111827;
  --navy3:   #1a2436;
  --navy4:   #243049;
  --gold:    #f0b429;
  --gold2:   #ffd166;
  --gold-dim: rgba(240,180,41,0.15);
  /* Accents */
  --teal:    #06b6d4;
  --teal2:   #67e8f9;
  --rose:    #f43f5e;
  --violet:  #8b5cf6;
  --green:   #10b981;
  --amber:   #f59e0b;
  --blue:    #3b82f6;
  /* Text */
  --text:    #f0f4ff;
  --text2:   #7c8ba1;
  --text3:   #4b5775;
  /* Borders */
  --border:  rgba(240,180,41,0.12);
  --border2: rgba(255,255,255,0.06);
  /* Surfaces */
  --card:    rgba(17,24,39,0.97);
  --card2:   rgba(26,36,54,0.95);
  --input-bg: rgba(255,255,255,0.04);
  /* Misc */
  --radius:  16px;
  --radius-sm: 10px;
  --fh: 'Sora', sans-serif;
  --fb: 'Plus Jakarta Sans', sans-serif;
  --fm: 'JetBrains Mono', monospace;
  --shadow: 0 20px 60px rgba(0,0,0,0.6);
  --shadow-sm: 0 4px 20px rgba(0,0,0,0.3);
  --glow: 0 0 40px rgba(240,180,41,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--fb); background: var(--navy); color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(240,180,41,0.3); border-radius: 2px; }

/* ── TOPBAR ── */
.topbar {
  height: 58px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; background: rgba(11,18,32,0.95); border-bottom: 1px solid var(--border2);
  position: sticky; top: 0; z-index: 200; backdrop-filter: blur(20px);
}
.tb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tb-logo { width: 36px; height: 36px; background: linear-gradient(135deg, var(--gold), var(--gold2)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 0 20px rgba(240,180,41,0.3); }
.tb-name { font-family: var(--fh); font-size: 1rem; font-weight: 700; color: var(--gold); letter-spacing: -0.3px; }
.tb-right { display: flex; align-items: center; gap: 8px; }
.tb-role { font-size: 0.72rem; color: var(--text2); background: rgba(255,255,255,0.05); padding: 3px 9px; border-radius: 20px; }
.tb-notif { width: 34px; height: 34px; background: var(--card2); border: 1px solid var(--border2); border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; font-size: 15px; transition: all 0.2s; }
.tb-notif:hover { border-color: var(--gold); }
.tb-notif .nc { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; background: var(--rose); border-radius: 9px; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 3px; }

/* ── LAYOUT ── */
.app-shell { display: flex; min-height: calc(100vh - 58px); }

/* ── SIDEBAR ── */
.sidebar {
  width: 230px; flex-shrink: 0; background: rgba(11,18,32,0.97);
  border-right: 1px solid var(--border2); padding: 12px 8px;
  position: sticky; top: 58px; height: calc(100vh - 58px);
  overflow-y: auto; display: flex; flex-direction: column; gap: 2px;
}
.sb-section { font-size: 0.62rem; font-weight: 700; color: var(--text3); letter-spacing: 2px; text-transform: uppercase; padding: 14px 10px 6px; }
.sb-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  cursor: pointer; color: var(--text2); font-size: 0.86rem; font-weight: 500;
  transition: all 0.18s; text-decoration: none; position: relative;
}
.sb-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.sb-item.active { background: var(--gold-dim); color: var(--gold); font-weight: 600; }
.sb-item.active::before { content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 3px; background: var(--gold); border-radius: 0 3px 3px 0; }
.sb-ico { font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }
.sb-badge { margin-left: auto; background: var(--rose); color: white; font-size: 0.68rem; font-weight: 700; padding: 1px 6px; border-radius: 20px; }

/* ── MAIN CONTENT ── */
.main-content { flex: 1; padding: 20px; min-width: 0; overflow-y: auto; min-height: calc(100vh - 58px); }

/* ── PAGE ── */
.page { display: none; animation: fadeUp 0.25s ease; }
.page.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── PAGE HEADER ── */
.ph { margin-bottom: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ph-left h2 { font-family: var(--fh); font-size: 1.5rem; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
.ph-left p { color: var(--text2); font-size: 0.82rem; margin-top: 3px; }

/* ── CARDS ── */
.card { background: var(--card2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 18px; }
.card-title { font-family: var(--fh); font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }

/* STAT CARDS */
.stat-card { background: var(--card2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden; transition: transform 0.2s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-card .s-accent { position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.stat-card .s-ico { position: absolute; right: 14px; top: 12px; font-size: 2rem; opacity: 0.15; }
.stat-card .s-val { font-family: var(--fh); font-size: 1.7rem; font-weight: 800; line-height: 1; }
.stat-card .s-lbl { font-size: 0.74rem; color: var(--text2); margin-top: 5px; font-weight: 500; }
.stat-card .s-sub { font-size: 0.72rem; color: var(--text3); margin-top: 3px; }
.sc-gold .s-accent { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.sc-gold .s-val { color: var(--gold); }
.sc-teal .s-accent { background: var(--teal); }
.sc-teal .s-val { color: var(--teal); }
.sc-rose .s-accent { background: var(--rose); }
.sc-rose .s-val { color: var(--rose); }
.sc-violet .s-accent { background: var(--violet); }
.sc-violet .s-val { color: var(--violet); }
.sc-green .s-accent { background: var(--green); }
.sc-green .s-val { color: var(--green); }
.sc-blue .s-accent { background: var(--blue); }
.sc-blue .s-val { color: var(--blue); }

/* ── GRIDS ── */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ── BUTTONS ── */
.btn { padding: 10px 18px; border: none; border-radius: 10px; cursor: pointer; font-family: var(--fb); font-weight: 600; font-size: 0.86rem; transition: all 0.18s; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: var(--navy); box-shadow: 0 4px 15px rgba(240,180,41,0.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(240,180,41,0.4); }
.btn-teal { background: var(--teal); color: var(--navy); }
.btn-teal:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-rose { background: var(--rose); color: white; }
.btn-rose:hover { opacity: 0.9; }
.btn-ghost { background: rgba(255,255,255,0.04); border: 1px solid var(--border2); color: var(--text2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-violet { background: var(--violet); color: white; }
.btn-green { background: var(--green); color: white; }
.btn-sm { padding: 7px 13px; font-size: 0.79rem; border-radius: 8px; }
.btn-xs { padding: 4px 9px; font-size: 0.73rem; border-radius: 6px; }
.w100 { width: 100%; justify-content: center; }

/* ── FORM INPUTS ── */
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.8px; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 11px 14px; background: var(--input-bg);
  border: 1px solid var(--border2); border-radius: 10px; color: var(--text);
  font-family: var(--fb); font-size: 0.9rem; outline: none; transition: all 0.18s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--gold); background: rgba(240,180,41,0.05); box-shadow: 0 0 0 3px rgba(240,180,41,0.08); }
.fg select option { background: var(--navy2); }
.fg textarea { resize: vertical; min-height: 90px; }
.fg input[type=file] { padding: 8px; cursor: pointer; }

/* SEARCH BAR */
.search-wrap { display: flex; align-items: center; gap: 8px; background: var(--input-bg); border: 1px solid var(--border2); border-radius: 12px; padding: 10px 14px; transition: border 0.18s; }
.search-wrap:focus-within { border-color: var(--gold); }
.search-wrap input { background: none; border: none; color: var(--text); font-family: var(--fb); font-size: 0.9rem; outline: none; flex: 1; }
.search-wrap .si { color: var(--text3); font-size: 16px; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
th { padding: 10px 14px; text-align: left; font-size: 0.69rem; font-weight: 700; color: var(--text3); letter-spacing: 1.5px; text-transform: uppercase; border-bottom: 1px solid var(--border2); }
td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.03); vertical-align: middle; }
tbody tr { transition: background 0.15s; }
tbody tr:hover td { background: rgba(240,180,41,0.03); }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: 0.71rem; font-weight: 700; white-space: nowrap; letter-spacing: 0.3px; }
.bg-green { background: rgba(16,185,129,0.15); color: var(--green); }
.bg-rose { background: rgba(244,63,94,0.15); color: var(--rose); }
.bg-teal { background: rgba(6,182,212,0.15); color: var(--teal); }
.bg-gold { background: rgba(240,180,41,0.15); color: var(--gold); }
.bg-violet { background: rgba(139,92,246,0.15); color: var(--violet); }
.bg-blue { background: rgba(59,130,246,0.15); color: var(--blue); }
.bg-amber { background: rgba(245,158,11,0.15); color: var(--amber); }

/* ── TABS ── */
.tabs { display: flex; gap: 4px; background: var(--navy2); border-radius: 12px; padding: 4px; flex-wrap: wrap; }
.tab { padding: 8px 16px; border-radius: 9px; cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--text3); transition: all 0.18s; }
.tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.tab.active { background: var(--gold); color: var(--navy); }

/* ── AVATAR ── */
.av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--teal)); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 800; color: var(--navy); flex-shrink: 0; }
.av-lg { width: 68px; height: 68px; font-size: 1.4rem; }
.av-xl { width: 90px; height: 90px; font-size: 2rem; }

/* ── PROGRESS ── */
.pb { background: rgba(255,255,255,0.07); border-radius: 20px; height: 6px; overflow: hidden; }
.pf { height: 100%; border-radius: 20px; transition: width 0.6s ease; }

/* ── MODAL ── */
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.82); z-index: 500; align-items: center; justify-content: center; padding: 16px; }
.overlay.open { display: flex; animation: fadeIn 0.2s; }
.modal { background: var(--navy2); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 24px; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow); animation: fadeUp 0.25s; }
.modal-lg { max-width: 820px; }
.modal-sm { max-width: 420px; }
.modal-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-hdr h3 { font-family: var(--fh); font-size: 1.1rem; font-weight: 700; }
.x-btn { width: 30px; height: 30px; background: rgba(255,255,255,0.05); border: 1px solid var(--border2); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: 14px; transition: all 0.18s; }
.x-btn:hover { border-color: var(--rose); color: var(--rose); }

/* ── ALERTS ── */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 0.84rem; line-height: 1.5; }
.alert-warning { background: rgba(245,158,11,0.1); border-left: 3px solid var(--amber); }
.alert-danger { background: rgba(244,63,94,0.1); border-left: 3px solid var(--rose); }
.alert-info { background: rgba(6,182,212,0.08); border-left: 3px solid var(--teal); }
.alert-success { background: rgba(16,185,129,0.08); border-left: 3px solid var(--green); }

/* ── OTP DISPLAY ── */
.otp-display { font-family: var(--fm); font-size: 2.2rem; font-weight: 700; text-align: center; letter-spacing: 8px; color: var(--gold); background: var(--gold-dim); padding: 20px; border-radius: 14px; border: 2px dashed rgba(240,180,41,0.3); margin: 16px 0; }
.otp-input { font-family: var(--fm); font-size: 1.6rem; text-align: center; letter-spacing: 6px; text-transform: uppercase; }

/* ── CHAIN INDICATOR ── */
.chain { display: flex; align-items: center; gap: 0; margin: 16px 0; }
.chain-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.chain-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.chain-dot.done { background: var(--green); color: white; }
.chain-dot.active { background: var(--gold); color: var(--navy); }
.chain-dot.pending { background: var(--navy4); color: var(--text3); border: 1px solid var(--border2); }
.chain-line { flex: 1; height: 2px; background: var(--border2); margin: 0 4px; margin-bottom: 16px; }
.chain-line.done { background: var(--green); }
.chain-lbl { font-size: 0.65rem; color: var(--text3); font-weight: 600; }

/* ── PROFILE CARD ── */
.profile-hero { background: linear-gradient(135deg, var(--navy3), var(--navy4)); border: 1px solid var(--border2); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; position: relative; overflow: hidden; }
.profile-hero::before { content: ''; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; background: radial-gradient(circle, rgba(240,180,41,0.1) 0%, transparent 70%); }

/* ── STUDENT CARD ── */
.stu-card { background: var(--card2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all 0.18s; }
.stu-card:hover { border-color: rgba(240,180,41,0.3); transform: translateY(-1px); }
.stu-card .info { flex: 1; min-width: 0; }
.stu-card .name { font-weight: 700; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stu-card .meta { font-size: 0.76rem; color: var(--text2); margin-top: 2px; }

/* ── HOMEWORK CARD ── */
.hw-card { background: var(--card2); border: 1px solid var(--border2); border-radius: var(--radius); overflow: hidden; }
.hw-card .hw-img { width: 100%; max-height: 200px; object-fit: cover; }
.hw-card .hw-body { padding: 14px; }
.hw-card .hw-type { font-size: 0.69rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.hw-card .hw-title { font-family: var(--fh); font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.hw-card .hw-desc { font-size: 0.84rem; color: var(--text2); line-height: 1.6; }
.hw-card .hw-footer { padding: 10px 14px; background: rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: space-between; font-size: 0.76rem; color: var(--text2); }
.review-item { padding: 10px 14px; border-top: 1px solid var(--border2); }
.review-item .rv-meta { font-size: 0.72rem; color: var(--text3); margin-bottom: 4px; }
.stars { color: var(--gold); font-size: 0.85rem; }

/* ── CHAT BUBBLES ── */
.bubble { padding: 10px 14px; border-radius: 14px; font-size: 0.86rem; line-height: 1.6; max-width: 80%; }
.bubble-out { background: var(--gold-dim); border: 1px solid rgba(240,180,41,0.2); margin-left: auto; }
.bubble-in { background: rgba(6,182,212,0.08); border: 1px solid rgba(6,182,212,0.15); }
.bubble-meta { font-size: 0.7rem; color: var(--text3); margin-bottom: 3px; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--navy2); border: 1px solid var(--border2); border-radius: 12px; padding: 13px 18px; font-size: 0.86rem; z-index: 9999; max-width: 320px; box-shadow: var(--shadow); display: none; }
.toast.show { display: block; animation: fadeUp 0.3s; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 52px 20px; color: var(--text2); }
.empty-state .e-ico { font-size: 3.5rem; margin-bottom: 14px; opacity: 0.7; }
.empty-state h3 { font-family: var(--fh); color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 0.84rem; }

/* ── LOADING ── */
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--text2); }
.spinner { width: 20px; height: 20px; border: 2px solid var(--border2); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border2); margin: 16px 0; }

/* ── UTILS ── */
.flex { display: flex; } .flex-center { display: flex; align-items: center; } .flex-between { display: flex; align-items: center; justify-content: space-between; } .flex-col { display: flex; flex-direction: column; }
.gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.mt4{margin-top:4px;} .mt8{margin-top:8px;} .mt12{margin-top:12px;} .mt16{margin-top:16px;} .mt20{margin-top:20px;} .mt24{margin-top:24px;}
.mb8{margin-bottom:8px;} .mb12{margin-bottom:12px;} .mb16{margin-bottom:16px;} .mb20{margin-bottom:20px;}
.text-gold{color:var(--gold);} .text-green{color:var(--green);} .text-rose{color:var(--rose);} .text-teal{color:var(--teal);} .text-violet{color:var(--violet);}
.text2{color:var(--text2);} .text3{color:var(--text3);} .bold{font-weight:700;} .mono{font-family:var(--fm);} .tc{text-align:center;}
.wrap{flex-wrap:wrap;}
.fw { width: 100%; }
.gA{color:var(--green);font-weight:700;} .gB{color:var(--teal);font-weight:700;} .gC{color:var(--gold);font-weight:700;} .gF{color:var(--rose);font-weight:700;}

/* ── ATTENDANCE GRID ── */
.att-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.att-cell { aspect-ratio: 1; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; }
.att-P { background: rgba(16,185,129,0.2); color: var(--green); }
.att-A { background: rgba(244,63,94,0.2); color: var(--rose); }
.att-L { background: rgba(240,180,41,0.2); color: var(--gold); }
.att-H { background: rgba(139,92,246,0.15); color: var(--violet); }
.att-hdr { font-size: 0.62rem; color: var(--text3); font-weight: 700; text-align: center; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) { .sidebar { display: none; } .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g3 { grid-template-columns: 1fr 1fr; } .g2 { grid-template-columns: 1fr; } .g4 { grid-template-columns: 1fr 1fr; } .main-content { padding: 12px; } .modal { padding: 18px; } }

/* ── PRINT (PDF) ── */
@media print {
  .sidebar, .topbar, .btn, .x-btn, .no-print { display: none !important; }
  body { background: white !important; color: black !important; }
  .main-content { padding: 0 !important; }
  .card, .stat-card { border: 1px solid #ddd !important; background: white !important; }
  .print-section { page-break-inside: avoid; }
}

/* ── PDF PROFILE SPECIFIC ── */
.pdf-profile { font-family: var(--fb); }
.pdf-header { background: linear-gradient(135deg, #0d1628, #1a2d4a); color: white; padding: 30px; border-radius: 16px 16px 0 0; }
.pdf-section { padding: 20px; border-bottom: 1px solid #e5e7eb; }
.pdf-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.pdf-bar-fill { height: 100%; border-radius: 4px; }


/* ── ANIMATED SIDEBAR ── */
.sidebar { transition: width 0.3s cubic-bezier(.4,0,.2,1); overflow:hidden; }
.sb-item { transition: all 0.2s; position:relative; overflow:hidden; }
.sb-item::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(90deg,rgba(240,180,41,0)0%,rgba(240,180,41,0.08)100%);
  opacity:0; transition:opacity 0.2s;
}
.sb-item:hover::after { opacity:1; }
.sb-item.active { box-shadow:inset 3px 0 0 var(--gold); }
.sb-ico { transition:transform 0.2s; }
.sb-item:hover .sb-ico { transform:scale(1.2); }
.sb-item.active .sb-ico { transform:scale(1.15); }
.sb-section { animation: fadeSlideIn 0.4s ease both; }
.sb-item { animation: fadeSlideIn 0.3s ease both; }
@keyframes fadeSlideIn {
  from { opacity:0; transform:translateX(-12px); }
  to   { opacity:1; transform:translateX(0); }
}

/* ── WELCOME BANNER ── */
.welcome-banner {
  background: linear-gradient(135deg, var(--navy3), var(--navy4));
  border: 1px solid rgba(240,180,41,0.2);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  animation: welcomeIn 0.6s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes welcomeIn {
  from { opacity:0; transform:translateY(-16px) scale(0.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
.welcome-banner::before {
  content:'';
  position:absolute; top:-30px; right:-30px;
  width:120px; height:120px;
  background:radial-gradient(circle, rgba(240,180,41,0.12) 0%, transparent 70%);
}
.welcome-av {
  width:52px; height:52px; border-radius:14px;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem; flex-shrink:0;
  box-shadow:0 4px 16px rgba(240,180,41,0.3);
}
.welcome-text h3 {
  font-family:var(--fh); font-size:1.05rem; font-weight:800;
  color:var(--text); margin-bottom:3px;
}
.welcome-text p { font-size:0.78rem; color:var(--text2); line-height:1.5; }
.welcome-dismiss {
  position:absolute; top:10px; right:12px;
  background:none; border:none; color:var(--text3);
  font-size:16px; cursor:pointer; padding:4px;
}
.welcome-dismiss:hover { color:var(--text); }

/* ── TTS BUTTON ── */
.tts-btn {
  display:inline-flex; align-items:center; gap:5px;
  padding:5px 10px; border-radius:8px;
  background:rgba(6,182,212,0.1); border:1px solid rgba(6,182,212,0.2);
  color:var(--teal); font-size:0.75rem; font-weight:600;
  cursor:pointer; transition:all 0.2s;
}
.tts-btn:hover { background:rgba(6,182,212,0.18); }
.tts-btn.speaking { background:rgba(244,63,94,0.12); border-color:var(--rose); color:var(--rose); animation:pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.6;} }

/* ── ID CARD PRINT ── */
.id-card-wrap { display:flex; flex-wrap:wrap; gap:16px; justify-content:center; padding:16px 0; }
.id-card {
  width:300px; background:white; border-radius:14px;
  box-shadow:0 4px 20px rgba(0,0,0,0.15); overflow:hidden;
  font-family:Georgia,serif; color:#1a1a2e;
  page-break-inside:avoid;
}
.id-card-hdr {
  background:linear-gradient(135deg,#0b1220,#162238);
  color:white; padding:14px 16px; text-align:center;
}
.id-card-hdr h3 { font-size:.85rem; font-weight:800; letter-spacing:.5px; }
.id-card-hdr p  { font-size:.65rem; opacity:.7; margin-top:2px; }
.id-card-photo-row {
  display:flex; gap:14px; padding:14px 16px 10px;
  align-items:flex-start;
}
.id-card-photo {
  width:70px; height:80px; border-radius:8px;
  background:linear-gradient(135deg,#f0b429,#ffd166);
  display:flex; align-items:center; justify-content:center;
  font-size:1.6rem; font-weight:800; color:#0b1220;
  flex-shrink:0; overflow:hidden;
}
.id-card-photo img { width:100%; height:100%; object-fit:cover; }
.id-card-info table { width:100%; font-size:.72rem; }
.id-card-info td:first-child { color:#888; padding:2px 0; width:42%; }
.id-card-info td:last-child { font-weight:700; color:#1a1a2e; }
.id-card-barcode { padding:10px 16px; border-top:1px solid #eee; text-align:center; }
.barcode-bars { display:flex; gap:1px; justify-content:center; margin-bottom:4px; }
.barcode-bars span { display:inline-block; width:2px; background:#1a1a2e; }
.id-card-num { font-family:monospace; font-size:.65rem; letter-spacing:2px; color:#666; }
.id-card-footer { background:#f8faff; padding:8px 16px; display:flex; justify-content:space-between; font-size:.65rem; color:#999; }

/* ── FEE CHALLAN ── */
.challan-wrap { max-width:680px; margin:0 auto; }
.challan { background:white; border-radius:14px; overflow:hidden; box-shadow:0 4px 20px rgba(0,0,0,.12); color:#1a1a2e; font-family:Arial,sans-serif; }
.challan-hdr { background:linear-gradient(135deg,#0b1220,#1a2d4a); color:white; padding:20px 24px; display:flex; justify-content:space-between; align-items:center; }
.challan-copy { font-size:.7rem; opacity:.6; border:1px solid rgba(255,255,255,.3); padding:3px 8px; border-radius:4px; }
.challan-body { padding:20px 24px; }
.challan-table { width:100%; border-collapse:collapse; font-size:.84rem; }
.challan-table td,.challan-table th { padding:8px 12px; border:1px solid #e5e7eb; }
.challan-table th { background:#f8faff; font-weight:700; font-size:.76rem; text-transform:uppercase; }
.challan-total { background:linear-gradient(135deg,#0b1220,#1a2d4a); color:white; padding:12px 24px; display:flex; justify-content:space-between; font-weight:700; font-size:.95rem; }
.challan-sig { display:grid; grid-template-columns:1fr 1fr 1fr; gap:20px; padding:16px 24px; border-top:1px dashed #ccc; font-size:.72rem; color:#888; text-align:center; }

/* ── MARKSHEET ── */
.marksheet { max-width:700px; margin:0 auto; background:white; border:2px solid #0b1220; padding:24px; font-family:Arial,sans-serif; color:#1a1a2e; }
.marksheet-hdr { text-align:center; border-bottom:2px solid #0b1220; padding-bottom:14px; margin-bottom:16px; }
.marksheet-hdr h2 { font-size:1.1rem; font-weight:800; }
.marksheet-hdr p { font-size:.76rem; color:#666; }
.ms-table { width:100%; border-collapse:collapse; margin:12px 0; }
.ms-table th,.ms-table td { border:1px solid #ccc; padding:7px 10px; font-size:.82rem; }
.ms-table th { background:#0b1220; color:white; font-size:.74rem; }
.ms-table .total-row { background:#fef9ec; font-weight:700; }
.ms-grade { font-weight:800; font-size:.9rem; }

/* ── ROLL NO SLIP ── */
.roll-slip { background:white; border:1px solid #ccc; border-radius:8px; padding:16px; page-break-inside:avoid; font-family:Arial,sans-serif; color:#1a1a2e; }
.roll-slip-hdr { border-bottom:2px solid #0b1220; margin-bottom:10px; padding-bottom:8px; text-align:center; }
.roll-no-big { font-size:2.2rem; font-weight:900; color:#0b1220; text-align:center; margin:10px 0; font-family:monospace; letter-spacing:4px; border:3px solid #0b1220; padding:8px; border-radius:8px; }

/* ── STAT CARD HOVER ── */
.stat-card { cursor:pointer; }
.stat-card:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(0,0,0,0.3); }
.stat-card { transition:transform 0.2s,box-shadow 0.2s; }

/* ── PAGE TRANSITIONS ── */
.page.active { animation:pageIn 0.28s cubic-bezier(.4,0,.2,1) both; }
@keyframes pageIn {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── ATTENDANCE REPORT ── */
.att-month-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(90px,1fr)); gap:8px; }
.att-month-card { background:var(--card2); border:1px solid var(--border2); border-radius:10px; padding:10px; text-align:center; }
.att-month-pct { font-family:var(--fm); font-size:1.3rem; font-weight:800; }
.att-month-name { font-size:.7rem; color:var(--text2); margin-top:3px; }
