Body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f4f6f8;
  color: #222;
}

.ust-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: #fff;
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.beta-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.beta-text {
  font-weight: bold;
  color: #666;
  font-size: 14px;
}

/* Responsive logo sizing for mobile */
@media (max-width: 768px) {
  .logo {
    height: 45px;
  }
  
  .beta-text {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 45px;
  }
  
  .beta-text {
    font-size: 11px;
  }
}

.popup-baslik {
  text-align: center;
  margin: 0 0 15px 0;
  font-size: 22px;
  font-weight: bold;
  color: #1c1c1c;
}

/* BUTONLAR İÇİN YENİ DÜZEN */
.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

#anaSayfaBtn, #filtreBtn, #anaHaritaBtn, #istatistikBtn, #tarihBtn, #siralaBtn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background-color: #1e88e5;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

#anaSayfaBtn:hover, #filtreBtn:hover, #anaHaritaBtn:hover, #istatistikBtn:hover, #tarihBtn:hover, #siralaBtn:hover {
  background-color: #1565c0;
}

#guncelSaat {
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  margin-bottom: 15px;
}

h1 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 28px;
  color: #1c1c1c;
}

#deprem-listesi {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}

.deprem-kart {
  background: #fff;
  padding: 18px 20px;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.deprem-kart:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.deprem-kart .tarih {
  font-weight: bold;
  margin-bottom: 6px;
  color: #333;
}
.deprem-kart .konum {
  margin-bottom: 8px;
  color: #555;
  font-style: normal;
}

.buyukluk {
  padding: 6px 12px;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  display: inline-block;
  margin-right: 5px;
}
.buyukluk.kucuk { background-color: #4caf50; }
.buyukluk.orta { background-color: #ff9800; }
.buyukluk.buyuk { background-color: #f44336; }

.km {
  padding: 6px 12px;
  border-radius: 6px;
  background-color: #888;
  color: #fff;
  font-weight: 600;
  display: inline-block;
}

.detaylar-btn, .kapat-btn {
  position: absolute;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.detaylar-btn {
  top: 10px;
  right: 10px;
  background: #1e88e5;
  color: #fff;
}
.detaylar-btn:hover { background: #1565c0; }

.kapat-btn {
  top: 10px;
  right: 10px;
  background: #f44336;
  color: #fff;
}
.kapat-btn:hover { background: #d32f2f; }

.mini-harita {
  height: 300px;
  border-radius: 10px;
  margin-top: 10px;
  display: none;
}

/* Sayfalama */
.sayfalama {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
}
.sayfalama button {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background-color: #1e88e5;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}
.sayfalama button:hover { background-color: #1565c0; }
.sayfalama button:disabled { background-color: #ccc; cursor: not-allowed; }

/* Genel harita popup */
#genelHaritaContainer {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
  z-index: 9999;
  width: 90%;
  max-width: 900px;
}

.genel-harita { height: 500px; border-radius: 12px; width: 100%; }

#kapatGenelHarita {
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: #f44336;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  display: block;
}
#kapatGenelHarita:hover { background: #d32f2f; }

/* Filtre popup */
#filtrePopup, #tarihPopup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
  z-index: 9998;
  width: 300px;
  text-align: center;
}
#filtrePopup h2, #tarihPopup h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 15px;
  color: #1c1c1c;
}
#filtrePopup input, #tarihPopup input {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Filtre butonları için yeni grup */
.filtre-buton-grup {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

#filtreUygula, #kapatFiltrePopup, #tarihUygula, #kapatTarihPopup {
  flex-grow: 1;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

#filtreUygula, #tarihUygula {
  background: #1e88e5;
}
#filtreUygula:hover, #tarihUygula:hover { 
  background: #1565c0; 
}

#kapatFiltrePopup, #kapatTarihPopup {
  background: #f44336;
}
#kapatFiltrePopup:hover, #kapatTarihPopup:hover {
  background: #d32f2f;
}

/* Bu stil loading ekranı için eklendi */
.loading-indicator {
  border: 2px solid #007bff;
  color: #007bff;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
  border-radius: 8px;
  font-size: 1.2em;
  display: none;
}

/* İstatistik Pop-up'ı */
#istatistikPopup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}
.istatistik-icerik {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.istatistik-icerik h2 {
  text-align: center;
  margin-top: 0;
  color: #1c1c1c;
}

#istatistik-listesi {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.istatistik-satir {
  background: #f0f4f7;
  padding: 12px 15px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.istatistik-satir:hover {
  background: #e1e9f0;
}

#istatistik-listesi .deprem-sayisi {
  font-weight: bold;
  color: #1e88e5;
}

#kapatIstatistikPopup {
  margin-top: 20px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #f44336;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  display: block;
  width: 100%;
}
#kapatIstatistikPopup:hover {
  background: #d32f2f;
}
