.lesson-page {
  min-height: 100vh;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.lesson-header {
  text-align: center;
  margin-bottom: 3rem;
}

.lesson-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: rgba(1, 50, 46, 0.98);
}

body.dark-mode .lesson-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%;
}

.word-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 .word-card {
  background: #000000;
  border-color: #000000;
}

.word-main {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(1, 50, 46, 0.2);
}

.word-text {
  font-size: 4rem;
  font-weight: 700;
  color: rgba(1, 50, 46, 0.98);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-mode .word-text {
  text-shadow: 0 0 20px rgba(1, 50, 46, 0.5);
}

.pronunciation-btn {
  background: rgba(1, 50, 46, 0.1);
  border: 2px solid rgba(1, 50, 46, 0.3);
  border-radius: 15px;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: inherit;
}

.pronunciation-btn:hover {
  background: rgba(1, 50, 46, 0.2);
  border-color: rgba(1, 50, 46, 0.98);
  transform: scale(1.05);
}

.word-details {
  display: grid;
  gap: 2rem;
}

.translation-section,
.sentence-section {
  background: rgba(1, 50, 46, 0.05);
  padding: 1.5rem;
  border-radius: 15px;
  border-right: 4px solid rgba(1, 50, 46, 0.98);
}

body.dark-mode .translation-section,
body.dark-mode .sentence-section {
  background: #000000;
  border-right-color: rgba(1, 50, 46, 0.98);
}

.translation-section h3,
.sentence-section h3 {
  color: rgba(1, 50, 46, 0.98);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

body.dark-mode .translation-section h3,
body.dark-mode .sentence-section h3 {
  text-shadow: 0 0 10px rgba(1, 50, 46, 0.5);
}

.translation {
  font-size: 1.5rem;
  font-weight: 600;
}

.sentence-en {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 0.5rem;
  color: rgba(1, 50, 46, 0.8);
}

.sentence-ar {
  font-size: 1.1rem;
  opacity: 0.8;
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}

.nav-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) {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(1, 50, 46, 0.5);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.words-list {
  background: #f5f0e8;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .words-list {
  background: #000000;
}

.words-list h3 {
  margin-bottom: 1.5rem;
  color: rgba(1, 50, 46, 0.98);
  font-size: 1.5rem;
}

body.dark-mode .words-list h3 {
  text-shadow: 0 0 10px rgba(1, 50, 46, 0.5);
}

.words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.word-item {
  background: rgba(1, 50, 46, 0.1);
  border: 2px solid rgba(1, 50, 46, 0.3);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
  font-family: 'Cairo', sans-serif;
}

.word-item:hover {
  background: rgba(1, 50, 46, 0.2);
  transform: translateY(-3px);
}

.word-item.active {
  background: rgba(1, 50, 46, 0.98);
  color: white;
  border-color: rgba(1, 50, 46, 0.98);
  box-shadow: 0 0 15px rgba(1, 50, 46, 0.5);
}

@media (max-width: 768px) {
  .word-text {
    font-size: 2.5rem;
  }
  
  .word-card {
    padding: 2rem 1.5rem;
  }
  
  .words-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}
