/* المخيم التدريبي — أنماط مشتركة لصفحات الطالب (معزولة عن بقية المنصة) */
:root { --bg:#F5F7FB; --paper:#fff; --ink:#16233F; --ink-soft:#5C6B85; --gold:#F2A93C; --gold-soft:#FDECC8; --teal:#4C8FA0; --teal-soft:#DCEEF2; --green:#4C8F6A; --green-soft:#DEEEE3; --red:#C9686B; --red-soft:#F6DEDF; --border:#DCE3EE; --shadow:0 10px 30px rgba(22,35,63,.08); }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:Inter, "Noto Naskh Arabic", sans-serif; line-height:1.8; }
nav { background:var(--paper); border-bottom:1px solid var(--border); } .nav-row { display:flex; align-items:center; justify-content:space-between; padding:10px 0; gap:10px; }
.wrap { max-width:900px; margin:0 auto; padding:0 16px 60px; }
.home-link { color:var(--ink-soft); text-decoration:none; font-size:14px; border:1.5px solid var(--border); border-radius:10px; padding:6px 12px; background:var(--paper); }
.hidden { display:none !important; } .center { text-align:center; } .muted { color:var(--ink-soft); font-size:14px; } .muted a { color:var(--teal); }
.box { background:var(--paper); border:1px solid var(--border); border-radius:20px; padding:34px 22px; box-shadow:var(--shadow); margin:40px 0; } .box .ic { font-size:44px; } .box h2 { margin:6px 0; }
.head { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin:20px 0 14px; flex-wrap:wrap; } h1 { font-size:26px; margin:4px 0 2px; } h2 { font-size:18px; margin:0 0 10px; }
.eyebrow { display:inline-block; background:var(--gold-soft); color:#7A4B00; font-weight:700; font-size:13px; padding:3px 12px; border-radius:999px; }
.tiles { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:14px; } @media (max-width:640px) { .tiles { grid-template-columns:repeat(2,1fr); } }
.tile { background:var(--paper); border:1px solid var(--border); border-radius:14px; padding:12px; text-align:center; box-shadow:var(--shadow); } .tile b { display:block; font-size:24px; color:var(--teal); } .tile span { font-size:12.5px; color:var(--ink-soft); }
.card { background:var(--paper); border:1px solid var(--border); border-radius:16px; padding:16px 18px; box-shadow:var(--shadow); margin-bottom:14px; }
.card-head { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; } .daynav { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:700; }
.task { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); } .task:last-child { border-bottom:0; } .task.done { opacity:.75; }
.task .ti { width:40px; height:40px; border-radius:12px; background:var(--bg); display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.task .tx { flex:1; min-width:0; } .task .tx b { display:block; font-size:15px; } .task .tx small { color:var(--ink-soft); font-size:12.5px; } .task .ta { display:flex; gap:6px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.btn { display:inline-block; font-family:inherit; font-weight:700; font-size:14px; padding:9px 16px; border-radius:11px; border:0; cursor:pointer; background:var(--ink); color:#fff; text-decoration:none; text-align:center; }
.btn.gold { background:var(--gold); color:var(--ink); } .btn.ghost { background:var(--paper); color:var(--ink); border:1.5px solid var(--border); } .btn.sm { padding:6px 12px; font-size:13px; } .btn:disabled { opacity:.5; cursor:default; }
.pill { display:inline-block; font-size:12px; font-weight:700; padding:2px 10px; border-radius:999px; background:var(--bg); color:var(--ink-soft); border:1px solid var(--border); } .pill.ok { background:var(--green-soft); color:#1E6E4A; border-color:transparent; } .pill.gold { background:var(--gold-soft); color:#7A4B00; border-color:transparent; } .pill.red { background:var(--red-soft); color:#8A2F32; border-color:transparent; }
input[type=text] { font-family:inherit; font-size:15px; padding:9px 12px; border:1.5px solid var(--border); border-radius:10px; flex:1; min-width:0; } .row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; } .row.center { justify-content:center; }
.note { font-size:13px; margin-top:8px; min-height:18px; } .note.ok { color:var(--green); font-weight:700; } .note.bad { color:var(--red); }
/* الاختبار والتدريب */
.topbar { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 0; font-size:13.5px; color:var(--ink-soft); flex-wrap:wrap; } .timer { font-weight:800; font-size:16px; color:var(--ink); background:var(--paper); border:1.5px solid var(--border); border-radius:10px; padding:4px 12px; } .timer.warn { color:#8A2F32; border-color:var(--red); }
.prog { height:8px; background:#E6EAF2; border-radius:99px; overflow:hidden; margin-bottom:14px; } .prog i { display:block; height:100%; background:linear-gradient(90deg,var(--teal),var(--green)); transition:width .3s; }
.q { font-size:17px; font-weight:700; margin:0 0 12px; line-height:1.75; } .q u { text-underline-offset:3px; } .passage { font-weight:400; font-size:15px; background:var(--bg); border:1px solid var(--border); border-radius:12px; padding:12px 14px; margin-bottom:12px; max-height:260px; overflow:auto; }
.opts { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:12px; } @media (max-width:560px) { .opts { grid-template-columns:1fr; } }
.o { border:1.5px solid var(--border); border-radius:12px; padding:10px 12px; font-size:15px; display:flex; gap:10px; align-items:center; background:var(--paper); font-family:inherit; text-align:right; cursor:pointer; color:var(--ink); } .o span { width:26px; height:26px; border-radius:50%; background:var(--bg); display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; flex-shrink:0; }
.o.sel { border-color:var(--ink); background:#EEF1F7; } .o.sel span { background:var(--ink); color:#fff; } .o.ok { border-color:var(--green); background:var(--green-soft); } .o.ok span { background:var(--green); color:#fff; } .o.bad { border-color:var(--red); background:var(--red-soft); } .o.bad span { background:var(--red); color:#fff; } .o:disabled { cursor:default; }
.fb { border-radius:12px; padding:12px 14px; font-size:14.5px; margin-top:4px; } .fb.bad { background:var(--red-soft); } .fb.good { background:var(--green-soft); }
.actions { display:flex; justify-content:space-between; align-items:center; margin-top:14px; gap:10px; flex-wrap:wrap; }
.qnav { display:flex; flex-wrap:wrap; gap:5px; margin:0 0 14px; } .qnav button { width:32px; height:32px; border-radius:8px; border:1.5px solid var(--border); background:var(--paper); font-family:inherit; font-size:12px; cursor:pointer; color:var(--ink-soft); } .qnav button.a { background:var(--teal-soft); border-color:var(--teal); color:var(--ink); } .qnav button.cur { outline:2px solid var(--ink); }
.ring { width:110px; height:110px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; margin-bottom:8px; } .ring b { background:#fff; width:84px; height:84px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:24px; }
.res-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:10px; margin:14px 0; } .res-grid div { background:var(--bg); border-radius:12px; padding:10px; text-align:center; } .res-grid b { display:block; font-size:18px; } .res-grid span { font-size:12.5px; color:var(--ink-soft); }
table { width:100%; border-collapse:collapse; font-size:14px; } th, td { padding:8px 6px; border-bottom:1px solid var(--border); text-align:right; } th { font-size:12.5px; color:var(--ink-soft); } tr.me td { background:var(--gold-soft); font-weight:700; }
.rev { border:1px solid var(--border); border-radius:12px; padding:12px 14px; margin-bottom:8px; } .rev.bad { border-color:#EFC3C4; } .rev .st { font-weight:700; margin-bottom:6px; } .rev .ex { font-size:13.5px; color:var(--ink-soft); margin-top:6px; } .rev .ans { font-size:13.5px; }
body.ltr .q, body.ltr .o, body.ltr .passage, body.ltr .rev .st { direction:ltr; text-align:left; font-family:Inter, sans-serif; }
@media print { nav, .btn, .actions { display:none !important; } body { background:#fff; } .card { box-shadow:none; } }
