@font-face {
  font-family:"Readex Pro Arabic";
  src:url("/fonts/readex-pro-arabic-v27.woff2?v=readex-arabic-v27") format("woff2");
  font-style:normal;
  font-weight:300 800;
  font-display:swap;
}
* { box-sizing: border-box; }
:root { color-scheme: light; --navy:#123b6d; --blue:#1d6dac; --ink:#142b45; --muted:#667f98; --line:#d4e2ed; --surface:#fff; --green:#087d68; --gold:#b47b12; --danger:#9a3344; }
body { margin:0; background:radial-gradient(circle at 90% 0,#dfeefa 0,transparent 34%),#eef4f9; color:var(--ink); font-family:"Readex Pro Arabic","Segoe UI",Tahoma,Arial,sans-serif; font-size:16px; line-height:1.7; -webkit-font-smoothing:antialiased; }
button,input { font:inherit; }
.student-shell { width:min(1120px,calc(100% - 24px)); margin:18px auto 50px; }
.student-brand { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 18px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 10px 30px rgba(16,53,91,.07); }
.student-brand__identity { display:flex; min-width:0; align-items:center; gap:13px; color:var(--ink); text-decoration:none; }
.student-brand__copy { display:flex; min-width:0; flex-direction:column; }
.student-brand__copy small { color:var(--muted); font-size:.79rem; }
.student-brand__identity > div:last-child { display:flex; flex-direction:column; }
.student-brand__identity span { color:var(--muted); font-size:.79rem; }
.student-brand__mark { width:58px; height:58px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--line); border-radius:15px; background:#fff; }
.student-brand__mark img { display:block; width:50px; height:50px; object-fit:contain; }
.student-link-button { border:1px solid #c9d9e6; border-radius:11px; background:#f7fafc; color:#31536f; padding:8px 14px; cursor:pointer; font-weight:800; }
.student-brand__actions { display:flex; align-items:center; gap:9px; }
.student-brand__actions > a { border:1px solid #c9d9e6; border-radius:11px; background:#f7fafc; color:#31536f; padding:8px 14px; font-weight:800; text-decoration:none; }
.student-alert { margin:13px 0; padding:12px 15px; border:1px solid #efbdc4; border-radius:12px; background:#fff0f2; color:#92273a; }
.student-exam-card button { margin-top:8px; border:0; border-radius:12px; background:var(--navy); color:#fff; padding:13px 18px; cursor:pointer; font-weight:900; }
.student-welcome { display:flex; align-items:center; gap:15px; margin-top:18px; padding:22px; border-radius:20px; background:linear-gradient(135deg,#123b6d,#1c609c); color:#fff; box-shadow:0 14px 35px rgba(18,59,109,.18); }
.student-avatar { width:66px; height:66px; flex:0 0 66px; display:grid; place-items:center; border-radius:20px; background:rgba(255,255,255,.16); font-size:1.8rem; font-weight:900; }
.student-welcome span,.student-welcome p { margin:0; color:#d5e7f5; }
.student-welcome h1 { margin:2px 0; font-size:1.6rem; }
.student-year { margin-inline-start:auto; display:flex; flex-direction:column; min-width:220px; padding:11px 14px; border-radius:13px; background:rgba(255,255,255,.12); }
.student-profile { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:12px; }
.student-profile article { display:flex; min-height:92px; flex-direction:column; justify-content:center; padding:15px; border:1px solid var(--line); border-radius:15px; background:#fff; }
.student-profile span { color:var(--muted); font-size:.78rem; font-weight:750; }
.student-profile b { margin-top:3px; font-size:.94rem; }
.student-section { margin-top:18px; padding:22px; border:1px solid var(--line); border-radius:20px; background:rgba(255,255,255,.94); box-shadow:0 10px 28px rgba(16,53,91,.06); }
.student-section__header { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:16px; }
.student-section__header span { color:var(--blue); font-size:.78rem; font-weight:850; }
.student-section__header h2 { margin:0; font-size:1.35rem; }
.student-section__header p { margin:2px 0 0; color:var(--muted); font-size:.86rem; }
.student-count { min-width:48px; height:48px; display:grid; place-items:center; border-radius:15px; background:#e8f8f2; color:var(--green); font-size:1.25rem; }
.student-count.is-muted { background:#edf2f6; color:#536c83; }
.student-exams { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.student-exam-card { position:relative; overflow:hidden; padding:18px; border:1px solid #c9ddea; border-radius:17px; background:#fff; }
.student-exam-card::before { content:""; position:absolute; inset:0 0 auto; height:4px; background:var(--gold); }
.student-exam-card.is-open::before { background:var(--green); }
.student-exam-card header { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.student-exam-card__subject { color:var(--blue); font-size:.8rem; font-weight:850; }
.student-status { padding:4px 9px; border-radius:999px; background:#fff4d8; color:#795208; font-size:.72rem; font-weight:850; }
.is-open .student-status { background:#e5f7f1; color:#086d5c; }
.student-exam-card h3 { margin:10px 0 0; font-size:1.13rem; }
.student-exam-card__code { margin:0; color:#7a8fa2; font-size:.7rem; }
.student-exam-card dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:15px 0; }
.student-exam-card dl div { padding:9px; border-radius:10px; background:#f3f7fa; }
.student-exam-card dt { color:var(--muted); font-size:.68rem; }
.student-exam-card dd { margin:1px 0 0; font-size:.78rem; font-weight:850; }
.student-exam-card form,.student-exam-card button { width:100%; }
.student-empty { padding:42px 15px; border:1px dashed #c9dae6; border-radius:16px; background:#f8fbfd; text-align:center; }
.student-empty > div { width:52px; height:52px; display:grid; margin:0 auto 8px; place-items:center; border-radius:16px; background:#e6f7f1; color:var(--green); font-size:1.5rem; font-weight:900; }
.student-empty h3 { margin:0; }
.student-empty p { margin:4px 0 0; color:var(--muted); }
.student-empty.is-compact { padding:24px 15px; }
.student-history-callout { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:16px; margin-top:18px; padding:20px 22px; border:1px solid #c8dcec; border-radius:20px; background:linear-gradient(135deg,#fff,#f2f8fc); box-shadow:0 10px 28px rgba(16,53,91,.06); }
.student-history-callout__icon { width:56px; height:56px; display:grid; place-items:center; border-radius:16px; background:#e7f2fa; color:var(--blue); font-size:1.8rem; font-weight:900; }
.student-history-callout span,.student-results-heading span { color:var(--blue); font-size:.78rem; font-weight:850; }
.student-history-callout h2 { margin:0; font-size:1.2rem; }
.student-history-callout p { margin:2px 0 0; color:var(--muted); font-size:.84rem; }
.student-history-callout > a { border-radius:12px; background:var(--navy); color:#fff; padding:11px 16px; font-weight:900; text-decoration:none; white-space:nowrap; }
.student-results-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:18px; padding:20px 22px; border-radius:20px; background:linear-gradient(135deg,#123b6d,#1c609c); color:#fff; box-shadow:0 14px 35px rgba(18,59,109,.18); }
.student-results-heading > div:first-child span,.student-results-heading p { color:#d5e7f5; }
.student-results-heading h1 { margin:1px 0; font-size:1.45rem; }
.student-results-heading p { margin:0; }
.student-results-heading > div:last-child { min-width:150px; padding:10px 14px; border-radius:13px; background:rgba(255,255,255,.13); text-align:center; }
.student-results-heading > div:last-child span { display:block; color:#d5e7f5; }
.student-results-heading > div:last-child b { font-size:1.45rem; }
.student-results-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; margin-bottom:18px; padding:15px; border:1px solid var(--line); border-radius:15px; background:#f7fafc; }
.student-results-filters > div { display:flex; min-width:0; flex-direction:column; gap:5px; }
.student-results-filters label { color:#3f5d76; font-size:.76rem; font-weight:850; }
.student-results-filters select,.student-results-filters input { width:100%; height:43px; padding:7px 10px; border:1px solid #bfd3e2; border-radius:10px; background:#fff; color:var(--ink); }
.student-results-filters select:focus,.student-results-filters input:focus { outline:3px solid rgba(29,109,172,.13); border-color:var(--blue); }
.student-results-filters__actions { grid-column:1/-1; flex-direction:row !important; align-items:center; justify-content:flex-end; }
.student-results-filters__actions button,.student-results-filters__actions a { border-radius:10px; padding:9px 15px; cursor:pointer; font-weight:850; text-decoration:none; }
.student-results-filters__actions button { border:0; background:var(--navy); color:#fff; }
.student-results-filters__actions a { border:1px solid #bfd3e2; background:#fff; color:#31536f; }
.student-results-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:14px; background:#fff; }
.student-results-table { width:100%; min-width:920px; border-collapse:collapse; }
.student-results-table th,.student-results-table td { padding:12px 11px; border-bottom:1px solid #e2ebf2; text-align:right; vertical-align:middle; }
.student-results-table th { background:#f0f6fa; color:#375872; font-size:.76rem; white-space:nowrap; }
.student-results-table tbody tr:last-child td { border-bottom:0; }
.student-results-table td { font-size:.82rem; }
.student-results-table td:first-child span,.student-results-table td:first-child b,.student-results-table td:first-child small,.student-results-table td:nth-child(4) small,.student-results-table td:last-child small { display:block; }
.student-results-table td:first-child span { color:var(--blue); font-size:.72rem; font-weight:850; }
.student-results-table td:first-child b { font-size:.9rem; }
.student-results-table small { color:var(--muted); font-size:.68rem; }
.student-result-badge { display:inline-block; padding:5px 9px; border-radius:999px; background:#fff0f2; color:var(--danger); font-weight:850; white-space:nowrap; }
.student-result-badge.is-passed { background:#e7f8f2; color:var(--green); }
.student-result-badge.is-pending { background:#edf2f6; color:#536c83; }
.student-pagination { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:16px; }
.student-pagination a,.student-pagination span { min-width:78px; padding:8px 12px; border:1px solid #bfd3e2; border-radius:10px; background:#fff; color:#285777; font-weight:850; text-align:center; text-decoration:none; }
.student-pagination .is-disabled { opacity:.48; }
.student-result-list { display:grid; gap:9px; }
.student-result-row { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(120px,.6fr) minmax(120px,.6fr) auto; align-items:center; gap:14px; padding:14px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.student-result-row h3 { margin:1px 0; font-size:.98rem; }
.student-result-row__title span,.student-result-row__title small,.student-result-row__score span,.student-result-row__score small,.student-result-row__state small { display:block; color:var(--muted); font-size:.72rem; }
.student-result-row__score b { font-size:1.1rem; }
.student-result-row__state { padding:7px 10px; border-radius:10px; background:#fff0f2; color:var(--danger); }
.student-result-row__state.is-passed { background:#e7f8f2; color:var(--green); }
.student-result-row__state em { display:block; color:#85610f; font-size:.68rem; font-style:normal; font-weight:850; }
.student-secondary-button { border:1px solid #bfd4e4; border-radius:10px; background:#f5f9fc; color:#285777; padding:8px 12px; cursor:pointer; font-weight:850; white-space:nowrap; }
@media (max-width:820px) {
  .student-profile { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .student-exams { grid-template-columns:1fr; }
  .student-result-row { grid-template-columns:1fr 1fr; }
  .student-result-row form { text-align:left; }
  .student-results-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) {
  .student-shell { width:min(100% - 14px,1120px); margin-top:8px; }
  .student-brand { align-items:flex-start; }
  .student-brand__mark { width:48px; height:48px; }
  .student-brand__mark img { width:42px; height:42px; }
  .student-brand__identity strong { font-size:.84rem; }
  .student-brand__actions { align-items:stretch; flex-direction:column; }
  .student-brand__actions > a,.student-brand__actions button { width:100%; padding:7px 9px; font-size:.76rem; text-align:center; }
  .student-welcome { align-items:flex-start; flex-wrap:wrap; }
  .student-year { width:100%; margin-inline-start:0; }
  .student-profile { grid-template-columns:1fr; }
  .student-section { padding:16px; }
  .student-exam-card dl { grid-template-columns:1fr; }
  .student-result-row { grid-template-columns:1fr; }
  .student-result-row form,.student-secondary-button { width:100%; }
  .student-history-callout { grid-template-columns:auto minmax(0,1fr); padding:16px; }
  .student-history-callout > a { grid-column:1/-1; text-align:center; }
  .student-results-heading { align-items:stretch; flex-direction:column; padding:17px; }
  .student-results-heading > div:last-child { min-width:0; text-align:right; }
  .student-results-filters { grid-template-columns:1fr; }
  .student-results-filters__actions { align-items:stretch; flex-direction:column !important; }
  .student-results-filters__actions button,.student-results-filters__actions a { width:100%; text-align:center; }
  .student-results-table-wrap { overflow:visible; border:0; background:transparent; }
  .student-results-table { min-width:0; border-collapse:separate; border-spacing:0 10px; }
  .student-results-table thead { display:none; }
  .student-results-table tbody,.student-results-table tr,.student-results-table td { display:block; width:100%; }
  .student-results-table tr { overflow:hidden; border:1px solid var(--line); border-radius:14px; background:#fff; }
  .student-results-table td { display:grid; grid-template-columns:112px minmax(0,1fr); gap:10px; padding:9px 12px; border-bottom:1px solid #e7eef4; }
  .student-results-table td::before { content:attr(data-label); color:var(--muted); font-size:.7rem; font-weight:850; }
  .student-results-table td:first-child { padding-top:13px; }
  .student-results-table td:last-child { padding-bottom:13px; border-bottom:0; }
  .student-pagination { justify-content:space-between; gap:7px; }
  .student-pagination b { font-size:.75rem; }
}
