.stats-container {
  max-width: 1200px;
  margin: -20px auto 0 auto;
  padding: 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
}

.stats-header {
  background: none;
  color: #2c3e50;
  padding: 10px 20px 15px 20px;
  margin-bottom: 20px;
  text-align: center;
}

.stats-header h1 {
  margin: 0 0 8px 0;
  font-size: 2.2rem;
  font-weight: 600;
  color: #2c3e50;
  letter-spacing: -0.5px;
}

.stats-header p {
  margin: 0 0 15px 0;
  font-size: 1rem;
  color: #495057;
  opacity: 1;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.update-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  margin: 10px auto;
  max-width: 600px;
  border: 1px solid #e9ecef;
}

.update-info p {
  margin: 0 0 5px 0;
  font-size: 0.95rem;
  color: #495057;
}

.stats-header h4 {
  font-size: 2.5rem;
  margin: 10px 0 5px 0;
  font-weight: 700;
  color: #003a9d;
  letter-spacing: -0.5px;
}

.stats-header small {
  font-size: 0.95rem;
  color: #6c757d;
  opacity: 1;
  font-weight: 500;
}

.score-type-section {
  margin-bottom: 40px;
  padding: 25px;
  background-color: #ffffff; /* BEYAZ ARKA PLAN */
  border: 1px solid #e9ecef; /* Hafif gri border */
  border-radius: 8px; /* Yuvarlatılmış köşeler */
}

.score-type-title {
  color: #2c3e50; /* Koyu gri başlık */
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  display: block;
}

.score-type-search {
  position: relative;
  margin-bottom: 25px;
}

.local-search {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  background: #ffffff; /* Beyaz arka plan */
}

.local-search:focus {
  outline: none;
  border-color: #dee2e6;
  background: white;
  box-shadow: none;
}

.search-results-local {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e0e6ed;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.search-result-local {
  padding: 15px 20px;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-result-local:hover {
  background-color: #f8f9fa;
}

.search-result-local:last-child {
  border-bottom: none;
}

.loading,
.no-results {
  padding: 15px 20px;
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

.program-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  margin-bottom: 8px;
  background: #eeeeee; /* 1 ton daha koyu gri */
  border-radius: 8px;
  border: 1px solid #e9ecef; /* Hafif kenarlık */
  box-shadow: none;
  gap: 15px; /* Program adı ile sayı arasında minimum mesafe */
}

.program-name {
  flex: 1;
  font-size: 1rem;
  font-weight: 700; /* En kalın */
  color: #000000; /* Siyah metin */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0; /* Flexbox truncation için gerekli */
}

.program-name.empty-slot {
  color: #6c757d; /* Orta gri */
  font-style: italic;
}

.program-count {
  font-size: 0.95rem;
  font-weight: 500;
  color: #003a9d; /* Navbar mavi rengi */
  white-space: nowrap;
  flex-shrink: 0; /* Sayı kısmı asla küçülmesin */
  min-width: 80px; /* Minimum genişlik */
  text-align: right;
}

/* Responsive */

/* Küçük tablet - program isimlerini kısalt */
@media (max-width: 992px) {
  .program-name {
    max-width: 400px; /* Çok uzun program adlarını kısalt */
  }

  .program-count {
    min-width: 90px;
  }
}

/* Büyük telefon / Küçük tablet */
@media (max-width: 768px) {
  .stats-container {
    padding: 15px;
    margin-top: -10px;
  }

  .stats-header {
    padding: 15px;
  }

  .stats-header h1 {
    font-size: 1.8rem;
  }

  .stats-header h4 {
    font-size: 2.2rem;
  }

  .score-type-section {
    padding: 15px;
    margin-bottom: 30px;
  }

  .score-type-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .program-bar {
    padding: 10px 15px;
    gap: 10px;
  }

  .program-name {
    max-width: 250px; /* Daha sıkışık alanda daha kısa */
    font-size: 0.95rem;
  }

  .program-count {
    font-size: 0.9rem;
    min-width: 85px;
  }
}

/* Küçük telefon */
@media (max-width: 576px) {
  .stats-container {
    padding: 10px;
    margin-top: 0;
  }

  .stats-header {
    padding: 10px;
  }

  .stats-header h1 {
    font-size: 1.6rem;
  }

  .stats-header h4 {
    font-size: 2rem;
  }

  .stats-header p {
    font-size: 0.9rem;
  }

  .score-type-section {
    padding: 12px;
    margin-bottom: 25px;
  }

  .score-type-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .program-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 15px;
  }

  .program-name {
    max-width: none; /* Column modunda max-width gereksiz */
    font-size: 0.95rem;
    white-space: normal; /* Çok uzunsa alt satıra geçebilir */
    text-overflow: initial;
    overflow: visible;
  }

  .program-count {
    align-self: flex-end;
    font-size: 0.9rem;
    min-width: auto;
    text-align: right;
    background: rgba(0, 58, 157, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
  }

  .local-search {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .update-info {
    padding: 10px;
    font-size: 0.9rem;
  }
}

/* Çok küçük telefon */
@media (max-width: 375px) {
  .stats-header h1 {
    font-size: 1.4rem;
  }

  .stats-header h4 {
    font-size: 1.8rem;
  }

  .program-name {
    font-size: 0.9rem;
  }

  .program-count {
    font-size: 0.85rem;
  }
}

/* Dark mode desteği kaldırıldı - her zaman beyaz tema */

/* Animasyonlar */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.score-type-section {
  animation: fadeInUp 0.6s ease-out;
}

.program-bar {
  animation: fadeInUp 0.4s ease-out;
  animation-fill-mode: both;
}

.program-bar:nth-child(1) {
  animation-delay: 0.1s;
}
.program-bar:nth-child(2) {
  animation-delay: 0.2s;
}
.program-bar:nth-child(3) {
  animation-delay: 0.3s;
}
.program-bar:nth-child(4) {
  animation-delay: 0.4s;
}
.program-bar:nth-child(5) {
  animation-delay: 0.5s;
}
.program-bar:nth-child(6) {
  animation-delay: 0.6s;
}
.program-bar:nth-child(7) {
  animation-delay: 0.7s;
}
.program-bar:nth-child(8) {
  animation-delay: 0.8s;
}
.program-bar:nth-child(9) {
  animation-delay: 0.9s;
}
.program-bar:nth-child(10) {
  animation-delay: 1s;
}

/* Renk teması kaldırıldı - tüm bölümler aynı */
