
/* Base layout */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #0f2b47, #1bd2cc);
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #0f1e3c;
}

#iq-app {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: 30px;
  max-width: 420px;
  width: 90%;
  transition: all 0.3s ease-in-out;
}

/* Titles */
h2 {
  font-size: 24px;
  color: #0f1e3c;
  margin-bottom: 10px;
}
h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

/* Info icons list */
ul.features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  color: #333;
}
ul.features li {
  margin: 10px 0;
  font-size: 15px;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="date"] {
  width: 100%;
  padding: 12px 16px;
  margin: 8px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #f9f9f9;
}

/* Buttons */
button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
  margin-top: 12px;
}

button.start {
  background: #1bb4a4;
  color: #fff;
}

button.start:hover {
  background: #129e91;
}

/* Question image */
.question-image {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  margin: 20px 0;
  border-radius: 10px;
}

/* Options Grid */
.options {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 10px 0;
}

.options button {
  width: 48%;
  background: #e5f9f7;
  color: #0f1e3c;
  margin-top: 10px;
}

.options button:hover {
  background: #1bb4a4;
  color: #fff;
}

/* Navigation buttons */
.nav-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

button.cancel {
  background: #f44336;
  color: white;
}

button.next {
  background: #4caf50;
  color: white;
}

/* ========== RESULT SCREEN STYLING ========== */

/* === Final Result UI Enhancements === */

.result-box {
  padding: 25px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  text-align: center;
  margin-top: 20px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.result-header .brain-icon {
  width: 80px;
  height: 80px;
}

.iq-scale-bar {
  margin-bottom: 20px;
}

.scale-track {
  height: 16px;
  border-radius: 10px;
  background: linear-gradient(to right,
    #e74c3c, #f39c12, #f1c40f,
    #a2d96a, #2ecc71, #1abc9c, #3498db);
  position: relative;
}

.scale-pointer {
  position: absolute;
  bottom: 100%;            /* position above the bar */
  left: var(--pointer-left, 50%);  /* dynamically set from JS */
  transform: translateX(-50%);
  font-size: 24px;
  color: black;
  margin-bottom: 4px;      /* space between pointer and bar */
}


.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 4px;
}

/* Side-by-side layout: Pie + Section Scores */
.result-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 20px;
  gap: 20px;
}

.pie-chart {
  flex: 1 1 45%;
}

.section-scores {
  flex: 1 1 45%;
  text-align: left;
}

.section-scores h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.legend-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legend-list li {
  margin: 8px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.legend-list .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 50%;
}

/* 7 Color Dots */
.dot.blue { background: #3498db; }
.dot.green { background: #2ecc71; }
.dot.yellow { background: #f1c40f; }
.dot.red { background: #e74c3c; }
.dot.purple { background: #9b59b6; }
.dot.gray { background: #7f8c8d; }
.dot.teal { background: #1abc9c; }

/* Strongest / Weakest Badges */
.badges {
  margin-top: 20px;
}

.badge {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  display: inline-block;
  margin: 6px;
  font-weight: bold;
}

.badge.strong {
  background: #d4f1ff;
  color: #0077b6;
}

.badge.weak {
  background: #ffe0e0;
  color: #b00020;
}

/* Buttons */
.result-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-btn,
.retake-btn {
  padding: 12px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.download-btn {
  background: #2c3e50;
  color: white;
}

.retake-btn {
  background: #34495e;
  color: white;
}

.result-footer {
  text-align: right;
  font-size: 12px;
  color: #777;
  margin-top: 20px;
}
