#map {
    height: 400px;
    width: 100%;
    border-radius: 0.5rem;
}

/* Responsive harita yükseklikleri */
/* Desktop için harita yüksekliği */
@media (min-width: 1025px) {
    #map {
        height: 400px;
        min-height: 400px;
    }
}

/* Tablet için harita yüksekliği */
@media (min-width: 768px) and (max-width: 1024px) {
    #map {
        height: 400px;
        min-height: 400px;
    }
}

/* Mobil için harita yüksekliği */
@media (max-width: 767px) {
    #map {
        height: 400px;
        min-height: 400px;
    }
}

.earthquake-marker {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    background-color: red;
    opacity: 0.6;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Dark mode styles */
:root {
    --bg-dark: #111827;
    --bg-card-dark: #1f2937;
    --text-light-dark: #f3f4f6;
    --text-muted-dark: #9ca3af;
    --border-dark: #374151;
    --hover-dark: #4b5563;
}

.dark body {
    background-color: var(--bg-dark);
    color: var(--text-light-dark);
}

.dark .bg-white,
.dark nav,
.dark footer,
.dark .stats-card,
.dark .bg-white.rounded-lg {
    background-color: var(--bg-card-dark);
}

.dark .text-gray-800,
.dark .text-gray-900,
.dark .counter-value,
.dark .stats-title {
    color: var(--text-light-dark);
}

.dark .text-gray-500,
.dark .stats-subtitle {
    color: var(--text-muted-dark);
}

.dark .border-gray-200,
.dark .border-t,
.dark .divide-gray-200 > * {
    border-color: var(--border-dark);
}

.dark .bg-gray-50,
.dark thead.bg-gray-50,
.dark select,
.dark input {
    background-color: var(--bg-card-dark);
    color: var(--text-light-dark);
}

.dark select,
.dark input {
    border-color: var(--border-dark);
}

.dark .hover\:bg-gray-50:hover,
.dark table tbody tr:hover {
    background-color: var(--hover-dark);
}

.dark .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
}

.dark table tbody {
    background-color: var(--bg-card-dark);
}

/* Stats Card Dark Mode Styles */
.dark .stats-card {
    background-color: var(--bg-card-dark);
    border: 1px solid var(--border-dark);
}

.dark .icon-container {
    background-color: var(--hover-dark);
}

/* Footer Düzenlemeleri */
footer {
    position: relative;
    width: 100%;
    z-index: 1;
    background-color: white;
    border-top: 1px solid #e5e7eb;
}

/* Sayfalama bölümünün z-index değerini düşür */
#pagination-info, #prevPage, #nextPage {
    z-index: 1;
}

/* Harita yüksekliğini 600px yap */
#map {
    height: 600px !important;
}

/* Harita konteyneri yüksekliği */
.w-full.h-96 {
    height: 600px !important;
}

/* Deprem marker'ları için basit stil */
.earthquake-marker-container {
    /* Hiçbir animasyon yok, tamamen statik */
}

/* Marker'ın iç metni için stil */
.earthquake-marker div {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .flex-col {
        height: auto;
    }
    
    .custom-scrollbar {
        max-height: 35vh;
    }
    
    .w-1\/2 {
        width: 100%;
    }
    
    .flex {
        flex-direction: column;
    }
    
    /* Daha kompakt gap */
    .gap-4 {
        gap: 0.75rem;
    }
    
    /* Alt satır için istatistik kartları */
    .stats-container {
        max-height: 50vh;
        overflow-y: auto;
    }
}

