   ██████  STUDENT DAILY PAGE — CORE FEATURE ██████
═══════════════════════════════════════════════════════ */
.daily-layout { 
  display: grid; 
  grid-template-columns: 280px 1fr; 
  gap: 0; 
  height: calc(100vh - 80px); /* Fill remaining space exactly */
  overflow: hidden;
}

/* LEFT: Student selector panel (Middle Column) */
.stu-panel {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  background: rgba(255,255,255,0.3);
  border-left: 1px solid rgba(0,0,0,.08);
}
.stu-panel::-webkit-scrollbar { width:4px; }
.stu-panel::-webkit-scrollbar-thumb { background:var(--gp); border-radius:2px; }
.sp-toolbar {
  position: sticky; top: 0; background: var(--cream);
  z-index: 10; padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.sp-search {
  padding:10px 14px; border:1.5px solid #d8e8d0;
  border-radius:10px; width:100%;
  font-family:'Tajawal',sans-serif; font-size:13.5px;
  margin-bottom:8px; outline:none; transition:all .2s;
  background: white;
}
.sp-search:focus { border-color:var(--g); box-shadow:0 0 0 3px rgba(30,107,64,.08); }
.sp-sort-row { display: flex; gap: 5px; align-items: center; }
.sp-sort-btn {
  padding: 5px 10px; border-radius: 6px; border: 1.5px solid #eaeee8;
  background: white; font-size: 11px; font-weight: 700; cursor: pointer;
  font-family: 'Tajawal', sans-serif; transition: all .2s; color: var(--gray);
}
.sp-sort-btn:hover { border-color: var(--gp); color: var(--gd); }
.sp-sort-btn.active { background: var(--gd); border-color: var(--gd); color: white; }
.sp-card {
  background:white; border:1.5px solid #eaeee8;
  border-radius:11px; padding:12px 14px;
  margin-bottom:8px; cursor:pointer;
  transition:all .2s;
  display:flex; align-items:center; gap:11px;
}
.sp-card:hover { border-color:var(--gp); background:#f5fbf7; transform:translateX(-2px); }
.sp-card.active {
  border-color:var(--g); background:linear-gradient(135deg,var(--gb),#f0faf4);
  box-shadow:0 4px 14px rgba(30,107,64,.14);
}
.sp-avt {
  width:38px; height:38px; border-radius:50%;
  background:var(--gp); display:flex; align-items:center;
  justify-content:center; font-weight:800; font-size:14px;
  color:var(--gd); flex-shrink:0;
}
.sp-card.active .sp-avt { background:var(--g); color:white; }
.sp-name { font-size:13px; font-weight:700; color:var(--gd); margin-bottom:3px; }
.sp-meta { font-size:10.5px; color:var(--gray); }
.sp-bar { height:3px; background:#e0ebe3; border-radius:2px; margin-top:5px; overflow:hidden; }
.sp-bar-f { height:100%; background:var(--glt); border-radius:2px; }

/* RIGHT: Daily content (Main Column) */
.daily-main { 
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  background: var(--cream);
}

/* ── Student Identity Card ── */
.stu-identity {
  background:linear-gradient(135deg, var(--gd) 0%, var(--gm) 45%, var(--g) 100%);
  border-radius:var(--radius); padding:24px 28px;
  margin-bottom:18px; position:relative; overflow:hidden;
}
.stu-identity::before {
  content:'';
  position:absolute; inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stu-identity::after {
  content:'﷽';
  position:absolute; left:24px; top:50%;
  transform:translateY(-50%);
  font-family:'Amiri',serif; font-size:52px;
  color:rgba(255,255,255,.04);
  white-space:nowrap; pointer-events:none;
}
.si-top { display:flex; align-items:center; gap:20px; position:relative; }
.si-avatar {
  width:70px; height:70px;
  background:linear-gradient(135deg, var(--gold), var(--gold-l));
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:26px; font-weight:800; color:var(--gd);
  box-shadow:0 6px 20px rgba(184,137,28,.5);
  flex-shrink:0; border:3px solid rgba(255,255,255,.2);
}
.si-info { flex:1; }
.si-name { font-size:22px; font-weight:800; color:white; margin-bottom:7px; }
.si-badges { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:10px; }
.si-badge {
  padding:3px 12px; border-radius:20px;
  font-size:11px; font-weight:700;
}
.si-badge-gold  { background:var(--gold); color:var(--gd); }
.si-badge-glass { background:rgba(255,255,255,.15); color:white; border:1px solid rgba(255,255,255,.25); }
.si-badge-mode-b{ background:#2d8f55; color:white; }
.si-badge-mode-r{ background:#1a6fa8; color:white; }
.si-badge-mode-m{ background:#6c3483; color:white; }
.si-stats { display:flex; gap:20px; }
.si-stat { text-align:center; }
.si-stat-n { font-size:20px; font-weight:800; color:var(--gold-l); }
.si-stat-l { font-size:9.5px; color:rgba(255,255,255,.6); margin-top:1px; }
.si-actions {
  margin-top:14px; display:flex; gap:9px; flex-wrap:wrap; position:relative;
}
.si-btn {
  padding:7px 16px; border-radius:8px; border:none; cursor:pointer;
  font-family:'Tajawal',sans-serif; font-size:12px; font-weight:700;
  transition:all .2s; display:flex; align-items:center; gap:5px;
}
.si-btn-wa  { background:#25d366; color:white; }
.si-btn-wa:hover { background:#1ebe58; }
.si-btn-print { background:rgba(255,255,255,.15); color:white; border:1px solid rgba(255,255,255,.25); }
.si-btn-print:hover { background:rgba(255,255,255,.25); }
.si-btn-edit { background:var(--gold); color:var(--gd); }
.si-btn-edit:hover { background:var(--gold-l); }

/* ── Info Tabs ── */
.daily-tabs {
  display:flex; gap:3px; background:#edf3ea;
  border-radius:10px; padding:4px; margin-bottom:18px;
}
.d-tab {
  flex:1; padding:8px 12px; border:none;
  background:transparent; border-radius:7px; cursor:pointer;
  font-family:'Tajawal',sans-serif; font-size:12.5px;
  font-weight:700; color:#666; transition:all .2s;
}
.d-tab.active {
  background:white; color:var(--gd);
  box-shadow:0 2px 9px rgba(0,0,0,.1);
}
.dtab-content { display:none; }
.dtab-content.active { display:block; animation:fadeIn .2s ease; }

/* ── TODAY MISSION BOX ── */
.mission-grid { 
  display:grid; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  gap:16px; 
  margin-bottom:20px; 
}
.mission-box {
  background:white; border-radius:12px;
  padding:16px; border:2px solid #eaeee8;
  transition:all .25s; position:relative; overflow:hidden;
}
.mission-box.active-m { border-color:var(--g); }
.mission-box.inactive { opacity:.45; border-style:dashed; }
.mission-box::before {
  content:''; position:absolute; top:0; right:0;
  width:100%; height:3px; border-radius:3px 3px 0 0;
}
.mission-box.type-hifz::before  { background:linear-gradient(90deg,#4aaa6e,#2d8f55); }
.mission-box.type-link::before  { background:linear-gradient(90deg,#9b59b6,#6c3483); }
.mission-box.type-review::before{ background:linear-gradient(90deg,#2e86c1,#1a6fa8); }
.mb-icon { font-size:22px; margin-bottom:8px; }
.mb-type { font-size:10px; font-weight:800; color:var(--gray); text-transform:uppercase; letter-spacing:1px; margin-bottom:5px; }
.mb-sura { font-family:'Amiri',serif; font-size:16px; font-weight:700; color:var(--gd); margin-bottom:3px; }
.mb-range { font-size:11.5px; color:var(--gray); }
.mb-status {
  margin-top:10px; display:flex; gap:6px;
}
.mb-btn {
  flex:1; padding:6px; border-radius:7px; border:none; cursor:pointer;
  font-family:'Tajawal',sans-serif; font-size:11px; font-weight:700;
  transition:all .2s;
}
.mb-approve { background:var(--gb); color:var(--g); }
.mb-approve:hover { background:var(--g); color:white; }
.mb-redo { background:#fde8e8; color:var(--red); }
.mb-redo:hover { background:var(--red); color:white; }

/* ── JUZZ MAP ── */
.juzz-section { background:white; border-radius:12px; padding:16px; margin-bottom:18px; border:1px solid #eaeee8; }
.juzz-sec-title { font-size:12px; font-weight:800; color:var(--gd); margin-bottom:10px; display:flex; align-items:center; gap:8px; }
.juzz-sec-title::before { content:''; width:3px; height:14px; background:var(--gold-l); border-radius:2px; }
.jg { display:grid; grid-template-columns:repeat(10,1fr); gap:5px; }
.jb {
  aspect-ratio:1; border-radius:6px;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  font-size:9px; font-weight:800; border:1.5px solid;
  cursor:default; transition:transform .15s;
  position:relative;
}
.jb:hover { transform:scale(1.1); z-index:2; }
.jb-done { background:var(--g); border-color:var(--gm); color:white; }
.jb-cur  { background:var(--gold); border-color:var(--gold); color:var(--gd);
           box-shadow:0 0 0 3px rgba(184,137,28,.25); animation:pulse 2s infinite; }
.jb-next { background:white; border-color:#d0ddc8; color:var(--gray); }
.jb-lock { background:#f4f4f2; border-color:#e0e0dc; color:#ccc; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 3px rgba(184,137,28,.25)} 50%{box-shadow:0 0 0 6px rgba(184,137,28,.15)} }
.jb-lbl { font-size:6px; margin-top:1px; opacity:.75; }
.jg-legend { display:flex; gap:12px; margin-top:8px; font-size:9.5px; color:var(--gray); flex-wrap:wrap; }
.jg-legend span { display:flex; align-items:center; gap:4px; }

/* ── DETAIL TABLES ── */
.dtbl { width:100%; border-collapse:collapse; font-size:12px; }
.dtbl thead tr { background:var(--gd); }
.dtbl thead th { color:white; padding:8px 10px; text-align:center; font-size:11px; font-weight:700; }
.dtbl thead th:first-child { border-radius:0 7px 7px 0; }
.dtbl thead th:last-child  { border-radius:7px 0 0 7px; }
.dtbl tbody tr { border-bottom:1px solid #eaeee8; }
.dtbl tbody tr:nth-child(even) { background:#f8fbf8; }
.dtbl tbody td { padding:8px 10px; text-align:center; color:var(--mid); }
.sura-cell { font-family:'Amiri',serif; font-size:13px; font-weight:700; }
.chk {
  width:20px; height:20px; border-radius:4px;
  border:1.5px solid #cdd8c5;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:10px; background:white;
}
.chk.ok { background:var(--g); border-color:var(--g); color:white; }
.rep-row { display:flex; gap:2px; justify-content:center; flex-wrap:wrap; }
.rep-dot {
  width:16px; height:16px; border-radius:3px;
  border:1.5px solid #cdd8c5;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:7px; color:#aaa;
}
.rep-dot.on { background:var(--gp); border-color:var(--glt); color:var(--g); }

/* ── PROFILE TAB ── */
.profile-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.profile-item { background:#f8fbf8; border-radius:9px; padding:13px; }
.pi-label { font-size:10.5px; color:var(--gray); margin-bottom:4px; font-weight:600; }
.pi-value { font-size:14px; font-weight:800; color:var(--gd); }

/* ── HISTORY TAB ── */
.timeline { display:flex; flex-direction:column; gap:0; }
.tl-item { display:flex; gap:14px; align-items:stretch; }
.tl-dot-col { display:flex; flex-direction:column; align-items:center; gap:0; flex-shrink:0; }
.tl-dot {
  width:14px; height:14px; border-radius:50%;
  background:var(--g); border:2px solid white;
  box-shadow:0 0 0 3px var(--gp); flex-shrink:0; margin-top:14px;
}
.tl-dot.gold { background:var(--gold); box-shadow:0 0 0 3px var(--gold-p); }
.tl-line { width:2px; background:var(--gp); flex:1; }
.tl-content { flex:1; padding:10px 0 18px; }
.tl-date { font-size:10px; color:var(--gray); margin-bottom:3px; }
.tl-text { font-size:13px; font-weight:600; color:var(--gd); }
.tl-sub  { font-size:11px; color:var(--gray); margin-top:2px; }

/* ── NOTES TAB ── */
.note-compose {
  background:#f8fbf8; border:1.5px solid #d8e8d0;
  border-radius:10px; padding:14px; margin-bottom:14px;
}
.note-list { display:flex; flex-direction:column; gap:10px; }
.note-item { background:white; border-radius:9px; padding:13px; border:1px solid #eaeee8; }
.ni-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.ni-author { font-size:11px; font-weight:700; color:var(--g); }
.ni-date   { font-size:10px; color:var(--gray); }
.ni-text   { font-size:13px; color:var(--mid); line-height:1.6; }
.ni-tag    { margin-top:6px; }

/* ── PRINT CARD ── */
.print-card-wrap { display:none; }

/* ═══════════════════════════════════════
   DASHBOARD PAGE
═══════════════════════════════════════ */
.stats-row { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:22px; }
.stat {
  background:var(--ww); border-radius:var(--radius); padding:20px;
  border:1px solid rgba(30,107,64,.09); box-shadow:var(--shadow);
  position:relative; overflow:hidden;
}
.stat::after { content:''; position:absolute; top:0; right:0; width:4px; height:100%; background:var(--g); }
.stat.gold::after  { background:var(--gold); }
.stat.dark::after  { background:var(--gd); }
.stat.light::after { background:var(--glt); }
.stat-lbl { font-size:11.5px; color:var(--gray); margin-bottom:5px; }
.stat-val { font-size:30px; font-weight:800; color:var(--gd); }
.stat-sub { font-size:11px; color:var(--glt); margin-top:2px; }
.stat-ico { position:absolute; bottom:14px; left:14px; font-size:28px; opacity:.1; }
.modes-row { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:22px; }
.mode-card {
  border-radius:12px; padding:18px; text-align:center; cursor:pointer;
  transition:all .25s; border:2px solid transparent;
}
.mode-card:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(0,0,0,.12); }
.mode-card.mc-b { background:linear-gradient(135deg,#e3f4ea,#c8ecd6); }
.mode-card.mc-r { background:linear-gradient(135deg,#e3eeff,#c8d8ff); }
.mode-card.mc-m { background:linear-gradient(135deg,#f0e6ff,#e0ccff); }
.mc-count { font-size:32px; font-weight:800; }
.mc-b .mc-count { color:#1a5c35; } .mc-r .mc-count { color:#1a3a8a; } .mc-m .mc-count { color:var(--purple); }
.mc-label { font-size:13px; font-weight:700; color:var(--gd); }
.mc-sub   { font-size:11px; color:var(--gray); margin-top:2px; }

/* Quick students table on dashboard */
.stu-row-item {
  display:flex; align-items:center; gap:14px;
  padding:11px 14px; border-radius:10px; cursor:pointer;
  transition:background .2s; margin-bottom:4px;
}
.stu-row-item:hover { background:var(--gb); }
.sri-avt {
  width:36px; height:36px; border-radius:50%; background:var(--gp);
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:13px; color:var(--gd); flex-shrink:0;
}
.sri-name { font-size:13px; font-weight:700; color:var(--gd); }
.sri-sub  { font-size:11px; color:var(--gray); }
.sri-bar  { flex:1; max-width:100px; }
.sri-pct  { font-size:11px; font-weight:700; color:var(--g); min-width:32px; text-align:left; }
.sri-actions { display:flex; gap:5px; }

/* ═══════════════════════════════════════
   REGISTER PAGE
═══════════════════════════════════════ */
.reg-card { max-width:780px; margin:0 auto; }

/* ═══════════════════════════════════════
   CIRCLES PAGE
═══════════════════════════════════════ */
.circles-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.circle-card {
  background:white; border-radius:var(--radius); padding:20px;
  border:1.5px solid #e0ebe3; cursor:pointer; transition:all .25s;
}
.circle-card:hover { border-color:var(--g); transform:translateY(-3px); box-shadow:0 10px 28px rgba(30,107,64,.14); }
.cc-icon { font-size:28px; margin-bottom:10px; }
.cc-name { font-size:15px; font-weight:800; color:var(--gd); }
.cc-time { font-size:12px; color:var(--gray); margin:4px 0 10px; }
.cc-teacher { font-size:12px; font-weight:600; color:var(--g); }
.cc-count { display:flex; gap:8px; margin-top:12px; }

/* ═══════════ PRINT ═══════════ */
@media print {
  body { background:white; }
  .sidebar, .topbar, .stu-panel, .daily-tabs,
  .si-actions, .mb-status, .toast { display:none !important; }
  .main { margin-right:0; }
  .content { padding:8px; }
  .daily-layout { display:block; }
  .daily-main { width:100%; }
  .stu-identity { background:none; border:2px solid #333; color:black; }
  .si-name, .si-stat-n { color:black; }
  .si-stat-l { color:#555; }
  .stu-identity::after { display:none; }
  .d-tab { display:none; }
  .dtab-content { display:block !important; }
  .mission-box.inactive { display:none; }
}
@page { size:A4; margin:8mm; }

@media (max-width:900px) {
  body {
    grid-template-columns: 1fr;
    grid-template-areas: "main";
  }
  .sidebar { 
    position: fixed;
    top: 0; right: 0;
    transform: translateX(100%); 
    width: 280px; 
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0,0,0,.3);
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-right: 0; width: 100%; }
  .daily-layout { flex-direction:column; }
  .stu-panel { width:100%; position:static; height:auto; border-left:none; }
  .daily-main { width:100%; height:auto; overflow:visible; padding-left:0; }
  .stats-row { grid-template-columns:1fr 1fr; }
}

/* ═══ REP DOTS INTERACTIVE ═══ */
.rep-row { display:flex; gap:3px; flex-wrap:wrap; }
.rep-dot {
  width:22px; height:22px; border-radius:5px;
  border:1.5px solid #cdd8c5;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:9px; color:#aaa; cursor:pointer;
  transition:all .15s; user-select:none;
}
.rep-dot:hover { border-color:var(--glt); background:#e8f5ed; transform:scale(1.1); }
.rep-dot.on { background:var(--g); border-color:var(--gm); color:white; font-weight:800; }
.rep-dot.on:hover { background:var(--gm); }

/* ═══ LEADERBOARD ═══ */
.lb-row { display:flex; align-items:center; gap:12px; padding:11px 14px; border-radius:10px; margin-bottom:5px; transition:background .2s; }
.lb-row:hover { background:var(--gb); }
.lb-rank { width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:800; flex-shrink:0; }
.lb-r1 { background:var(--gold); color:var(--gd); }
.lb-r2 { background:#b8b8b8; color:white; }
.lb-r3 { background:#cd7f32; color:white; }
.lb-rn { background:#f0f4f0; color:var(--gray); font-size:11px; }

/* ═══ ABSENCE ALERT ═══ */
.abs-alert { background:#fff5f5; border:1.5px solid #fcc; border-right:4px solid var(--red); border-radius:10px; padding:10px 14px; margin-bottom:8px; display:flex; align-items:center; gap:10px; font-size:12px; cursor:pointer; }
.abs-alert:hover { background:#ffeaea; }

/* ═══ WEEKLY GRID ═══ */
.wk-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:8px; margin-top:12px; }
.wk-day { background:white; border-radius:10px; padding:10px 6px; border:1.5px solid #e0ebe3; min-height:90px; }
.wk-day.today { border-color:var(--g); background:var(--gb); }
.wk-day-name { font-size:10px; font-weight:800; color:var(--gd); margin-bottom:6px; text-align:center; }
.wk-task { font-size:9px; padding:2px 5px; border-radius:4px; margin-bottom:3px; }

/* ═══ MONTHLY ATT GRID ═══ */
.mon-row { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid #f0f4f0; }
.mon-days { display:flex; gap:2px; flex-wrap:wrap; flex:1; }
.mon-cell { width:18px; height:18px; border-radius:3px; display:flex; align-items:center; justify-content:center; font-size:8px; font-weight:700; cursor:pointer; transition:transform .1s; }
.mon-cell:hover { transform:scale(1.2); }
.mc-p { background:var(--g); color:white; }
.mc-a { background:var(--red); color:white; }
.mc-e { background:var(--gold); color:var(--gd); }
.mc-n { background:#f0f0ee; color:#ccc; }


/* ═══ QURAN VIEWER ═══ */
.quran-viewer-wrap {
  background: #fdfaf3;
  border: 1px solid #e8dfc0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
}
.quran-section-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800;
  letter-spacing: .5px; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1.5px solid;
}
.qs-hifz  { color: #1a5c35; border-color: #9fd4b2; }
.qs-link  { color: #6c3483; border-color: #d0b0f0; }
.qs-review{ color: #1a3a8a; border-color: #b0c8f0; }

.aya-container {
  direction: rtl; text-align: justify;
  line-height: 2.6; padding: 14px 18px;
  border-radius: 10px;
  font-family: 'Amiri', serif;
}
.aya-container.hifz-bg  { background: rgba(30,107,64,.06); border: 1.5px solid rgba(30,107,64,.15); }
.aya-container.link-bg  { background: rgba(108,52,131,.05); border: 1.5px solid rgba(108,52,131,.12); }
.aya-container.review-bg{ background: rgba(26,58,138,.05); border: 1.5px solid rgba(26,58,138,.12); }

.aya-word {
  display: inline;
  font-size: 22px;
  color: #1a1a1a;
  transition: background .15s;
  border-radius: 3px;
  padding: 0 1px;
}
.aya-highlighted {
  background: rgba(184,137,28,.22);
  border-radius: 4px;
  padding: 2px 3px;
}
.aya-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: var(--gold); color: var(--gd);
  border-radius: 50%; font-size: 10px; font-weight: 800;
  margin: 0 4px; vertical-align: middle;
  font-family: 'Tajawal', sans-serif;
  flex-shrink: 0;
}
.aya-loading {
  text-align: center; padding: 28px;
  color: var(--gray); font-size: 13px;
  font-family: 'Tajawal', sans-serif;
}
.aya-loading .spin {
  display: inline-block;
  width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid var(--gp);
  border-top-color: var(--g);
  animation: spin .8s linear infinite;
  margin-bottom: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.aya-error {
  text-align: center; padding: 20px;
  background: #fff8f0; border: 1px solid #f0d0a0;
  border-radius: 10px; font-family: 'Tajawal', sans-serif;
}
.quran-nav-links {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.basmalah {
  text-align: center;
  font-family: 'Amiri', serif;
  font-size: 24px; color: var(--gd);
  margin-bottom: 12px;
  opacity: .85;
}
.surah-title {
  text-align: center;
  font-family: 'Amiri', serif;
  font-size: 18px; font-weight: 700;
  color: var(--g); margin-bottom: 16px;
  padding: 8px; background: var(--gb);
  border-radius: 8px;
}


/* ═══ STAFF MANAGEMENT ═══ */
.staff-role-badge {
  display:inline-flex; align-items:center; gap:4px;
  font-size:10px; padding:3px 9px; border-radius:10px; font-weight:700;
}
#staff-view-container .card:hover { transform:translateY(-1px); box-shadow:0 4px 16px rgba(0,0,0,.08); transition:all .2s; }

/* ═══ ENROLLMENT WIZARD ═══ */
.step-dot {
  width:32px; height:32px; border-radius:50%;
  background:#e0e0e0; color:#999;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:800; flex-shrink:0;
  transition:all .3s; position:relative; z-index:2;
}
.step-dot.active-step {
  background:var(--g); color:white;
  box-shadow: 0 0 0 4px rgba(30,107,64,.15);
}
.step-dot.done-step {
  background:var(--g); color:white;
}
.step-dot.done-step::after {
  content:'✓'; position:absolute; font-size:14px;
}
.step-line {
  flex:1; height:2px; background:#e0e0e0; transition:background .3s;
}
.step-line.active-line { background:var(--g); }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* بطاقة مرحلة القبول */
.enroll-stage-card {
  border-radius:12px; padding:12px 16px; margin-bottom:10px;
  display:flex; align-items:center; gap:12px;
  border:1.5px solid; cursor:pointer; transition:all .2s;
}
.stage-pending  { border-color:#f0d080; background:#fffdf0; }
.stage-placed   { border-color:#b0c8f0; background:#f0f4ff; }
.stage-trial    { border-color:#f0c080; background:#fff8f0; }
.stage-approved { border-color:var(--gp); background:#e8f5ed; }
.stage-rejected { border-color:#f0b0b0; background:#fff5f5; }

/* ═══ QURAN LINK BTN ═══ */
.quran-link { display:inline-flex; align-items:center; gap:6px; padding:7px 14px; border-radius:8px; background:linear-gradient(135deg,#1a3a8a,#2e86c1); color:white; font-size:11px; font-weight:700; border:none; cursor:pointer; text-decoration:none; transition:all .2s; }
.quran-link:hover { opacity:.85; transform:translateY(-1px); }

/* ═══ VOCABULARY TAB (GHARIB AL-QURAN) ═══ */
.vocab-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: start;
}
.vocab-ayat-col {
  background: #fdfaf3;
  border: 1.5px solid #e8dfc0;
  border-radius: 14px;
  padding: 24px;
  min-height: 400px;
}
.vocab-list-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vocab-item {
  background: white;
  border-radius: 12px;
  padding: 14px 18px;
  border: 1.5px solid #eaeee8;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.vocab-item::after { 
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; 
  width: 4px; background: var(--gold); opacity: 0.6;
}
.vocab-item:hover {
  transform: translateX(-4px);
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(184,137,28,.1);
}
.vocab-word-base {
  font-family: 'Amiri', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gd);
}
.vocab-meaning {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.5;
}
.vocab-meta {
  font-size: 10px;
  color: #bbb;
  margin-top: 4px;
}

/* Coloring the full word including prefixes/suffixes as requested */
.vocab-highlight {
  color: var(--gold);
  font-weight: 800;
  text-decoration: underline dotted var(--gold);
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .vocab-layout { grid-template-columns: 1fr; }
}

@media print {
  .vocab-layout { grid-template-columns: 1fr; gap: 15px; }
  .vocab-item { border: 1px solid #ccc; break-inside: avoid; }
}