/* ==========================================================================
   DSAT-TEST.CSS — dsat/test.php
   Base quiz design comes from start-test.css (st-*), exactly like
   Test Your Skills. Only DSAT extras here. Prefix: dtt-
   ========================================================================== */

/* Brand in place of the Exit button (no exit during an exam) */
.dtt-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--st-primary);
}

/* Section heading between questions */
.dtt-section-head {
  max-width: 900px;
  margin: 8px auto 14px;
  padding: 10px 16px;
  border-left: 4px solid var(--st-primary);
  border-radius: var(--st-radius-sm);
  background: var(--st-bg-section);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--st-text-primary);
}

/* Figure (chart / diagram) inside a question — base style from .st-question-image */
.dtt-question-image {
  width: 600px;
  max-width: calc(100% - 42px);   /* .st-question-image has a 42px left margin */
  background: #FFFFFF;
}

/* Submit error */
.dtt-error {
  max-width: 900px;
  margin: 0 auto 14px;
  padding: 12px 16px;
  border: 1px solid var(--st-danger);
  border-radius: var(--st-radius-sm);
  background: rgba(255, 75, 43, 0.08);
  color: var(--st-danger);
  font-size: 0.9rem;
  text-align: center;
}

.st-submit-wrap { flex-direction: column; align-items: center; }
.st-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Message screens (submitted / already submitted / invalid / error) */
.dtt-message {
  max-width: 560px;
  margin: 8vh auto 0;
  padding: 36px 28px;
  text-align: center;
  background: var(--st-bg-card);
  border: 1px solid var(--st-border-color);
  border-radius: var(--st-radius-lg);
  box-shadow: var(--st-shadow-md);
}

.dtt-message h1 {
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--st-text-primary);
}

.dtt-message p { color: var(--st-text-secondary); margin-bottom: 10px; }
.dtt-message strong { color: var(--st-text-primary); }

.dtt-message-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  color: var(--st-danger);
  background: rgba(255, 75, 43, 0.1);
}

.dtt-message-icon--ok { color: var(--st-success); background: rgba(107, 203, 119, 0.15); }

.dtt-message .st-submit-btn { margin-top: 10px; }

.dtt-close-btn {
  display: block;
  margin: 18px auto 0;
  padding: 10px 32px;
  border: 1px solid var(--st-border-color);
  border-radius: var(--st-radius-sm);
  background: transparent;
  color: var(--st-text-secondary);
  font-weight: 600;
  cursor: pointer;
}

.dtt-close-btn:hover { border-color: var(--st-primary); color: var(--st-primary); }

.dtt-debug { font-size: 0.8rem; color: var(--st-danger) !important; word-break: break-word; }

/* Confirm modal (follows the page theme) */
.dtt-modal .modal-content {
  background: var(--st-bg-card);
  color: var(--st-text-primary);
  border: 1px solid var(--st-border-color);
  border-radius: var(--st-radius-md);
}

.dtt-modal .modal-title { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.05rem; }
.dtt-modal .modal-title i { color: var(--st-primary); margin-right: 6px; }
.dtt-muted { font-size: 0.88rem; color: var(--st-text-muted); margin: 0; }
.dtt-modal .btn-primary { background: var(--st-primary); border-color: var(--st-primary); }
[data-theme="dark"] .dtt-modal .btn-close { filter: invert(1); }

@media (max-width: 768px) {
  .dtt-brand span { display: none; }
  .dtt-question-image { max-width: 100%; }
  .dtt-message { padding: 28px 18px; margin-top: 4vh; }
}

/* ============================================================
   TOUR TEST (dsat/tour-test.php) — notice box
   ============================================================ */
.dtt-demo-note {
  font-family: inherit;
  font-weight: 500;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--st-text-secondary);
  border-left-color: #F59E0B;
}

.dtt-demo-note i { color: #F59E0B; margin-right: 6px; }
.dtt-demo-note strong { color: var(--st-text-primary); }
