/* Genel reset ve temel stilleri */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ana sayfa gövde stilleri */
body {
  font-family: Arial, sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
}

/* Ana container - responsive tasarım */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  width: 100%;
  overflow-x: hidden;
}

/* Mobil cihazlar için */
@media (min-width: 768px) {
  .container {
    padding: 1.5rem;
  }
}

/* Desktop için */
@media (min-width: 1024px) {
  .container {
    padding: 2rem;
  }
}

/* Üst başlık alanı - Alman bayrağı kırmızı rengi */
.header {
  background-color: #DD0000;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .header-content {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .header-content {
    padding: 0 2rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo-subtitle {
  color: #FFCE00;
  font-size: 0.8rem;
}

.nav-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.nav-icon:hover {
  background-color: rgba(255,255,255,0.2);
}

.nav-icon.active {
  background-color: #FFCE00;
  color: #000;
}

.nav-icon.active:after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: #FFCE00;
  border-radius: 50%;
}

.nav-links {
  display: none; /* Masaüstünde gizle, sadece mobilde göster */
  gap: 1.5rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(255,255,255,0.2);
}

/* Mobil menü */
.header-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.settings-toggle,
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.settings-toggle:hover,
.mobile-menu-toggle:hover {
  background-color: rgba(255,255,255,0.2);
}

.mobile-menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: none; /* Tamamen kaldırıldı */
  }
  
  .nav-icons {
    display: flex;
    gap: 0.5rem; /* Mobilde daha sıkışık ikon yerleşimi */
  }
  
  .nav-icon {
    width: 35px; /* Mobilde daha küçük ikonlar */
    height: 35px;
    padding: 0.4rem;
  }
  
  .nav-links {
    display: none; /* Tamamen kaldırıldı */
  }
  
  .header-content {
    position: relative;
    justify-content: space-between;
    padding: 0 1rem;
  }
}

