.schools-stats-container {
  background: white;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
  align-items: center;
}

.total-schools, .cities-dropdown {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: #f8f9fa;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex: 1;
  min-height: 50px;
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-toggle {
  display: flex;
  gap: 4px;
}

.view-toggle .btn {
  padding: 6px 10px;
  border: 1px solid #dee2e6;
  background: white;
  border-radius: 4px;
  font-size: 12px;
}

.view-toggle .btn.active {
  background: #5C3890;
  color: white;
  border-color: #5C3890;
}

.cities-toggle-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.total-schools:hover, .cities-dropdown:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}



.stats-icon {
  width: 32px;
  height: 32px;
  background: #5C3890;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.stats-icon i {
  font-size: 14px;
  color: white;
}

.stats-info h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.stats-info p {
  font-size: 12px;
  color: #6c757d;
  margin: 2px 0 0;
  display: flex;
  align-items: center;
}

.toggle-icon {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.toggle-icon.active {
  transform: rotate(180deg);
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  opacity: 0;
}

.cities-grid.active {
  max-height: 300px;
  opacity: 1;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #e9ecef;
}

.city-item {
  background: white;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
  cursor: pointer;
  min-height: 36px;
}

.city-item:hover {
  background: #f8f9fa;
  border-color: #5C3890;
  transform: translateY(-1px);
}

.city-name {
  font-weight: 500;
  color: #495057;
  font-size: 13px;
  flex: 1;
}

.city-count {
  font-size: 14px;
  font-weight: 600;
  color: #5C3890;
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 24px;
  text-align: center;
}

.city-item.active {
  background: #5C3890;
  border-color: #5C3890;
}

.city-item.active .city-name {
  color: white;
}

.city-item.active .city-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.filtered-text {
  font-size: 16px;
  font-weight: 500;
  color: #5C3890;
  margin: 10px 0;
  padding: 5px 10px;
  background-color: #f5f0ff;
  border-radius: 5px;
  display: inline-block;
}

@media (max-width: 768px) {
  .stats-header {
    flex-direction: column;
    gap: 15px;
  }
  
  .total-schools, .cities-dropdown {
    width: 100%;
  }
  
  .cities-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}