.test-page {
  min-height: 100vh;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.test-header {
  text-align: center;
  margin-bottom: 3rem;
}

.test-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: rgba(1, 50, 46, 0.98);
}

body.dark-mode .test-header h1 {
  text-shadow: 0 0 15px rgba(1, 50, 46, 0.5);
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0;
}

body.dark-mode .progress-bar {
  background: #000000;
}

.progress-fill {
  height: 100%;
  background: rgba(1, 50, 46, 0.98);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(1, 50, 46, 0.5);
  width: 10%;
}

.question-card {
  background: #f5f0e8;
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(1, 50, 46, 0.3);
}

body.dark-mode .question-card {
  background: #000000;
  border-color: #000000;
}

.question-word-section {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(1, 50, 46, 0.2);
}

.question-word {
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(1, 50, 46, 0.98);
  margin-bottom: 1rem;
}

.test-pronunciation-btn {
  background: rgba(1, 50, 46, 0.1);
  border: 2px solid rgba(1, 50, 46, 0.3);
  border-radius: 15px;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: inherit;
  font-family: 'Cairo', sans-serif;
}

.test-pronunciation-btn:hover {
  background: rgba(1, 50, 46, 0.2);
  border-color: rgba(1, 50, 46, 0.98);
  transform: scale(1.05);
}

body.dark-mode .question-word {
  text-shadow: 0 0 20px rgba(1, 50, 46, 0.5);
}

.question-instruction {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.option-btn {
  background: rgba(1, 50, 46, 0.1);
  border: 2px solid rgba(1, 50, 46, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: inherit;
  font-family: 'Cairo', sans-serif;
}

.option-btn:hover {
  background: rgba(1, 50, 46, 0.2);
  border-color: rgba(1, 50, 46, 0.98);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(1, 50, 46, 0.3);
}

.option-btn.selected {
  background: rgba(1, 50, 46, 0.98);
  color: white;
  border-color: rgba(1, 50, 46, 0.98);
  box-shadow: 0 0 20px rgba(1, 50, 46, 0.5);
}

.option-btn.correct-answer {
  background: #4caf50;
  color: white;
  border-color: #4caf50;
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.option-btn.wrong-answer {
  background: #f44336;
  color: white;
  border-color: #f44336;
  box-shadow: 0 0 20px rgba(244, 67, 54, 0.5);
}

.test-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.nav-btn,
.submit-btn {
  background: rgba(1, 50, 46, 0.98);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(1, 50, 46, 0.3);
  font-family: 'Cairo', sans-serif;
}

.nav-btn:hover:not(:disabled),
.submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(1, 50, 46, 0.5);
}

.nav-btn:disabled,
.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.results-card {
  background: #f5f0e8;
  border-radius: 20px;
  padding: 4rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(1, 50, 46, 0.3);
  max-width: 600px;
  margin: 4rem auto;
}

body.dark-mode .results-card {
  background: #000000;
  border-color: #000000;
}

.results-card h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: rgba(1, 50, 46, 0.98);
}

body.dark-mode .results-card h1 {
  text-shadow: 0 0 15px rgba(1, 50, 46, 0.5);
}

.score-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(1, 50, 46, 0.1);
  border: 5px solid rgba(1, 50, 46, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  box-shadow: 0 0 30px rgba(1, 50, 46, 0.3);
}

.score-number {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(1, 50, 46, 0.98);
}

.score-percentage {
  font-size: 1.5rem;
  opacity: 0.8;
}

.score-details {
  margin: 2rem 0;
  font-size: 1.2rem;
}

.score-details p {
  margin: 0.5rem 0;
}

.reset-btn {
  background: rgba(1, 50, 46, 0.98);
  color: white;
  border: none;
  padding: 1rem 3rem;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(1, 50, 46, 0.3);
  margin-top: 2rem;
  font-family: 'Cairo', sans-serif;
}

.reset-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(1, 50, 46, 0.5);
}

@media (max-width: 768px) {
  .question-word {
    font-size: 2.5rem;
  }
  
  .options-grid {
    grid-template-columns: 1fr;
  }
  
  .score-circle {
    width: 150px;
    height: 150px;
  }
  
  .score-number {
    font-size: 2rem;
  }
}
