/* ================================
   SIMAS UI v2.1 (Scoped CSS)
   Semua class diawali "simas-" agar tidak merusak halaman lain
   + Tambahan UI Ujian Bergambar (PG card + zoom)
================================== */

:root{
  --simas-bg1:#0b1220;
  --simas-bg2:#0f1a2e;

  --simas-card: rgba(255,255,255,.06);
  --simas-stroke: rgba(255,255,255,.10);
  --simas-stroke2: rgba(255,255,255,.14);

  --simas-text: #eaf0ff;
  --simas-muted:#b7c2da;

  --simas-brand:#22c55e;
  --simas-brand2:#3b82f6;

  --simas-warn:#f59e0b;
  --simas-danger:#ef4444;

  --simas-shadow: 0 18px 60px rgba(0,0,0,.35);
  --simas-radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--simas-text);
  background:
    radial-gradient(900px 600px at 15% 20%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(900px 600px at 85% 25%, rgba(34,197,94,.18), transparent 60%),
    linear-gradient(180deg, var(--simas-bg1), var(--simas-bg2));
}

/* ====== PAGE WRAPPER ====== */
.simas-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
}
.simas-container{
  width:100%;
  max-width:980px;
}

/* ====== GLASS CARD ====== */
.simas-card{
  background: var(--simas-card);
  border:1px solid var(--simas-stroke);
  border-radius:var(--simas-radius);
  box-shadow: var(--simas-shadow);
  backdrop-filter: blur(14px);
}

/* ====== LOGIN LAYOUT ====== */
.simas-login{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  padding:18px;
}
@media (max-width: 860px){
  .simas-login{ grid-template-columns: 1fr; }
}

.simas-hero{ padding:22px; }

.simas-badge{
  display:inline-flex;
  gap:10px;
  align-items:center;
  font-size:12px;
  color:var(--simas-muted);
  padding:8px 12px;
  border:1px solid var(--simas-stroke);
  border-radius:999px;
  background: rgba(0,0,0,.18);
}
.simas-dot{
  width:10px;height:10px;border-radius:50%;
  background: var(--simas-brand);
  box-shadow: 0 0 0 4px rgba(34,197,94,.15);
}
.simas-title{
  margin:14px 0 8px;
  font-size:40px;
  line-height:1.1;
  letter-spacing:.2px;
}
@media (max-width: 860px){
  .simas-title{ font-size:32px; }
}
.simas-sub{
  margin:0;
  color:var(--simas-muted);
  max-width:52ch;
}

.simas-features{ margin-top:18px; display:grid; gap:12px; }
.simas-feature{
  display:flex; gap:12px; align-items:flex-start;
  padding:14px;
  border:1px solid var(--simas-stroke);
  border-radius:14px;
  background: rgba(0,0,0,.14);
}
.simas-ico{
  width:36px;height:36px;border-radius:12px;
  background: rgba(59,130,246,.18);
  border:1px solid rgba(59,130,246,.25);
  display:grid; place-items:center;
  flex:0 0 auto;
}
.simas-ico span{ font-weight:800; }

.simas-form{ padding:22px; }
.simas-form h2{ margin:0 0 6px; font-size:22px; }
.simas-form p{ margin:0 0 14px; color:var(--simas-muted); font-size:13px; }

.simas-alert{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.12);
  color:#ffd6d6;
  margin:10px 0 14px;
}

.simas-field{ margin-top:12px; }
.simas-label{
  display:block;
  font-size:12px;
  color:var(--simas-muted);
  margin-bottom:8px;
}
.simas-input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--simas-stroke);
  background: rgba(0,0,0,.18);
  color:var(--simas-text);
  outline:none;
}
.simas-input:focus{
  border-color: rgba(59,130,246,.65);
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}

.simas-btn{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:0;
  cursor:pointer;
  font-weight:800;
  color:#061016;
  background: linear-gradient(135deg, var(--simas-brand), var(--simas-brand2));
  box-shadow: 0 10px 30px rgba(34,197,94,.18);
  transition: transform .06s ease, filter .15s ease;
  margin-top:14px;
}
.simas-btn:hover{ filter:brightness(1.03); }
.simas-btn:active{ transform: translateY(1px); }

.simas-foot{
  margin-top:14px;
  color:var(--simas-muted);
  font-size:12px;
  text-align:center;
}

/* ====== DASHBOARD ====== */
.simas-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}
@media(max-width:860px){
  .simas-top{ flex-direction:column; align-items:flex-start; }
}
.simas-brand{
  display:flex; align-items:center; gap:12px;
}
.simas-logo{
  width:42px;height:42px;border-radius:14px;
  background: linear-gradient(135deg, var(--simas-brand), var(--simas-brand2));
  box-shadow: 0 12px 30px rgba(59,130,246,.16);
}
.simas-brand h1{ margin:0; font-size:22px; letter-spacing:.3px; }
.simas-brand small{ color:var(--simas-muted); }