/* Mobil Optimizasyonları */
@media (max-width: 640px) {
    .text-xl {
        font-size: 1.1rem;
    }
    
    .px-6 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .py-3 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .text-xs {
        font-size: 0.7rem;
    }
    
    .gap-4 {
        gap: 0.5rem;
    }
    
    .min-w-200 {
        min-width: 100%;
    }

    /* Footer için mobil düzenlemeler */
    footer {
        position: relative;
        margin-top: 1.5rem;
    }

    /* Ana içerik için padding */
    .flex-col {
        padding-bottom: 0.75rem;
    }

    /* Tablo container için margin */
    .custom-scrollbar {
        margin-bottom: 0.75rem;
    }

    /* Filtre butonları için mobil düzenlemeler */
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .flex-wrap {
        gap: 0.5rem;
    }
    
    
    /* İstatistik kartları için mobil düzenlemeler */
    .stats-card {
        margin-bottom: 0.75rem;
        padding: 0.75rem;
    }
    
    .counter-value {
        font-size: 1.5rem !important;
    }
    
    .icon-container {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Tablet Optimizasyonları */
@media (min-width: 641px) and (max-width: 1024px) {
    
    .custom-scrollbar {
        max-height: 38vh;
    }
    
    /* Daha kompakt gap */
    .gap-4 {
        gap: 0.75rem;
    }
}

/* Yatay Kaydırma için Tablo */
.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* Harita Kontrolleri */
.leaflet-control-zoom {
    margin: 10px !important;
}

.leaflet-control-zoom a {
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 18px !important;
}

/* Filtreleme Alanı */
.bg-gray-50 {
    background-color: #f9fafb;
}

/* Tablo Başlıkları */
.sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f9fafb;
}

/* Mobil Menü */
@media (max-width: 640px) {
    .flex-wrap {
        flex-direction: column;
    }
    
    .min-w-[200px] {
        margin-bottom: 1rem;
    }
}

/* Filtre Butonları */
.filter-btn {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 1px solid transparent;
}

.filter-btn:hover {
    border-color: #3b82f6;
}

.filter-btn.active {
    background-color: #3b82f6 !important;
    color: white !important;
    border-color: #2563eb;
}

/* İstatistik Kartları için özel stiller */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stats-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.icon-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 0.75rem;
}

.icon-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

.icon-primary.dark {
    background-color: #1e3a8a;
    color: #93c5fd;
}

.icon-warning {
    background-color: #fef3c7;
    color: #d97706;
}

.icon-warning.dark {
    background-color: #92400e;
    color: #fcd34d;
}

.icon-secondary {
    background-color: #e0e7ff;
    color: #4338ca;
}

.icon-secondary.dark {
    background-color: #312e81;
    color: #a5b4fc;
}

.icon-info {
    background-color: #dbeafe;
    color: #0369a1;
}

.icon-info.dark {
    background-color: #1e3a8a;
    color: #93c5fd;
}

.icon-success {
    background-color: #d1fae5;
    color: #059669;
}

.icon-success.dark {
    background-color: #064e3b;
    color: #6ee7b7;
}

/* Saatlik çubuklar için animasyon */
.hourly-bar {
    transition: all 0.3s ease-in-out;
}

.hourly-bar:hover {
    transform: scale(1.05);
}

/* Büyüklük çubukları için animasyon */
.magnitude-bar {
    transition: all 0.3s ease-in-out;
}

.magnitude-bar:hover {
    transform: scale(1.05);
}

/* Sayfalama butonları */
#prevPage:hover, #nextPage:hover {
    background-color: #f3f4f6 !important;
}

.dark #prevPage:hover, .dark #nextPage:hover {
    background-color: #374151 !important;
}

/* Otomatik güncelleme switch */
#autoUpdate:checked + .block {
    background-color: #3b82f6;
}

#autoUpdate:checked + .block + .dot {
    transform: translateX(24px);
    background-color: #ffffff;
}

/* Varsayılan durum (kapalı) */
#autoUpdate + .block {
    background-color: #d1d5db;
}

#autoUpdate + .block + .dot {
    background-color: #ffffff;
}

/* Smooth geçişler */
#autoUpdate + .block,
#autoUpdate + .block + .dot {
    transition: all 0.2s ease-in-out;
}

/* Devre dışı durum stilleri */
#autoUpdate:disabled + .block {
    background-color: #9ca3af;
    cursor: not-allowed;
}

#autoUpdate:disabled + .block + .dot {
    background-color: #6b7280;
}

/* Dropdown menü devre dışı durumu */
#updateFrequency:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.6;
}

.dark #updateFrequency:disabled {
    background-color: #374151;
}

