/* exam-create.css — giao diện v2 của trang "Tạo đề thi" (/giao-vien/ra-de-kiem-tra/tao-de).
   Nạp SAU exam-page.css và exam-import.css; mọi luật nằm dưới .rd-create nên không ảnh hưởng trang khác. */

/* ---------- Thanh bước ---------- */
.rd-create .rc-steps{display:flex;gap:0;align-items:center;margin:0 0 12px;padding:0;list-style:none}
.rd-create .rc-steps li{display:flex;gap:8px;align-items:center;color:var(--mut);font-size:12.5px;font-weight:500;white-space:nowrap}
.rd-create .rc-steps li+li::before{content:"";width:44px;height:1px;margin:0 12px;background:var(--in)}
.rd-create .rc-steps i{position:relative;display:grid;place-items:center;flex:none;width:20px;height:20px;border:1px solid var(--in);border-radius:50%;background:#fff;font-style:normal;font-size:11px;font-weight:600;line-height:1}
.rd-create .rc-steps li.is-on{color:var(--ink);font-weight:600}
.rd-create .rc-steps li.is-on i{border-color:var(--acc);background:var(--acc);color:#fff}
.rd-create .rc-steps li.is-done i{border-color:var(--ok);background:var(--ok);color:transparent}
.rd-create .rc-steps li.is-done i::after{content:"";position:absolute;left:6px;top:2.5px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.rd-create .rc-steps li.is-done{color:var(--ink)}

/* ---------- Lưới 2 thẻ ---------- */
.rd-create .rc-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px;align-items:start;margin:0 0 12px}
.rd-create .rc-card{min-width:0;border:1px solid var(--line);border-radius:var(--r);background:#fff}

/* ---------- Thẻ nguồn đề ---------- */
.rd-create .rc-src{padding:14px}
.rd-create .rc-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 12px}
.rd-create .rc-tabs .rd-mc{display:flex;gap:10px;align-items:flex-start;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r);background:#fff;box-shadow:none;text-align:left;cursor:pointer;transition:border-color .12s,background .12s}
.rd-create .rc-tabs .rd-mc:hover{border-color:#b4bfd0;background:var(--soft)}
.rd-create .rc-tabs .rd-mc.is-on,.rd-create .rc-tabs .rd-mc[aria-selected="true"]{margin:0;padding:10px 12px;border-color:var(--acc);background:var(--acc-t);box-shadow:inset 0 0 0 1px var(--acc)}
.rd-create .rc-tab-ic{display:grid;place-items:center;flex:none;width:30px;height:30px;border:1px solid var(--line);border-radius:var(--r-s);background:var(--soft);color:var(--mut)}
.rd-create .rc-tabs .rd-mc.is-on .rc-tab-ic,.rd-create .rc-tabs .rd-mc[aria-selected="true"] .rc-tab-ic{border-color:#c5d6fa;background:#fff;color:var(--acc)}
.rd-create .rc-tabs .rd-mc svg{width:16px;height:16px;margin:0;color:inherit}
.rd-create .rc-tabs .rd-mc b{font-size:13px}
.rd-create .rc-tabs .rd-mc small{margin-top:1px;font-size:12px;line-height:1.4}
.rd-create .rc-src-body{padding:0}
.rd-create .rc-src-body>[data-import-pane]:not([hidden]){display:block}
.rd-create .rd-drop{min-height:214px;gap:8px;padding:22px 20px;border-color:#b9c3d3;background:linear-gradient(180deg,#fafbfd,var(--soft))}
.rd-create .rd-drop:hover,.rd-create .rd-drop.tw-file-drop-has-file{border-color:var(--acc);background:var(--acc-t)}
.rd-create .rd-up{width:44px;height:44px}
.rd-create .rd-drop b{max-width:60ch;font-size:14.5px}
.rd-create .rd-drop-sub{font-size:12.5px}
.rd-create .rd-drop-btn{height:32px;margin-top:4px;padding:0 14px;font-size:12.5px}
.rd-create textarea{min-height:270px;font-size:13px}

/* Khối "Hệ thống đọc được những gì?" */
.rd-create .rc-know{margin-top:12px;padding:12px;border:1px solid var(--line-s);border-radius:var(--r);background:#fff}
.rd-create .rc-know h3{display:flex;gap:6px;align-items:center;margin:0 0 10px;font-size:12.5px;font-weight:600}
.rd-create .rc-know h3 svg{width:14px;height:14px;color:var(--mut)}
.rd-create .rc-know ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:0;padding:0;list-style:none}
.rd-create .rc-know li{display:flex;gap:9px;align-items:flex-start;min-width:0}
.rd-create .rc-k-ic{display:grid;place-items:center;flex:none;width:28px;height:28px;border:1px solid #c5d6fa;border-radius:var(--r-s);background:var(--acc-t);color:var(--acc)}
.rd-create .rc-k-ic svg{width:15px;height:15px}
.rd-create .rc-know b{display:block;font-size:12.5px;font-weight:600;line-height:1.35}
.rd-create .rc-know small{display:block;margin-top:1px;color:var(--mut);font-size:12px;line-height:1.45}
.rd-create .rc-know code{padding:0 4px;border-radius:2px;background:var(--line-s)}
.rd-create .rc-know p{display:flex;gap:7px;align-items:center;margin:10px 0 0;padding:8px 10px;border-radius:var(--r-s);background:#fffbeb;color:#92400e;font-size:12px;line-height:1.45}
.rd-create .rc-know p svg{width:14px;height:14px}

/* ---------- Thẻ thông tin đề ---------- */
.rd-create .rc-meta{display:grid;gap:12px;align-content:start;padding:14px;border-left:1px solid var(--line)}
.rd-create .rc-meta h2{display:flex;gap:8px;align-items:center;font-size:13px;font-weight:600}
.rd-create .rc-meta-ic{display:grid;place-items:center;width:24px;height:24px;border:1px solid #c5d6fa;border-radius:var(--r-s);background:var(--acc-t);color:var(--acc)}
.rd-create .rc-meta-ic svg{width:14px;height:14px}
.rd-create .rd-f>span{font-size:12.5px}
.rd-create input[type=text],.rd-create input[type=number],.rd-create select{height:34px}
.rd-create .rd-combo-ic{height:34px}
.rd-create .rd-combo-btn{width:30px;height:30px}
.rd-create .rd-suf i{line-height:34px}
.rd-create .rd-seg-b{height:32px;line-height:32px}
.rd-create .rc-submit{width:100%;height:36px;margin-top:2px;font-size:13px}
.rd-create .rc-note{margin:-2px 0 0;color:var(--mut);font-size:12px;line-height:1.5;text-align:center}

/* ---------- Màn đối chiếu ---------- */
.rd-create #exImportReview{padding:0;overflow:hidden}
.rd-create #exImportReview .rd-hh{padding:11px 16px;background:var(--soft)}
.rd-create #exImportReview .rd-hh h2{font-size:14px}
.rd-create #exImportReview .rv-filters .rd-btn{height:30px;padding:0 12px;font-size:12.5px}
.rd-create .rv-stats{margin:0;padding:10px 16px 0;font-size:12.5px}
.rd-create .rv-warns{padding:0 16px}
.rd-create .rv-warns:not([hidden]):not(:empty){margin-top:10px}
.rd-create .rv-split{margin:12px 16px 0;gap:12px}
.rd-create .rv-src,.rd-create .rv-list{max-height:min(62vh,640px)}
.rd-create .rv-src{background:var(--soft);font-size:12.5px;line-height:1.7}
.rd-create .rv-q{border-left:3px solid #86efac;padding:10px 12px}
.rd-create .rv-q.rv-q-yellow{border-left-color:#fbbf24}
.rd-create .rv-q.rv-q-red{border-left-color:#f87171}
.rd-create #exAckRedRow{margin:12px 16px 0}
.rd-create .rv-actions{margin:12px 0 0;padding:12px 16px;border-top:1px solid var(--line-s);background:var(--soft)}

/* ---------- Màn hình nhỏ ---------- */
@media (max-width:1020px){
  .rd-create .rc-grid{grid-template-columns:1fr}
  .rd-create .rc-meta{border-left:1px solid var(--line)}
}
@media (max-width:620px){
  .rd-create .rc-steps li+li::before{width:16px;margin:0 6px}
  .rd-create .rc-steps li span{display:none}
  .rd-create .rc-steps li.is-on span{display:inline}
  .rd-create .rc-tabs{grid-template-columns:1fr}
  .rd-create .rc-tabs .rd-mc small{display:none}
  .rd-create .rc-know ul{grid-template-columns:1fr}
  .rd-create .rc-src,.rd-create .rc-meta{padding:12px}
}