.simas-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.simas-btn2{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--simas-stroke);
  background: rgba(0,0,0,.14);
  color:var(--simas-text);
  text-decoration:none;
  font-weight:700;
  transition: transform .06s ease, filter .15s ease, background .15s ease;
}
.simas-btn2:hover{ background: rgba(255,255,255,.06); }
.simas-btn2:active{ transform: translateY(1px); }
.simas-btn2--primary{
  border:0;
  color:#061016;
  background: linear-gradient(135deg, var(--simas-brand), var(--simas-brand2));
}

.simas-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.simas-col-4{ grid-column: span 4; }
.simas-col-12{ grid-column: span 12; }
@media(max-width:860px){
  .simas-col-4{ grid-column: span 12; }
}

.simas-kpi{
  padding:16px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.simas-kpi b{
  font-size:30px;
  display:block;
  margin-top:6px;
}
.simas-pill{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid var(--simas-stroke);
  background: rgba(0,0,0,.14);
  color:var(--simas-muted);
}
.simas-pill--ok{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.12);
  color:#bff5cf;
}
.simas-pill--warn{
  border-color: rgba(245,158,11,.35);
  background: rgba(245,158,11,.12);
  color:#ffe6b4;
}

.simas-section{ padding:16px; }

.simas-muted{ color:var(--simas-muted); }

/* ========= TABLE (RAPI + GARIS JELAS) ========= */
.table-wrap{ overflow-x:auto; }

.table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  border:1px solid var(--simas-stroke2);
  background: rgba(0,0,0,.25);
}

/* HEADER */
.table thead th{
  padding:14px 14px;
  text-align:left;
  font-size:13px;
  font-weight:900;
  color:#c7d2fe;
  background: rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.18);
}

/* BODY */
.table tbody td{
  padding:14px 14px;
  font-size:13px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

/* GARIS VERTIKAL */
.table th:not(:last-child),
.table td:not(:last-child){
  border-right:1px solid rgba(255,255,255,.08);
}

/* HOVER */
.table tbody tr:hover td{
  background: rgba(255,255,255,.04);
}

/* ROW TERAKHIR */
.table tbody tr:last-child td{ border-bottom:none; }

/* =========================================
   TAMBAHAN: UI UJIAN SISWA (Soal Bergambar)
   - Kartu soal
   - Opsi PG jadi kartu
   - Klik zoom gambar (modal)
========================================= */

/* container ujian */
.simas-exam-wrap{
  width:100%;
  max-width:980px;
  margin:0 auto;
}

/* card soal */
.simas-qcard{
  padding:16px;
  border-radius:18px;
  border:1px solid var(--simas-stroke);
  background: rgba(0,0,0,.18);
}
.simas-qtitle{
  margin:0 0 10px;
  font-size:18px;
  font-weight:900;
}
.simas-qtext{
  margin:0 0 10px;
  line-height:1.7;
  color:var(--simas-text);
}
.simas-qimg{
  max-width:100%;
  height:auto;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  cursor:zoom-in;
  display:block;
  margin:10px 0 12px;
}

/* grid opsi PG */
.simas-optgrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
  margin-top:12px;
}
@media (max-width: 760px){
  .simas-optgrid{ grid-template-columns:1fr; }
}

/* card opsi */
.simas-opt{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  cursor:pointer;
  transition:.12s ease;
  user-select:none;
}
.simas-opt:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
}
.simas-opt.is-selected{
  outline:2px solid rgba(59,130,246,.65);
  box-shadow:0 0 0 6px rgba(59,130,246,.12);
}
.simas-opt-letter{
  width:36px;height:36px;
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-weight:900;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  flex:0 0 auto;
}
.simas-opt-body{ flex:1; min-width:0; }
.simas-opt-text{ margin:0; line-height:1.6; color:var(--simas-text); }

.simas-opt-thumb{
  width:120px;height:78px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  cursor:zoom-in;
  flex:0 0 auto;
}

.simas-hidden-radio{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

/* ====== Zoom Modal ====== */
.simas-zoom{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.72);
  z-index:9999;
  padding:24px;
}
.simas-zoom.is-open{ display:flex; }
.simas-zoom-box{
  max-width:min(1100px, 96vw);
  max-height:92vh;
  background: rgba(15,26,47,.95);
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
.simas-zoom-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.12);
  font-weight:900;
}
.simas-zoom-btn{
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--simas-text);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:900;
}
.simas-zoom-img{
  display:block;
  max-width:100%;
  max-height:82vh;
  margin:0 auto;
  background:#0b1220;
}
