/* Flat visual refresh; shared by both exam entry pages. */
:root {
  --exam-blue: #1763cf;
  --exam-blue-soft: #eef4ff;
  --exam-ink: #192b45;
  --exam-muted: #66758a;
  --exam-line: #dfe5ee;
}

body {
  background: #f4f6fa;
  color: var(--exam-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html, body, main, [ui-view], .test.container { transition: none; }

.test *, .modal * {
  box-shadow: none !important;
  text-shadow: none !important;
  transition-property: background-color, border-color, color;
  transition-duration: 140ms;
}

.test.container {
  width: calc(100% - 40px);
  max-width: 1080px;
  padding: 0;
  margin: 32px auto 48px;
}

.exam-header { margin-bottom: 24px; }
.exam-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.exam-position { flex: 0 0 auto; }
.exam-position > span { display: block; margin-bottom: 3px; color: var(--exam-muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.exam-position strong { font-size: 23px; font-weight: 650; font-variant-numeric: tabular-nums; }
.exam-position em { color: var(--exam-muted); font-size: 15px; font-style: normal; font-weight: 400; }
.exam-progress { height: 3px; overflow: hidden; margin-top: 22px; border-radius: 3px; background: #dfe7f3; }
.exam-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--exam-blue); transition: width 180ms ease; }

.test .exam-logo { display: block; max-width: 100%; height: auto; }
.test .exam-welcome-logo { width: 160px; margin: 24px auto 0; }
.test .exam-header-logo { width: 150px; flex: 0 0 auto; }
.exam-footer { max-width: 880px; margin: 24px auto 0; padding: 18px 12px 0; border-top: 1px solid var(--exam-line); color: var(--exam-muted); text-align: center; font-size: 11px; line-height: 1.7; }
.exam-footer p { margin: 0; }
.exam-footer .exam-copyright { margin-bottom: 6px; font-size: 12px; font-weight: 600; }

.exam-welcome {
  padding: 38px;
  border: 1px solid var(--exam-line);
  border-radius: 16px;
  background: #fff;
}
.exam-welcome br { display: none; }
.exam-welcome .start-desc { max-width: 690px; margin: 0 auto; color: var(--exam-muted); font-size: 16px; line-height: 1.75; }
.exam-welcome .start-desc h3 { margin: 0 0 14px; color: var(--exam-ink); font-size: 26px; font-weight: 650; letter-spacing: -.4px; }
.exam-welcome .start-desc p { margin: 14px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .05em; }
.exam-welcome .start-desc-sub { display: flex; margin: 28px 0 26px; padding: 24px 0; border-top: 1px solid var(--exam-line); border-bottom: 1px solid var(--exam-line); }
.exam-welcome .start-desc-sub::before, .exam-welcome .start-desc-sub::after { display: none; }
.exam-welcome .start-desc-sub > .col-sm-4 { float: none; width: 33.333%; padding: 0 14px; }
.exam-welcome .start-desc-sub > .col-sm-4:first-child { padding-left: 0; }
.exam-welcome .start-desc-sub > .col-sm-4:last-child { padding-right: 0; }
.exam-welcome .media { margin: 0; }
.exam-welcome .media-left { padding-right: 10px; }
.exam-welcome .media-left .fa { color: var(--exam-blue); font-size: 19px; }
.exam-welcome .media-body { color: var(--exam-muted); font-size: 14px; line-height: 1.6; }
.exam-welcome > .row:last-child { margin-top: 16px; }
.exam-welcome > .row:last-child strong { color: var(--exam-muted); font-size: 13px; font-weight: 700; line-height: 1.6; }

.test .btn { border-radius: 8px; font-weight: 600; }
.test .btn-primary { color: #fff; background: var(--exam-blue); border-color: var(--exam-blue); }
.test .btn-primary:hover { color: #fff; background: #0e52b7; border-color: #0e52b7; }
.exam-welcome .btn-primary { min-height: 48px; padding: 12px 26px; font-size: 15px; }
.exam-welcome .btn-primary .fa { margin-left: 12px; }
.test a:focus-visible, .test button:focus-visible, .modal button:focus-visible, .modal textarea:focus-visible {
  outline: 2px solid var(--exam-blue) !important;
  outline-offset: 3px;
}

.test .question-body {
  margin-top: 0;
  padding: 24px;
  border: 1px solid var(--exam-line);
  border-radius: 16px;
  background: #fff;
}
.test .question { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 24px; font-size: 18px; line-height: 1.65; }
.test .question > strong { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: var(--exam-blue-soft); color: var(--exam-blue); font-size: 14px; font-weight: 700; }
.question > span, .options a > span { white-space: pre-line; }
.test .question img, .test .options a img { width: auto; max-width: 100%; max-height: 340px; height: auto; margin: 10px 0; object-fit: contain; }
.test .options { display: grid; gap: 10px; }
.test .options a { display: flex; align-items: center; gap: 12px; min-height: 60px; margin: 0; padding: 13px 52px 13px 14px; border: 1px solid var(--exam-line); border-radius: 10px; background: #fff; color: #34435a; font-size: 15px; line-height: 1.55; }
.test .options a > strong { display: flex; flex: 0 0 32px; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 7px; background: #f1f4f8; color: #52617a; font-size: 13px; font-weight: 650; }
.test .options a > span { flex: 1 1 auto; min-width: 0; }
.test .options a:hover { border-color: #98b8e6; background: #f8faff; }
.test .options a > i { top: 50%; right: 16px; width: 20px; height: 20px; transform: translateY(-50%); border: 1px solid #cbd5e3; }
.test .options a.selected { border-color: var(--exam-blue); background: var(--exam-blue-soft); color: var(--exam-ink); }
.test .options a.selected > strong { background: #dce9ff; color: var(--exam-blue); }
.test .options a.selected i.fa-check { background: var(--exam-blue); border-color: var(--exam-blue); color: #fff; font-size: 11px; line-height: 18px; }
.test .options a.correct { border-color: #279167 !important; background: #edf8f2; color: #146648 !important; }
.test .options a.correct > strong { background: #dbf0e5; color: #146648; }
.test .options a.correct i.fa-check { border-color: #279167; background: #279167; color: #fff; font-size: 11px; line-height: 18px; }
.test .exam-session.finished .options a.selected:not(.correct) { border-color: #d1757c; background: #fff3f4; color: #9b3442; }
.test .exam-session.finished .options a.selected:not(.correct) > strong { background: #f9e3e6; color: #9b3442; }
.test .exam-session.finished .options a.selected:not(.correct) i.fa-check { border-color: #b94553; background: #b94553; }
.test .exam-session.finished .options a.selected:not(.correct) i.fa-check::before { content: "\f00d"; }

.test .buttons { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1fr 1fr; gap: 9px; margin: 16px 0 22px; padding: 0; border: 0; }
.test .buttons .hidden-lg { display: none; }
.test .buttons > button { float: none !important; width: 100%; min-height: 48px; margin: 0; padding: 11px 13px; font-size: 14px; }
.test .buttons > button:nth-of-type(1) { order: 1; }
.test .buttons > button:nth-of-type(2) { order: 5; }
.test .buttons > button:nth-of-type(3) { order: 2; background: #e9eef6; border-color: #e9eef6; color: #40536f; cursor: default; font-size: 12px; font-weight: 400; }
.test .buttons > button:nth-of-type(3) strong { margin-left: 5px; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.test .buttons > button:nth-of-type(4) { order: 4; background: #fff; border-color: #dfbbc0; color: #a73543; }
.test .buttons > button:nth-of-type(4):hover { background: #fff0f2; border-color: #c97783; }
.test .buttons > button:nth-of-type(5) { order: 3; background: #fff; border-color: var(--exam-line); color: var(--exam-muted); }
.test .buttons > button:nth-of-type(5):hover { color: var(--exam-ink); border-color: #a8b6cb; }
.test .buttons button .fa { font-size: 16px; line-height: 20px; }
.test .buttons button .fa-exclamation-triangle { margin-left: 7px; font-size: 12px; }
.test .buttons > button:disabled { opacity: .6; }

.test .questionNumbers { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 6px; padding: 18px; border: 1px solid var(--exam-line); border-radius: 14px; background: #fff; }
.test .questionNumbers::before { content: "Sorular"; grid-column: 1 / -1; margin-bottom: 7px; color: var(--exam-muted); font-size: 12px; font-weight: 600; }
.test .questionNumbers > a { display: flex; align-items: center; justify-content: center; width: auto; min-height: 40px; margin: 0; padding: 0; border: 1px solid var(--exam-line); border-radius: 7px; background: #fff; color: #52617a; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.test .questionNumbers > a:hover { border-color: #98b8e6; background: #f6f9ff; }
.test .questionNumbers > a.selected { opacity: 1; border-color: #c3d6f2; background: var(--exam-blue-soft); color: var(--exam-blue); }
.test .questionNumbers > a.btn-primary { border-color: var(--exam-blue); background: var(--exam-blue); color: #fff; }
.test .questionNumbers > a.btn-success { border-color: #b7dfcd; background: #e8f6ee; color: #146648; }
.test .questionNumbers > a.btn-danger { border-color: #efc5cb; background: #fff0f2; color: #a73543; }

.test .chart-container-top { margin: 0 0 24px; padding: 28px; border: 1px solid var(--exam-line); border-radius: 16px; }
.test .chart-container-top br { display: none; }
.test .chart-container-top > .row { margin-top: 18px; }
.test .chart-container { width: 100%; max-width: 380px; }
.test .result-header h2 { margin: 0 0 12px; color: var(--exam-ink); font-size: 25px; font-weight: 650; letter-spacing: -.4px; }
.test .result-header .result-success { color: #21845d; }
.test .result-header .result-fail { color: #b94553; }
.test .result { font-size: 13px; }
.test .result > div { margin: 12px 8px; }
.test .result > div > span { width: 12px; height: 12px; border-radius: 3px; }
.test .result > div > span.correct { background: #279167; }
.test .result > div > span.false { background: #b94553; }
.test .result > div > span.empty { background: #dfe5ee; }
.test .chart-container-top .btn-default { padding: 12px 22px; border-color: var(--exam-line); color: var(--exam-ink); font-size: 14px; }

.modal-content { box-shadow: none !important; border: 1px solid var(--exam-line); border-radius: 14px; }
.modal-header { padding: 20px; border-color: var(--exam-line); }
.modal-title { color: var(--exam-ink); font-size: 18px; font-weight: 600; }
.modal-body { padding: 20px; }
.modal-footer { padding: 16px 20px; border-color: var(--exam-line); }
.modal .form-control { box-shadow: none; border-color: #cbd5e3; border-radius: 8px; }
.modal .btn { border-radius: 8px; }
.modal .btn-primary { background: var(--exam-blue); border-color: var(--exam-blue); }

@media (max-width: 900px) {
  .test .buttons { grid-template-columns: 1fr 1.25fr 1fr 1fr 1fr; gap: 7px; }
  .test .buttons > button { padding: 10px 8px; font-size: 12px; }
  .test .questionNumbers { grid-template-columns: repeat(15, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .test.container { width: calc(100% - 28px); margin: 22px auto 28px; }
  .exam-header { margin-bottom: 18px; }
  .exam-heading { gap: 12px; }
  .test .exam-header-logo { width: 100px; }
  .test .exam-welcome-logo { width: 145px; }
  .exam-footer { margin-top: 20px; padding: 16px 2px 0; }
  .exam-position { padding-left: 0; }
  .exam-position strong { font-size: 20px; }
  .exam-position em { font-size: 13px; }
  .exam-progress { margin-top: 18px; }
  .exam-welcome { padding: 25px 20px; border-radius: 13px; }
  .exam-welcome .start-desc { font-size: 15px; }
  .exam-welcome .start-desc h3 { font-size: 22px; line-height: 1.35; }
  .exam-welcome .start-desc-sub { flex-direction: column; gap: 18px; margin: 22px 0; padding: 20px 0; }
  .exam-welcome .start-desc-sub > .col-sm-4 { width: 100%; padding: 0; }
  .exam-welcome .media-body { font-size: 13px; }
  .test .question-body { padding: 18px 14px; border-radius: 13px; }
  .test .question { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; margin-bottom: 20px; font-size: 16px; }
  .test .question > strong { width: 30px; height: 30px; font-size: 12px; }
  .test .options a { gap: 10px; min-height: 56px; padding: 12px 42px 12px 12px; font-size: 14px; }
  .test .options a > strong { flex-basis: 28px; width: 28px; height: 28px; font-size: 12px; }
  .test .options a > i { right: 12px; width: 18px; height: 18px; }
  .test .options a.selected i.fa-check, .test .options a.correct i.fa-check { line-height: 16px; }
  .test .buttons { grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 18px; }
  .test .buttons > button { min-height: 46px; padding: 11px 14px; font-size: 14px; }
  .test .buttons > button:nth-of-type(3) { grid-column: 1 / -1; order: 1; min-height: 43px; font-size: 13px; }
  .test .buttons > button:nth-of-type(1) { order: 2; }
  .test .buttons > button:nth-of-type(2) { order: 3; }
  .test .buttons > button:nth-of-type(5) { order: 4; }
  .test .buttons > button:nth-of-type(4) { order: 5; }
  .test .questionNumbers { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; padding: 14px; border-radius: 13px; }
  .test .questionNumbers > a { min-height: 40px; font-size: 12px; }
  .test .chart-container-top { padding: 22px 15px; border-radius: 13px; }
  .test .result { text-align: center; }
  .test .result > div { display: inline-block; margin: 10px 6px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .test *, .modal * { transition: none !important; }
}
