/* exam.css — standalone, isolated styles */

:root{
  --bg1:#0b1020;
  --bg2:#1a2a6c;
  --text:#f5f7ff;
  --muted: rgba(245,247,255,0.75);
  --card: rgba(255,255,255,0.10);
  --stroke: rgba(255,255,255,0.18);
  --shadow: 0 18px 50px rgba(0,0,0,0.35);
}

body.exam-page{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% 0%, var(--bg2), var(--bg1));
}

body.exam-page *{ box-sizing:border-box; }

body.exam-page .container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
}

body.exam-page .row{
  display:flex;
  gap: 12px;
  align-items:center;
  flex-wrap: wrap;
}

body.exam-page .small{
  font-size: 14px;
  color: var(--muted);
}

body.exam-page .divider{
  height: 1px;
  background: rgba(255,255,255,0.14);
  margin: 14px 0;
}

body.exam-page .card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
}

body.exam-page label{
  display:block;
  margin: 10px 0 6px;
  font-weight: 900;
}

body.exam-page input,
body.exam-page select,
body.exam-page textarea{
  width: 100%;
  font-size: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: var(--text);
  outline: none;
}

body.exam-page textarea{
  min-height: 190px;
  resize: vertical;
  line-height: 1.4;
}

body.exam-page .btn{
  border: 0;
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 1000;
  cursor: pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  user-select:none;
  white-space: nowrap;
}

body.exam-page .btn-primary{
  background: rgba(255,255,255,0.22);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.22);
}

body.exam-page .btn-secondary{
  background: rgba(255,255,255,0.10);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.16);
}

body.exam-page .btn:active{ transform: translateY(1px); }

body.exam-page .twoCol{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 980px){
  body.exam-page .twoCol{
    grid-template-columns: 360px 1fr;
  }
}

body.exam-page .pillRow{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

body.exam-page .pill{
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 1000;
  display:inline-block;
}

body.exam-page .panel{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 12px;
}

body.exam-page .hint{
  margin-top: 8px;
  font-size: 14px;
  color: rgba(245,247,255,0.85);
}

body.exam-page .qPrompt{
  white-space: pre-wrap;
  margin: 6px 0 10px;
  font-size: 16px;
  color: var(--text);
}

/* Tabs */
body.exam-page .tabRow{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
}

body.exam-page .tab{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.10);
  color: var(--text);
  font-weight: 1000;
  cursor:pointer;
}

body.exam-page .tab.active{
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.24);
}

body.exam-page .hidden{ display:none; }

/* Flashcards */
body.exam-page .flashCard{
  width: min(520px, 100%);
  height: 240px;
  margin: 14px auto 0;
  perspective: 1000px;
}

body.exam-page .flashInner{
  width:100%;
  height:100%;
  position:relative;
  transform-style: preserve-3d;
  transition: transform 0.55s;
}

body.exam-page .flashCard.flipped .flashInner{
  transform: rotateY(180deg);
}

body.exam-page .flashFace{
  position:absolute;
  width:100%;
  height:100%;
  backface-visibility:hidden;
  border-radius: 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  text-align:center;
  font-weight: 1000;
  font-size: 24px;
  background: rgba(255,255,255,0.92);
  color: #0b1020;
}

body.exam-page .flashBack{
  transform: rotateY(180deg);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}