:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --card: #ffffff;
  --border: #e2e8f0;
  --primary: #2563eb;
  --secondary: #64748b;
}

body.dark {
  --bg: #0b1220;
  --text: #e2e8f0;
  --card: #0f172a;
  --border: #1e293b;
  --primary: #3b82f6;
  --secondary: #94a3b8;
}

/* Base */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 30px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.navbar h2 {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Theme Button */
#themeToggle {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

/* Main */
main {
  padding: 50px 20px;
  display: flex;
  justify-content: center;
}

/* Sections */
#questionSection,
.result-container {
  width: 100%;
  max-width: 620px;
  animation: fadeIn 0.4s ease;
}

/* Heading */
h1 {
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

/* Question Card */
.question {
  margin: 20px 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.question p {
  margin-bottom: 10px;
}

/* Buttons */
button {
  margin: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
}

/* Button alignment */
.question button {
  min-width: 110px;
}

/* Selected */
.selected {
  outline: 2px solid var(--primary);
  background: rgba(37, 99, 235, 0.12);
  color: var(--text);
}

/* Submit */
#submitBtn {
  display: block;
  margin: 30px auto;
  padding: 12px 22px;
}

/* Result Title */
#resultTitle {
  margin-bottom: 20px;
  color: var(--primary);
}

/* Controls */
.controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.controls input,
.controls select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  width: 150px;
}

/* Quote Card */
.quote-box {
  background: var(--card);
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  text-align: center;
}

.quote-box p {
  font-size: 18px;
  line-height: 1.6;
}

.quote-box h4 {
  margin-top: 10px;
  color: var(--secondary);
}

/* Actions */
.actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Footer */
footer {
  text-align: center;
  padding: 12px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  color: var(--secondary);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hidden */
.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 500px) {
  .controls {
    flex-direction: column;
    align-items: center;
  }

  .controls input,
  .controls select {
    width: 100%;
  }
}