:root { --primary: #0369a1; --primary-dark: #0c4a6e; --accent: #059669; --bg: #f8fafc; --card: #ffffff; --text: #0f172a; --text-muted: #475569; --border: #cbd5e1; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Tajawal', sans-serif; background: var(--bg); color: var(--text); font-size: 18px; line-height: 1.85; }
p, li, td, th, .example-box, .quick-check, .lab-step, .quiz-q { font-size: 1.12rem !important; line-height: 1.85 !important; }
code { font-size: 1rem !important; background: #f1f5f9; padding: 0.15rem 0.4rem; border-radius: 4px; color: #0369a1; font-weight: 700; }
#read-progress { position: fixed; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, #0284c7, #059669); width: 0%; z-index: 9999; transition: width 0.15s; }
.container { max-width: 1260px; margin: 1.5rem auto; padding: 0 1rem; }
.top-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.back-btn, .print-btn { display: inline-block; background: #e0f2fe; color: #0369a1; padding: 0.5rem 1.1rem; border-radius: 8px; text-decoration: none; font-weight: 700; border: 1px solid #7dd3fc; cursor: pointer; font-family: inherit; font-size: 0.98rem; }
.print-btn { background: #f0fdf4; color: #065f46; border-color: #86efac; }
.card { background: var(--card); border-radius: 12px; padding: 1.6rem; margin-bottom: 1.5rem; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
h2 { color: var(--primary-dark); border-bottom: 2px solid #e0f2fe; padding-bottom: 0.6rem; margin-bottom: 1.2rem; font-size: 1.55rem; }
h3 { background: linear-gradient(90deg, #f0f9ff 0%, #e0f2fe 100%); color: #0c4a6e; border-right: 5px solid #0284c7; padding: 0.75rem 1.1rem; border-radius: 8px; margin: 2rem 0 1rem; font-size: 1.3rem; font-weight: 800; }
.sub-title { background: #f8fafc; border-right: 4px solid #059669; color: #065f46; padding: 0.6rem 1rem; border-radius: 6px; margin: 1.5rem 0 0.8rem; font-size: 1.18rem; font-weight: 800; }
.obj-box { background: #f0f9ff; border-right: 4px solid #0284c7; padding: 1.1rem; border-radius: 8px; margin-bottom: 1.3rem; }
.example-box { background: #fffbeb; border-right: 4px solid #f59e0b; padding: 0.9rem 1.1rem; border-radius: 8px; margin: 0.9rem 0; }
.svg-wrap { background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 10px; padding: 0.9rem; margin: 1.1rem 0; text-align: center; overflow-x: auto; }
.quick-check { background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px; padding: 1rem; margin: 1.1rem 0; }
.ans-btn { background: #059669; color: white; border: none; padding: 0.4rem 1rem; border-radius: 6px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 0.95rem; margin-top: 0.5rem; }
.ans-text { display: none; margin-top: 0.6rem; padding: 0.7rem; background: #ffffff; border-radius: 6px; border: 1px dashed #34d399; color: #065f46; font-weight: 600; }
.cmd-box { background: #0f172a; color: #38bdf8; padding: 0.8rem 1rem; border-radius: 8px; font-family: Consolas, monospace; direction: ltr; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin: 0.7rem 0; font-size: 0.95rem; }
.copy-btn { background: #0284c7; color: white; border: none; padding: 0.35rem 0.8rem; border-radius: 5px; cursor: pointer; font-family: 'Tajawal', sans-serif; font-weight: 700; white-space: nowrap; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { border: 1px solid var(--border); padding: 0.75rem; text-align: right; }
th { background: #e0f2fe; color: #0c4a6e; }
.step-badge { display: inline-block; background: #0369a1; color: white; padding: 0.15rem 0.65rem; border-radius: 5px; font-size: 0.88rem; font-weight: 700; margin-left: 0.4rem; }
.lab-step { background: #f8fafc; border: 1px solid #cbd5e1; border-right: 4px solid #0284c7; padding: 1rem; border-radius: 8px; margin-bottom: 0.9rem; }
.quiz-q { background: #f8fafc; border: 1px solid var(--border); padding: 1.1rem; border-radius: 8px; margin-bottom: 1rem; }
.quiz-q label { display: block; margin: 8px 0; cursor: pointer; }
.btn-primary { background: var(--primary); color: white; border: none; padding: 0.8rem 1.6rem; border-radius: 8px; font-family: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
@media print { .top-actions, .ans-btn, .copy-btn, .btn-primary, #complete-card, #read-progress { display: none !important; } .ans-text { display: block !important; } }
