.translation-page {
  min-height: 100vh;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.translation-header {
  text-align: center;
  margin-bottom: 3rem;
}

.translation-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: rgba(1, 50, 46, 0.98);
}

body.dark-mode .translation-header h1 {
  text-shadow: 0 0 15px rgba(1, 50, 46, 0.5);
}

.translation-header p {
  font-size: 1.2rem;
  opacity: 0.8;
}

.translation-card {
  background: #f5f0e8;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(1, 50, 46, 0.3);
}

body.dark-mode .translation-card {
  background: #000000;
  border-color: #000000;
}

.sentence-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(1, 50, 46, 0.2);
}

.sentence-section h3 {
  color: rgba(1, 50, 46, 0.98);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

body.dark-mode .sentence-section h3 {
  text-shadow: 0 0 10px rgba(1, 50, 46, 0.5);
}

.english-sentence {
  font-size: 1.3rem;
  line-height: 1.8;
  font-weight: 500;
  padding: 1.5rem;
  background: rgba(1, 50, 46, 0.05);
  border-radius: 10px;
  border-right: 4px solid rgba(1, 50, 46, 0.98);
}

body.dark-mode .english-sentence {
  background: #000000;
}

.input-section {
  margin-bottom: 2rem;
}

.input-section h3 {
  color: rgba(1, 50, 46, 0.98);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

body.dark-mode .input-section h3 {
  text-shadow: 0 0 10px rgba(1, 50, 46, 0.5);
}

.translation-input {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.2rem;
  border: 2px solid rgba(1, 50, 46, 0.3);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  resize: vertical;
  background: #f5f0e8;
  color: inherit;
  transition: all 0.3s ease;
}

body.dark-mode .translation-input {
  background: #000000;
  border-color: #000000;
}

.translation-input:focus {
  outline: none;
  border-color: rgba(1, 50, 46, 0.98);
  box-shadow: 0 0 10px rgba(1, 50, 46, 0.2);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.compare-btn,
.new-sentence-btn {
  padding: 1rem 3rem;
  border: none;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
}

.compare-btn {
  background: rgba(1, 50, 46, 0.98);
  color: white;
  box-shadow: 0 4px 15px rgba(1, 50, 46, 0.3);
}

.compare-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(1, 50, 46, 0.5);
}

.new-sentence-btn {
  background: rgba(1, 50, 46, 0.1);
  color: inherit;
  border: 2px solid rgba(1, 50, 46, 0.3);
}

.new-sentence-btn:hover {
  background: rgba(1, 50, 46, 0.2);
  border-color: rgba(1, 50, 46, 0.98);
}

.result-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(1, 50, 46, 0.2);
}

.similarity-score {
  text-align: center;
  margin-bottom: 2rem;
}

.score-circle {
  width: 150px;
  height: 150px;
  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: 0 auto;
  box-shadow: 0 0 30px rgba(1, 50, 46, 0.3);
}

.score-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(1, 50, 46, 0.98);
}

.score-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.comparison-item {
  padding: 1.5rem;
  background: rgba(1, 50, 46, 0.05);
  border-radius: 10px;
  border-right: 4px solid rgba(1, 50, 46, 0.3);
}

body.dark-mode .comparison-item {
  background: #000000;
}

.comparison-item.correct {
  border-right-color: rgba(1, 50, 46, 0.98);
  background: rgba(1, 50, 46, 0.1);
}

body.dark-mode .comparison-item.correct {
  background: #000000;
}

.comparison-item h4 {
  color: rgba(1, 50, 46, 0.98);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.comparison-item p {
  font-size: 1.1rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .translation-card {
    padding: 2rem 1.5rem;
  }
  
  .comparison {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .score-circle {
    width: 120px;
    height: 120px;
  }
  
  .score-number {
    font-size: 2rem;
  }
}