.hero {
  background: linear-gradient(to right, #DD0000, #b80000);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: #FFCE00;
  color: #000000;
}

.btn-primary:hover {
  background-color: #e6b800;
}

.features {
  padding: 4rem 2rem;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.feature-icon {
  background-color: #FFCE00;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Animation */
.letter-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #DD0000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 1s;
}

.letter-animation.hidden {
  opacity: 0;
  pointer-events: none;
}

.letter {
  position: absolute;
  color: #FFCE00;
  font-weight: bold;
  font-size: 3rem;
  transform: scale(0) rotate(0deg);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
}

/* Desktop için - Ultra geniş aralık */
#letter-B { left: 20%; top: 45%; }
#letter-R { left: 30%; top: 45%; }
#letter-E1 { left: 40%; top: 45%; }
#letter-Z { left: 50%; top: 45%; }
#letter-E2 { left: 60%; top: 45%; }
#letter-L { left: 70%; top: 45%; }

/* Büyük tablet için - Dikey sıralama */
@media (max-width: 992px) and (min-width: 769px) {
  .letter { font-size: 1.8rem; }
  .letter.active { transform: scale(1.8) rotate(360deg); }
  .letter.exit { transform: scale(2.5) rotate(720deg); }
  
  /* Tablet için de dikey sıralama */
  #letter-B { left: 50%; top: 22%; }
  #letter-R { left: 50%; top: 30%; }
  #letter-E1 { left: 50%; top: 38%; }
  #letter-Z { left: 50%; top: 46%; }
  #letter-E2 { left: 50%; top: 54%; }
  #letter-L { left: 50%; top: 62%; }
}

/* Orta tablet - Dikey düzenleme */
@media (max-width: 768px) and (min-width: 577px) {
  .letter { font-size: 1.6rem; }
  .letter.active { transform: scale(1.6) rotate(360deg); }
  .letter.exit { transform: scale(2.2) rotate(720deg); }
  
  /* Dikey sıralama - tablet için */
  #letter-B { left: 50%; top: 25%; }
  #letter-R { left: 50%; top: 32%; }
  #letter-E1 { left: 50%; top: 39%; }
  #letter-Z { left: 50%; top: 46%; }
  #letter-E2 { left: 50%; top: 53%; }
  #letter-L { left: 50%; top: 60%; }
}

/* Mobil için - Dikey sıralama ultra geniş aralık */
@media (max-width: 576px) and (min-width: 481px) {
  .letter { font-size: 1.4rem; }
  .letter.active { transform: scale(1.4) rotate(360deg); }
  .letter.exit { transform: scale(2) rotate(720deg); }
  
  /* Mobilde dikey sıralama - ultra geniş aralıklarla */
  #letter-B { left: 50%; top: 18%; }
  #letter-R { left: 50%; top: 28%; }
  #letter-E1 { left: 50%; top: 38%; }
  #letter-Z { left: 50%; top: 48%; }
  #letter-E2 { left: 50%; top: 58%; }
  #letter-L { left: 50%; top: 68%; }
}

/* Ekstra küçük ekranlar için - Maksimum aralık */
@media (max-width: 480px) {
  .letter { font-size: 1.2rem; }
  .letter.active { transform: scale(1.2) rotate(360deg); }
  .letter.exit { transform: scale(1.8) rotate(720deg); }
  
  #letter-B { left: 50%; top: 15%; }
  #letter-R { left: 50%; top: 25%; }
  #letter-E1 { left: 50%; top: 35%; }
  #letter-Z { left: 50%; top: 45%; }
  #letter-E2 { left: 50%; top: 55%; }
  #letter-L { left: 50%; top: 65%; }
}

/* Ultra küçük ekranlar için */
@media (max-width: 360px) {
  .letter { font-size: 1rem; }
  .letter.active { transform: scale(1.1) rotate(360deg); }
  .letter.exit { transform: scale(1.5) rotate(720deg); }
  
  #letter-B { left: 50%; top: 12%; }
  #letter-R { left: 50%; top: 22%; }
  #letter-E1 { left: 50%; top: 32%; }
  #letter-Z { left: 50%; top: 42%; }
  #letter-E2 { left: 50%; top: 52%; }
  #letter-L { left: 50%; top: 62%; }
}

.letter.active {
  transform: scale(4) rotate(360deg);
  opacity: 1;
}

.letter.exit {
  transform: scale(6) rotate(720deg);
  opacity: 0;
}

/* Page Transitions */
.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Lessons Page */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

/* Tablet için modül grid */
@media (min-width: 768px) {
  .modules-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

/* Desktop için modül grid */
@media (min-width: 1024px) {
  .modules-grid {
    gap: 2rem;
  }
}

.module-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  border: 2px solid transparent;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  border-color: #FFCE00;
}

.module-card-image {
  height: 160px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: #6b7280;
}

.module-card-content {
  padding: 1.5rem;
}

.module-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.module-title {
  font-size: 1.25rem;
  font-weight: bold;
}

.module-level {
  background: #FFCE00;
  color: black;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

.module-description {
  color: #6b7280;
  margin-bottom: 1rem;
}

.module-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.module-lesson-count {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Vocabulary Page */
.vocabulary-tools {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.vocabulary-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 500;
  color: #4b5563;
}

.form-control {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
}

.vocabulary-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vocabulary-count {
  color: #6b7280;
}

.vocabulary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

/* Tablet için vocabulary grid */
@media (min-width: 768px) {
  .vocabulary-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

/* Desktop için vocabulary grid */
@media (min-width: 1024px) {
  .vocabulary-grid {
    gap: 1.5rem;
  }
}

.vocabulary-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid #e5e7eb;
}

.vocabulary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.german-word {
  font-weight: bold;
  font-size: 1.25rem;
  color: #DD0000;
}

.vocabulary-actions {
  display: flex;
  gap: 0.5rem;
}

.vocabulary-action {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.3s;
}

.vocabulary-action:hover {
  color: #DD0000;
}

.turkish-word {
  color: #4b5563;
}

.example-sentence {
  background: #f3f4f6;
  padding: 0.75rem;
  border-radius: 4px;
  font-style: italic;
  font-size: 0.875rem;
}

.vocabulary-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.vocabulary-lesson {
  font-size: 0.75rem;
  color: #6b7280;
}

.mastery-indicator {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mastery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
}

.mastery-dot.filled {
  background: #DD0000;
}

.mastery-level {
  font-size: 0.75rem;
  color: #6b7280;
  margin-left: 0.25rem;
}

/* Login Form */
.login-form {
  max-width: 400px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.login-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #DD0000;
}

.login-input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
}

.login-button {
  width: 100%;
  padding: 0.75rem;
  background: #DD0000;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-button:hover {
  background: #bb0000;
}

.login-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.login-link {
  color: #DD0000;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.login-link:hover {
  text-decoration: underline;
}

/* Admin Panel */
.admin-panel {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.admin-panel {
  display: flex;
  flex-direction: column;
}

.admin-tabs {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.admin-tab {
  padding: 1rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.admin-tab:hover {
  background-color: #f0f0f0;
}

.admin-tab.active {
  border-left-color: #DD0000;
  color: #DD0000;
  background-color: #fff2f2;
}

.admin-content {
  position: relative;
  overflow-x: hidden;
  min-height: 500px;
}

.tab-content {
  position: absolute;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.tab-content.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  display: block;
}

/* Profil sayfası */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  color: #DD0000;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.profile-email {
  color: #6b7280;
}

/* İlerleme çubukları */
.overall-progress, .fluency-item {
  margin-bottom: 0.75rem;
}

.progress-info, .fluency-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.375rem;
}

.progress-label {
  font-weight: 500;
}

.progress-bar-bg {
  width: 100%;
  height: 0.75rem;
  background-color: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: #DD0000;
  border-radius: 9999px;
  transition: width 0.5s ease;
}

.fluency-indicators {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Haftalık istatistikler */
.weekly-stats {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.weekly-chart {
  display: flex;
  height: 200px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.chart-bar {
  position: relative;
  width: 12%;
  background-color: #e5e7eb;
  border-radius: 4px 4px 0 0;
  transition: height 0.3s;
}

.chart-bar.active {
  background-color: #DD0000;
}

.day-label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #6b7280;
}

.chart-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  color: #6b7280;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #DD0000;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #6b7280;
}

.profile-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}

.profile-tab {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}

.profile-tab.active {
  border-color: #DD0000;
  color: #DD0000;
}

.progress-chart {
  width: 100%;
  height: 300px;
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

/* Uygulama Ayarları */
.settings-group {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.settings-group h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row .settings-label {
  font-weight: 500;
}

.settings-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Ayarlar Paneli */
.settings-panel {
  position: fixed;
  top: 0;
  right: -350px;
  width: 320px;
  height: 100vh;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding-bottom: 80px;
}

.settings-panel.active {
  right: 0;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.settings-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.close-settings {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-content {
  padding: 1rem;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.setting-info h4 {
  margin: 0;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.setting-info p {
  margin: 0;
  font-size: 0.8rem;
  color: #666;
}

.font-size-controls {
  display: flex;
  gap: 0.5rem;
}

.font-size-controls button {
  background-color: #eee;
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.font-size-controls button:hover {
  background-color: #ddd;
}

/* Çıkış Yap Linki */
.logout-link-container {
  padding: 20px 0;
  border-top: 1px solid #eee;
  text-align: center;
  margin-top: 20px;
}

.logout-text {
  color: #dc2626;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease;
}

.logout-text:hover {
  color: #b91c1c;
  text-decoration: underline;
}

/* Çalışma Zamanı Seçenekleri */
.time-options {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

.time-option {
  flex: 1;
  text-align: center;
}

.time-option input[type="radio"] {
  display: none;
}

.time-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #eee;
}

.time-option input[type="radio"]:checked + label {
  background-color: rgba(221, 0, 0, 0.1);
  border-color: #DD0000;
}

.time-icon {
  font-size: 24px;
  margin-bottom: 5px;
}

.time-label {
  font-size: 14px;
  font-weight: 500;
}

body.dark-mode .time-option label {
  border-color: #444;
}

body.dark-mode .time-option input[type="radio"]:checked + label {
  background-color: rgba(255, 206, 0, 0.1);
  border-color: #FFCE00;
}

/* Bildirim Stilleri */
#notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.notification {
  background-color: #DD0000;
  color: white;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  transform: translateX(120%);
  transition: transform 0.4s ease, opacity 0.3s ease;
  max-width: 350px;
}

.notification.show {
  transform: translateX(0);
}

.notification.hide {
  opacity: 0;
}

body.dark-mode .notification {
  background-color: #333;
  border-left: 4px solid #FFCE00;
}

/* Dark mode */
body.dark-mode {
  background-color: #2A2D34; /* Antrasit gri tonu */
  color: #FFFFFF; /* Beyaz yazı rengi */
}

/* Karanlık modda tüm yazılar beyaz olsun */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode p,
body.dark-mode span,
body.dark-mode div,
body.dark-mode label {
  color: #FFFFFF !important;
}

body.dark-mode .module-title,
body.dark-mode .feature-title,
body.dark-mode .lesson-title,
body.dark-mode .logo-text,
body.dark-mode .hero h1,
body.dark-mode .hero p {
  color: #FFFFFF !important;
}

body.dark-mode .header {
  background-color: #1F2228; /* Daha koyu antrasit */
}

body.dark-mode .nav-icon {
  color: #e5e7eb;
}

body.dark-mode .nav-icon.active {
  background-color: #FFCE00;
  color: #1F2228;
}

body.dark-mode .nav-link:hover, 
body.dark-mode .nav-link.active {
  background-color: rgba(255,255,255,0.15);
}

body.dark-mode .feature-card,
body.dark-mode .module-card,
body.dark-mode .vocabulary-card,
body.dark-mode .login-form,
body.dark-mode .stat-card,
body.dark-mode .settings-group,
body.dark-mode .fluency-indicators,
body.dark-mode .weekly-stats,
body.dark-mode .settings-panel,
body.dark-mode .admin-panel,
body.dark-mode .vocabulary-tools,
body.dark-mode .admin-tab,
body.dark-mode .lesson-sidebar {
  background-color: #343841;
  border-color: #3E4249;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

body.dark-mode .progress-bar-bg,
body.dark-mode .chart-bar {
  background-color: #3E4249;
}

body.dark-mode .form-control,
body.dark-mode select,
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"],
body.dark-mode textarea,
body.dark-mode .vocabulary-form input,
body.dark-mode .vocabulary-form select {
  background-color: #3E4249;
  color: #e5e7eb;
  border-color: #545863;
}

body.dark-mode option {
  background-color: #343841;
}

body.dark-mode .admin-tab.active {
  border-color: #FFCE00;
  color: #FFCE00;
}

body.dark-mode .profile-tab.active {
  border-color: #FFCE00;
  color: #FFCE00;
}

body.dark-mode .stat-number {
  color: #FFCE00;
}

body.dark-mode .example-sentence {
  background-color: #3E4249;
}

body.dark-mode .text-gray-600,
body.dark-mode .text-gray-700,
body.dark-mode .module-description,
body.dark-mode .module-lesson-count,
body.dark-mode .profile-email,
body.dark-mode .stat-label,
body.dark-mode .setting-info p {
  color: #E5E7EB !important; /* Daha açık gri, daha görünür */
}

/* Ayarlar panelindeki yazılar */
body.dark-mode .setting-info h4 {
  color: #FFFFFF !important;
}

/* Modül kartlarındaki başlıklar ve açıklamalar */
body.dark-mode .module-card h3,
body.dark-mode .module-card p,
body.dark-mode .module-card span {
  color: #FFFFFF !important;
}

/* Ana sayfa hero bölümü */
body.dark-mode .hero-content h1,
body.dark-mode .hero-content p {
  color: #FFFFFF !important;
}

body.dark-mode .btn-primary {
  background-color: #FFCE00;
  color: #1F2228;
}

body.dark-mode .btn-primary:hover {
  background-color: #e6b800;
}

body.dark-mode .hero,
body.dark-mode .features {
  background: linear-gradient(to right, #9A0000, #720000);
}

body.dark-mode .settings-header {
  border-bottom-color: #3E4249;
}

body.dark-mode .setting-item {
  border-bottom-color: #3E4249;
}

body.dark-mode .close-settings {
  color: #e5e7eb;
}

body.dark-mode .time-option label {
  border-color: #3E4249;
  color: #e5e7eb;
}

body.dark-mode .time-option input[type="radio"]:checked + label {
  background-color: rgba(255, 206, 0, 0.2);
  border-color: #FFCE00;
}

/* Ders içerik sayfası */
.lesson-container {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
}

.lesson-sidebar {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  height: fit-content;
}

.lesson-sidebar-title {
  font-weight: bold;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lesson-item {
  padding: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lesson-item:hover {
  background: #f3f4f6;
}

.lesson-item.active {
  background: #f3f4f6;
  font-weight: 500;
}

.lesson-item-status {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e5e7eb;
}

.lesson-item-status.completed {
  background: #10b981;
}

.lesson-content {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.lesson-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-xl {
  font-size: 1.25rem;
}

.font-bold {
  font-weight: bold;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.text-gray-600 {
  color: #6b7280;
}

.text-gray-700 {
  color: #4b5563;
}

.bg-gray-300 {
  background-color: #e5e7eb;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: 0.5rem;
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-primary {
  background-color: #DD0000;
  color: white;
}

.flex-items-center {
  align-items: center;
}

/* Admin paneli düzeltmeleri - Taşan satırlar için */
.admin-content {
  overflow-x: auto;
  max-width: 100%;
  padding: 20px;
}

.admin-page table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.admin-page th,
.admin-page td {
  padding: 12px 8px;
  border: 1px solid #e5e7eb;
  word-wrap: break-word;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-page th {
  background-color: #f9fafb;
  font-weight: 600;
}

.admin-page .tab-content {
  overflow-x: auto;
}

.admin-form {
  max-width: 100%;
  overflow-x: hidden;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  max-width: 100%;
  box-sizing: border-box;
}

/* Admin Form Stilleri */
.admin-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.admin-form-container {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.admin-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 12px 12px 0 0;
}

.admin-form-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
}

.close-form-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-form-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.admin-form {
  padding: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FFCE00;
  box-shadow: 0 0 0 3px rgba(255, 206, 0, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.form-help {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  color: #6b7280;
  font-style: italic;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.form-actions button {
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.form-actions button[type="button"] {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.form-actions button[type="button"]:hover {
  background: #e5e7eb;
  color: #374151;
}

.form-actions .btn-primary {
  background: #DD0000;
  color: white;
  border-color: #DD0000;
}

.form-actions .btn-primary:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  transform: translateY(-1px);
}

/* Admin mesajları */
.admin-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  z-index: 1001;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.admin-message.show {
  opacity: 1;
  transform: translateX(0);
}

.admin-message.success {
  background: #10b981;
}

.admin-message.error {
  background: #ef4444;
}

.admin-message.info {
  background: #3b82f6;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1rem;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-link {
    text-align: center;
  }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .container {
    padding: 1rem;
  }
  
  .feature-grid, .modules-grid, .vocabulary-grid {
    grid-template-columns: 1fr;
  }
  
  /* Ders sayfası mobil düzenlemesi */
  .lesson-container {
    flex-direction: column;
  }
  
  .lesson-sidebar {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .lesson-content {
    width: 100%;
  }

/* Ders sayfası ana container */
.lesson-container {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.lesson-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-height: 80vh;
  overflow-y: auto;
}

.lesson-content {
  flex: 1;
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-height: 80vh;
  overflow-y: auto;
  min-width: 0;
}

.lesson-sidebar-title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #1f2937;
}

.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lesson-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  gap: 0.75rem;
}

.lesson-item:hover {
  background-color: #f9fafb;
}

.lesson-item.active {
  background-color: #fef3c7;
  border: 1px solid #FFCE00;
}

.lesson-item-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #e5e7eb;
  flex-shrink: 0;
}

.lesson-item-status.completed {
  background-color: #10b981;
}

.lesson-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

/* Tablet için lesson container */
@media (min-width: 768px) and (max-width: 1023px) {
  .lesson-sidebar {
    width: 250px;
  }
}

/* Performans optimizasyonu - Sadece gereksiz animasyonları kaldır */
.nav-link, .nav-icon, .btn {
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

/* Sayfa geçişleri için minimal animasyon */
.page {
  transition: opacity 0.2s ease !important;
}

/* Giriş animasyonu için özel kurallar - bunları koru */
.letter {
  transition: transform 0.5s ease, opacity 0.5s ease !important;
  animation: none;
}

.letter.active {
  animation: letterScale 0.5s ease !important;
}

.letter.exit {
  animation: letterExit 0.8s ease !important;
}

@keyframes letterScale {
  0% { transform: scale(1) rotate(0deg); opacity: 0.3; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
  100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

@keyframes letterExit {
  0% { transform: scale(1) rotate(360deg); opacity: 1; }
  50% { transform: scale(1.5) rotate(540deg); opacity: 0.5; }
  100% { transform: scale(3) rotate(720deg); opacity: 0; }
}

/* Admin form stilleri */
.admin-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.admin-form-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.admin-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.admin-form-header h3 {
  margin: 0;
  color: #333;
}

.close-form-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
}

.admin-form .form-group {
  margin-bottom: 15px;
}

.admin-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.admin-form textarea {
  min-height: 60px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.form-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.form-actions button[type="button"] {
  background: #6c757d;
  color: white;
}

.form-actions .btn-primary {
  background: #FFCE00;
  color: #333;
  font-weight: bold;
}

.admin-message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  font-weight: bold;
}

.admin-message-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.admin-message-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.admin-message-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}