/* Güncelleme sıklığı dropdown menüsü */
#updateFrequency {
    min-width: 120px;
    transition: all 0.2s ease-in-out;
}

#updateFrequency:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#updateFrequency:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Dark mode dropdown stilleri */
.dark #updateFrequency {
    background-color: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

.dark #updateFrequency:hover {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.dark #updateFrequency:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* Responsive dropdown menü */
@media (max-width: 640px) {
    #updateFrequency {
        min-width: 100px;
        font-size: 0.8rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    #updateFrequency {
        min-width: 110px;
    }
}

/* Tablo satır hover efekti */
table tbody tr {
    transition: background-color 0.2s ease-in-out;
}

table tbody tr:hover {
    background-color: #f9fafb;
}

.dark table tbody tr:hover {
    background-color: #374151;
}

/* Responsive tablo */
@media (max-width: 768px) {
    .min-w-full {
        min-width: 100%;
    }
    
    .divide-y {
        border-top: 1px solid #e5e7eb;
    }
    
    .dark .divide-y {
        border-top-color: #374151;
    }
}

/* Yeni 2 satırlı istatistik yapısı için özel stiller */
.stats-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

.stats-row .stats-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

/* İstatistik kartlarının daha kompact görünmesi için */
.stats-card {
    margin-bottom: 0;
    min-height: 0;
}

/* Mobilde istatistik satırları için responsive düzenleme */
@media (max-width: 1024px) {
    .stats-row {
        gap: 0.75rem;
    }
    
    .stats-row .stats-container {
        gap: 0.75rem;
    }
}

/* Tablet ve mobilde istatistik kartlarının daha iyi görünmesi */
@media (max-width: 768px) {
    .stats-row {
        gap: 0.5rem;
    }
    
    .stats-row .stats-container {
        gap: 0.5rem;
    }
    
    .stats-card {
        padding: 0.75rem;
    }
}

/* Slider (Range Input) Stilleri */
.slider {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.slider::-webkit-slider-track {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #3b82f6;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}

.slider::-webkit-slider-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.slider::-moz-range-track {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    border: none;
}

.slider::-moz-range-thumb {
    background: #3b82f6;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.slider::-moz-range-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Dark mode slider stilleri */
.dark .slider::-webkit-slider-track {
    background: #374151;
}

.dark .slider::-webkit-slider-thumb {
    background: #60a5fa;
    border-color: #1f2937;
}

.dark .slider::-moz-range-track {
    background: #374151;
}

.dark .slider::-moz-range-thumb {
    background: #60a5fa;
    border-color: #1f2937;
}

.dark .slider::-moz-range-thumb:hover {
    background: #3b82f6;
}

/* Slider aktifken focus efekti */
.slider:focus {
    outline: none;
}

.slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Tablo fontlarını küçültme ve sütun optimizasyonu */
#quakeList td {
    font-size: 0.8rem !important;
    padding: 0.5rem 0.75rem !important;
    line-height: 1.2 !important;
}

#quakeList th {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
    line-height: 1.1 !important;
}

/* Tablo başlıklarını daha kompakt yap */
thead th {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
}

/* Tablo satırlarını daha kompakt yap */
tbody tr {
    height: auto !important;
    min-height: 2.5rem !important;
}

/* Büyüklük etiketini daha küçük yap */
#quakeList .px-2 {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    line-height: 1.1 !important;
}

/* Mobilde tablo fontlarını daha da küçült */
@media (max-width: 768px) {
    #quakeList td {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.5rem !important;
    }
    
    #quakeList th {
        font-size: 0.65rem !important;
        padding: 0.4rem 0.5rem !important;
    }
    
    thead th {
        font-size: 0.6rem !important;
        padding: 0.4rem 0.5rem !important;
    }
    
    #quakeList .px-2 {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem !important;
    }
}

/* Tablette tablo fontlarını küült */
@media (min-width: 769px) and (max-width: 1024px) {
    #quakeList td {
        font-size: 0.75rem !important;
        padding: 0.45rem 0.6rem !important;
    }
    
    #quakeList th {
        font-size: 0.7rem !important;
        padding: 0.45rem 0.6rem !important;
    }
}