
/* Navigation Buttons in Header */
.nav-buttons {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
  justify-content: center;
}

.nav-button {
  background: var(--bg-color);
  border: 1px solid var(--border);
  color: var(--text-sub);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.nav-button:hover:not(.active) {
  background: var(--border);
}

.nav-button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Section Visibility */
.main-layout, .test-section {
  transition: opacity 0.3s ease-in-out;
}

.main-layout.hidden, .test-section.hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute; /* To prevent layout shift when hidden */
  width: 100%;
}

/* Test Section Specific Styles */
.test-section {
  flex-direction: column; /* Ensure it stacks content */
  align-items: center; /* Center content horizontally */
  text-align: center;
  margin-top: 2rem;
  min-height: 400px; /* Give it some height */
  justify-content: center;
  display: none; /* Hidden by default */
}

.test-section .screen {
  display: none; /* Hide all screens by default */
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 600px;
  animation: fade-in 0.3s ease-out forwards;
  will-change: opacity, transform;
}

.test-section .screen.active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.test-welcome h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.test-welcome p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.test-welcome .disclaimer {
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 1.5rem;
  line-height: 1.4;
  font-weight: 500;
}

/* Test Questions Screen */
.question-container {
  width: 100%;
}

.question-text {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.answer-button {
  background: var(--bg-color);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  color: var(--text-main);
}

.answer-button:hover {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.answer-button.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.test-navigation {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 2rem;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--border);
  border-radius: 4px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: var(--primary);
  width: 0%;
  border-radius: 4px;
  transition: width 0.3s ease-in-out;
}

/* Test Result Screen */
.test-result h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.test-result h1 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1rem;
}

.test-result p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 2rem;
}
