/* ============================================================
   🎨 UI THEME — "શાળા લેટરપેડ Studio" Design Tokens (Phase 1)
   Navy + Green + Saffron palette. Soft, rounded, school-friendly.
   NOTE: Variable names kept identical so all existing modules
   auto-adopt the new look. Print/PDF (.lc-*, .pill-*, .tp-print-*)
   use hard-coded colors and are intentionally NOT affected.
   ============================================================ */
:root {
  /* Core (existing names — values swapped to letterpad navy) */
  --primary: #0C4A6E;          /* navy (was indigo #1a237e) */
  --primary-hover: #1167A0;    /* navy2 */
  --secondary: #2C9E4F;        /* green (was teal) */
  --secondary-hover: #258845;
  --accent: #F2911B;           /* saffron (was pink) */
  --background: #EAF1EF;       /* soft mint-grey (was #f4f7f6) */
  --text: #14323B;             /* ink (was #333) */
  --card-bg: #FFFFFF;          /* solid white (was translucent) */
  --border: #D7E4E0;           /* soft line (was #e0e0e0) */
  --danger: #D6435B;
  --success: #2C9E4F;

  /* 🆕 Letterpad extended tokens */
  --bg2: #DEEAE6;
  --surface: #FFFFFF;
  --surface2: #F5F9F8;
  --ink: #14323B;
  --ink-soft: #496168;
  --muted: #7E939A;
  --line: #D7E4E0;
  --navy: #0C4A6E;
  --navy2: #1167A0;
  --green: #2C9E4F;
  --green2: #37BB5E;
  --saffron: #F2911B;
  --saffron2: #FFA838;
  --danger-bg: #FCEDF0;

  /* Shape & depth */
  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 12px 34px rgba(15,50,59,.12);
  --shadow-sm: 0 4px 16px rgba(15,50,59,.08);

  /* Gradients (buttons, accents) */
  --grad-navy: linear-gradient(135deg,#0C4A6E,#1576AC);
  --grad-green: linear-gradient(135deg,#258845,#3DB763);
  --grad-saffron: linear-gradient(135deg,#E5841A,#FFA838);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Anek Gujarati', 'Inter', sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background animated shapes */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
}
.shape1 { width: 400px; height: 400px; background: #FFA838; top: -100px; right: -100px; animation: float 10s ease-in-out infinite; opacity: 0.35; }
.shape2 { width: 300px; height: 300px; background: #37BB5E; bottom: -50px; left: -50px; animation: float 12s ease-in-out infinite reverse; opacity: 0.35; }

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, 50px) rotate(10deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Base Classes */
.container { max-width: 1500px; width: 95%; margin: 0 auto; padding: 20px; }
.glass-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

/* Typography */
.main-title { font-size: 28px; font-weight: 800; color: var(--primary); text-align: center; margin-bottom: 5px; }
.subtitle { font-size: 16px; color: var(--ink-soft); text-align: center; margin-bottom: 20px; }
.section-title { font-size: 22px; font-weight: 700; color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-bottom: 20px; }
.section-divider { background: #ECFAF1; padding: 10px 14px; border-radius: 12px; font-size: 16px; font-weight: bold; color: var(--secondary); margin: 20px 0 10px 0; border: 1px solid #D1F0DD; }
.gradient-text { background: linear-gradient(90deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-sm { font-size: 14px; color: #555; }

/* ⚛️ ડેશબોર્ડ હોમ — નવું રૂપ (dash/). .dx-on હોય ત્યારે જૂનાં ખાનાં છુપાય (DOM માં રહે — app.js એમનાં id વાપરે છે).
   ⚠️ ફક્ત આ જાણીતાં ખાનાં જ : #dashboardCards માં JS થી ઉમેરાતાં બેનર/કાર્ડ (સૂચના, પ્રવૃત્તિ…) દેખાતાં રહેવાં જોઈએ. */
#dashNext { display: none; }
#dashboardCards.dx-on > #dashNext { display: block; }
#dashboardCards.dx-on > :is(.dash-hero, #dashStatStrip, #dashTodo, .dcfg-bar, #dashAccWrap,
  .dash-search-wrap, #dashNoResult, #dashQuickWrap, .dash-sections) { display: none !important; }
/* ⚛️ તબક્કો ૨ : સાઈડબાર + નીચેની પટ્ટી — નવું રૂપ. જૂનું DOM માં રહે, ફક્ત છુપાય. */
#sideNext, #bnavNext { display: none; }
#appSidebar.sx-on > :not(#sideNext) { display: none !important; }
#appSidebar.sx-on > #sideNext { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#bottomNav.sx-on > .bnav-btn { display: none !important; }
#bottomNav.sx-on > #bnavNext { display: contents; }
/* ⚛️ તબક્કો ૩ : ઉપરની પટ્ટી. નીચેની મોડ્યુલ-રંગની પટ્ટી (.top-navbar ની --m-fg) એમ જ રહે. */
#topNext { display: none; }
.top-navbar.sx-on > :not(#topNext) { display: none !important; }
.top-navbar.sx-on > #topNext { display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; }
/* «N નવી સૂચના» ની જૂની પટ્ટી નવા ડેશબોર્ડની નીચે જતી — હવે «આજ» મથાળાની ચિપ */
#dashboardCards.dx-on > #userNotifBanner { display: none !important; }
.dxs-sk { display: grid; gap: 12px; margin-bottom: 14px; }
.dxs-sk i { display: block; height: 64px; border-radius: 14px; background: linear-gradient(90deg, #E4ECEA, #F3F7F6, #E4ECEA); background-size: 200% 100%; animation: dxsSk 1.2s linear infinite; }
.dxs-sk i:nth-child(2) { height: 44px; }
.dxs-sk i:nth-child(3) { height: 88px; }
.dxs-sk i:nth-child(4) { height: 120px; }
@keyframes dxsSk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .dxs-sk i { animation: none; } }

/* 🙏 ડેશબોર્ડ સ્વાગત કાર્ડ — શાળાનો લોગો + આખું નામ + DISE · ધોરણનો ગાળો
   (આછા સાઈડબાર જેવું જ સફેદ કાર્ડ; લખાણ smsApplyNavIdentity ભરે છે) */
.dash-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.dash-hero .hero-logo { width: 60px; height: 60px; font-size: 26px; border: 1px solid var(--line); }
.dash-hero .hero-txt { min-width: 0; display: grid; gap: 2px; }
.dash-hero .hi { font-size: 13px; font-weight: 600; color: var(--muted); }
.dash-hero h2 { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.dash-hero .sub { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
@media screen and (max-width: 600px) {
  .dash-hero { padding: 14px; gap: 12px; }
  .dash-hero .hero-logo { width: 50px; height: 50px; font-size: 22px; }
  .dash-hero h2 { font-size: 17px; }
}

/* ══════════════════════════════════════════════════════════════
   📊 ડેશબોર્ડની ૪ આંકડાની પટ્ટી (તબક્કો ૧) — hero ની નીચે
   કિંમતો app.js → dashStats ભરે છે. ખાનું ક્લિક કરતાં એ મોડ્યુલ ખૂલે છે.
   ══════════════════════════════════════════════════════════════ */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.dstat {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  text-align: left;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.dstat::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--dc, var(--navy));
}
.dstat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dstat-ic {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--dcbg, var(--surface2));
}
.dstat-ic .material-icons { font-size: 21px; color: var(--dc, var(--navy)); }
.dstat-tx { display: grid; gap: 1px; min-width: 0; }
.dstat-lbl { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.dstat-val {
  font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dstat-val .u { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.dstat-sub {
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dstat-sub.ok   { color: var(--green); }
.dstat-sub.warn { color: #A96412; }
.dstat-sub.bad  { color: var(--danger); }
/* કિંમત આવે તે પહેલાંની સ્થિતિ — આંકડો ઝાંખો દેખાય, ધબકારા વગર (ઓછું ધ્યાન ખેંચે) */
.dash-stats.is-loading .dstat-val { color: var(--muted); }

@media screen and (max-width: 900px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ══════════════════════════════════════════════════════════════
   🪗 વિગતવાર પટ્ટી — accordion (તબક્કો ૨)
   બંધ હોય ત્યારે પણ મથાળા પર મુખ્ય આંકડા (.dchip) દેખાય છે.
   ══════════════════════════════════════════════════════════════ */
.dacc-wrap { display: grid; gap: 10px; margin-bottom: 18px; }
.dacc {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.dacc > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  user-select: none;
}
.dacc > summary::-webkit-details-marker { display: none; }
.dacc > summary:hover { background: var(--surface2); }
.dacc-ic {
  width: 34px; height: 34px; flex: none;
  border-radius: 10px; display: grid; place-items: center;
  background: var(--dcbg, var(--surface2));
}
.dacc-ic .material-icons { font-size: 19px; color: var(--dc, var(--navy)); }
.dacc-ttl { flex: none; }
.dacc-sum { flex: 1; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.dacc-chev { flex: none; color: var(--muted); font-size: 20px; transition: transform .2s ease; }
.dacc[open] > summary { border-bottom: 1px solid var(--line); background: var(--surface2); }
.dacc[open] .dacc-chev { transform: rotate(180deg); }
.dacc-bd { padding: 12px; background: #F1F6F5; }

.dchip {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--surface2); color: var(--ink-soft); border: 1px solid var(--line);
}
.dchip.ok   { background: #E4F5EA; color: #1E7A3C; border-color: #C7E9D3; }
.dchip.warn { background: #FEF1DF; color: #A96412; border-color: #F6DCB4; }
.dchip.bad  { background: var(--danger-bg); color: var(--danger); border-color: #F1C2CC; }
.dchip.info { background: #E3EFF7; color: var(--navy); border-color: #CBDFEC; }

/* પટ્ટીની અંદરનાં કાર્ડ */
.dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.dcard { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; }
.dcard-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dcard-hd h4 { margin: 0; font-size: 14px; font-weight: 700; flex: 1; color: var(--ink); }
.dgo {
  font-size: 11.5px; font-weight: 700; color: var(--navy2); background: var(--surface2);
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-family: inherit; flex: none;
}
.dgo:hover { background: #E3EFF7; }
.dsel {
  font-family: inherit; font-size: 12px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; background: var(--surface2); max-width: 160px;
}
.dnote {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  padding: 18px 12px; color: var(--muted); font-size: 12.5px; font-weight: 600;
  background: var(--surface2); border: 1.5px dashed var(--line); border-radius: 12px; text-align: center;
}
.dnote .material-icons { font-size: 19px; opacity: .6; }
.dsub { margin-top: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); text-align: center; }

/* રિંગ / donut */
.dring-row { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.dring { position: relative; width: 120px; height: 120px; flex: none; }
.dring-mid {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.2;
}
.dring-mid b { display: block; font-size: 22px; font-weight: 800; color: var(--navy); }
.dring-mid span { font-size: 11px; font-weight: 600; color: var(--muted); }
.dlegend { display: grid; gap: 6px; flex: 1; min-width: 135px; }
.dlegend.two { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.dlg { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.dlg i { width: 10px; height: 10px; border-radius: 3px; flex: none; display: block; }
.dlg b { margin-left: auto; font-weight: 800; color: var(--ink); }

/* ધોરણ-વાર પટ્ટી */
.dbars { display: grid; gap: 6px; }
.dbar {
  display: grid; grid-template-columns: 78px 1fr 46px; align-items: center; gap: 9px;
  font-size: 12px; background: none; border: none; padding: 0; font-family: inherit; text-align: left; width: 100%;
}
button.dbar { cursor: pointer; }
button.dbar:hover .dbar-nm { color: var(--navy); }
.dbar-nm { font-weight: 700; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbar-tr { height: 9px; border-radius: 99px; background: #EDF3F1; overflow: hidden; }
.dbar-fl { display: block; height: 100%; border-radius: 99px; background: var(--grad-navy); }
.dbar-vl { text-align: right; font-weight: 700; color: var(--ink); }
.dbar.pend .dbar-vl { color: var(--danger); font-size: 11px; }

/* આજના તાસ */
.dper { display: grid; gap: 5px; }
.dper-row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 9px; align-items: center;
  padding: 7px 10px; border-radius: 10px; background: var(--surface2);
  border: 1px solid var(--line); font-size: 12.5px;
}
.dper-tm { font-weight: 700; color: var(--muted); font-size: 11px; }
.dper-sb { font-weight: 700; color: var(--ink); min-width: 0; }
.dper-sb small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.dper-p { font-size: 11px; font-weight: 700; color: var(--muted); }
.dper-row.now { background: #E8F5EE; border-color: #B6DEC5; }
.dper-row.now .dper-sb { color: #1E7A3C; }
.dper-row.done { opacity: .5; }
.dper-row.brk { background: #FEF7EC; border-color: #F6DCB4; }

/* યાદી (પ્રાર્થના) */
.dlist { display: grid; gap: 6px; }
.dli { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 6px 2px; border-bottom: 1px dashed var(--line); }
.dli:last-child { border-bottom: none; }
.dli-ic {
  width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface2); border: 1px solid var(--line);
}
.dli-ic .material-icons { font-size: 15px; color: var(--ink-soft); }
.dli-nm { flex: 1; font-weight: 600; color: var(--ink); min-width: 0; }
.dli-nm small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }

/* ══════════════════════════════════════════════════════════════
   🗒️ આજનું કામ (તબક્કો ૩) — ક્રિયા-યાદી, દરેક લીટીની સામે બટન
   ══════════════════════════════════════════════════════════════ */
.dash-todo {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.dtodo-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dtodo-hd h3 { margin: 0; font-size: 15.5px; font-weight: 700; flex: 1; color: var(--ink); }
.dtodo-hd > .material-icons { font-size: 19px; color: var(--saffron); }
.dtodo-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; margin-bottom: 8px;
  background: var(--surface2); border: 1px solid var(--line);
}
.dtodo-row:last-child { margin-bottom: 0; }
.dtodo-ic {
  width: 32px; height: 32px; flex: none; border-radius: 10px;
  display: grid; place-items: center; background: var(--card-bg); border: 1px solid var(--line);
}
.dtodo-ic .material-icons { font-size: 17px; color: var(--ink-soft); }
.dtodo-tx { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.dtodo-tx small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.dtodo-btn {
  flex: none; background: var(--grad-navy); color: #fff; border: none; font-family: inherit;
  font-weight: 700; font-size: 12px; padding: 7px 13px; border-radius: 9px;
}
.dtodo-btn:hover { filter: brightness(1.08); }
.dtodo-row.urgent { background: var(--danger-bg); border-color: #F1C2CC; }
.dtodo-row.urgent .dtodo-ic { border-color: #F1C2CC; }
.dtodo-row.urgent .dtodo-ic .material-icons { color: var(--danger); }
.dtodo-btn { cursor: pointer; }
.dtodo-row.urgent .dtodo-btn { background: var(--danger); }
.dtodo-ok {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 12px; border-radius: 12px; font-size: 13px; font-weight: 700;
  background: #E4F5EA; color: #1E7A3C; border: 1px solid #C7E9D3;
}
.dtodo-ok .material-icons { font-size: 19px; }

@media screen and (max-width: 600px) {
  .dash-todo { padding: 12px 13px; margin-bottom: 14px; }
  .dtodo-row { padding: 9px 10px; gap: 8px; }
  .dtodo-tx { font-size: 12.5px; }
  .dtodo-btn { padding: 6px 11px; font-size: 11.5px; }
}

/* ⚙️ ડેશબોર્ડ ગોઠવો (તબક્કો ૪) */
.dcfg-bar { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 2px 9px; }
.dcfg-h { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.dcfg-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--card-bg); border: 1px solid var(--line); color: var(--ink-soft);
  font-family: inherit; font-weight: 700; font-size: 12px; padding: 6px 11px; border-radius: 9px;
}
.dcfg-btn:hover { color: var(--navy); background: var(--surface2); }
.dcfg-btn .material-icons { font-size: 16px; }
.dcfg-box {
  position: absolute; top: 100%; right: 0; z-index: 40; margin-top: 6px;
  min-width: 250px; background: var(--card-bg); border: 1px solid var(--line);
  border-radius: 13px; box-shadow: var(--shadow); padding: 10px;
}
.dcfg-hd { font-size: 12.5px; font-weight: 800; color: var(--ink); margin-bottom: 7px; }
.dcfg-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.dcfg-row:hover { background: var(--surface2); }
.dcfg-row input { width: 16px; height: 16px; accent-color: var(--navy); flex: none; }
.dcfg-row .material-icons { font-size: 17px; color: var(--muted); }
.dcfg-ft { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 6px; padding: 0 8px; }

/* 📈 હાજરી વલણના બાર */
/* ⚠️ align-items: stretch જ રાખવું — flex-end કરીએ તો દરેક બારની ઊંચાઈ ફક્ત
   લખાણ જેટલી થઈ જાય, અંદરની `height:%` વાળી પટ્ટીને માપ જ ન મળે અને બધા બાર ચપટા દેખાય. */
.dtrend { display: flex; align-items: stretch; gap: 6px; height: 170px; padding-top: 4px; }
.dtb { flex: 1; min-width: 0; display: grid; grid-template-rows: 16px 1fr 16px; gap: 3px; justify-items: center; }
.dtb-v { font-size: 10.5px; font-weight: 700; color: var(--ink-soft); }
.dtb-d { font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.dtb-tr { width: 100%; height: 100%; display: flex; align-items: flex-end; }
.dtb-fl { width: 100%; border-radius: 6px 6px 3px 3px; background: var(--grad-navy); min-height: 3px; }
.dtb.now .dtb-fl { background: var(--grad-green); }
.dtb.now .dtb-v, .dtb.now .dtb-d { color: #1E7A3C; font-weight: 800; }
.dtb.low .dtb-fl { background: linear-gradient(135deg, #D6435B, #EB7385); }
.dtb.low .dtb-v { color: var(--danger); }
.dtb.off .dtb-tr { background: repeating-linear-gradient(45deg, #F1F6F5, #F1F6F5 4px, #E7EEEC 4px, #E7EEEC 8px); border-radius: 6px; }
.dtb.off .dtb-v { color: var(--muted); }

@media screen and (max-width: 600px) {
  .dacc-wrap { gap: 9px; margin-bottom: 14px; }
  .dcfg-box { left: 0; right: 0; min-width: 0; }
  .dtrend { height: 150px; gap: 5px; }
  .dtb-v, .dtb-d { font-size: 10px; }
  .dacc > summary { padding: 11px 12px; font-size: 14px; flex-wrap: wrap; }
  /* ફોન પર ચિપ મથાળાની નીચે આખી પહોળાઈમાં — કપાય નહીં.
     ⚠️ width:100% અહીં કામ ન કરે — ઉપરના `flex:1` નો flex-basis:0% જીતી જાય છે. */
  .dacc-sum { order: 3; flex: 0 0 100%; justify-content: flex-start; margin-top: 3px; }
  .dacc-chev { margin-left: auto; }
  .dacc-bd { padding: 9px; }
  .dgrid { grid-template-columns: 1fr; }
  .dring-row { justify-content: center; }
  .dbar { grid-template-columns: 70px 1fr 42px; }
}
@media screen and (max-width: 600px) {
  .dash-stats { margin-bottom: 14px; }
  .dstat { padding: 10px 12px; gap: 9px; }
  .dstat-ic { width: 34px; height: 34px; border-radius: 10px; }
  .dstat-ic .material-icons { font-size: 18px; }
  .dstat-lbl { font-size: 11.5px; }
  .dstat-val { font-size: 20px; }
  /* ફોન પર પેટા-લીટી કપાવા ન દેવી — «૩૭ ગેરહા…» ને બદલે બીજી લીટીમાં વળે */
  .dstat-sub { font-size: 10.5px; white-space: normal; line-height: 1.35; }
}

/* Buttons — letterpad gradient style */
button { cursor: pointer; border: none; font-weight: 600; font-family: inherit; transition: all 0.2s ease; border-radius: 12px; }
.primary-btn { background: var(--grad-navy); color: white; padding: 12px 20px; border-radius: 12px; box-shadow: 0 6px 18px rgba(12, 74, 110, 0.32); }
.primary-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.secondary-btn { background: var(--grad-green); color: white; padding: 12px 20px; border-radius: 12px; box-shadow: 0 6px 18px rgba(37, 136, 69, 0.28); }
.secondary-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.success-btn { background: var(--grad-green); color: white; padding: 12px 20px; border-radius: 12px; box-shadow: 0 6px 18px rgba(37, 136, 69, 0.28); }
.success-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.danger-btn { background: var(--danger-bg); color: var(--danger); border: 1.5px solid #F1C2cc; padding: 8px 16px; font-size: 14px; border-radius: 12px; }
.danger-btn:hover { filter: brightness(0.98); }
.ghost-btn { background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); padding: 10px; border-radius: 12px; }
.ghost-btn:hover { background: var(--surface2); color: var(--navy); }

.micro-btn { background: var(--grad-saffron); color: white; font-size: 11px; padding: 3px 6px; border-radius: 6px; float: right; margin-top: 2px; }
.micro-btn:hover { filter: brightness(1.08); }

/* LC ફોર્મ: ગુજરાતીની બાજુમાં English ખાનું (કન્વર્ટ પછી સુધારી શકાય) */
.convert-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.convert-bar .primary-btn { width: auto; padding: 10px 18px; }
.convert-hint { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; flex: 1; min-width: 200px; line-height: 1.5; }
.input-group.eng label { color: #0970a7; }
.input-group.eng input { background: #f0f9ff; border-color: #bae6fd; }
.input-group.eng input:focus { background: #fff; }

.w-full { width: 100%; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }

/* Forms — softer, rounded (letterpad) */
.input-group { margin-bottom: 15px; display: flex; flex-direction: column; text-align: left;}
.input-group label { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.input-group input, .input-group select { padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px; background: var(--surface2); outline: none; transition: border 0.15s, background 0.15s; }
.input-group input:focus, .input-group select:focus { border-color: var(--navy2); background: #fff; box-shadow: 0 0 0 3px rgba(18, 103, 160, 0.10); }
.file-input { border: 1.5px dashed var(--green); padding: 20px; text-align: center; background: #f0fdf4; border-radius: 12px; cursor: pointer; }

/* Layouts */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.grid-3-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* Dashboard Specific */
.dashboard-header { display: none; } /* REPLACED BY TOP NAVBAR */
.badge { background: #EAF3F8; color: var(--navy); padding: 4px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.action-card { text-align: center; transition: transform 0.3s ease; display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
.action-card p { flex-grow: 1; margin-bottom: 10px;}
.action-card:hover { transform: translateY(-5px); }
.action-card .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 15px auto;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0970a7;
  transition: transform 0.3s ease;
}
.action-card:hover .icon {
  transform: scale(1.08) rotate(-3deg);
}
.action-card .icon .material-icons {
  font-size: 40px;
  line-height: 1;
}

/* Per-card color variants */
.action-card .icon.icon-lc        { background: linear-gradient(135deg, #dbeafe, #93c5fd); color: #1e40af; }
.action-card .icon.icon-profile   { background: linear-gradient(135deg, #e0e7ff, #a5b4fc); color: #4338ca; }
.action-card .icon.icon-accounts  { background: linear-gradient(135deg, #fef3c7, #fcd34d); color: #b45309; }
.action-card .icon.icon-balvatika { background: linear-gradient(135deg, #fce7f3, #f9a8d4); color: #be185d; }
.action-card .icon.icon-std1      { background: linear-gradient(135deg, #d1fae5, #6ee7b7); color: #047857; }
.action-card .icon.icon-install   { background: linear-gradient(135deg, #dcfce7, #86efac); color: #166534; }

/* ========================================================
   DASHBOARD SIDEBAR & NAVBAR LAYOUT
   ======================================================== */
.app-layout {
  height: 100vh !important;
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: var(--background);
}

.view.app-layout.active-view {
  display: flex !important;
}

/* 🎨 આછો સાઈડબાર — દરેક મોડ્યુલ પોતાના DASHBOARD_TILES રંગ (--m-fg / --m-bg) માં */
.sidebar {
  width: 272px;
  background: #FFFFFF;
  border-right: 1px solid var(--line);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.22s ease, transform 0.3s ease;
  flex-shrink: 0;
  z-index: 60;
}

.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: var(--background);
}

.top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 10px 25px;
  gap: 12px;
  border-bottom: 0;
  /* નીચેની પટ્ટી = ખુલ્લા મોડ્યુલનો રંગ (smsSetNavModule --m-fg/--m-bg મૂકે છે) */
  --m-fg: #0C4A6E;
  --m-bg: #EAF3F8;
  box-shadow: inset 0 -3px 0 var(--m-fg), 0 2px 10px rgba(15, 50, 59, 0.05);
  z-index: 50;
  height: 70px;
  flex-shrink: 0;
  width: 100%;
}

.nav-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.menu-toggle {
  display: none; width: 40px; height: 40px; flex: none; padding: 0;
  border-radius: 12px; background: transparent; color: var(--ink);
  place-items: center;
}
.menu-toggle:hover { background: var(--surface2); }
.menu-toggle .material-icons { font-size: 24px; }

/* ખુલ્લા મોડ્યુલનું નામ — એના જ રંગની pill */
.dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 360px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: var(--m-bg);
  color: var(--m-fg);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}
.dash-badge-ic {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-style: normal;
  background: var(--m-fg); color: #fff;
}
.dash-badge-ic .material-icons { font-size: 17px; }
#dashBadgeText { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Dropdown Navbar Right */
.nav-right.dropdown-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* શાળાનું બટન — લોગો + ટૂંકું નામ; મોબાઈલમાં ફક્ત લોગો (નીચે @media 600px) */
.school-dropdown-btn {
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  cursor: pointer;
  min-width: 0;
  max-width: 320px;
  box-shadow: none;
}
.school-dropdown-btn:hover { background: var(--surface2); }
#dashSchoolName { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-caret { font-size: 18px; color: var(--muted); }

/* શાળાનો લોગો (ગોળ) — લોગો ન હોય તો નામનો પહેલો અક્ષર */
.nav-logo {
  width: 34px; height: 34px; flex: none; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: #FFFFFF;
  color: #0C4A6E; font-weight: 700; font-size: 16px; line-height: 1;
}
.nav-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-logo.is-initial { background: #DCEBF3; }
.nav-logo.lg { width: 48px; height: 48px; font-size: 21px; border: 1px solid var(--line); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  min-width: 200px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  z-index: 100;
  overflow: hidden;
  animation: slideDown 0.2s ease;
}

.dropdown-menu.show { display: block; }
.dropdown-menu { min-width: 270px; max-width: calc(100vw - 16px); }
.dropdown-menu .dropdown-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  background: var(--surface2);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.dd-id { min-width: 0; display: grid; gap: 1px; }
.dd-id b { font-size: 14.5px; line-height: 1.35; font-weight: 700; color: var(--ink); text-wrap: balance; }
.dd-id small { font-size: 12px; color: var(--ink-soft); }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}
.dropdown-menu a:hover { background: #f8f9fa; color: var(--primary); }
.dropdown-menu a.text-danger { color: var(--danger); }
.dropdown-menu a.text-danger:hover { background: #fef2f2; color: var(--danger); }
.dropdown-menu .dropdown-icon {
  font-size: 20px;
  vertical-align: middle;
  color: inherit;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 12px;
  background: transparent;
  text-align: left;
  flex-shrink: 0;
}
.sidebar-brand .nav-logo { width: 40px; height: 40px; border: 1px solid var(--line); }
.sb-name { min-width: 0; flex: 1; display: grid; line-height: 1.3; }
.sb-name b { font-size: 14.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-name small { font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.sb-rail-btn, .sb-close-btn {
  width: 34px; height: 34px; flex: none; padding: 0; border-radius: 10px;
  background: transparent; color: var(--ink-soft); display: grid; place-items: center;
}
.sb-rail-btn:hover, .sb-close-btn:hover { background: var(--surface2); color: var(--ink); }
.sb-rail-btn .material-icons { font-size: 20px; transition: transform 0.22s ease; }
.sb-close-btn { display: none; }

.sb-search {
  margin: 0 14px 6px; flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px 10px; color: var(--muted);
}
.sb-search:focus-within { border-color: var(--navy2); }
.sb-search .material-icons { font-size: 18px; }
.sidebar .sb-search input {
  flex: 1; min-width: 0; width: auto; height: auto; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none;
  font: inherit; font-size: 14px; color: var(--ink);
}

.sidebar-menu {
  list-style: none;
  padding: 4px 10px 10px;
  margin: 0;
  overflow-y: auto;
  flex-grow: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.sidebar-menu::-webkit-scrollbar { width: 5px; }
.sidebar-menu::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }

.sidebar-menu li {
  min-height: 40px;
  padding: 5px 8px;
  margin-bottom: 2px;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-menu li:hover {
  background: var(--surface2);
  color: var(--ink);
}

/* આઇકનનું ખાનું — મોડ્યુલના આછા રંગમાં. ⚠️ <i> જ રાખવું, <span> નહીં:
   શિક્ષક-મોડનાં લેબલ `span:not(.sidebar-icon)` થી નામ પકડે છે. */
.side-ic {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  display: grid; place-items: center; font-style: normal;
  background: var(--m-bg, #EAF3F8);
  color: var(--m-fg, #0C4A6E);
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-menu li > .side-ic + span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-menu .sidebar-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

/* નીચે : વપરાશકર્તા + લોગ-આઉટ */
.sb-user {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  margin: 6px 10px 4px; padding: 8px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface2);
}
.sb-user-av {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: #DCEBF3; color: #0C4A6E;
  font-weight: 700; font-size: 15px; line-height: 1;
}
.sb-user-who { min-width: 0; flex: 1; display: grid; line-height: 1.25; }
.sb-user-who b { font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-who small { font-size: 11.5px; color: var(--muted); }
.sb-logout {
  width: 32px; height: 32px; flex: none; padding: 0; border-radius: 10px;
  background: transparent; color: var(--danger); display: grid; place-items: center;
}
.sb-logout:hover { background: var(--danger-bg); }
.sb-logout .material-icons { font-size: 19px; }
.sb-credit { flex-shrink: 0; padding: 2px 16px 10px; font-size: 10.5px; font-weight: 600; color: var(--muted); }

/* 💻 સંકેલેલો સાઈડબાર — ફક્ત આઇકન (Computer પર જ; મોબાઈલમાં drawer છે) */
@media screen and (min-width: 901px) {
  .sidebar.rail { width: 78px; }
  .sidebar.rail .sb-name, .sidebar.rail .sb-search,
  .sidebar.rail .side-grp-t, .sidebar.rail .side-grp-n, .sidebar.rail .side-grp-ch,
  .sidebar.rail .sidebar-menu li > .side-ic + span,
  .sidebar.rail .sb-user-who, .sidebar.rail .sb-logout, .sidebar.rail .sb-credit { display: none; }
  .sidebar.rail .sidebar-brand { flex-direction: column; padding: 14px 0 8px; }
  .sidebar.rail .sb-rail-btn .material-icons { transform: rotate(180deg); }
  .sidebar.rail .sidebar-menu { padding: 4px 8px 10px; }
  .sidebar.rail .sidebar-menu li { justify-content: center; padding: 5px 0; }
  .sidebar.rail .sidebar-menu li.side-group-hd { justify-content: center; padding: 10px 0 6px; min-height: 0; pointer-events: none; }
  .sidebar.rail .sidebar-menu li.side-group-hd::before { content: ''; width: 28px; height: 1px; background: var(--line); }
  .sidebar.rail .sidebar-menu .side-group.collapsed { display: block; }
  .sidebar.rail .sb-user { justify-content: center; margin: 6px 8px 12px; padding: 6px 0; border-color: transparent; background: transparent; }
}

.dashboard-main-content {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  padding: 20px 30px;
  background: #f4f7f6;
  position: relative;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 25, 30, 0.38);
  backdrop-filter: blur(3px);
  z-index: 80;
}

@media screen and (max-width: 900px) {
  .app-layout { flex-direction: column; }
  .menu-toggle { display: grid; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 288px;
    max-width: 86vw;
    height: 100vh;
    z-index: 90;
    border-right: 0;
    border-radius: 0 22px 22px 0;
    box-shadow: 0 20px 50px -20px rgba(15, 50, 59, 0.45);
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.active { display: block; }
  .sb-rail-btn { display: none; }
  .sb-close-btn { display: grid; }
  .nav-left { flex: 1; }
  .dash-badge { max-width: 100%; }
}

/* 📱 મોબાઈલ : લાંબા નામને બદલે ફક્ત શાળાનો લોગો — આખું નામ ટૅપ-મેનૂમાં */
@media screen and (max-width: 600px) {
  .top-navbar { padding: 10px 12px; gap: 8px; }
  .nav-left { gap: 6px; }
  .dash-badge { font-size: 13px; padding-right: 12px; }
  .school-dropdown-btn { padding: 2px; gap: 0; }
  .school-dropdown-btn #dashSchoolName, .school-dropdown-btn .nav-caret { display: none; }
  .school-dropdown-btn .nav-logo { width: 38px; height: 38px; }
}

/* Views Toggle */
.view { display: none; margin: 40px auto; max-width: 800px; animation: fadeIn 0.4s ease-out; }
.view.active-view { display: block; }
#authView { max-width: 410px; text-align: center; box-shadow: var(--shadow); border-radius: var(--radius); }
.icon-header {
  font-size: 40px;
  margin: 0 auto 14px;
  width: 78px; height: 78px;
  display: grid; place-items: center;
  background: linear-gradient(135deg,#0C4A6E,#1576AC);
  border-radius: 22px;
  box-shadow: 0 8px 22px rgba(12,74,110,.32);
}

/* ============================================
   LOGIN PAGE — તબક્કો ૧ સુધારા
   ============================================ */

/* iOS પર 16px થી ઓછું હોય તો ખાનું ટચ કરતાં આખું પેજ zoom થાય — લોગિનમાં 16px રાખવું.
   width:100% ફરજિયાત — JS કેટલાંક ખાનાં બતાવવા display:'block' કરે છે ત્યારે flex-column તૂટે છે. */
#authView .input-group input,
#authView .input-group select,
#migratePasswordOverlay .input-group input,
#schoolEmailOverlay .input-group input { font-size: 16px; width: 100%; box-sizing: border-box; }

/* 👁 પાસવર્ડ બતાવો/છુપાવો */
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; padding-right: 46px !important; }
.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer;
  width: 38px; height: 38px; padding: 0;
  display: grid; place-items: center;
  color: var(--muted); border-radius: 10px;
  transition: color .15s, background .15s;
}
.pw-toggle:hover { color: var(--navy); background: var(--surface2); }
.pw-toggle .material-icons { font-size: 21px; }
.pw-toggle.is-on { color: var(--navy); }

/* ⌨️ Caps Lock ચેતવણી */
.caps-warn {
  margin-top: 7px;
  background: #FFF7E6;
  border: 1px solid #F3D9A4;
  color: #92610A;
  font-size: 12.5px; font-weight: 600;
  padding: 7px 10px; border-radius: 10px;
  line-height: 1.45; text-align: left;
}

/* ❗ ફોર્મમાં જ દેખાતો ભૂલ-સંદેશ */
.auth-error {
  background: var(--danger-bg, #FDECEF);
  border: 1px solid #F1C2CC;
  color: var(--danger);
  font-size: 13.5px; font-weight: 600;
  padding: 10px 12px; border-radius: 12px;
  margin-bottom: 12px; line-height: 1.55; text-align: left;
  /* સંદેશમાં લીટી-બદલો સચવાય (લાંબા સંદેશમાં "👉 ઉપાય :" અલગ લીટીએ દેખાય).
     ખાનું textContent થી ભરાય છે, એટલે HTML ટૅગ ચાલતા નથી — \n જ વપરાય છે. */
  white-space: pre-line;
  animation: fadeIn .25s ease-out;
}
.auth-error.info { background: #EAF3F8; border-color: #BBDCEE; color: var(--navy); }

/* ભૂલ વખતે ખાનું લાલ */
.input-group input.has-error { border-color: #E4788C !important; background: #FFF6F8 !important; }

/* ============================================
   LOGIN PAGE — તબક્કો ૨ (ક્લાસ-આધારિત + મોબાઈલ કોમ્પેક્ટ + PC બે-ભાગ)
   મોબાઈલ-પ્રથમ: અહીંના નિયમો ફોન માટે છે, નીચે 900px+ માં PC લે-આઉટ.
   ============================================ */

/* લેબલ (પહેલાં દરેક ખાનાં પર inline style હતું) */
.auth-label { font-weight: 700 !important; color: #374151 !important; }

/* લેબલ + નાની લિંક એક જ પંક્તિમાં (અલગ પંક્તિ ન લે એટલે સ્ક્રીન ટૂંકી રહે) */
.auth-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.auth-label-row .auth-label { margin-bottom: 0 !important; }

/* -------- લે-આઉટ (મોબાઈલ: ફોર્મ → સુવિધા પટ્ટી → ફૂટર) -------- */
.auth-split { display: flex; flex-direction: column; }
.auth-main  { order: 1; text-align: center; }
.auth-brand { order: 2; }
.auth-foot  { order: 3; }

.icon-header .material-icons { font-size: 36px; color: #fff; }

/* -------- 🏷️ બ્રાન્ડ પેનલ — ફક્ત PC પર (ડાબી બાજુ આખી પેનલ) -------- */
/* 📱 ફોનમાં આખી પેનલ છુપાવી છે. કારણ:
   • ભરોસાની ૬ બાબત ("૧૦૦% સુરક્ષિત", "ક્લાઉડ આધારિત"…) *નવા* ગ્રાહકને ભરોસો આપવા
     માટે છે. મોબાઈલ પર રોજ લોગિન કરતા શિક્ષક/આચાર્ય એ સેંકડોમી વાર જુએ છે.
   • ફોનમાં એનું પેટા-લખાણ (small) જગ્યા બચાવવા પહેલેથી છુપાયેલું હતું — એટલે
     "૧૦૦% સુરક્ષિત" દેખાતું પણ "ડેટા એન્ક્રિપ્ટેડ રહે છે" નહીં: અડધો સંદેશ,
     જે ભરોસો આપવાનું કામ પૂરું કરતો જ નહોતો.
   • .auth-brand-foot ("Designed & Developed by…") ફોનમાં *બે વાર* દેખાતું —
     એક અહીં અને એક નીચે .auth-foot .af-brand માં. હવે નીચેવાળું એક જ રહે છે.
   PC પર આ બધું @media (min-width:900px) માં પાછું ચાલુ થાય છે (ત્યાં ડાબી પેનલમાં
   જગ્યા મફત છે અને પેટા-લખાણ પણ પૂરું દેખાય છે). */
.auth-brand { display: none; }
.auth-brand-head { display: none; }
.auth-brand-foot { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 10px; }
.auth-brand-foot b { color: var(--primary); }

/* બ્રાન્ડ લોકઅપ: મોનોગ્રામ + નામ (અસલી લોગો મળે તો .abl-mark ને <img> થી બદલવો) */
.auth-brand-lockup { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.abl-mark {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 800; letter-spacing: .5px;
  font-family: 'Inter', system-ui, sans-serif;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: #fff;
}
.abl-words { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.abl-words b { font-size: 13.5px; font-weight: 800; letter-spacing: .6px; color: #fff; font-family: 'Inter', system-ui, sans-serif; }
.abl-words span { font-size: 9.5px; letter-spacing: 1.1px; color: rgba(255,255,255,.62); font-family: 'Inter', system-ui, sans-serif; }

/* ✅ ભરોસાની ૬ બાબત — ૨ કૉલમ (ફોનમાં પણ ૨, જગ્યા બચે) */
.trust-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px;
}
.trust-grid li { display: flex; align-items: flex-start; gap: 8px; text-align: left; }
.trust-grid .tg-ic {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--surface2); color: var(--primary);
}
.trust-grid .tg-ic .material-icons { font-size: 16px; }
.trust-grid b { display: block; font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.trust-grid small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.35; margin-top: 1px; }

/* -------- રોલ સેગ્મેન્ટેડ ટૉગલ -------- */
.role-seg { display: flex; gap: 10px; margin-top: 2px; }
.role-opt {
  flex: 1; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 8px; border-radius: 12px;
  background: var(--surface2); border: 2px solid var(--line);
  cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink-soft);
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
  text-align: center; line-height: 1.3;
}
.role-opt > span { display: inline-flex; align-items: center; gap: 6px; }
.role-opt .material-icons { font-size: 19px; }
.role-opt:hover { border-color: #A9C7D8; }
.role-opt.is-active {
  background: #EAF3F8; border-color: var(--primary); color: var(--navy);
  box-shadow: 0 4px 12px rgba(12,74,110,.12);
}
.role-opt.is-active::after {
  content: "✓"; position: absolute; top: -8px; right: -5px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 11px; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(12,74,110,.35);
}
/* radio દેખાતો નથી પણ કીબોર્ડ માટે હાજર છે (display:none કરીએ તો Tab/તીર કામ ન કરે) */
.role-opt input[type="radio"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.role-opt input[type="radio"]:focus-visible + span {
  outline: 3px solid rgba(18,103,160,.45); outline-offset: 4px; border-radius: 6px;
}

/* -------- નાની લિંક -------- */
.auth-link { font-size: 13px; color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-link.tiny { font-size: 12px; font-weight: 600; }
.auth-link-underline { text-decoration: underline; }
.auth-link-row { text-align: right; margin-top: 5px; margin-bottom: 10px; }
.auth-center-row { text-align: center; margin-top: 15px; }

/* ડાયસકોડ લખતાં દેખાતી શાળાની માહિતી */
.auth-school-info { padding: 9px 10px; margin-top: 8px; border-radius: 10px; font-size: 12.5px; font-weight: 700; line-height: 1.4; text-align: left; }

/* -------- મને યાદ રાખો + પાસવર્ડ ભૂલી ગયા (એક પંક્તિ) -------- */
.auth-inline-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin: 2px 0 8px; flex-wrap: nowrap;
}
.auth-inline-row > #groupForgotLink { flex-shrink: 0; }
.auth-inline-row .auth-link { white-space: nowrap; }
.auth-remember { display: flex; align-items: center; gap: 8px; text-align: left; min-width: 0; }
.auth-remember input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; margin: 0; flex-shrink: 0; }
.auth-remember label { display: flex; flex-direction: column; font-size: 13px; color: #374151; font-weight: 700; cursor: pointer; margin: 0; line-height: 1.35; }
.auth-remember label small { font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }

.auth-submit { margin-top: 14px; }

/* -------- વધુ વિકલ્પો (જૂનું Google એકાઉન્ટ) -------- */
.auth-more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; text-align: left; }
.auth-more > summary {
  list-style: none; cursor: pointer;
  font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  text-align: center; padding: 6px; border-radius: 10px;
  transition: background .15s, color .15s;
}
.auth-more > summary::-webkit-details-marker { display: none; }
.auth-more > summary::after { content: " ▾"; }
.auth-more[open] > summary::after { content: " ▴"; }
.auth-more > summary:hover { background: var(--surface2); color: var(--navy); }
.google-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 10px; padding: 11px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink); font-family: inherit;
  transition: border-color .15s, background .15s;
}
.google-btn:hover { border-color: #A9C7D8; background: var(--surface2); }
.auth-more-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; line-height: 1.55; }

/* -------- પાસવર્ડ રીસેટ -------- */
.auth-forgot { padding-top: 10px; }
.auth-forgot h3 { margin-top: 0; color: var(--primary); text-align: center; }
.auth-note { font-size: 13px; color: var(--ink-soft); text-align: center; margin-bottom: 15px; line-height: 1.6; }

/* -------- ફૂટર -------- */
.auth-foot { text-align: center; padding: 14px 8px 0; font-size: 12.5px; color: var(--ink-soft); }
.auth-foot .af-brand { margin-bottom: 3px; font-weight: 700; color: var(--primary); }

/* -------- 🔑 જમણી બાજુનું શીર્ષક (ફક્ત PC — નીચે 900px+ માં દેખાડાય છે) -------- */
.auth-main-head { display: none; }

/* -------- 🏫 "પરત સ્વાગત છે!" ચિપ (છેલ્લી શાળા) -------- */
.last-login-chip {
  display: flex; align-items: center; gap: 10px;
  background: #EAF3F8; border: 1px solid #BBDCEE;
  border-radius: 14px; padding: 9px 10px; margin-bottom: 12px;
  text-align: left;
}
.last-login-chip > .material-icons {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; font-size: 19px;
  background: var(--grad-navy, var(--primary)); color: #fff;
}
.last-login-chip .llc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.last-login-chip .llc-text b { font-size: 12.5px; color: var(--navy); line-height: 1.3; }
.last-login-chip .llc-text small {
  font-size: 12px; color: var(--ink-soft); font-weight: 600; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.llc-change {
  flex-shrink: 0; background: #fff; border: 1px solid #BBDCEE; color: var(--navy);
  font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 9px;
  cursor: pointer; font-family: inherit;
}
.llc-change:hover { background: var(--surface2); }

/* -------- 📲 ઇન્સ્ટોલ બટન + સહાય/વર્ઝન -------- */
.auth-install {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface2); border: 1.5px solid var(--line); color: var(--navy);
  font-size: 13px; font-weight: 700; font-family: inherit;
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  margin-bottom: 12px; transition: background .15s, border-color .15s;
}
.auth-install:hover { background: #EAF3F8; border-color: #BBDCEE; }
.auth-install .material-icons { font-size: 18px; }
.af-meta { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 4px; }
.af-meta a { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 700; text-decoration: none; font-size: 12.5px; }
.af-meta a:hover { text-decoration: underline; }
.af-meta .material-icons { font-size: 16px; }
.af-ver { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* -------- 📘 માહિતી-પાનાંની કડીઓ (સુવિધા/મદદ + Privacy/Terms/Refund) --------
   બંને પંક્તિ એક જ દેખાવની છે; ફક્ત "Refund Policy" લાલ રંગે અલગ પડે છે.
   પાનાં અલગ HTML ફાઈલ છે (privacy/terms/refund/features/help.html) અને નવા
   ટૅબમાં ખૂલે છે — લોગ-ઈન ફોર્મમાં ભરેલું લખાણ જતું ન રહે એ માટે. */
.af-links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 5px 14px; margin-bottom: 7px;
}
.af-links a {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-soft); text-decoration: none;
  white-space: nowrap;
}
.af-links a:hover { color: var(--primary); text-decoration: underline; }
.af-links .material-icons { font-size: 15px; color: var(--muted); }
.af-links a:hover .material-icons { color: var(--primary); }
/* સુવિધા/મદદની પંક્તિ થોડી ઘાટી — એ પહેલી નજરે દેખાય એવી કડી છે */
.af-links-guide a { color: var(--primary); }
.af-links-guide .material-icons { color: var(--navy2); }
/* રિફંડ — પૈસા સંબંધી હોવાથી અલગ તરી આવે */
.af-links a.is-refund, .af-links a.is-refund .material-icons { color: var(--danger); }
.af-links a.is-refund:hover { color: #B9314B; }

/* -------- ⏳ શરૂઆતનું સ્પ્લેશ -------- */
.startup-splash { text-align: center; padding: 60px 20px; }
.ss-logo {
  width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 22px;
  display: grid; place-items: center;
  background: linear-gradient(135deg,#0C4A6E,#1576AC);
  box-shadow: 0 8px 22px rgba(12,74,110,.32);
  animation: ssPulse 1.6s ease-in-out infinite;
}
.ss-logo .material-icons { font-size: 38px; color: #fff; }
.ss-title { font-size: 19px; font-weight: 800; color: var(--primary); margin-bottom: 14px; }
.ss-bar { width: 190px; height: 5px; margin: 0 auto 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.ss-bar i { display: block; width: 40%; height: 100%; border-radius: 999px; background: var(--grad-navy, var(--primary)); animation: ssSlide 1.2s ease-in-out infinite; }
.ss-note { font-size: 13px; color: var(--ink-soft); }
@keyframes ssPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes ssSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(360%); } }

/* 🔄 લોગ-ઈન પછીની પ્રગતિ — લોગિન ફોર્મ ઢાંકતું fixed overlay.
   (startup-splash body-flow માં છે; આ એની ઉપર, ડેશબોર્ડ ખૂલે ત્યાં સુધી.) */
.login-progress {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.lp-card {
  background: #fff; border-radius: 18px; padding: 26px 28px;
  width: 100%; max-width: 330px; text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.30);
}
.lp-ring {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  border: 4px solid var(--line, #e2e8f0); border-top-color: var(--primary, #0C4A6E);
  animation: lpSpin .9s linear infinite;
}
@keyframes lpSpin { to { transform: rotate(360deg); } }
.lp-title { font-size: 17px; font-weight: 800; color: #15803d; margin-bottom: 5px; }
.lp-note { font-size: 13.5px; color: var(--ink-soft, #475569); line-height: 1.6; }
.lp-bar { width: 170px; height: 5px; margin: 14px auto 0; background: var(--line, #e2e8f0); border-radius: 999px; overflow: hidden; }
.lp-bar i { display: block; width: 40%; height: 100%; border-radius: 999px; background: var(--primary, #0C4A6E); animation: ssSlide 1.2s ease-in-out infinite; }
.lp-slow { display: none; margin-top: 12px; font-size: 12.5px; color: #b45309; line-height: 1.55; }
.login-progress.is-slow .lp-slow { display: block; }


/* ============================================
   📱 ફોન: કોમ્પેક્ટ લોગિન (સ્ક્રોલ વગર બેસે એ રીતે)
   ============================================ */
@media screen and (max-width: 899px) {
  #authView.view { margin: 14px auto; }
  #authView { padding: 18px 16px 14px; }

  .auth-mobile-head { margin-bottom: 2px; }
  .icon-header { width: 54px; height: 54px; border-radius: 16px; margin-bottom: 10px; }
  .icon-header .material-icons { font-size: 30px; }
  .main-title { font-size: 20px; margin-bottom: 3px; }
  .subtitle { font-size: 12.5px; margin-bottom: 14px; }

  .tabs { margin-bottom: 14px; }
  .tab-btn { padding: 9px; font-size: 14px; }

  #authView .input-group { margin-bottom: 11px; }
  #authView .input-group input { padding: 11px 12px; }
  #authView .input-group label { font-size: 13px; margin-bottom: 5px; }

  .role-opt { padding: 9px 6px; font-size: 13.5px; }
  .auth-remember label small { display: none; }   /* લાંબી સમજૂતી ફોનમાં નહીં */
  .auth-submit { margin-top: 12px; }
  .auth-foot p:last-child { display: none; }      /* © પંક્તિ ફોનમાં નહીં */

  /* (અહીં પહેલાં ભરોસાની ૬ બાબતની ફોન-આવૃત્તિના નિયમો હતા. આખી .auth-brand પેનલ
     હવે ફોનમાં છુપાયેલી છે — કારણ ઉપર .auth-brand ના નિયમ પાસે લખ્યું છે — એટલે
     એ નિયમો નકામા થઈ ગયા હતા, કાઢી નાખ્યા.) */
}

/* ============================================
   🖥️ PC: ડાબે સુવિધા પેનલ + જમણે ફોર્મ
   ============================================ */
@media screen and (min-width: 900px) {
  /* 🖥️ કાર્ડ લે-આઉટ: ડાબે સુવિધા પેનલ, જમણે ફોર્મ.
     કાર્ડ સ્ક્રીન કરતાં ઊંચું ક્યારેય ન થાય — એટલે આખું પેજ સ્ક્રોલ કરવું પડતું નથી.
     જે પેનલમાં જગ્યા ખૂટે એ *પોતાની અંદર* સ્ક્રોલ થાય (સ્ક્રોલબાર દેખાય એટલે ખબર પણ પડે).
     પહેલાં કાર્ડ ૭૬૮px થઈ જતું અને ૬૨૫px ની લેપટૉપ સ્ક્રીનમાં લોગ-ઈન બટન નીચે રહી જતું. */
  /* કાર્ડ થોડું પહોળું — ડાબી પેનલમાં ૩ કૉલમ બેસે એટલે ઊંચાઈ પણ ઘટે */
  #authView { max-width: 1060px; width: calc(100% - 40px); padding: 0; overflow: hidden; }
  #authView.view { margin: 18px auto; }   /* ૪૦px માર્જિન નકામી ઊંચાઈ લેતું હતું */

  /* ઊંચાઈની ટોચમર્યાદા = સ્ક્રીન − ઉપર-નીચેની માર્જિન. dvh ન સમજતા બ્રાઉઝર માટે vh પહેલાં. */
  #authView.active-view {
    display: flex; flex-direction: column;
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
  }
  /* લોગિન સ્ક્રીન પર આખું પેજ ક્યારેય સ્ક્રોલ ન થાય (માર્જિન-કોલેપ્સ થી બચેલા ૧૦-૧૨px પણ નહીં).
     ડેશબોર્ડ/મોડ્યુલ પર આ લાગુ પડતું નથી — ત્યાં #authView active-view હોતું જ નથી.
     :has() ન સમજતું બ્રાઉઝર હોય તો ફક્ત આ નિયમ છૂટી જાય, બાકી બધું એમનું એમ ચાલે. */
  body:has(#authView.active-view) {
    overflow: hidden;
    /* કાર્ડ ટૂંકું હોય (દા.ત. આચાર્ય-લોગીન) ત્યારે ઉપર ચોંટેલું ન લાગે — ઊભી રીતે વચ્ચે.
       .bg-shape અને #toast position:fixed છે એટલે એમને આની અસર થતી નથી. */
    display: grid; place-items: center;
  }

  .auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    align-items: stretch;
    flex: 1 1 auto; min-height: 0;   /* કાર્ડની બંધાયેલી ઊંચાઈમાં જ સમાય */
  }

  /* ફોર્મ કૉલમ જરૂર પડ્યે પોતાની અંદર સ્ક્રોલ થાય (ડાબી પેનલ હવે ટૂંકી છે એટલે એને જરૂર નથી) */
  .auth-brand, .auth-main { min-height: 0; }
  .auth-main {
    overflow-x: hidden; overflow-y: auto;
    overscroll-behavior: contain; scrollbar-width: thin;
  }
  .auth-main::-webkit-scrollbar { width: 8px; }
  .auth-main::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 8px; }
  .auth-main::-webkit-scrollbar-track { background: transparent; }
  .auth-brand { grid-column: 1; grid-row: 1 / 3; }
  .auth-main  { grid-column: 2; grid-row: 1; }
  .auth-foot  { grid-column: 2; grid-row: 2; }

  .auth-mobile-head { display: none; }

  .auth-brand {
    display: flex; flex-direction: column;
    gap: 14px; padding: 24px 28px 18px;
    background: linear-gradient(150deg, #0A3D5C, #0C4A6E 45%, #1576AC);
    color: #fff; position: relative; overflow: hidden;   /* સુશોભનનાં વર્તુળ બહાર ન નીકળે */
  }
  .auth-brand::after {
    content: ""; position: absolute; right: -70px; top: -70px;
    width: 230px; height: 230px; border-radius: 50%;
    background: radial-gradient(circle, rgba(242,145,27,.38), transparent 68%);
  }
  .auth-brand::before {
    content: ""; position: absolute; left: -60px; bottom: -70px;
    width: 210px; height: 210px; border-radius: 50%;
    background: radial-gradient(circle, rgba(44,158,79,.30), transparent 68%);
  }
  .auth-brand-head, .trust-grid, .auth-brand-foot { position: relative; z-index: 1; }
  .auth-brand-head { display: block; text-align: left; }
  .auth-brand-foot {
    display: block; font-size: 12px; color: rgba(255,255,255,.68); text-align: left;
    border-top: 1px solid rgba(255,255,255,.15); padding-top: 12px; margin-top: auto;
  }
  .auth-brand-foot b { color: rgba(255,255,255,.92); }

  .auth-brand { margin-top: 0; border-top: none; padding-top: 26px; }
  .auth-brand-title { font-size: 20px; font-weight: 800; line-height: 1.32; margin-bottom: 5px; }
  .auth-brand-tag { font-size: 12.5px; color: rgba(255,255,255,.78); line-height: 1.5; }

  /* બ્રાન્ડ પેનલ પર બધું સફેદ — ઘેરા gradient પર */
  .auth-brand .trust-grid { margin-top: 2px; gap: 13px 14px; }
  .auth-brand .trust-grid .tg-ic {
    width: 30px; height: 30px; border-radius: 10px;
    background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.18); color: #fff;
  }
  .auth-brand .trust-grid .tg-ic .material-icons { font-size: 17px; }
  .auth-brand .trust-grid b { font-size: 12.2px; color: rgba(255,255,255,.95); }
  .auth-brand .trust-grid small { font-size: 11px; color: rgba(255,255,255,.6); }
  /* ભરોસાની બાબતો અને ફૂટર વચ્ચે નાજુક રેખા */
  .auth-brand .trust-grid { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }

  /* જમણી બાજુ ઉપરની ખાલી જગ્યામાં આઇકન + શીર્ષક */
  .auth-main-head {
    display: flex; align-items: center; gap: 12px;
    text-align: left; margin-bottom: 10px;
    padding-bottom: 10px; border-bottom: 1px solid var(--line);
  }
  .auth-main-head .amh-ic {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(135deg,#0C4A6E,#1576AC);
    box-shadow: 0 6px 16px rgba(12,74,110,.28);
  }
  .auth-main-head .amh-ic .material-icons { font-size: 24px; color: #fff; }
  .auth-main-head h2 { font-size: 19px; font-weight: 800; color: var(--primary); line-height: 1.3; margin: 0; }
  .auth-main-head p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; margin: 2px 0 0; }

  /* જમણી બાજુ: ફોર્મ ઊભી રીતે વચ્ચે.
     ⚠️ અહીં justify-content:center ન વાપરવું — ફોર્મ બોક્સ કરતાં ઊંચું થાય ત્યારે એ
     ઉપર-નીચે બંને બાજુ છલકે છે અને ઉપરનો ભાગ સ્ક્રોલ કરીને પણ પહોંચી શકાતો નથી.
     એને બદલે auto માર્જિન: જગ્યા હોય તો વચ્ચે ગોઠવે, ન હોય તો ૦ થઈ જાય ને સીધું સ્ક્રોલ થાય. */
  .auth-main {
    display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
    padding: 22px 40px 6px;
  }
  .auth-main > * { width: 100%; max-width: 450px; }
  .auth-main > :first-child { margin-top: auto; }
  .auth-main > :last-child  { margin-bottom: auto; }

  /* ૭૬૮px ની લેપટૉપ સ્ક્રીનમાં પણ સ્ક્રોલ વગર બેસે એ માટે થોડું ચુસ્ત */
  .auth-main .tabs { margin-bottom: 12px; }
  .auth-main .input-group { margin-bottom: 10px; }
  .auth-main .auth-inline-row { margin: 0 0 6px; }
  .auth-main .auth-submit { margin-top: 12px; }
  .auth-main .auth-more { margin-top: 6px; padding-top: 8px; }

  /* ફૂટર એક જ પંક્તિમાં — ઇન્સ્ટોલ બટન + વર્ઝન (© અને નામ ડાબી પેનલમાં છે) */
  .auth-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
    padding: 6px 40px 14px;
  }
  .auth-foot p:last-child { display: none; }
  .auth-foot .auth-install { margin-bottom: 0; }
  .af-meta { margin-bottom: 0; }
  /* માહિતી-પાનાંની બંને પંક્તિ પોતાની આખી લીટી લે (ઇન્સ્ટોલ બટન સાથે ભળી ન જાય) */
  .auth-foot .af-links { flex: 0 0 100%; margin-bottom: 0; }
  /* બ્રાન્ડ પેનલમાં નામ છે એટલે જમણી બાજુ ફરી ન લખાય */
  .auth-foot .af-brand { display: none; }
}

/* ============================================
   💻 ટૂંકી લેપટૉપ સ્ક્રીન (વ્યૂપોર્ટ ≤ ૮૦૦px — દા.ત. ૧૩૬૬×૭૬૮ મૉનિટર = ~૬૨૫px):
   બંને બાજુ થોડી ચુસ્ત કરીએ જેથી લોગ-ઈન સ્ક્રીન સ્ક્રોલ વગર બેસે.
   ⚠️ આ બ્લોક ઉપરના (min-width: 900px) બ્લોક *પછી* જ રહેવો જોઈએ — બંનેની specificity
   સરખી છે, એટલે પહેલાં હોય તો PC બ્લોક આને ઓવરરાઇડ કરી નાખે છે (એ જ જૂની ભૂલ હતી).
   ============================================ */
@media screen and (min-width: 900px) and (max-height: 800px) {
  #authView.view { margin: 12px auto; }
  #authView.active-view {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }
  .auth-brand { padding: 20px 26px 14px; gap: 11px; }
  .auth-brand-title { font-size: 18px; }
  .auth-brand-tag { font-size: 12px; }
  .auth-brand-lockup { margin-bottom: 11px; }
  .auth-brand .trust-grid { gap: 10px 12px; padding-top: 13px; }
  .auth-brand-foot { padding-top: 10px; }

  /* જમણી બાજુ પણ થોડી ચુસ્ત — શિક્ષક-લોગીન (યુઝરનેમ + શાળાની ચિપ સાથે) પણ
     ૬૨૫px ની લેપટૉપ સ્ક્રીનમાં અંદરના સ્ક્રોલબાર વગર બેસી જાય. */
  .auth-main { padding: 12px 36px 2px; }
  .auth-main-head { margin-bottom: 8px; padding-bottom: 8px; }
  .auth-main-head p { display: none; }       /* ટૂંકી સ્ક્રીને શીર્ષક પૂરતું */
  .auth-main-head .amh-ic { width: 40px; height: 40px; border-radius: 12px; }
  .auth-main-head .amh-ic .material-icons { font-size: 21px; }
  .auth-main-head h2 { font-size: 17.5px; }
  .auth-main .tabs { margin-bottom: 8px; padding: 2px; }
  .auth-main .tabs .tab-btn { padding: 8px; }
  .auth-main .input-group { margin-bottom: 7px; }
  .auth-main .input-group input { padding: 9px 12px; }
  .auth-main .auth-label { margin-bottom: 4px !important; }
  .auth-main .auth-label-row { margin-bottom: 4px; }
  .auth-main .role-opt { padding: 8px 8px; }
  .auth-main .auth-school-info { padding: 7px 10px; margin-top: 6px; font-size: 12px; }
  .auth-main .auth-submit { margin-top: 9px; }
  .auth-main .auth-more { margin-top: 4px; padding-top: 6px; }
  .auth-foot { padding: 2px 36px 10px; }
  .auth-foot .auth-install { padding: 6px 13px; font-size: 12.5px; }
}

/* ============================================
   💻 ખૂબ ટૂંકી લેપટૉપ સ્ક્રીન (૧૩૬૬×૭૬૮ = ~૬૨૫px વ્યૂપોર્ટ):
   શિક્ષક-લોગીનમાં યુઝરનેમનું ખાનું + શાળાના નામની ચિપ બંને ઉમેરાય છે,
   એટલે અહીં વધુ ચુસ્ત — આખું ફોર્મ (તળિયેનું "Google માઈગ્રેટ" સહિત) સ્ક્રોલ વગર બેસે.
   ============================================ */
@media screen and (min-width: 900px) and (max-height: 700px) {
  .auth-main { padding: 8px 34px 2px; }
  .auth-main-head { margin-bottom: 5px; padding-bottom: 5px; }
  .auth-main-head .amh-ic { width: 34px; height: 34px; border-radius: 10px; }
  .auth-main-head .amh-ic .material-icons { font-size: 18px; }
  .auth-main-head h2 { font-size: 16px; }
  .auth-main .tabs { margin-bottom: 6px; }
  .auth-main .tabs .tab-btn { padding: 7px; font-size: 13.5px; }
  .auth-main .input-group { margin-bottom: 5px; }
  .auth-main .input-group input { padding: 8px 12px; }
  .auth-main .role-opt { padding: 7px 8px; font-size: 13.5px; }
  .auth-main .auth-school-info { padding: 6px 9px; margin-top: 5px; font-size: 11.5px; }
  .auth-main .auth-inline-row { margin: 0 0 3px; }
  .auth-main .auth-submit { margin-top: 6px; }
  .auth-main .auth-more { margin-top: 2px; padding-top: 4px; }
  .auth-main .auth-more > summary { padding: 5px 8px; font-size: 12px; }
  .auth-foot { padding: 0 34px 8px; }
}

/* ૬૬૦px થી ટૂંકી સ્ક્રીને જમણી બાજુનું "લોગ-ઈન કરો" શીર્ષક **રહે જ છે** (વગર અધૂરું લાગે),
   ફક્ત વધુ ચુસ્ત થાય છે — આઇકન નાનો, નીચેની રેખા/જગ્યા ઓછી. */
@media screen and (min-width: 900px) and (max-height: 660px) {
  .auth-main-head { margin-bottom: 4px; padding-bottom: 4px; gap: 9px; }
  .auth-main-head .amh-ic { width: 30px; height: 30px; border-radius: 9px; box-shadow: none; }
  .auth-main-head .amh-ic .material-icons { font-size: 17px; }
  .auth-main-head h2 { font-size: 15.5px; }
  .auth-main { padding: 6px 34px 0; }
  .auth-main .auth-more { margin-top: 0; padding-top: 3px; }
  .auth-foot { padding: 0 34px 6px; }
}

/* ============================================================
   🎨 લોગ-ઈન : ડેશબોર્ડ જેવો નવો દેખાવ (2026-09-15)
   PC અને મોબાઈલ બંનેમાં સ્ક્રોલ વગર — મંજૂર થયેલા નમૂના પ્રમાણે.
   ⚠️ આ બ્લોક ઉપરના *બધા* login બ્લોક પછી જ રહેવો જોઈએ, અને દરેક નિયમ #authView થી
      શરૂ થાય છે — જેથી જૂના (media-query વાળા) નિયમો પર specificity થી ચડે.
   ⚠️ છુપાવવાનું-બતાવવાનું વર્ગ પરથી : #authView.is-signup / .is-returning / .is-forgot
      અને #authForm[data-step] (app.js : toggleAuth / showLastLoginChip / authSignupStep).
   ============================================================ */

/* ── ખાનાં, લેબલ, બટન ── */
#authView .auth-label { color: var(--ink-soft) !important; font-weight: 600 !important; font-size: 13px; }
#authView .input-group { margin-bottom: 10px; }
#authView .input-group label { margin-bottom: 5px; }
#authView .auth-label-row { margin-bottom: 5px; }
/* ⚠️ !important : style.css ના મોબાઈલ-બ્લોકમાં `.input-group input { padding:14px !important }` છે */
#authView .input-group input {
  height: 44px; padding: 0 12px !important; font-size: 16px !important;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
#authView .input-group input:focus { border-color: var(--navy2); box-shadow: 0 0 0 3px rgba(17, 103, 160, .14); }
#authView .pw-wrap input { padding-right: 46px !important; }

/* રોલ — ડેશબોર્ડ જેવું એક જ ખાનાંનું સેગ્મેન્ટ (✓ બેજ નહીં) */
#authView .role-seg { gap: 3px; padding: 3px; margin: 0; border-radius: 13px; background: var(--surface2); border: 1px solid var(--line); }
#authView .role-opt { min-height: 38px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; box-shadow: none; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
#authView .role-opt:hover { color: var(--ink); border: 0; }
#authView .role-opt.is-active { background: #fff; color: var(--navy); font-weight: 700; box-shadow: var(--shadow-sm); }
#authView .role-opt.is-active::after { display: none; }
/* «યુઝર પ્રકાર» લેબલ નહીં — બટન જાતે સમજાય છે (radiogroup પર aria-label છે) */
#authView .auth-role-group > .auth-label { display: none; }

#authView .auth-submit {
  min-height: 46px; margin-top: 12px; padding: 10px 16px; border-radius: 12px;
  background: var(--navy); box-shadow: none; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
#authView .auth-submit:hover { background: #0A3D5C; filter: none; transform: none; }
#authView .auth-submit .material-icons { font-size: 20px; }
#authView .auth-inline-row { margin: 2px 0 0; }
#authView .auth-remember label { font-weight: 600; color: var(--ink-soft); font-size: 13.5px; }
#authView .auth-link { color: var(--navy2); font-weight: 600; }

/* ── ટૅબ-પટ્ટી નહીં → «નવું બનાવો / લોગ-ઈન કરો» લિંક (DOM માં રહે — toggleAuth .tab-btn વાંચે છે) ── */
#authView .tabs { display: none !important; }
#authView .auth-alt {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 2px 10px; margin-top: 10px; font-size: 13px; color: var(--ink-soft);
}
#authView .auth-alt .aa-login, #authView .auth-alt .aa-signup { display: contents; }
#authView .auth-alt button {
  border: 0; background: none; padding: 0; border-radius: 0; box-shadow: none;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--navy2); cursor: pointer;
}
#authView .auth-alt button:hover { text-decoration: underline; }
#authView .auth-alt .aa-strong { font-weight: 700; }
#authView .auth-alt .aa-signup { display: none; }
#authView.is-signup .auth-alt .aa-login { display: none; }
#authView.is-signup .auth-alt .aa-signup { display: contents; }
#authView.is-forgot .auth-alt { display: none; }

/* જૂનું Google એકાઉન્ટ — summary નહીં, નીચેની લિંક ખોલે છે (toggleGoogleMigrate) */
#authView .auth-more { margin: 0; padding: 0; border: 0; }
#authView .auth-more > summary { display: none; }
#authView .auth-more[open] { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
#authView .google-btn { margin-top: 0; }

/* ── 🧭 નોંધણી : બે પગલાં ── */
#authView .auth-steps { display: none; align-items: center; gap: 10px; margin-bottom: 12px; text-align: left; }
#authView.is-signup .auth-steps { display: flex; }
#authView .as-back {
  width: 34px; height: 34px; flex: none; padding: 0; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  display: grid; place-items: center; box-shadow: none;
}
#authView .as-back:hover { background: var(--surface2); color: var(--ink); }
#authView .as-back .material-icons { font-size: 20px; }
#authView .as-t { flex: 1; min-width: 0; }
#authView .as-t b { display: block; font-size: 15.5px; line-height: 1.25; color: var(--ink); }
#authView .as-t small { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
#authView .as-bars { display: flex; gap: 4px; margin-top: 5px; }
#authView .as-bars i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
#authView .as-bars i.on { background: var(--navy); }
/* ⚠️ !important : `#authView .auth-submit { display:flex }` ની specificity વધારે છે */
#authView:not(.is-signup) #authNextBtn { display: none !important; }
#authView.is-signup #authNextBtn { display: flex; }
#authView.is-signup .auth-inline-row { display: none; }
#authView.is-signup #authForm[data-step="1"] #groupAuthUsername,
#authView.is-signup #authForm[data-step="1"] #groupAuthFullName,
#authView.is-signup #authForm[data-step="1"] #groupAuthEmail,
#authView.is-signup #authForm[data-step="1"] #groupAuthPassword,
#authView.is-signup #authForm[data-step="1"] #groupAuthConfirmPassword,
#authView.is-signup #authForm[data-step="1"] #authSubmitBtn { display: none !important; }
#authView.is-signup #authForm[data-step="2"] .auth-role-group,
#authView.is-signup #authForm[data-step="2"] #groupAuthDise,
#authView.is-signup #authForm[data-step="2"] #authNextBtn { display: none !important; }

/* ── 🙏 પરત આવેલી શાળા — ડેશબોર્ડના સ્વાગત કાર્ડ જેવું ── */
#authView .last-login-chip {
  gap: 11px; padding: 10px 12px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: none;
}
#authView .llc-logo { width: 46px; height: 46px; font-size: 20px; border: 1px solid var(--line); }
#authView .last-login-chip .llc-text { line-height: 1.3; gap: 0; }
#authView .last-login-chip .llc-text small { font-size: 12px; color: var(--muted); font-weight: 600; white-space: normal; overflow: visible; }
#authView .last-login-chip .llc-text b { font-size: 14.5px; color: var(--ink); font-weight: 700; text-wrap: balance; }
#authView .llc-dise { font-size: 11.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
#authView .llc-change { border: 0; background: none; padding: 4px 2px; color: var(--navy2); font-size: 13px; font-weight: 700; }
#authView .llc-change:hover { background: none; text-decoration: underline; }
#authView.is-returning #groupAuthDise { display: none; }
#authView.is-forgot #lastLoginChip { display: none !important; }

/* ── 📱 મોબાઈલ મથાળું : એક પંક્તિ ── */
#authView .auth-mobile-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; text-align: left; }
#authView .amh-mark { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--navy); display: grid; place-items: center; }
#authView .amh-mark .material-icons { font-size: 21px; color: #fff; }
#authView .amh-title { margin: 0; font-size: 16px; line-height: 1.2; font-weight: 700; color: var(--ink); }
#authView .amh-t small { display: block; font-size: 11.5px; color: var(--muted); }
#authView.is-returning .auth-mobile-head,
#authView.is-signup .auth-mobile-head,
#authView.is-forgot .auth-mobile-head { display: none; }

/* ── પાસવર્ડ રીસેટ ── */
#authView .auth-forgot { padding-top: 0; text-align: left; }
#authView .auth-forgot h3 { font-size: 17px; margin: 0 0 4px; color: var(--ink); text-align: left; }
#authView .auth-note { font-size: 12.5px; text-align: left; margin-bottom: 12px; line-height: 1.5; }
#authView .auth-center-row { margin-top: 10px; }

/* ── 🦶 ફૂટર : બે ઝાંખી લીટી ── */
#authView .auth-foot { display: grid; gap: 3px; justify-items: center; text-align: center; padding: 10px 0 0; font-size: 11.8px; color: var(--muted); }
#authView .auth-foot .af-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 5px; margin: 0; }
#authView .auth-foot .af-links a { font-size: 12px; font-weight: 600; color: var(--ink-soft); gap: 0; }
#authView .auth-foot .af-links a:hover { color: var(--navy2); }
#authView .auth-foot .af-links a.is-refund { color: var(--danger); }
#authView .af-dot { color: var(--line); }
#authView .auth-foot .af-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 8px; margin: 0; font-size: 11.8px; }
#authView .auth-foot .af-brand { margin: 0; font-weight: 500; color: var(--muted); }
#authView .auth-foot .af-brand b { color: var(--navy); font-weight: 700; }
#authView .auth-foot .af-ver { font-size: 11.5px; }
#authView .auth-foot .af-meta a { font-size: 12px; font-weight: 600; }
#authView .auth-foot .auth-install {
  margin: 0; padding: 0; border: 0; background: none; border-radius: 0;
  color: var(--navy2); font-size: 12px; font-weight: 600; gap: 2px;
}
#authView .auth-foot .auth-install:hover { background: none; text-decoration: underline; }
#authView .auth-foot .auth-install .material-icons { font-size: 14px; }

/* ── 📱 ફોન (≤599px) : આખી સ્ક્રીન સફેદ — કાર્ડની ધાર/માર્જિન નહીં, ફૂટર તળિયે ── */
@media screen and (max-width: 599px) {
  body:has(#authView.active-view) { background: #fff; }
  #authView.view { margin: 0 auto; }
  #authView { max-width: 480px; width: 100%; border: 0; border-radius: 0; box-shadow: none; padding: 16px 16px 12px !important; }
  #authView.active-view { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
  #authView .auth-split { flex: 1 0 auto; }
  #authView .auth-foot { margin-top: auto; padding-top: 12px; }
}

/* ── 🖥️ PC : એ જ કાર્ડ, આછી ડાબી પેનલ + રંગીન ખાનાં ── */
@media screen and (min-width: 900px) {
  #authView .auth-mobile-head { display: none; }

  #authView .auth-brand { background: var(--surface2); color: var(--ink); border-right: 1px solid var(--line); }
  #authView .auth-brand::before, #authView .auth-brand::after { display: none; }
  #authView .abl-mark { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; background: var(--navy); border: 0; color: #fff; }
  #authView .abl-words b { color: var(--ink); }
  #authView .abl-words span { color: var(--muted); }
  #authView .auth-brand-title { color: var(--ink); font-size: 22px; font-weight: 700; }
  #authView .auth-brand-tag { color: var(--ink-soft); font-size: 13px; }

  #authView .auth-mods { position: relative; z-index: 1; display: grid; gap: 7px; }
  #authView .am-cap { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
  #authView .am-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  #authView .am-chip,
  #authView .auth-brand .trust-grid .tg-ic {
    width: 32px; height: 32px; border-radius: 10px; border: 0;
    display: grid; place-items: center;
    background: var(--m-bg, #EAF3F8); color: var(--m-fg, #0C4A6E);
  }
  #authView .am-chip .material-icons,
  #authView .auth-brand .trust-grid .tg-ic .material-icons { font-size: 18px; }
  #authView .am-more {
    height: 32px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center;
    font-size: 12.5px; font-weight: 700; color: var(--ink-soft); background: #fff; border: 1px solid var(--line);
  }
  #authView .auth-brand .trust-grid { border-top: 1px solid var(--line); }
  #authView .auth-brand .trust-grid li { align-items: center; }
  #authView .auth-brand .trust-grid b { color: var(--ink); font-size: 12.8px; }
  #authView .auth-brand .trust-grid small { color: var(--muted); font-size: 11.2px; }
  #authView .auth-brand-foot { color: var(--muted); border-top: 1px solid var(--line); }
  #authView .auth-brand-foot b { color: var(--navy); }

  #authView .auth-main-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 14px; }
  #authView .auth-main-head .amh-ic { background: var(--navy); box-shadow: none; border-radius: 13px; }
  #authView .auth-main-head h2 { color: var(--ink); font-weight: 700; }
  /* PC માં જમણું શીર્ષક પહેલેથી «નવું એકાઉન્ટ»/«પાસવર્ડ રીસેટ» કહે છે — બેવડું ન લખાય */
  #authView .auth-steps b, #authView .auth-forgot h3 { display: none; }

  #authView .auth-foot { padding: 4px 40px 12px; }
  #authView .auth-foot .af-brand { display: none; }   /* નામ ડાબી પેનલમાં છે */
}
/* ટૂંકી લેપટૉપ સ્ક્રીન (૧૩૬૬×૭૬૮ = ~૬૨૫px) — શિક્ષક/નોંધણી પણ સ્ક્રોલ વગર */
@media screen and (min-width: 900px) and (max-height: 700px) {
  #authView .auth-brand { gap: 10px; }
  #authView .auth-brand-title { font-size: 19px; }
  #authView .auth-main-head { margin-bottom: 8px; }
  #authView .input-group { margin-bottom: 7px; }
  #authView .input-group input { height: 40px; }
  #authView .role-opt { min-height: 34px; }
  #authView .auth-submit { min-height: 42px; margin-top: 8px; }
  #authView .auth-alt { margin-top: 6px; }
  #authView .last-login-chip { padding: 7px 10px; margin-bottom: 8px; }
  #authView .llc-logo { width: 40px; height: 40px; }
}

/* ============================================================
   🧭 લોગ-ઈન : આખા પાનાની ગોઠવણ (2026-09-15, round 9)
   ઉપર ઓળખ-પટ્ટી · ડાબે શીર્ષક + ટાઇલ · જમણે અલગ લોગ-ઈન કાર્ડ · નીચે ફૂટર.
   વિગતો અને રંગ એ જ — ફક્ત ગોઠવણ બદલાઈ છે.
   ⚠️ ઉપરના બંને login બ્લોક પછી જ રહેવો જોઈએ (એ જ specificity પર ચડે છે).
   ⚠️ સ્ક્રોલ નહીં : PC માં #authView = 100dvh અને વચ્ચેની પંક્તિ minmax(0,1fr).
      કાર્ડ એનાથી ઊંચું થાય તો *કાર્ડ પોતે* અંદર સ્ક્રોલ થાય (max-height:100%) — પાનું કદી નહીં.
   ============================================================ */

/* ── ઓળખ-પટ્ટી (બધે) ── */
#authView .auth-topbar { display: flex; align-items: center; gap: 10px; text-align: left; }
#authView .auth-topbar .auth-brand-lockup { margin: 0; min-width: 0; }
#authView .auth-topbar .abl-mark { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; background: var(--navy); border: 0; color: #fff; }
#authView .auth-topbar .abl-words b { color: var(--ink); }
#authView .auth-topbar .abl-words span { color: var(--muted); }
#authView .atb-links { margin-left: auto; display: flex; align-items: center; gap: 8px; }
#authView .atb-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; box-shadow: none;
  color: var(--ink-soft); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
#authView .atb-pill:hover { color: var(--ink); background: var(--surface2); }
#authView .atb-pill .material-icons { font-size: 17px; color: var(--navy2); }
/* ઇન્સ્ટોલ હવે ઉપરની પટ્ટીમાં — ફૂટરવાળું નહીં (JS inline display મૂકે છે એટલે !important) */
#authView .auth-foot .auth-install { display: none !important; }
#authView .af-guide { display: contents; }
/* ✨ લોગ-ઈન ફક્ત ઝાંખું-થી-સ્પષ્ટ થાય, નીચેથી ખસે નહીં.
   ⚠️ `.view` નું સામાન્ય fadeIn translateY(10px) થી શરૂ થાય છે — બ્રાઉઝર એ animation
      પૂરું ન કરે (ટૅબ પાછળ, ધીમો ફોન) ત્યાં સુધી પાનું 10px ઊંચું ગણાઈ સ્ક્રોલ આવતો (માપ્યું). */
#authView.view { animation-name: authFadeIn; }
@keyframes authFadeIn { from { opacity: 0; } to { opacity: 1; } }
/* સામાન્ય લોગ-ઈનમાં ડાયસકોડ નીચે શાળાનું નામ એક જ લીટીમાં (ગામ વગર) — બે લીટી થઈ ફોનમાં 36px વધતું.
   નોંધણીમાં પૂરી વિગત જ રહે (ત્યાં «નોંધાયેલી છે / નવી શાળા» જેવી સૂચના હોય છે). */
#authView:not(.is-signup) .auth-school-info {
  padding: 6px 10px; margin-top: 6px; font-size: 12.5px; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#authView:not(.is-signup) .auth-school-info div { display: none; }

/* ── 🖥️ PC ── */
@media screen and (min-width: 900px) {
  body:has(#authView.active-view) {
    background:
      radial-gradient(560px 360px at 94% -10%, rgba(21, 118, 172, .10), transparent 70%),
      radial-gradient(520px 340px at -8% 110%, rgba(44, 158, 79, .08), transparent 70%),
      var(--background);
  }
  #authView { max-width: 1320px; width: calc(100% - 64px); padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  #authView.view { margin: 0 auto; }
  /* ⚠️ PC માં ફક્ત vh — dvh (મોબાઈલના સરનામા-પટ્ટી માટે) અહીં જરૂરી નથી, અને
     અમુક બ્રાઉઝરમાં પહેલા લોડે એ ~10px મોટું ગણાઈ ફૂટર નીચે ધકેલતું હતું (માપ્યું). */
  #authView.active-view { display: flex; flex-direction: column; height: 100vh; max-height: none; }

  #authView .auth-split {
    flex: 1 1 auto; min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 450px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    column-gap: 56px; align-items: center;
  }
  #authView .auth-topbar { grid-column: 1 / -1; grid-row: 1; padding: 16px 0 8px; }

  /* ડાબે : શીર્ષક + મોડ્યુલ + ભરોસાની ટાઇલ (પેનલનો ડબ્બો નહીં — સીધું પાના પર) */
  #authView .auth-brand {
    grid-column: 1; grid-row: 2; align-self: center;
    display: flex; flex-direction: column; gap: 16px;
    padding: 0; margin: 0; background: transparent; border: 0; overflow: visible;
  }
  #authView .auth-brand-head { display: block; }
  #authView .auth-brand-title { margin: 0; font-size: 40px; line-height: 1.12; font-weight: 700; font-stretch: 110%; letter-spacing: -.01em; color: var(--ink); }
  #authView .auth-brand-tag { margin: 6px 0 0; font-size: 16px; color: var(--ink-soft); max-width: 56ch; }
  #authView .am-cap { font-size: 12.5px; }
  #authView .am-chip { width: 36px; height: 36px; border-radius: 11px; }
  #authView .am-chip .material-icons { font-size: 20px; }
  #authView .am-more { height: 36px; border-radius: 11px; }
  #authView .auth-brand .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0; margin: 0; border: 0; }
  #authView .auth-brand .trust-grid li { align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
  #authView .auth-brand .trust-grid .tg-ic { width: 34px; height: 34px; }
  #authView .auth-brand .trust-grid b { font-size: 13.5px; }
  #authView .auth-brand .trust-grid small { font-size: 11.8px; }
  #authView .auth-brand-foot { display: none; }   /* નામ નીચેના ફૂટરમાં */

  /* જમણે : અલગ ઊભું લોગ-ઈન કાર્ડ */
  #authView .auth-main {
    grid-column: 2; grid-row: 2; align-self: center;
    max-height: 100%; overflow-y: auto; align-items: stretch;
    background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
    padding: 22px 26px 18px;
  }
  #authView .auth-main > * { max-width: none; }

  /* નીચે : ફૂટર આખી પહોળાઈમાં */
  #authView .auth-foot {
    grid-column: 1 / -1; grid-row: 3;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
    padding: 10px 0 12px; border-top: 1px solid var(--line);
  }
  #authView .auth-foot .af-brand { display: inline; }
  #authView .af-guide { display: none; }          /* સુવિધા/મદદ ઉપરની પટ્ટીમાં છે */
}
/* 💻 ટૂંકી લેપટૉપ સ્ક્રીન (૧૩૬૬×૭૬૮ = ~૬૨૫px) */
@media screen and (min-width: 900px) and (max-height: 760px) {
  #authView .auth-topbar { padding: 10px 0 6px; }
  #authView .auth-brand { gap: 12px; }
  #authView .auth-brand-title { font-size: 33px; }
  #authView .auth-brand-tag { font-size: 14.5px; }
  #authView .auth-brand .trust-grid li { padding: 8px 10px; }
  #authView .auth-main { padding: 16px 22px 12px; }
  #authView .auth-foot { padding: 6px 0 8px; }
}
/* 💻 સાંકડું PC (૯૦૦–૧૧૮૦px) — ટાઇલ બે કૉલમ, પટ્ટીમાં ફક્ત આઇકન */
@media screen and (min-width: 900px) and (max-width: 1180px) {
  #authView .auth-split { grid-template-columns: minmax(0, 1fr) 420px; column-gap: 32px; }
  #authView .auth-brand .trust-grid { grid-template-columns: repeat(2, 1fr); }
  #authView .atb-pill { width: 36px; padding: 0; justify-content: center; }
  #authView .atb-pill span:last-child { display: none; }
}

/* ── 📱 મોબાઈલ : ઓળખ-પટ્ટી → લોગ-ઈન કાર્ડ → ફૂટર ── */
@media screen and (max-width: 899px) {
  body:has(#authView.active-view) { background: var(--background); }
  #authView { max-width: 480px; width: 100%; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  #authView.view { margin: 0 auto; }
  #authView.active-view { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
  /* 🔒 ફોન : લોગ-ઈન પાનું પોતે **કદી સ્ક્રોલ ન થાય** (પાછળનું body/html બંધ + pull-to-refresh
     નહીં). અગાઉ overflow:hidden ફક્ત PC બ્લોકમાં હતું — ફોનમાં body `overflow-y:auto` રહેતું,
     એટલે મોટા સિસ્ટમ-ફૉન્ટ / સરનામા-પટ્ટી (dvh ન સમજતું જૂનું બ્રાઉઝર) / કીબોર્ડ વખતે
     આખું પાનું સરકતું. હવે પાનું = સ્ક્રીન; ખરેખર ન જ સમાય તો ફક્ત #authView ની અંદર
     સરકે — લોગ-ઈન બટન કદી કપાઈને પહોંચની બહાર ન જાય. */
  html:has(#authView.active-view),
  body:has(#authView.active-view) { height: 100%; overflow: hidden; overscroll-behavior: none; }
  #authView.active-view {
    height: 100%; height: 100dvh; min-height: 0;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
  #authView .auth-split { flex: 1 0 auto; display: flex; flex-direction: column; }
  #authView .auth-topbar { padding: 0 2px 12px; }
  #authView .atb-pill:not(.atb-install) { display: none; }
  #authView .atb-install { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 11px; }
  #authView .atb-install span:last-child { display: none; }
  #authView .auth-main { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 16px; }
  #authView .auth-mobile-head { display: block; margin: 0 0 12px; }
  #authView .amh-title { font-size: 19px; }
}

/* ── 🧭 નોંધણી : પગલું ૨ માં સૌથી વધુ ખાનાં (શિક્ષક = નામ + યુઝરનેમ + ઇમેઇલ + ૨ પાસવર્ડ).
   માપ્યું : એ વગર ફોન ૩૬૦×૬૪૦ પર +58px અને PC ૧૩૬૬×૬૨૫ માં કાર્ડ અંદર 29px સ્ક્રોલ થતું. ── */
/* પગલું ૨ માં «એકાઉન્ટ છે? લોગ-ઈન કરો» નહીં — ઉપર ← બટન છે */
#authView.is-signup #authForm[data-step="2"] ~ .auth-alt { display: none; }
@media screen and (min-width: 900px) {
  /* PC : કાર્ડનું મોટું મથાળું નહીં, પગલાંના મથાળામાં જ શીર્ષક (બેવડું ન લખાય, જગ્યા બચે) */
  #authView.is-signup .auth-main-head { display: none; }
  #authView.is-signup .auth-steps b { display: block; }
}
/* 📱 ટૂંકી ફોન-સ્ક્રીન (≤700px ઊંચાઈ, દા.ત. ૩૬૦×૬૪૦) — બધી સ્થિતિમાં થોડું ચુસ્ત.
   માપ્યું : શિક્ષક-લોગ-ઈન + શાળાના નામનું ખાનું = +36px, શિક્ષક-નોંધણી પગલું ૨ = +58px હતું. */
@media screen and (max-width: 899px) and (max-height: 700px) {
  #authView .auth-topbar { padding-bottom: 8px; }
  #authView .auth-main { padding: 12px; }
  #authView .auth-mobile-head { margin-bottom: 8px; }
  #authView .auth-steps { margin-bottom: 8px; }
  #authView .input-group { margin-bottom: 7px; }
  #authView .input-group input { height: 40px; }
  #authView .auth-submit { margin-top: 8px; min-height: 42px; }
  #authView .last-login-chip { padding: 8px 10px; margin-bottom: 8px; }
  #authView .auth-alt { margin-top: 8px; }
  #authView .auth-foot { padding-top: 6px; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Modals */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,50,59,0.45); z-index: 100; backdrop-filter: blur(4px); overflow-y: auto; }
.modal-content { margin: 5% auto; width: 90%; max-width: 700px; position: relative; animation: slideDown 0.3s ease; border-radius: var(--radius); }
.close-btn { position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; color: var(--muted); transition: color 0.2s; }
.close-btn:hover { color: var(--danger); }
@keyframes slideDown { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-child { z-index: 200 !important; }

/* Auth Tabs */
.tabs { display: flex; margin-bottom: 20px; border-radius: 12px; overflow: hidden; background: var(--surface2); border: 1.5px solid var(--line); padding: 3px; gap: 3px; }
.tab-btn { flex: 1; padding: 11px; background: transparent; color: var(--ink-soft); border-radius: 9px; font-weight: 600; }
.tab-btn.active { background: var(--grad-navy); color: white; box-shadow: 0 4px 12px rgba(12,74,110,.25); }

/* Toast Notification */
.toast { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 12px 24px; border-radius: 14px; font-weight: 600; transition: bottom 0.4s ease; z-index: 1000; box-shadow: var(--shadow); }
.toast.show { bottom: 30px; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }


/* ========================================================
   A4 LC TEMPLATE EXACT MATCH CSS 
   ======================================================== */
.lc-a4-page {
  /* A4 Dimensions at 96 DPI: width: 794px, height: 1123px */
  width: 794px;
  height: 1123px;
  background-color: #f7ede2; /* Base soft background like certificate */
  padding: 10px;
  box-sizing: border-box;
  font-family: inherit;

  /* ── LC ના રંગ એક જ જગ્યાએ (નમૂનો બદલવા માટે) ──
     ક્રમ/લખાણ/વિગત બધું એમનું એમ રહે છે — ફક્ત રંગ અને બોર્ડર બદલાય છે.
     આ ચલ index.html ના inline style અને buildLcHtml બંનેમાં વપરાય છે. */
  --lc-line:   #0970a7;   /* કોષ્ટકની લીટી/બોર્ડર */
  --lc-ink:    #0970a7;   /* English લેબલ અને વિગત */
  --lc-sub:    #666;      /* લેબલની નીચેની ગુજરાતી લીટી */
  --lc-gu:     #d63384;   /* ગુજરાતી વિગત */
  --lc-title:  #000;      /* મથાળું */
  --lc-box:    #333;      /* આંકડાનાં ખાનાં */
}

/* ગોલ્ડન બોર્ડર નમૂનો — બાલવાટિકા વાલી સર્ટી (જિલ્લા પંચાયત) જેવો.
   બે સોનેરી બોર્ડર: જાડો બહાર (પાનાં પર) + પાતળો અંદર (.lc-border પર). */
.lc-a4-page.lc-gold {
  background-color: #fffdf5;
  border: 6px solid #d4a017;
  padding: 4px;
  --lc-line:   #c9a227;
  --lc-ink:    #1a4b8c;
  --lc-sub:    #7a5c00;
  --lc-gu:     #c0392b;
  --lc-title:  #c0392b;
  --lc-box:    #8a6d1a;
}

.lc-border {
  border: 3px solid var(--lc-line);
  height: 100%;
  padding: 15px;
  background: white;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.lc-gold .lc-border {
  border: 1.5px solid #d4a017;
  padding: 14px;
}

.lc-header {
  text-align: center;
  color: #0970a7;
  margin-bottom: 10px;
}
.school-name-en { font-size: 26px; font-weight: 800; letter-spacing: 1px; color: #0970a7; }
.school-name-gu { font-size: 30px; font-weight: 800; color: #fa8a10; margin-top: 5px; }

.lc-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.gr-box {
  border: 1px solid #7bcec6;
  background: #f4faf9;
  padding: 5px 15px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  color: #0970a7;
}

.cert-title {
  background-color: #0970a7; /* Deep Blue */
  color: white;
  padding: 10px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}
.cert-title .eng-title { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.cert-title .guj-title { font-size: 16px; border-top: 1px solid rgba(255,255,255,0.3); margin-top: 3px; padding-top: 3px; }

.lc-footer {
  margin-top: auto;
  text-align: center;
}
.certify-text { font-size: 12px; font-weight: 700; margin-bottom: 50px; color: #333; }
.signs { display: flex; justify-content: space-between; padding: 0 40px; margin-bottom: 10px; }
.sign-block { font-weight: 700; border-top: 1px dashed #333; padding-top: 5px; width: 220px; font-size: 14px; }
.warning-text-footer { font-size: 10px; font-weight: 700; color: #c0392b; border-top: 1px solid #ccc; padding-top: 5px; margin-top: 5px; }

/* Table Rows for Form */
.lc-form { margin-top: 5px; }
.row-flex {
  display: flex;
  margin-bottom: 2px;
  font-size: 11px;
  align-items: stretch;
}
.col-lbl {
  width: 40%;
  background-color: rgba(123, 206, 198, 0.25); /* Aqua pastel mix */
  padding: 3px 6px;
  font-weight: 700;
  border: 1px solid #7bcec6;
  color: #0970a7;
  display: flex;
  align-items: center;
}
.col-val {
  width: 60%;
  background-color: #ffffff; /* White input */
  padding: 3px 6px;
  border: 1px solid #7bcec6;
  border-left: none;
  font-weight: 600;
  color: #2eae8f;
  display: flex;
  align-items: center;
}
.val-text { color: #0970a7; font-size: 15px; }

/* Action Icon Buttons for Register Table */
.action-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 16px;
  border: 1px solid #e0e0e0;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0 2px;
  color: #555;
}
.action-icon-btn .material-icons {
  font-size: 18px;
  line-height: 1;
}
.action-icon-btn:hover { transform: scale(1.15); }
.action-icon-btn.edit-btn { color: #2196f3; }
.action-icon-btn.edit-btn:hover { background: #EAF3F8; border-color: #2196f3; }
.action-icon-btn.download-btn { color: #4caf50; }
.action-icon-btn.download-btn:hover { background: #e8f5e9; border-color: #4caf50; }
.action-icon-btn.delete-btn { color: #f44336; }
.action-icon-btn.delete-btn:hover { background: #ffebee; border-color: #f44336; }
.action-icon-btn.eng-edit-btn { color: #ff9800; }
.action-icon-btn.eng-edit-btn:hover { background: #fff3e0; border-color: #ff9800; }

/* Heading icon inside inline-module headers (<h2>) */
.inline-mod-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.header-icon {
  font-size: 28px !important;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
}

/* Small icons inside buttons */
.btn-icon {
  font-size: 18px !important;
  vertical-align: middle;
  margin-right: 6px;
  line-height: 1;
  position: relative;
  top: -1px;
}

/* Button Spinner State */
.btn-spinner {
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media screen and (max-width: 600px) {
  .grid-2-col, .grid-3-col { grid-template-columns: 1fr; }
}

/* ============================================
   MOBILE RESPONSIVE � Card Layout & Full-Screen
   ============================================ */
@media screen and (max-width: 768px) {

  /* --- Full-Screen Modals --- */
  .modal-content {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh;
    border-radius: 0 !important;
    padding: 16px !important;
  }
  .modal { padding: 0 !important; }
  .close-btn {
    right: 12px !important;
    top: 8px !important;
    font-size: 32px !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
  }

  /* --- Sticky Action Bar in Modals --- */
  .modal-action-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    padding: 8px 0 12px 0;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    border-bottom: 1px solid #e0e0e0;
  }

  /* --- Table ? Card Layout --- */
  .register-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }
  .register-table thead {
    display: none !important;
  }
  .register-table tbody tr {
    display: block !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
    padding: 14px 16px !important;
    background: linear-gradient(135deg, #fafbfc 0%, #f0f4f8 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
    border-bottom: none !important;
  }
  .register-table tbody tr:active {
    transform: scale(0.99);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1) !important;
  }
  .register-table tbody td {
    display: flex !important;
    align-items: center !important;
    text-align: left !important;
    padding: 3px 0 !important;
    border-bottom: none !important;
    font-size: 14px !important;
    white-space: normal !important;
  }
  /* Add labels before content via CSS */
  .register-table tbody td::before {
    font-weight: 700;
    color: #888;
    font-size: 12px;
    min-width: 85px;
    flex-shrink: 0;
  }

  /* LC Register labels */
  #listTableBody tr td:nth-child(1)::before { content: "ક્રમ: "; }
  #listTableBody tr td:nth-child(2)::before { content: "GR No: "; }
  #listTableBody tr td:nth-child(3) { font-size: 15px !important; font-weight: 700 !important; }
  #listTableBody tr td:nth-child(3)::before { content: ""; min-width: 0 !important; }
  #listTableBody tr td:nth-child(4)::before { content: "ધોરણ: "; }
  #listTableBody tr td:nth-child(5)::before { content: "જન્મ તા.: "; }
  #listTableBody tr td:nth-child(6)::before { content: ""; min-width: 0 !important; }

  /* Balvatika Register labels */
  #balListTableBody tr td:nth-child(1)::before { content: "ક્રમ: "; }
  #balListTableBody tr td:nth-child(2)::before { content: "વાલી સર્ટિ નં: "; }
  #balListTableBody tr td:nth-child(3) { font-size: 15px !important; font-weight: 700 !important; }
  #balListTableBody tr td:nth-child(3)::before { content: ""; min-width: 0 !important; }
  #balListTableBody tr td:nth-child(4)::before { content: "જન્મ તા.: "; }
  #balListTableBody tr td:nth-child(5)::before { content: ""; min-width: 0 !important; }

  /* Std1 Register labels */
  #std1ListTableBody tr td:nth-child(1)::before { content: "ક્રમ: "; }
  #std1ListTableBody tr td:nth-child(2)::before { content: "વાલી સર્ટિ નં: "; }
  #std1ListTableBody tr td:nth-child(3) { font-size: 15px !important; font-weight: 700 !important; }
  #std1ListTableBody tr td:nth-child(3)::before { content: ""; min-width: 0 !important; }
  #std1ListTableBody tr td:nth-child(4)::before { content: "જન્મ તા.: "; }
  #std1ListTableBody tr td:nth-child(5)::before { content: ""; min-width: 0 !important; }

  /* Action buttons row in cards */
  .register-table tbody td:last-child {
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-start !important;
    margin-top: 10px !important;
    padding-top: 12px !important;
    border-top: 1px solid #e0e0e0 !important;
    flex-wrap: wrap !important;
  }

  /* Larger touch-friendly action buttons */
  .action-icon-btn {
    width: 42px !important;
    height: 42px !important;
    font-size: 18px !important;
    border-radius: 10px !important;
  }

  /* --- Modal Top Button Bar --- */
  .modal-content h2 {
    font-size: 18px !important;
    padding-right: 40px;
  }
  .modal-content .primary-btn,
  .modal-content .secondary-btn,
  .modal-content .success-btn,
  .modal-content .ghost-btn {
    padding: 10px 14px !important;
    font-size: 13px !important;
    min-width: auto !important;
    max-width: none !important;
    flex: 1 1 calc(50% - 8px) !important;
  }

  /* --- Forms inside modals --- */
  .grid-2-col { grid-template-columns: 1fr !important; }
  .input-group input, .input-group select {
    font-size: 16px !important;
    padding: 14px !important;
  }
  .input-group label { font-size: 13px !important; }

  /* --- Dashboard Cards --- */
  .grid-3-col { grid-template-columns: 1fr !important; }
  .dashboard-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .main-title { font-size: 22px !important; }

  /* --- General Mobile Spacing --- */
  .container { padding: 10px !important; width: 100% !important; }
  .glass-card { padding: 16px !important; }
}

    /* Absolute overrides to bypass browser caching of style.css on file:// protocol */
    #lcTemplate { font-size: 11.5px !important; }
    /* ⚠️ આ !important નિયમો ઉપરના .lc-gold નિયમને દબાવી દેતા હતા — એટલે અહીં પણ
       રંગ ચલ (var) જ વાપરવો, અને ગોલ્ડન નમૂના માટે નીચે અલગ override રાખવો. */
    .lc-border { border: 3px solid var(--lc-line) !important; padding: 10px 15px !important; }
    .lc-gold .lc-border { border: 1.5px solid #d4a017 !important; padding: 10px 14px !important; }
    .lc-header { color: var(--lc-ink) !important; margin-bottom: 5px !important; }
    .school-name-en { color: #0970a7 !important; }
    .school-name-gu { color: #fa8a10 !important; }
    .lc-sub-header { margin-bottom: 3px !important; }
    .cert-title { background-color: #0970a7 !important; padding: 4px 20px !important; }
    .gr-box { border: 1px solid #7bcec6 !important; background: #f4faf9 !important; color: #0970a7 !important; }
    .row-flex { margin-bottom: 1px !important; }
    .col-lbl { background-color: rgba(123, 206, 198, 0.25) !important; border: 1px solid #7bcec6 !important; color: #0970a7 !important; padding: 2px 4px !important; }
    .col-val { background-color: #ffffff !important; border: 1px solid #7bcec6 !important; border-left: none !important; color: #2eae8f !important; padding: 2px 4px !important; }
    .val-text { color: #0970a7 !important; }

    /* ============================================
       ENROLMENT FORM TEMPLATE — LC-Style Design
       ============================================ */
    .pill-page { color: #000; background: #f7ede2; width: 210mm; height: 297mm; padding: 8px; box-sizing: border-box; font-family: 'Anek Gujarati', sans-serif; }
    .pill-page-border { border: 3px solid #0970a7; height: 100%; padding: 12px 15px; box-sizing: border-box; display: flex; flex-direction: column; background: white; position: relative; }
    .pill-page-content { flex: 1; }
    .pill-page-footer { margin-top: auto; }
    .pill-header-box { margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid #0970a7; }
    .pill-header-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
    .pill-header-center { text-align: center; flex: 1; }
    .pill-school-name-en { font-size: 16px; font-weight: 800; color: #0970a7; letter-spacing: 0.5px; }
    .pill-school-name-gu { font-size: 14px; font-weight: 800; color: #fa8a10; margin-top: 2px; }
    .pill-school-addr { font-size: 10px; color: #333; margin-top: 2px; font-weight: 600; }
    .pill-info-row { display: flex; align-items: center; font-size: 11px; font-weight: 700; color: #0970a7; margin-bottom: 4px; gap: 6px; flex-wrap: wrap; }
    .pill-info-label { white-space: nowrap; }
    .pill-digit-box { display: inline-flex; gap: 0; }
    .pill-digit-box span { display: inline-block; width: 18px; height: 20px; border: 1px solid #0970a7; text-align: center; line-height: 20px; font-size: 12px; font-weight: 700; color: red; background: #fff; }
    .pill-medium-box { border: 1px solid #0970a7; padding: 2px 12px; font-weight: 700; color: #fa8a10; font-size: 12px; background: #fffde7; }
    .pill-main-title { text-align: center; color: #0970a7; font-size: 15px; font-weight: 800; margin: 6px 0 2px 0; }
    .pill-sub-title { text-align: center; color: #fa8a10; font-size: 11px; font-weight: bold; margin-bottom: 8px; text-transform: uppercase; }
    .pill-row { display: flex; align-items: stretch; margin-bottom: 1px; }
    .pill-label { width: 40%; background-color: rgba(123, 206, 198, 0.25); padding: 3px 6px; font-weight: 700; border: 1px solid #7bcec6; color: #0970a7; display: flex; align-items: center; font-size: 10px; border-radius: 0; white-space: normal; line-height: 1.3; }
    .pill-value { width: 60%; background-color: #ffffff; padding: 3px 6px; border: 1px solid #7bcec6; border-left: none; font-weight: 600; color: #0970a7; flex-grow: 1; display: flex; align-items: center; font-size: 11px; border-radius: 0; }
    .lbl-w1 { width: 45%; }
    .lbl-w2a { width: 22%; }
    .lbl-w2b { width: 22%; }
    .pill-dec-title { text-align: center; color: #c0392b; font-size: 18px; font-weight: 800; margin: 15px 0 15px 0; }
    .pill-dec-text { font-size: 14px; line-height: 2.2; text-align: justify; font-weight: bold; padding: 0 10px; }
    .pill-ul { border-bottom: 1px solid #777; padding: 0 5px; color: #0970a7; font-weight: bold; }
    .pill-certify-text { font-size: 10px; font-weight: 700; text-align: center; color: #333; margin-bottom: 8px; line-height: 1.5; padding: 0 10px; }
    .pill-signs { display: flex; justify-content: space-between; padding: 0 20px; margin-bottom: 8px; }
    .pill-sign-block { font-weight: 700; border-top: 1px dashed #333; padding-top: 5px; width: 180px; font-size: 11px; text-align: center; }
    .pill-warning-text { font-size: 8px; font-weight: 700; color: #c0392b; border-top: 1px solid #ccc; padding-top: 4px; margin-top: 4px; text-align: center; line-height: 1.4; }

    /* ============================================
       BALVATIKA ADMISSION FORM — જિલ્લા નમૂનો (mhs)
       A4 એક પાનું; આંકડાકીય માહિતી ખાનાંમાં.
       ============================================ */
    .mhs-page { color: #000; background: #fff; width: 210mm; height: 297mm; padding: 6mm; box-sizing: border-box; font-family: 'Anek Gujarati', sans-serif; }
    .mhs-border { border: 6px solid #d4a017; height: 100%; padding: 2mm; box-sizing: border-box; }
    .mhs-inner { border: 1.5px solid #d4a017; height: 100%; padding: 4mm 5mm; box-sizing: border-box; display: flex; flex-direction: column; }
    .mhs-top { text-align: right; font-size: 10px; font-weight: 700; color: #000; margin-bottom: 2px; }
    .mhs-school { text-align: center; font-size: 21px; font-weight: 800; color: #c0392b; letter-spacing: 0.3px; line-height: 1.35; }
    .mhs-dise { text-align: center; font-size: 13px; font-weight: 800; color: #000; margin-top: 4px; }
    .mhs-title-g { text-align: center; font-size: 16px; font-weight: 800; color: #1a4b8c; margin-top: 4px; }
    .mhs-title-e { text-align: center; font-size: 13px; font-weight: 800; color: #1a4b8c; margin-bottom: 6px; }
    .mhs-red { color: #c0392b; }

    .mhs-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; padding: 0 6px; margin-bottom: 3px; gap: 10px; }
    .mhs-meta-r { display: flex; justify-content: flex-end; font-size: 12px; font-weight: 700; padding: 0 6px; margin-bottom: 5px; }

    /* એક ખાનું = એક આંકડો */
    .mhs-box { display: inline-flex; vertical-align: middle; }
    .mhs-box span { display: inline-block; box-sizing: border-box; width: 15px; height: 19px; border: 1px solid #333; border-right: none; text-align: center; line-height: 19px; font-size: 11px; font-weight: 700; color: #1a4b8c; background: #fff; }
    .mhs-box span:last-child { border-right: 1px solid #333; }
    .mhs-box.wide span { width: 17px; height: 21px; line-height: 21px; font-size: 12px; }
    /* લાંબા નંબર (બેંક ખાતું ૧૮ અંક) જગ્યામાં સમાય તે માટે સાંકડાં ખાનાં */
    .mhs-box.tight span { width: 13px; font-size: 10px; }

    .mhs-rows { flex: 1; }
    /* એક ક્રમાંક = એક item; અંદર ૨ લીટી (અંગ્રેજી + ગુજરાતી).
       લેબલનું ખાનું max-content — એટલે ':' પછી તરત જ લીટી શરૂ થાય,
       અને એ item ની બંને લીટીની લીટીઓ એકબીજા સાથે સીધમાં રહે. */
    .mhs-item { display: flex; align-items: flex-start; margin-bottom: 2px; }
    .mhs-lines { flex: 1; min-width: 0; }
    .mhs-line { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
    .mhs-half { display: flex; align-items: flex-start; gap: 8px; flex: 1 1 0; min-width: 0; }
    .mhs-no { width: 16px; flex-shrink: 0; font-size: 12px; font-weight: 700; padding-top: 3px; }
    /* લેબલ પોતાની જ પહોળાઈ લે — ':' પછી લખવાની લીટી તરત જ શરૂ થાય */
    .mhs-lbl { flex: 0 0 auto; font-size: 12px; font-weight: 700; line-height: 1.9; white-space: nowrap; }
    .mhs-lbl.gu { font-weight: 700; }
    .mhs-val { flex: 1 1 auto; min-width: 0; border-bottom: 1px solid #000; line-height: 1.9; font-size: 12px; font-weight: 700; color: #1a4b8c; padding: 0 4px; min-height: 22px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    /* ખાનાંવાળા ખાના — આજુબાજુની padding કાઢી નાખવી, નહીંતર છેલ્લું ખાનું બહાર જાય */
    .mhs-val.boxed { flex: 0 0 auto; border-bottom: none; padding: 1px 0 0 0; overflow: visible; }

    .mhs-declare { border: 1.2px solid #000; padding: 6px 10px; margin-top: 6px; font-size: 11.5px; font-weight: 700; line-height: 1.55; text-align: justify; }
    .mhs-declare .gu { font-size: 12px; line-height: 1.6; }
    .mhs-place { display: flex; justify-content: space-around; font-size: 12px; font-weight: 700; margin-top: 10px; }
    .mhs-admit { text-align: center; font-size: 13px; font-weight: 700; margin-top: 12px; line-height: 2; }
    .mhs-admit-e { text-align: center; font-size: 12px; font-weight: 700; }
    .mhs-ul { display: inline-block; border-bottom: 1px solid #000; min-width: 90px; text-align: center; color: #1a4b8c; padding: 0 6px; }
    .mhs-signs { display: flex; justify-content: space-between; margin-top: 26px; padding: 0 10px; font-size: 12.5px; font-weight: 700; }
    .mhs-sign { border-top: 1px solid #000; padding-top: 3px; min-width: 190px; text-align: center; }
    .mhs-udise { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 12.5px; font-weight: 800; }
    .mhs-principal { text-align: right; font-size: 13px; font-weight: 700; margin-top: 30px; padding-right: 40px; }




/* Back to Dashboard button */
.back-to-dash-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.back-to-dash-btn:hover {
  background: var(--primary);
  color: white;
}

/* Inline module content styling */
.inline-module {
  animation: fadeIn 0.3s ease-out;
}

/* ============================================
   પૂરી-સ્ક્રીન મોડ્યુલ (પ્રવૃત્તિ આયોજન)
   iframe ને viewport ની પૂરી ઊંચાઈ મળે અને સ્ક્રોલ *અંદર* થાય —
   એથી મોડ્યુલની પોતાની ચોંટેલી હેડર/બોટમ-નેવ સાચી જગ્યાએ રહે.
   ============================================ */
.inline-module.module-fullscreen {
  position: fixed;
  top: 70px;              /* ઉપરનું નેવ-બાર (.top-navbar height:70px) દેખાતું રહે */
  right: 0;
  bottom: 0;
  left: 272px;            /* સાઈડબાર દેખાતો રહે (desktop) — .sidebar width સાથે મેળ રાખવો */
  /* ⚠️ z-index ટોપ-નેવબાર (z-50) થી **નીચે** રાખવો જ પડે — નહિતર શાળાના નામનું
     ડ્રોપડાઉન (લોગ-આઉટ / શાળાની વિગત) અને 🔔 સૂચના પેનલ, જે ૭૦px થી નીચે ઊતરે છે,
     આ ઓવરલેની પાછળ દબાઈ જાય અને ક્લિક મોડ્યુલ પર જ પડે.
     ઓવરલે position:fixed છે એટલે ઓછો z-index હોવા છતાં પાનાના કન્ટેન્ટ ઉપર જ રહે છે. */
  z-index: 45;            /* નેવબાર z-50 અને સાઈડબાર z-60 થી નીચે */
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  border-radius: 0 !important;
  background: #f8fafc;
  animation: none;
}
/* 💻 સાઈડબાર સંકેલેલો હોય ત્યારે ફક્ત આઇકનની પટ્ટી (78px) જેટલી જગ્યા */
@media screen and (min-width: 901px) {
  .sidebar.rail ~ .main-wrapper .inline-module.module-fullscreen { left: 78px; }
}
/* ૯૦૦px થી નીચે સાઈડબાર છુપાયેલો હોય છે → આખી પહોળાઈ લો */
@media screen and (max-width: 900px) {
  .inline-module.module-fullscreen { left: 0; z-index: 45; }
}
/* બીજાં મોડ્યુલ જેવી જ પટ્ટી પૂરી-સ્ક્રીનમાં પણ રહે — ← Dashboard + શીર્ષક + ← પાછા જાઓ */
.inline-module.module-fullscreen {
  display: flex !important;
  flex-direction: column;
}
.inline-module.module-fullscreen .inline-mod-header {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 7px 14px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  gap: 8px;
}
.inline-module.module-fullscreen .inline-mod-header h2 { font-size: 1.15rem !important; }
/* ⚡ લોડ થતી વખતના skeleton માટે iframe હવે `.sms-frame-wrap` ની અંદર હોય છે
   (app.js → smsShowFrameSkeleton). એટલે પૂરી-સ્ક્રીનમાં wrapper પોતે flex-child
   બને અને iframe એને આખો ભરે — બંને રચનામાં દેખાવ સરખો જ રહે. */
.inline-module.module-fullscreen > .sms-frame-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.inline-module.module-fullscreen > iframe,
.inline-module.module-fullscreen > .sms-frame-wrap > iframe {
  width: 100% !important;
  height: auto !important;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 0 !important;
  display: block;
}
/* ← Dashboard બટન ફક્ત પૂરી-સ્ક્રીનમાં (બહાર પહેલેથી એક છે) */
.fs-dash-btn { display: none; }
.module-fullscreen .fs-dash-btn { display: inline-block; }
@media screen and (max-width: 700px) {
  .inline-module.module-fullscreen .inline-mod-header { padding: 6px 10px; }
  .inline-module.module-fullscreen .inline-mod-header h2 { font-size: .98rem !important; }
  .inline-module.module-fullscreen .inline-mod-header h2 .header-icon { margin-right: 4px !important; font-size: 19px; }
}
body.module-fullscreen-on { overflow: hidden; }

/* Active sidebar menu item highlight — મોડ્યુલના રંગની pill + ભરેલું આઇકન-ખાનું */
.sidebar-menu li.active,
.sidebar-menu li.active:hover {
  background: var(--m-bg, #EAF3F8);
  color: var(--m-fg, #0C4A6E);
  font-weight: 700;
}
.sidebar-menu li.active .side-ic { background: var(--m-fg, #0C4A6E); color: #fff; }

/* ============================================
   TRANSPORTATION PORTAL — MODULE CSS
   ============================================ */

/* Internal Tab Navigation */
.tp-tab-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 2px solid var(--line);
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}
.tp-tab-btn {
  flex-shrink: 0;
  padding: 10px 16px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 13px;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.tp-tab-btn:hover { color: var(--navy); background: #EAF3F8; }
.tp-tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
  background: #EAF3F8;
  font-weight: 700;
}
.tp-tab-btn .material-icons { font-size: 18px; }

/* Tab Content Panels */
.tp-tab-panel { display: none; animation: fadeIn 0.3s ease-out; }
.tp-tab-panel.active { display: block; }

/* Vehicle Selector Bar */
.tp-vehicle-selector {
  background: #EAF3F8;
  border: 1px solid #90caf9;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tp-vehicle-selector label {
  font-weight: 700;
  font-size: 13px;
  color: #0C4A6E;
  white-space: nowrap;
}
.tp-vehicle-selector select {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid #90caf9;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  background: white;
  outline: none;
}
.tp-vehicle-selector select:focus { border-color: #0C4A6E; box-shadow: 0 0 0 2px rgba(12,74,110,0.15); }

/* વાહન-ચિપ્સ: dropdown ને બદલે એક-ક્લિક switching (select JS-sync માટે છુપાયેલું રહે) */
.tp-vehicle-selector select { display: none; }
.tp-veh-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.tp-veh-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 30px;
  border: 1.5px solid #90caf9;
  background: #fff;
  color: #0C4A6E;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.tp-veh-chip .material-icons { font-size: 16px; }
.tp-veh-chip:hover { border-color: #0C4A6E; }
.tp-veh-chip.active {
  background: #0C4A6E;
  border-color: #0C4A6E;
  color: #fff;
  box-shadow: 0 3px 10px rgba(12,74,110,0.3);
}
.tp-veh-chip-count {
  background: rgba(2,132,199,0.12);
  color: #0284C7;
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 11.5px;
  font-weight: 800;
}
.tp-veh-chip.active .tp-veh-chip-count { background: rgba(255,255,255,0.2); color: #fff; }

/* ડેશબોર્ડ: વાહન-દીઠ કાર્ડ (2+ વાહન હોય ત્યારે) */
.tp-veh-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tp-veh-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.15s;
  position: relative;
}
.tp-veh-stat:hover { border-color: #0284C7; box-shadow: 0 4px 12px rgba(2,132,199,0.12); }
.tp-veh-stat.active { border-color: #0284C7; background: #F0F9FF; }
.tp-veh-stat-ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #E0F2FE;
  color: #0284C7;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.tp-veh-stat-ic .material-icons { font-size: 20px; }
.tp-veh-stat-tx { min-width: 0; }
.tp-veh-stat-tx b { display: block; font-size: 13.5px; color: #0F172A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-veh-stat-tx small { font-size: 11.5px; color: #64748B; font-weight: 600; }
.tp-veh-stat-badge {
  margin-left: auto;
  background: #16A34A;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  flex: none;
}

/* Transport મોડ્યુલ ઓપનિંગ skeleton */
.tp-skel-block {
  position: relative;
  overflow: hidden;
  background: #E2E8F0;
  border-radius: 12px;
}
.tp-skel-block::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
  animation: tpSkelShine 1.2s infinite;
}
@keyframes tpSkelShine { to { transform: translateX(100%); } }

/* Vehicle Cards */
.tp-vehicle-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  transition: all 0.2s;
  background: white;
}
.tp-vehicle-card.active-vehicle { border-color: #0C4A6E; background: #EAF3F8; }
.tp-vehicle-card .tp-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 6px;
}
.tp-badge-blue { background: #EAF3F8; color: #0C4A6E; }
.tp-badge-green { background: #e8f5e9; color: #2e7d32; }

/* Warning Alert */
.tp-warning-box {
  background: #fff3e0;
  border: 1px solid #ffcc80;
  color: #e65100;
  padding: 14px 16px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}
.tp-warning-box .material-icons { font-size: 22px; flex-shrink: 0; margin-top: 2px; }

/* Form Section in Transport */
.tp-form-section {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.tp-form-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0C4A6E;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0e0;
}

/* Checklist Items */
.tp-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.15s;
  background: white;
}
.tp-checklist-item:hover { background: #f5f5f5; }
.tp-checklist-item.checked { background: #e8f5e9; border-color: #a5d6a7; }
.tp-checklist-item.checked span { opacity: 0.8; color: #2e7d32; font-weight: 600; }
.tp-checklist-item input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; cursor: pointer; }

/* Student Profile Card Grid */
.tp-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.tp-profile-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.2s;
}
.tp-profile-card:hover { border-color: #90caf9; box-shadow: 0 6px 18px rgba(12,74,110,0.10); transform: translateY(-1px); }
.tp-profile-card-body { padding: 14px; }
.tp-profile-card-footer {
  padding: 10px 14px;
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
}

/* કાર્ડનું મથાળું : ફોટો + નામ + પટ્ટીઓ */
.tp-pf-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #EAF3F8 0%, #F7FBFD 100%);
  border-bottom: 1px solid #DCEAF3;
}
.tp-profile-card.consent .tp-pf-head { background: linear-gradient(135deg, #E8F5E9 0%, #F6FBF6 100%); border-bottom-color: #D6EBD8; }
.tp-pf-avatar {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(12,74,110,0.18);
  display: grid;
  place-items: center;
}
.tp-pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-pf-avatar.empty { background: #0C4A6E; }
.tp-profile-card.consent .tp-pf-avatar.empty { background: #2e7d32; }
.tp-pf-initial { color: #fff; font-size: 26px; font-weight: 800; line-height: 1; }
.tp-pf-head-txt { min-width: 0; flex: 1; }
.tp-pf-name {
  font-size: 15.5px;
  font-weight: 800;
  color: #0A3D5C;
  line-height: 1.3;
  margin-bottom: 6px;
  word-break: break-word;
}
.tp-pf-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.tp-pf-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tp-pf-chip.std  { background: #0C4A6E; color: #fff; }
.tp-pf-chip.boy  { background: #E3F2FD; color: #1565c0; border-color: #BBDEFB; }
.tp-pf-chip.girl { background: #FCE4EC; color: #C2185B; border-color: #F8BBD0; }
.tp-pf-chip.cat  { background: #F1F5F9; color: #475569; border-color: #E2E8F0; }

.tp-pf-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.tp-pf-rows > div { display: flex; flex-direction: column; min-width: 0; }
.tp-pf-rows > div.wide { grid-column: 1 / -1; }
.tp-pf-rows span { font-size: 10.5px; font-weight: 700; color: #94A3B8; letter-spacing: .2px; text-transform: uppercase; }
.tp-pf-rows b { font-size: 13px; font-weight: 700; color: #1e293b; word-break: break-word; }

.tp-pf-acts { display: flex; gap: 8px; margin-top: 14px; }
.tp-pf-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter .15s, box-shadow .15s;
}
.tp-pf-btn .material-icons { font-size: 15px; }
.tp-pf-btn:hover { filter: brightness(0.95); box-shadow: 0 2px 8px rgba(0,0,0,0.10); }
.tp-pf-btn.photo   { background: #F1F5F9; color: #0C4A6E; border-color: #CBD5E1; flex: 0 0 auto; }
.tp-pf-btn.pdf     { background: #0C4A6E; color: #fff; }
.tp-pf-btn.consent { background: #2e7d32; color: #fff; }

/* Attendance Table */
.tp-att-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tp-att-table th {
  background: #EAF3F8;
  color: var(--navy);
  padding: 10px 8px;
  border: 1px solid #CDE3F0;
  font-size: 12px;
  text-align: center;
}
.tp-att-table td {
  padding: 8px;
  border: 1px solid var(--line);
  vertical-align: middle;
}
.tp-att-table tr:hover { background: var(--surface2); }
.tp-att-input {
  width: 60px;
  text-align: center;
  padding: 4px;
  border: 1px solid #bdbdbd;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 600;
}
.tp-att-input:focus { border-color: #0C4A6E; outline: none; box-shadow: 0 0 0 2px rgba(12,74,110,0.15); }
.tp-pct-good { color: #2e7d32; font-weight: 700; }
.tp-pct-bad { color: #d32f2f; font-weight: 700; }

/* ============================================
   TRANSPORTATION PORTAL — GR-STYLE UI (SCOPED)
   All rules are scoped to #inlineTransportRegister so the
   shared .tp-* classes reused by the attendance/muster module
   (#inlineStudentAttendance) stay completely untouched.
   ============================================ */

/* Hero banner — mirrors GR register's .topbar */
#inlineTransportRegister .tp-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #0A3D5C, #0F5A84);
  color: #fff;
  padding: 22px 28px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
#inlineTransportRegister .tp-hero::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
#inlineTransportRegister .tp-hero-info {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
#inlineTransportRegister .tp-hero-info > .material-icons { font-size: 34px; opacity: 0.95; }
#inlineTransportRegister .tp-hero-info h1 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: 0.3px;
  color: #fff;
}
#inlineTransportRegister .tp-hero-info p { font-size: 12.5px; opacity: 0.85; font-weight: 500; margin: 0; }
#inlineTransportRegister .tp-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
#inlineTransportRegister .tp-hero-actions .success-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 9px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
#inlineTransportRegister .tp-hero-actions .success-btn:hover { background: rgba(255,255,255,0.28); }
#inlineTransportRegister .tp-hero-actions .ghost-btn {
  background: rgba(255,255,255,0.92);
  border: none;
  color: #0F172A;
  padding: 9px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
#inlineTransportRegister .tp-hero-actions .ghost-btn:hover { background: #fff; }
#inlineTransportRegister .tp-hero-actions .material-icons { font-size: 18px; }

/* Tab navigation — GR-style white pill bar (replaces underline tabs) */
#inlineTransportRegister .tp-tab-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-bottom: none;
  background: var(--surface);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}
#inlineTransportRegister .tp-tab-btn {
  flex-shrink: 0;
  padding: 11px 16px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 13.5px;
  border: none;
  border-bottom: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
#inlineTransportRegister .tp-tab-btn:hover { color: var(--navy); background: var(--surface2); }
#inlineTransportRegister .tp-tab-btn.active {
  color: #0284C7;
  background: #f0f9ff;
  border-bottom: none;
  font-weight: 700;
}
#inlineTransportRegister .tp-tab-btn .material-icons { font-size: 18px; }

/* Card / section polish to match GR's 16px radius + soft borders */
#inlineTransportRegister .tp-form-section {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 16px;
}
#inlineTransportRegister .tp-vehicle-card,
#inlineTransportRegister .tp-profile-card,
#inlineTransportRegister .tp-checklist-item { border-radius: 16px; }

/* ---- Students tab: header / search / card list (letterpad-style) ---- */
#inlineTransportRegister .tp-stu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
#inlineTransportRegister .tp-stu-header h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--navy); }
#inlineTransportRegister .tp-stu-header h3 span { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
#inlineTransportRegister .tp-stu-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#inlineTransportRegister .tp-stu-header-actions .ghost-btn,
#inlineTransportRegister .tp-stu-header-actions .primary-btn {
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#inlineTransportRegister .tp-stu-header-actions .ghost-btn {
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
#inlineTransportRegister .tp-stu-header-actions .ghost-btn:hover { border-color: var(--ink-soft); }

/* Search box */
#inlineTransportRegister .tp-stu-search { position: relative; margin-bottom: 16px; }
#inlineTransportRegister .tp-stu-search .material-icons {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--ink-soft);
}
#inlineTransportRegister .tp-stu-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  background: var(--surface);
  transition: border-color 0.15s;
}
#inlineTransportRegister .tp-stu-search input:focus { border-color: #0284C7; }

/* Card list grid */
#inlineTransportRegister .tp-stu-cardlist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
#inlineTransportRegister .tp-stu-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
#inlineTransportRegister .tp-stu-card:hover {
  transform: translateY(-2px);
  border-color: #90caf9;
  box-shadow: 0 8px 16px rgba(15,23,42,0.06);
}
#inlineTransportRegister .tp-stu-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
#inlineTransportRegister .tp-stu-badge {
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 9px; white-space: nowrap;
}
#inlineTransportRegister .tp-stu-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
#inlineTransportRegister .tp-stu-pill.pill-boy { background: #EAF3F8; color: #0C4A6E; }
#inlineTransportRegister .tp-stu-pill.pill-girl { background: #FCE7F0; color: #B4257A; }
#inlineTransportRegister .tp-stu-cat {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 8px;
  background: #FFF1E0; color: #B96B0C; white-space: nowrap;
}
#inlineTransportRegister .tp-stu-num { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }
#inlineTransportRegister .tp-stu-name { font-size: 15.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
#inlineTransportRegister .tp-stu-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-soft); }
#inlineTransportRegister .tp-stu-meta b { color: var(--ink); font-weight: 700; }
#inlineTransportRegister .tp-stu-addr {
  display: flex; align-items: flex-start; gap: 4px;
  font-size: 12.5px; color: var(--ink-soft); margin-top: 6px;
}
#inlineTransportRegister .tp-stu-addr .material-icons { font-size: 15px; color: var(--muted); margin-top: 1px; }
#inlineTransportRegister .tp-stu-acts { display: flex; gap: 8px; margin-top: 12px; }
#inlineTransportRegister .tp-stu-edit,
#inlineTransportRegister .tp-stu-del {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; font-family: inherit; transition: filter 0.15s, background 0.15s;
}
#inlineTransportRegister .tp-stu-edit .material-icons,
#inlineTransportRegister .tp-stu-del .material-icons { font-size: 16px; }
#inlineTransportRegister .tp-stu-edit { background: #0284C7; color: #fff; flex: 1; }
#inlineTransportRegister .tp-stu-edit:hover { filter: brightness(1.08); }
#inlineTransportRegister .tp-stu-del { background: #FCEDF0; color: #D6435B; }
#inlineTransportRegister .tp-stu-del:hover { background: #F9D9E0; }

/* Empty / no-results state */
#inlineTransportRegister .tp-stu-empty { grid-column: 1 / -1; text-align: center; padding: 36px 16px; color: var(--muted); }
#inlineTransportRegister .tp-stu-empty .material-icons { font-size: 40px; opacity: 0.5; display: block; margin: 0 auto 8px; }
#inlineTransportRegister .tp-stu-empty p { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.6; }

/* Add/Edit modal body grid + footer */
#inlineTransportRegister .tp-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#inlineTransportRegister .tp-modal-grid .input-group { margin-bottom: 0; }
#inlineTransportRegister .tp-modal-foot {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px;
  padding-top: 16px; border-top: 1.5px solid #f1f5f9;
}
#inlineTransportRegister .tp-modal-foot .ghost-btn {
  background: var(--surface); border: 1.5px solid var(--line); color: var(--ink);
  font-weight: 600; padding: 11px 20px; border-radius: 12px; cursor: pointer;
}
#inlineTransportRegister .tp-modal-foot .primary-btn { padding: 11px 22px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px; }

/* Inline field validation */
#inlineTransportRegister .tp-invalid { border-color: #D6435B !important; box-shadow: 0 0 0 2px rgba(214,67,91,0.15) !important; }
#inlineTransportRegister .tp-field-msg { color: #D6435B; font-size: 12px; font-weight: 600; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
#inlineTransportRegister .tp-field-msg::before { content: '⚠'; font-size: 11px; }

/* ---- Home dashboard: stat cards + quick-action grid (letterpad-style) ---- */
#inlineTransportRegister .tp-dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
#inlineTransportRegister .tp-dash-stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
#inlineTransportRegister .tp-dash-stat b { display: block; font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.2; }
#inlineTransportRegister .tp-dash-stat small { font-size: 13px; color: var(--ink-soft); font-weight: 600; margin-top: 4px; display: block; }
#inlineTransportRegister .tp-dash-stat::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 4px; border-radius: 0 4px 4px 0; }
#inlineTransportRegister .tp-dash-stat.c1::before { background: #0284C7; }
#inlineTransportRegister .tp-dash-stat.c2::before { background: var(--saffron); }
#inlineTransportRegister .tp-dash-stat.c3::before { background: var(--green); }

#inlineTransportRegister .tp-dash-sectitle {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700; color: var(--ink-soft); margin-bottom: 14px;
}
#inlineTransportRegister .tp-dash-sectitle .material-icons { font-size: 20px; }

#inlineTransportRegister .tp-dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
#inlineTransportRegister .tp-dash-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; cursor: pointer; font-family: inherit; box-shadow: var(--shadow-sm);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
#inlineTransportRegister .tp-dash-card:hover { transform: translateY(-2px); border-color: #90caf9; box-shadow: 0 8px 16px rgba(15,23,42,0.06); }
#inlineTransportRegister .tp-dash-ic { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; }
#inlineTransportRegister .tp-dash-ic .material-icons { font-size: 24px; }
#inlineTransportRegister .tp-dash-tx b { font-size: 15px; font-weight: 700; color: var(--navy); display: block; margin-bottom: 2px; }
#inlineTransportRegister .tp-dash-tx small { font-size: 12px; color: var(--ink-soft); font-weight: 500; display: block; }
#inlineTransportRegister .dc1 .tp-dash-ic { background: #E0F2FE; color: #0284C7; }
#inlineTransportRegister .dc2 .tp-dash-ic { background: #DCFCE7; color: #16A34A; }
#inlineTransportRegister .dc3 .tp-dash-ic { background: #FEF3C7; color: #D97706; }
#inlineTransportRegister .dc4 .tp-dash-ic { background: #EDE9FE; color: #7C3AED; }
#inlineTransportRegister .dc5 .tp-dash-ic { background: #DCFCE7; color: #16A34A; }
#inlineTransportRegister .dc6 .tp-dash-ic { background: #E0F2FE; color: #0284C7; }
#inlineTransportRegister .dc7 .tp-dash-ic { background: #FCE7F3; color: #DB2777; }
#inlineTransportRegister .dc8 .tp-dash-ic { background: #FEF3C7; color: #D97706; }
#inlineTransportRegister .dc9 .tp-dash-ic { background: #EDE9FE; color: #7C3AED; }
#inlineTransportRegister .dc10 .tp-dash-ic { background: #FCE7F3; color: #DB2777; }
#inlineTransportRegister .dc11 .tp-dash-ic { background: #E0F2FE; color: #0284C7; }

/* Setup progress bar */
#inlineTransportRegister .tp-dash-progress { margin-bottom: 22px; }
#inlineTransportRegister .tp-dash-progress-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
#inlineTransportRegister .tp-dash-progress-top span:first-child { display: inline-flex; align-items: center; gap: 5px; }
#inlineTransportRegister .tp-dash-progress-top .material-icons { font-size: 17px; color: #0284C7; }
#inlineTransportRegister #tpProgressText { color: var(--navy); }
#inlineTransportRegister .tp-dash-progress-track { height: 10px; background: var(--surface2); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
#inlineTransportRegister .tp-dash-progress-fill { height: 100%; width: 0%; border-radius: 20px; background: linear-gradient(90deg, #0284C7, #16A34A); transition: width 0.5s ease; }

/* Per-card completion chip */
#inlineTransportRegister .tp-dash-status { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
#inlineTransportRegister .tp-dash-status:empty { display: none; }
#inlineTransportRegister .tp-dash-status .material-icons { font-size: 14px; }
#inlineTransportRegister .tp-dash-status[data-status="done"] { background: #DCFCE7; color: #16A34A; }
#inlineTransportRegister .tp-dash-status[data-status="pending"] { background: #FEF3C7; color: #B45309; }

/* ---- Section back-bar ("← હોમ" + current section title) — card-driven nav ---- */
#inlineTransportRegister .tp-section-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
#inlineTransportRegister .tp-section-vehicle {
  display: none; align-items: center; gap: 5px; flex-shrink: 0;
  background: #EAF3F8; color: #0C4A6E; font-size: 12.5px; font-weight: 700;
  padding: 6px 12px; border-radius: 20px; border: 1px solid #CDE3F0; white-space: nowrap;
}
#inlineTransportRegister .tp-section-vehicle .material-icons { font-size: 16px; }
#inlineTransportRegister .tp-back-btn {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--navy);
  padding: 9px 16px; border-radius: 12px; font-weight: 700; font-size: 14px;
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
#inlineTransportRegister .tp-back-btn:hover { background: #f0f9ff; border-color: #0284C7; color: #0284C7; }
#inlineTransportRegister .tp-back-btn .material-icons { font-size: 19px; }
#inlineTransportRegister .tp-section-title { font-size: 18px; font-weight: 800; color: var(--navy); line-height: 1.3; }

/* ---- Phase 1: consistent modern look across all 11 section screens ---- */
/* Section headers — override the old inline grey-underline <h3 style="..."> look.
   currentColor accent keeps each header's own semantic color (navy/green/orange). */
#inlineTransportRegister .tp-tab-panel h3[style] {
  border-bottom: none !important;
  border-left: 4px solid currentColor !important;
  padding: 3px 0 3px 12px !important;
  margin: 0 0 16px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
}
#inlineTransportRegister .tp-tab-panel h3[style] .material-icons { font-size: 20px; margin-right: 2px; }
/* Sub-headers */
#inlineTransportRegister .tp-tab-panel h4[style] { font-size: 15px !important; font-weight: 700 !important; }

/* Section content sits on soft cards / rounded tables for a modern feel */
#inlineTransportRegister .tp-att-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
#inlineTransportRegister .tp-att-table th { border-color: #CDE3F0; }

/* Light control/info bars: soften to the modern radius */
#inlineTransportRegister .tp-tab-panel .grid-2-col[style*="EAF3F8"] { border-radius: 14px !important; border: 1px solid #CDE3F0; }

/* ---- Phase 2: attendance cards (daily + monthly) — replace wide tables ---- */
#inlineTransportRegister .tp-att-cardlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
#inlineTransportRegister .tp-att-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
#inlineTransportRegister .tp-att-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
#inlineTransportRegister .tp-att-badge { background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 9px; white-space: nowrap; }
#inlineTransportRegister .tp-att-name { font-size: 15px; font-weight: 700; color: var(--navy); }
#inlineTransportRegister .tp-att-num { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }
#inlineTransportRegister .tp-att-uid { font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }

/* Monthly: 2x2 field grid (inputs/values keep their logic IDs) */
#inlineTransportRegister .tp-att-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#inlineTransportRegister .tp-att-fld { display: flex; flex-direction: column; gap: 3px; }
#inlineTransportRegister .tp-att-fld label { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
#inlineTransportRegister .tp-att-fld .tp-att-td-total,
#inlineTransportRegister .tp-att-fld .tp-att-pay,
#inlineTransportRegister .tp-att-fld span[id^="tpPct_"] { font-size: 15px; font-weight: 700; color: var(--navy); }
#inlineTransportRegister .tp-att-fld .tp-pct-good { color: #16A34A; }
#inlineTransportRegister .tp-att-fld .tp-pct-bad { color: #D6435B; }
#inlineTransportRegister .tp-att-fld .tp-att-input {
  width: 100%; text-align: left; padding: 8px 10px; border: 1.5px solid var(--line);
  border-radius: 10px; font-family: inherit; font-weight: 700; font-size: 15px;
}
#inlineTransportRegister .tp-att-fld .tp-att-input:focus { border-color: #0284C7; box-shadow: 0 0 0 2px rgba(2,132,199,0.15); outline: none; }

/* Daily: present/absent toggle switch */
#inlineTransportRegister .tp-daily-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin-top: 2px; }
#inlineTransportRegister .tp-daily-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
#inlineTransportRegister .tp-daily-switch { width: 46px; height: 26px; border-radius: 20px; background: #cbd5e1; position: relative; transition: background .2s; flex-shrink: 0; }
#inlineTransportRegister .tp-daily-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
#inlineTransportRegister .tp-daily-toggle input:checked + .tp-daily-switch { background: #16A34A; }
#inlineTransportRegister .tp-daily-toggle input:checked + .tp-daily-switch::after { transform: translateX(20px); }
#inlineTransportRegister .tp-daily-label { font-size: 13.5px; font-weight: 700; color: #94a3b8; }
#inlineTransportRegister .tp-daily-toggle input:checked ~ .tp-daily-label { color: #16A34A; }

/* Empty / loading state */
#inlineTransportRegister .tp-att-empty { grid-column: 1 / -1; text-align: center; padding: 28px 16px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* Shimmer skeleton loading cards */
#inlineTransportRegister .tp-skel-card { pointer-events: none; }
#inlineTransportRegister .tp-skel-line { border-radius: 8px; background: linear-gradient(90deg, #eef2f5 25%, #e2e8f0 37%, #eef2f5 63%); background-size: 400% 100%; animation: tpShimmer 1.3s ease-in-out infinite; }
#inlineTransportRegister .tp-skel-line.skel-badge { width: 80px; height: 18px; margin-bottom: 10px; }
#inlineTransportRegister .tp-skel-line.skel-name { width: 60%; height: 16px; margin-bottom: 8px; }
#inlineTransportRegister .tp-skel-line.skel-sub { width: 40%; height: 12px; margin-bottom: 14px; }
#inlineTransportRegister .tp-skel-line.skel-toggle { width: 90px; height: 26px; border-radius: 20px; }
@keyframes tpShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Daily attendance toolbar: live summary + search */
#inlineTransportRegister .tp-daily-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
#inlineTransportRegister .tp-daily-summary { display: flex; gap: 8px; flex-wrap: wrap; }
#inlineTransportRegister .tp-daily-summary:empty { display: none; }
#inlineTransportRegister .tp-sum-pill { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 20px; white-space: nowrap; }
#inlineTransportRegister .tp-sum-pill.sum-present { background: #DCFCE7; color: #16A34A; }
#inlineTransportRegister .tp-sum-pill.sum-absent { background: #FEE2E2; color: #DC2626; }
#inlineTransportRegister .tp-sum-pill.sum-total { background: #EAF3F8; color: #0C4A6E; }
#inlineTransportRegister .tp-daily-search { position: relative; flex: 1; min-width: 200px; max-width: 320px; }
#inlineTransportRegister .tp-daily-search .material-icons { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 19px; color: var(--ink-soft); }
#inlineTransportRegister .tp-daily-search input { width: 100%; padding: 10px 14px 10px 40px; border: 1.5px solid var(--line); border-radius: 12px; font-family: inherit; font-weight: 600; font-size: 14px; outline: none; background: var(--surface); }
#inlineTransportRegister .tp-daily-search input:focus { border-color: #0284C7; }

@media screen and (max-width: 768px) {
  #inlineTransportRegister .tp-att-cardlist { grid-template-columns: 1fr; }
  #inlineTransportRegister .tp-daily-search { max-width: none; }
  #inlineTransportRegister .tp-dash-grid { grid-template-columns: 1fr; }
  #inlineTransportRegister .tp-dash-stats { gap: 8px; }
  #inlineTransportRegister .tp-dash-stat { padding: 14px 12px; }
  #inlineTransportRegister .tp-dash-stat b { font-size: 22px; }
  #inlineTransportRegister .tp-dash-stat small { font-size: 11px; }
  #inlineTransportRegister .tp-hero { padding: 16px 18px; }
  #inlineTransportRegister .tp-hero-info > .material-icons { font-size: 28px; }
  #inlineTransportRegister .tp-hero-info h1 { font-size: 18px; }
  #inlineTransportRegister .tp-tab-nav { gap: 4px; padding: 6px; flex-wrap: nowrap; }
  #inlineTransportRegister .tp-tab-btn { padding: 8px 12px; font-size: 11.5px; }
  #inlineTransportRegister .tp-stu-cardlist { grid-template-columns: 1fr; }
  #inlineTransportRegister .tp-modal-grid { grid-template-columns: 1fr; }
  #inlineTransportRegister .tp-stu-header { flex-direction: column; align-items: stretch; }
  #inlineTransportRegister .tp-stu-header-actions .ghost-btn,
  #inlineTransportRegister .tp-stu-header-actions .primary-btn { flex: 1; justify-content: center; }
}

/* ---- Transport styled confirm dialog (body-level, replaces native confirm) ---- */
.tp-confirm-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.6); backdrop-filter: blur(6px); z-index: 10000; align-items: center; justify-content: center; padding: 16px; }
.tp-confirm-box { background: #fff; border-radius: 20px; padding: 28px 24px; max-width: 400px; width: 100%; text-align: center; box-shadow: 0 20px 40px -5px rgba(0,0,0,0.2); font-family: 'Anek Gujarati', sans-serif; animation: modalSlideUp 0.3s ease; }
.tp-confirm-icon { width: 60px; height: 60px; border-radius: 50%; background: #FEF3C7; color: #D97706; display: grid; place-items: center; margin: 0 auto 16px; }
.tp-confirm-icon .material-icons { font-size: 34px; }
.tp-confirm-msg { font-size: 16px; font-weight: 600; color: #1e293b; line-height: 1.5; margin-bottom: 22px; }
.tp-confirm-actions { display: flex; gap: 10px; }
.tp-confirm-actions button { flex: 1; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; border: none; }
.tp-confirm-cancel { background: #f1f5f9; color: #475569; border: 1.5px solid #e2e8f0; }
.tp-confirm-cancel:hover { background: #e2e8f0; }
.tp-confirm-ok { background: #D6435B; color: #fff; }
.tp-confirm-ok:hover { filter: brightness(1.05); }

/* ============================================
   TRANSPORTATION PORTAL — PRINT STYLES
   ============================================ */
.tp-print-area { display: none; }

@media print {
  .tp-print-area { display: block !important; }
  .tp-print-area .tp-print-page {
    background: white;
    padding: 15mm;
    font-family: 'Anek Gujarati', sans-serif;
    color: black;
    page-break-after: always;
  }
  .tp-print-area .tp-print-page:last-child { page-break-after: auto; }
  .tp-print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
  }
  .tp-print-table th, .tp-print-table td {
    border: 1px solid black;
    padding: 6px 8px;
  }
  .tp-print-table th {
    background: #e0e0e0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-weight: 700;
  }
}

/* Transport icon color variant */
.action-card .icon.icon-transport { background: linear-gradient(135deg, #EAF3F8, #90caf9); color: #0C4A6E; }

@media screen and (max-width: 768px) {
  .tp-tab-nav { gap: 0; }
  .tp-tab-btn { padding: 8px 10px; font-size: 11px; }
  .tp-vehicle-selector { flex-direction: column; align-items: stretch; }
  .tp-vehicle-selector select { min-width: 100%; }
  .tp-profile-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PDF GENERATION STYLES
   ============================================ */
.tp-pdf-page {
  width: 210mm;
  height: 296mm;
  /* ⬇️ તળિયું ૧૦ → ૭mm : સહી-સિક્કાનો બ્લોક બોર્ડરની બહાર નીકળી જતો હતો.
     બીજા ટ્રાન્સપોર્ટ PDF પોતાનું inline padding આપે છે એટલે એમને અસર નથી. */
  padding: 10mm 10mm 7mm;
  background: white;
  color: black;
  font-family: 'Anek Gujarati', sans-serif;
  box-sizing: border-box;
  page-break-after: always;
  position: relative;
  overflow: hidden;
}
.tp-pdf-page:last-child { page-break-after: auto; }
.tp-pdf-border {
  border: 2px solid black;
  width: 100%;
  height: 100%;
  padding: 8mm;
  box-sizing: border-box;
}
.tp-pdf-header {
  text-align: center;
  margin-bottom: 5mm;
}
.tp-pdf-header h2 { font-size: 20px; font-weight: 700; margin: 0 0 4px 0; }
.tp-pdf-header h3 { font-size: 16px; font-weight: 600; margin: 0; }
.tp-pdf-content { font-size: 13px; line-height: 1.6; }
.tp-pdf-line {
  display: inline-block;
  border-bottom: 1px dotted #111;
  min-width: 120px;
}
.tp-pdf-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2mm;
  font-size: 12px;
}
.tp-pdf-table th, .tp-pdf-table td {
  border: 1px solid black;
  padding: 3px 5px;
  text-align: left;
}
.tp-pdf-table th { font-weight: 700; }
.tp-pdf-sign-area {
  display: flex;
  justify-content: space-between;
  margin-top: 10mm;
  font-weight: 700;
  text-align: center;
  font-size: 13px;
}

/* ── 📄 સંમતિ પત્રક + ચાઈલ્ડ પ્રોફાઈલ (નવો દેખાવ) ─────────────────────────
   બંને પત્રક html2canvas થી A4 પર છપાય છે (210×296mm નિશ્ચિત, overflow:hidden).
   એટલે અહીં બધું mm/px માં નક્કી છે — %/vh વાપરવું નહીં. */
.tp-pdf-border.consent,
.tp-pdf-border.profile {
  border: 1.6px solid #0C4A6E;
  border-radius: 3mm;
  padding: 5mm 7mm 5mm;
  display: flex;
  flex-direction: column;
}
.tp-pdf-border.profile { padding: 4mm 6mm 4mm; }

.tp-pdf-top {
  text-align: center;
  border-bottom: 2.5px double #0C4A6E;
  padding-bottom: 2mm;
  margin-bottom: 2.4mm;
}
.tp-pdf-scheme {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #0C4A6E;
  background: #E7F1F8;
  border: 1px solid #BBD9EC;
  border-radius: 20px;
  padding: 2px 14px;
  margin-bottom: 3px;
}
.tp-pdf-school { font-size: 17px; font-weight: 800; color: #0A3D5C; line-height: 1.25; }
.tp-pdf-sub { font-size: 11.5px; color: #475569; margin-top: 1px; }
.tp-pdf-title {
  display: inline-block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: #0C4A6E;
  border-radius: 20px;
  padding: 3px 22px;
}
.tp-pdf-title-sub { font-size: 11.5px; font-weight: 600; color: #334155; margin-top: 2px; }

/* વિદ્યાર્થીની ઓળખપટ્ટી — ફોટો + નામ + ખાનાં */
.tp-pdf-idstrip {
  display: flex;
  gap: 4mm;
  align-items: stretch;
  border: 1px solid #CBD5E1;
  border-radius: 2.5mm;
  padding: 2.5mm;
  background: #F8FAFC;
  margin-bottom: 2.5mm;
}
.tp-pdf-photo {
  width: 27mm;
  height: 31mm;
  flex: 0 0 27mm;
  border: 1px solid #0C4A6E;
  border-radius: 2mm;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.tp-pdf-photo.sm { width: 25mm; height: 32mm; flex-basis: 25mm; }
.tp-pdf-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-pdf-photo.empty {
  border-style: dashed;
  border-color: #94A3B8;
  color: #94A3B8;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
}
.tp-pdf-idgrid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tp-pdf-idgrid .nm {
  font-size: 16px;
  font-weight: 800;
  color: #0A3D5C;
  border-bottom: 1px solid #CBD5E1;
  padding-bottom: 1.4mm;
  margin-bottom: 1.4mm;
}
.tp-pdf-idgrid .cells,
.tp-pdf-box .cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1mm 4mm;
}
.tp-pdf-box .cells.one { grid-template-columns: 1fr; gap: 0.8mm; }
.tp-pdf-idgrid .cells > div,
.tp-pdf-box .cells > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11.5px;
  border-bottom: 1px dotted #CBD5E1;
  padding-bottom: 0.5mm;
  min-width: 0;
}
.tp-pdf-idgrid .cells > div.w2,
.tp-pdf-box .cells > div.w2 { grid-column: 1 / -1; }
.tp-pdf-idgrid .cells span,
.tp-pdf-box .cells span { color: #64748B; font-weight: 600; flex: 0 0 auto; }
.tp-pdf-idgrid .cells b,
.tp-pdf-box .cells b { color: #0F172A; font-weight: 700; word-break: break-word; }

/* સંમતિ પત્રકનું લખાણ */
.tp-pdf-body { font-size: 13px; line-height: 1.85; color: #0F172A; }
.tp-pdf-body p { margin: 0 0 2mm 0; }
.tp-pdf-body p.kid { margin-left: 8mm; }
.tp-pdf-body p.para { text-indent: 10mm; text-align: justify; margin-top: 3mm; line-height: 1.9; }
.tp-pdf-fill {
  display: inline-block;
  min-width: 200px;
  border-bottom: 1px solid #0C4A6E;
  color: #0C4A6E;
  text-align: center;
  padding: 0 6px;
}

.tp-pdf-box, .tp-pdf-vehbox {
  border: 1px solid #CBD5E1;
  border-radius: 2.5mm;
  overflow: hidden;
}
.tp-pdf-vehbox { margin-top: 4mm; }
.tp-pdf-box .cells, .tp-pdf-vehbox .cells { padding: 2mm 3mm; }
.tp-pdf-vehbox .cells { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6mm 4mm; }
.tp-pdf-vehbox .cells > div {
  display: flex; align-items: baseline; gap: 6px; font-size: 12px;
  border-bottom: 1px dotted #CBD5E1; padding-bottom: 1mm;
}
.tp-pdf-vehbox .cells span { color: #64748B; font-weight: 600; }
.tp-pdf-vehbox .cells b { color: #0F172A; font-weight: 700; }
.tp-pdf-boxh {
  background: #E7F1F8;
  color: #0A3D5C;
  font-size: 12px;
  font-weight: 800;
  padding: 1.4mm 3mm;
  border-bottom: 1px solid #CBD5E1;
}
.tp-pdf-boxh.solo {
  border: 1px solid #CBD5E1;
  border-radius: 2mm;
  margin: 2mm 0 0;
  text-align: center;
}

.tp-pdf-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }

/* સહી */
.tp-pdf-signrow {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8mm;
  margin-top: auto;
  padding-top: 8mm;
}
.tp-pdf-signfields { font-size: 13px; line-height: 2.2; margin-top: 4mm; }
.tp-pdf-signbox { text-align: center; min-width: 42mm; }
.tp-pdf-signbox .sb-line { border-top: 1.4px solid #334155; margin-bottom: 1.5mm; }
.tp-pdf-signbox .sb-lbl { font-size: 12px; font-weight: 700; color: #334155; line-height: 1.4; }
.tp-pdf-signbox .sb-lbl small { font-size: 10px; font-weight: 600; color: #64748B; }
.tp-pdf-sign3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 6mm;
  align-items: end;
  margin-top: auto;
  padding-top: 2.5mm;
}

/* 🖋️ આચાર્યની સહી + સિક્કો + રાઉન્ડ સીલ — સહિયારો `SMSSeal.block()`.
   ⚠️ seal.js નાં ડિફોલ્ટ માપ આ પત્રકોમાં બેસતાં નથી (બંને પાનાં પહેલેથી ભરેલાં
      છે), એટલે અહીં ફક્ત `.tp-pdf-seal` હેઠળ નાનાં કર્યાં છે — seal.js ને
      અડ્યા વગર, જેથી બીજાં મોડ્યુલમાં કશું બદલાય નહીં. */
.tp-pdf-seal { text-align: center; }
.tp-pdf-seal .sms-signblk { gap: 3mm; }
.tp-pdf-seal .sms-signcol { min-width: 40mm; }
.tp-pdf-seal .sms-signimg { max-height: 26px; max-width: 132px; margin-bottom: 1px; }
.tp-pdf-seal .sms-signno,
.tp-pdf-seal .sms-signgap { height: 21px; font-size: 9px; }
.tp-pdf-seal .sms-stamp { font-size: 9.5px; line-height: 1.22; }
.tp-pdf-seal .sms-signln { font-size: 10.5px; margin-top: 1px; padding-top: 1px; }
.tp-pdf-seal .sms-signnm { font-size: 9.5px; line-height: 1.25; }
.tp-pdf-foot {
  margin-top: 3mm;
  text-align: center;
  font-size: 10.5px;
  color: #64748B;
  border-top: 1px dashed #CBD5E1;
  padding-top: 2mm;
}
.tp-pdf-cert { margin-top: 1mm; }
.tp-pdf-cert p {
  font-size: 11px;
  line-height: 1.4;
  text-align: justify;
  text-indent: 10mm;
  margin: 1.2mm 0 0;
  padding: 0 2mm;
}
.tp-pdf-certdate { font-size: 12px; margin-top: 1mm; padding: 0 2mm; }
.tp-pdf-table td.c { text-align: center; }
.tp-pdf-border.profile .tp-pdf-table { font-size: 11px; }
.tp-pdf-border.profile .tp-pdf-table th {
  background: #E7F1F8;
  color: #0A3D5C;
  text-align: center;
  font-size: 10.5px;
  padding: 2px 4px;
}
.tp-pdf-border.profile .tp-pdf-table td { padding: 1.5px 5px; height: 5.2mm; }
.tp-pdf-border.profile .tp-pdf-table th,
.tp-pdf-border.profile .tp-pdf-table td { border: 1px solid #94A3B8; }

/* ============================================
   PREMIUM MODAL COMPONENT STYLES
   ============================================ */
.premium-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6); /* Slate 900 transparent background */
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  padding: 16px;
  box-sizing: border-box;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.premium-modal-card {
  background: #ffffff;
  color: #0f172a; /* Slate 900 for high-contrast, premium readability */
  max-width: 600px;
  width: 100%;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Anek Gujarati', 'Inter', sans-serif;
}

@keyframes modalSlideUp {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.premium-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1.5px solid #f1f5f9;
  padding-bottom: 16px;
}

.premium-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.premium-modal-header .close-btn-round {
  background: #f1f5f9;
  color: #64748b;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.premium-modal-header .close-btn-round:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

.premium-modal-field {
  margin-bottom: 20px;
}

.premium-modal-field label {
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #334155; /* Slate 700 */
}

/* Beautiful modern input field */
.premium-modal-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  box-sizing: border-box;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.premium-modal-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 74, 110, 0.15);
  outline: none;
}

.premium-modal-input:disabled {
  background: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
}

/* Checkbox group container */
.premium-modal-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: #f8fafc; /* Very light slate background */
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  max-height: 200px;
  overflow-y: auto;
}

.premium-modal-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.premium-modal-checkbox-label:hover {
  background: #f1f5f9;
}

.premium-modal-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
}

.premium-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1.5px solid #f1f5f9;
  padding-top: 20px;
  margin-top: 12px;
}

/* ===== મોબાઈલ: GR + લેટરપેડ મોડ્યુલ ધાર-થી-ધાર (full-screen) ===== */
@media screen and (max-width: 768px) {
  .dashboard-main-content { padding: 10px 6px; }
  /* main-content ની બાકી રહેલી padding પણ રદ કરી iframe ધાર સુધી લઈ જવું
     (inline style ને હરાવવા !important જરૂરી) */
  #inlineGrRegister, #inlineLetterpad { margin: -10px -6px !important; }
  #inlineGrRegister iframe, #inlineLetterpad iframe { border-radius: 0 !important; box-shadow: none !important; }
}

/* ============================================
   🆕 શિક્ષક પરમિશન મેનેજમેન્ટ — કાર્ડ-આધારિત યાદી (mobile-friendly)
   ============================================ */
.teachers-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.teachers-search-wrap {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 12px;
  transition: border-color 0.2s;
}
.teachers-search-wrap:focus-within { border-color: var(--primary); background: #fff; }
.teachers-search-wrap .material-icons { font-size: 19px; color: #94a3b8; }
.teachers-search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 0;
  font-family: inherit;
  font-size: 14px;
  color: #0f172a;
  min-width: 0;
}
.teachers-count-badge {
  font-size: 12.5px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.teachers-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
}
@media (max-width: 480px) {
  .teachers-cards-grid { grid-template-columns: 1fr; }
}
.teacher-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.teacher-card:hover {
  border-color: #7dd3fc;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}
.teacher-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.teacher-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  flex-shrink: 0;
}
.teacher-card-name {
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.teacher-card-username {
  font-size: 12px;
  color: #64748b;
  font-family: monospace;
  overflow-wrap: anywhere;
}
.teacher-card-editbtn {
  padding: 7px 14px !important;
  font-size: 12.5px !important;
  height: auto !important;
  min-width: auto !important;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.teacher-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tchip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.tchip-mod { background: #e0f2fe; color: #0369a1; }
.tchip-class { background: #e0f7fa; color: #006064; }
.tchip-none { background: #fee2e2; color: #991b1b; }
.teachers-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: #94a3b8;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ============================================
   🆕 શિક્ષક પરમિશન મોડલ — જૂથવાર ટૉગલ-સ્વિચ + મોબાઇલ bottom-sheet
   ============================================ */
#teacherEditModal .premium-modal-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
#teacherEditModal .premium-modal-header {
  padding: 20px 24px 14px;
  margin-bottom: 0;
  flex-shrink: 0;
}
#teacherEditModal .premium-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 24px;
  -webkit-overflow-scrolling: touch;
}
#teacherEditModal .premium-modal-footer {
  margin-top: 0;
  padding: 14px 24px;
  border-top: 1.5px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
}

/* 🆕 સ્થિર ઉપરની પટ્ટી — શિક્ષકનું નામ + મોડ્યુલ શોધ સ્ક્રોલ સાથે હાલતાં નથી */
#teacherEditModal .premium-modal-subhead {
  flex-shrink: 0;
  padding: 4px 24px 12px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
#teacherEditModal .premium-modal-subhead .premium-modal-field { margin-bottom: 10px; }

/* 🆕 ઉપરની સ્થિર પટ્ટી : મોડ્યુલ શોધ + "કેટલાં ચાલુ" કાઉન્ટર (સ્ક્રોલ સાથે હાલતી નથી) */
#teacherEditModal .perm-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  background: transparent;
}
.perm-search-wrap {
  flex: 1;
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 10px;
  transition: border-color 0.2s, background 0.2s;
}
.perm-search-wrap:focus-within { border-color: var(--primary); background: #fff; }
.perm-search-wrap > .material-icons { font-size: 19px; color: #94a3b8; }
.perm-search-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 9px 0;
  font-family: inherit;
  font-size: 13.5px;
  color: #0f172a;
}
.perm-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  cursor: pointer;
}
.perm-search-clear .material-icons { font-size: 15px; }
.perm-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 800;
  color: #0369a1;
  background: #e0f2fe;
  padding: 7px 13px;
  border-radius: 20px;
  white-space: nowrap;
}
.perm-count-badge .material-icons { font-size: 17px; }

.perm-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #475569;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 9px 11px;
  margin-bottom: 14px;
}
.perm-hint .material-icons { font-size: 17px; color: #d97706; flex-shrink: 0; }
.perm-hint b { color: #92400e; }

.perm-group { margin-bottom: 18px; }
.perm-group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.4px;
  margin: 0 0 8px;
}
.perm-group-title .material-icons { font-size: 16px; color: #94a3b8; }
.perm-group-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 20px;
  padding: 2px 9px;
}
.perm-group-count.is-on { color: #0369a1; background: #e0f2fe; }

/* 🆕 એક મોડ્યુલ = એક કાર્ડ (ટૉગલ + નીચે જ ખૂલતું વર્ગ/પેટા-મેનૂ પેનલ) */
#teacherEditModal .perm-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#teacherEditModal .perm-item:has(> .perm-toggle-row .perm-switch:checked) {
  border-color: #7dd3fc;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.09);
}
#teacherEditModal .perm-item > .perm-toggle-row {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  background: transparent;
}
#teacherEditModal .perm-item:has(> .perm-toggle-row .perm-switch:checked) > .perm-toggle-row { background: #f0f9ff; }
.perm-ico {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.perm-ico .material-icons { font-size: 19px; color: inherit; }
#teacherEditModal .perm-item:has(> .perm-toggle-row .perm-switch:checked) .perm-ico { background: #0284c7; color: #fff; }
.perm-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.perm-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}
.perm-tag .material-icons { font-size: 12px; }
.perm-tag-class { background: #ecfeff; color: #0e7490; }
.perm-tag-sub { background: #f5f3ff; color: #6d28d9; }

/* મોડ્યુલની નીચે જ ખૂલતું પેનલ */
.perm-expand {
  border-top: 1px dashed #bae6fd;
  background: #f7fbff;
  padding: 11px 12px 12px;
}

.perm-no-result {
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 12px;
  color: #94a3b8;
  font-size: 13px;
}
.perm-no-result .material-icons { font-size: 30px; }

/* નોંધ: .premium-modal-field label { display:block } ને હરાવવા #teacherEditModal prefix જરૂરી */
#teacherEditModal .perm-toggle-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  font-weight: normal;
  transition: background 0.15s, border-color 0.15s;
}
#teacherEditModal .perm-toggle-row:hover { background: #f8fafc; }
#teacherEditModal .perm-toggle-row:has(.perm-switch:checked) { border-color: #7dd3fc; background: #f0f9ff; }
.perm-toggle-label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}
.perm-toggle-label small { color: #94a3b8; font-weight: 600; font-size: 11.5px; margin-left: 2px; }

/* checkbox છુપાવી સ્વિચ-UI બતાવીએ */
.perm-switch {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.perm-switch-ui {
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  border-radius: 24px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.2s;
}
.perm-switch-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: left 0.2s;
}
.perm-switch:checked + .perm-switch-ui { background: var(--primary); }
.perm-switch:checked + .perm-switch-ui::after { left: 21px; }

/* હાજરીના પેટા-મેનૂ ટૉગલ */
.perm-sub-wrap {
  margin: 10px 0 0;
  padding: 10px 10px 4px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
}
.perm-sub-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 8px;
}
.perm-sub-title .material-icons { font-size: 16px; color: var(--primary); }
#teacherEditModal .perm-toggle-sub {
  min-height: 40px;
  background: #fff;
}
.perm-toggle-sub .perm-toggle-label { font-size: 13px; }
.perm-toggle-sub .perm-switch-ui { width: 38px; height: 22px; }
.perm-toggle-sub .perm-switch-ui::after { width: 16px; height: 16px; }
.perm-toggle-sub .perm-switch:checked + .perm-switch-ui::after { left: 19px; }
.perm-sub-note {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.5;
  padding: 4px 2px 8px;
}

/* 🆕 મોડ્યુલ-દીઠ વર્ગ પસંદગી — હવે એ મોડ્યુલના ટૉગલની નીચે જ (.perm-expand ની અંદર) */
.mod-class-block { border: none; background: transparent; padding: 0; margin: 0; }
.mod-class-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
}
.mod-class-title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #0369a1;
}
.mod-class-title .material-icons { font-size: 16px; color: #0284c7; }
.mod-class-count {
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 20px;
  padding: 2px 9px;
}
.mod-class-count.is-zero { color: #b45309; background: #fef3c7; }
.mod-class-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mod-class-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  color: #475569;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 9px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.mod-class-btn:hover { background: #f1f5f9; border-color: #94a3b8; color: #0f172a; }
.mod-class-btn .material-icons { font-size: 14px; }
.mod-class-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 190px;
  overflow-y: auto;
  padding: 2px;
}
.mod-class-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 10px 12px;
}
.mod-class-empty .material-icons { font-size: 18px; color: #d97706; flex-shrink: 0; }

/* વર્ગ = ચિપ (છુપાયેલું checkbox) */
#teacherEditModal .cls-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.cls-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cls-chip .material-icons { font-size: 14px; width: 0; opacity: 0; transition: opacity 0.15s, width 0.15s; }
#teacherEditModal .cls-chip:hover { border-color: #7dd3fc; background: #f0f9ff; }
#teacherEditModal .cls-chip:has(input:checked) {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}
.cls-chip:has(input:checked) .material-icons { opacity: 1; width: 14px; }
.cls-group {
  flex: 1 0 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
}
.cls-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}
.cls-group-head strong { font-size: 12px; font-weight: 800; color: #475569; }
#teacherEditModal .cls-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  cursor: pointer;
}
.cls-all input { margin: 0; cursor: pointer; accent-color: #0284c7; }
.cls-chips { display: flex; flex-wrap: wrap; gap: 7px; }

/* હંમેશાં મળતાં મોડ્યુલ — informational row */
#teacherEditModal .perm-item-always { border-style: dashed; background: #f8fafc; }
#teacherEditModal .perm-item-always:hover { box-shadow: none; }
#teacherEditModal .perm-toggle-always {
  cursor: default;
  background: transparent;
}
#teacherEditModal .perm-toggle-always:hover { background: transparent; }
.perm-toggle-always .perm-toggle-label { color: #64748b; }
.perm-toggle-always .perm-ico { background: #e2e8f0; color: #94a3b8; }
.perm-always-pill {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 4px 11px;
  border-radius: 20px;
  white-space: nowrap;
}

/* મોબાઇલ: મોડલ bottom-sheet તરીકે ખૂલે, સેવ-બટન હંમેશાં દેખાય */
@media (max-width: 600px) {
  #teacherEditModal { padding: 0; align-items: flex-end; }
  #teacherEditModal .premium-modal-card {
    max-width: 100%;
    width: 100%;
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: 22px 22px 0 0;
    border: none;
    animation: sheetSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  #teacherEditModal .premium-modal-footer {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
  #teacherEditModal .premium-modal-footer .danger-btn { width: 100%; order: 2; }
  #teacherEditModal .premium-modal-footer > div { width: 100%; order: 1; }
  #teacherEditModal .premium-modal-footer > div .primary-btn,
  #teacherEditModal .premium-modal-footer > div .secondary-btn { flex: 1; }
}
@keyframes sheetSlideUp {
  from { transform: translateY(40%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}


/* ══════════════════════════════════════════════════════════════════
   🎬 વિડીયો — લોગિન પેજની મદદ · ડેશબોર્ડનું ટ્યુટોરિયલ · સહિયારો પ્લેયર
   (js/video-help.js + app.js ના loadLoginHelpVideo/openTutorials સાથે)
   ══════════════════════════════════════════════════════════════════ */

/* ---------- ▶️ પ્લેયર પડદો (SMSVideo.open) ---------- */
.sms-vid-lb {
  position: fixed; inset: 0; z-index: 10050;
  background: rgba(8, 15, 30, 0.82);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: svlFade .18s ease;
}
@keyframes svlFade { from { opacity: 0; } to { opacity: 1; } }
.sms-vid-lb .svl-card {
  background: #0f172a; color: #e2e8f0;
  border-radius: 16px; width: 100%; max-width: 900px;
  max-height: 94vh; overflow: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.sms-vid-lb .svl-hd {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.1);
  font-weight: 700; font-size: 15px;
}
.sms-vid-lb .svl-hd-ic { color: #f87171; }
.sms-vid-lb .svl-hd-tx { flex: 1; line-height: 1.5; }
.sms-vid-lb .svl-x {
  background: rgba(255,255,255,.12); color: #fff; border: none;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  font-size: 14px; line-height: 1; flex: 0 0 auto;
}
.sms-vid-lb .svl-x:hover { background: rgba(255,255,255,.25); }
.sms-vid-lb .svl-frame { position: relative; width: 100%; padding-top: 56.25%; background: #000; }
.sms-vid-lb .svl-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.sms-vid-lb .svl-desc { padding: 12px 14px 0; font-size: 13.5px; line-height: 1.85; color: #cbd5e1; }
.sms-vid-lb .svl-ft {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px;
}
.sms-vid-lb .svl-ft a { color: #93c5fd; font-size: 13px; text-decoration: none; }
.sms-vid-lb .svl-ft a:hover { text-decoration: underline; }
.sms-vid-lb .svl-done {
  background: #2563eb; color: #fff; border: none; border-radius: 9px;
  padding: 8px 18px; font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit;
}

/* ---------- 📺 લોગિન પેજનું મદદ-કાર્ડ ---------- */
.login-help-vid {
  display: flex; align-items: center; gap: 11px; width: 100%;
  margin: 14px 0 2px; padding: 9px 11px;
  border: 1.5px solid #bfdbfe; background: #eff6ff; border-radius: 13px;
  cursor: pointer; text-align: right; font-family: inherit;
  transition: background .15s, border-color .15s, transform .15s;
}
.login-help-vid:hover { background: #dbeafe; border-color: #60a5fa; transform: translateY(-1px); }
.login-help-vid .lhv-thumb {
  position: relative; flex: 0 0 auto;
  width: 84px; height: 50px; border-radius: 8px; overflow: hidden;
  background: #1e293b; display: flex; align-items: center; justify-content: center;
}
.login-help-vid .lhv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.login-help-vid .lhv-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.32); color: #fff;
}
.login-help-vid .lhv-play .material-icons { font-size: 30px; }
.login-help-vid .lhv-tx { flex: 1; min-width: 0; text-align: right; }
.login-help-vid .lhv-tx b {
  display: block; font-size: 13.8px; color: #1e3a8a; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.login-help-vid .lhv-tx small { display: block; font-size: 11.8px; color: #475569; margin-top: 2px; }
@media (max-width: 420px) {
  .login-help-vid .lhv-thumb { width: 66px; height: 40px; }
  .login-help-vid .lhv-tx b { white-space: normal; }
}

/* ---------- 🎓 ટ્યુટોરિયલ મોડ્યુલ (ડેશબોર્ડ) ---------- */
.tut-head {
  display: flex; align-items: center; gap: 11px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.tut-head h2 { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--primary); }
.tut-head .tut-sub { flex-basis: 100%; font-size: 13px; color: #64748b; line-height: 1.8; margin: 0; }
.tut-search-wrap { position: relative; margin-bottom: 14px; }
.tut-search {
  width: 100%; padding: 10px 14px 10px 38px;
  border: 1.5px solid #e2e8f0; border-radius: 11px; font-family: inherit; font-size: 14px;
}
.tut-search-wrap .material-icons {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; font-size: 20px; pointer-events: none;
}
.tut-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.tut-card {
  border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; background: #fff;
  cursor: pointer; text-align: right; padding: 0; font-family: inherit;
  transition: box-shadow .15s, transform .15s, border-color .15s;
  display: flex; flex-direction: column;
}
.tut-card:hover { box-shadow: 0 10px 26px rgba(15,23,42,.12); transform: translateY(-2px); border-color: #bfdbfe; }
.tut-card .tc-thumb { position: relative; width: 100%; padding-top: 56.25%; background: #0f172a; }
.tut-card .tc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tut-card .tc-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(15,23,42,.25); transition: background .15s;
}
.tut-card:hover .tc-play { background: rgba(15,23,42,.42); }
.tut-card .tc-play .material-icons { font-size: 46px; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.tut-card .tc-body { padding: 11px 12px 13px; flex: 1; }
.tut-card .tc-title { font-weight: 700; font-size: 14px; color: #0f172a; line-height: 1.6; }
.tut-card .tc-desc {
  font-size: 12.3px; color: #64748b; line-height: 1.75; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tut-card .tc-cat {
  display: inline-block; margin-top: 7px; font-size: 11px; font-weight: 700;
  color: #1d4ed8; background: #eff6ff; border-radius: 999px; padding: 3px 9px;
}
.tut-empty {
  text-align: center; padding: 34px 18px; color: #64748b; font-size: 13.5px; line-height: 1.9;
  border: 1.5px dashed #cbd5e1; border-radius: 14px; background: #f8fafc;
}
.tut-hide { display: none !important; }

/* ---------- 🎉 લોગ-ઈન પછીનું એક-વારનું ટ્યુટોરિયલ પોપઅપ ---------- */
.tut-pop-note {
  font-size: 12.5px; color: #475569; line-height: 1.8;
  background: #f1f5f9; border-radius: 10px; padding: 9px 12px; margin: 12px 14px 0;
}

/* ---------- ⚠️ setupView : ફરજિયાત વિગતોની ચેતવણી ---------- */
.setup-lock-note {
  display: flex; gap: 11px; align-items: flex-start;
  background: #fffbeb; border: 1.5px solid #fcd34d; border-radius: 13px;
  padding: 12px 14px; margin: 4px 0 16px; font-size: 13.3px; color: #78350f; line-height: 1.85;
}
.setup-lock-note .material-icons { color: #d97706; flex: 0 0 auto; }
.setup-lock-note b { color: #92400e; }
.setup-miss { border-color: #f87171 !important; background: #fef2f2 !important; }

/* ═══════════════════════════════════════════════════════════════════════
   🎓 માધ્યમિક / ઉ.મા. નું LEAVING CERTIFICATE  (#lcTemplateSec)
   ───────────────────────────────────────────────────────────────────────
   GSHSEB શાળાઓના પ્રચલિત નમૂના પ્રમાણે : નારંગી ડબલ બોર્ડર, ઉપર SSC/HSC
   ઇન્ડેક્સ, ૧૩ મુદ્દા, ડાબી બાજુ ઊભું ચેતવણી-લખાણ.
   માપ A4 (794×1123 px @96dpi) — .lc-a4-page માંથી જ આવે છે.
   ⚠️ પ્રાથમિકના LC નું એકેય નિયમ અહીં નથી (અલગ prefix `seclc-`).
   ═══════════════════════════════════════════════════════════════════════ */
#lcTemplateSec { --sec-o:#E1701A; --sec-ink:#1f2937; --sec-line:#C2410C; }
.seclc { width:100%; height:100%; box-sizing:border-box; padding:10px;
         font-family:'Anek Gujarati', Arial, sans-serif; color:var(--sec-ink); background:#fff; }
.seclc-frame { position:relative; height:100%; box-sizing:border-box;
               border:2px solid var(--sec-o); outline:1px solid var(--sec-o); outline-offset:3px;
               padding:14px 16px 14px 46px;
               /* સહી છેક નીચે રહે અને પાનું ભરાય — નમૂના પ્રમાણે */
               display:flex; flex-direction:column; }
/* ડાબી બાજુનું ઊભું ચેતવણી-લખાણ */
.seclc-warn { position:absolute; left:6px; top:0; bottom:0; width:30px;
              writing-mode:vertical-rl; transform:rotate(180deg);
              display:flex; align-items:center; justify-content:center; text-align:center;
              font-size:8.5px; font-weight:600; color:var(--sec-line); line-height:1.5;
              border-right:1px solid var(--sec-o); padding:8px 2px; }
.seclc-idx { display:flex; justify-content:space-between; align-items:center;
             font-size:11.5px; font-weight:700; color:var(--sec-ink); margin-bottom:2px; }
.seclc-idx .mid { color:#111; }
.seclc-name { text-align:center; font-size:26px; font-weight:800; letter-spacing:.3px;
              color:#1a1a1a; line-height:1.15; margin:2px 0 3px; }
.seclc-reco { text-align:center; font-size:10.5px; font-weight:700; color:var(--sec-ink); }
/* ⚠️ frame હવે flex-column છે — inline-block ખેંચાઈ જાય છે, એટલે align-self:center */
.seclc-addr { text-align:center; font-size:12px; font-weight:600; margin-top:3px;
              border:1px solid var(--sec-o); border-radius:2px; padding:2px 14px;
              align-self:center; }
.seclc-title { text-align:center; margin:8px 0 6px; }
.seclc-title span { display:inline-block; background:var(--sec-o); color:#fff; font-weight:800;
                    font-size:14px; letter-spacing:1px; padding:3px 22px; border-radius:2px; }
.seclc-top { display:flex; justify-content:space-between; font-size:12.5px; margin:6px 0 2px; }
.seclc-top.one { justify-content:flex-start; }
.seclc-top b { color:#1d4ed8; font-weight:700; }
.seclc-tbl { width:100%; border-collapse:collapse; margin-top:6px; }
.seclc-tbl td { padding:12px 4px 5px; vertical-align:bottom; font-size:12.5px; }
.seclc-tbl td.n { width:22px; text-align:right; font-weight:700; }
.seclc-tbl td.l { width:270px; font-weight:600; line-height:1.25; }
.seclc-tbl td.l .sub { font-weight:500; font-size:10.5px; }
.seclc-tbl td.v { border-bottom:1px solid #9a9a9a; color:#1d4ed8; font-weight:700;
                  line-height:1.3; padding-bottom:2px; }
.seclc-cert { margin-top:12px; font-size:11.5px; font-weight:700; }
.seclc-prep { margin-top:8px; font-size:11.5px; font-weight:700; }
.seclc-sign { display:flex; justify-content:space-between; align-items:flex-end;
              margin-top:auto; padding-top:26px; font-size:12.5px; font-weight:700; }
