/* =========================================
   1. GENEL AYARLAR VE DEĞİŞKENLER 
   ========================================= */
/* Değişkenler dark-mode.css içine taşındı */

/* =========================================
   1.1 PREMIUM AESTHETICS (SCROLLBAR & SELECTION)
   ========================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

::selection {
    background: rgba(13, 110, 253, 0.2);
    color: inherit;
}

/* =========================================
   1.2 NAVBAR MICRO-ANIMATIONS (Premium Hover)
   ========================================= */
.navbar-nav .nav-link:not(.dropdown-toggle) {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: rgba(13, 110, 253, 0.8);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:not(.dropdown-toggle):hover::after {
    width: 80%;
}

/* =========================================
   1.3 BUTTON MICRO-ANIMATIONS & FOCUS RINGS Trigger
   ========================================= */
.btn {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:active {
    transform: scale(0.96);
}

:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.4);
    outline-offset: 2px;
    border-radius: inherit;
}

/* =========================================
   1.4 PULSE EFFECT (HIGH MAGNITUDE)
   ========================================= */
@keyframes pulseDanger {
    0% {
        box-shadow: inset 5px 0 0 rgba(220, 53, 69, 1), 0 0 0 0 rgba(220, 53, 69, 0.4);
    }

    70% {
        box-shadow: inset 5px 0 0 rgba(220, 53, 69, 1), 0 0 0 8px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: inset 5px 0 0 rgba(220, 53, 69, 1), 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.pulse-danger {
    box-shadow: inset 5px 0 0 rgba(220, 53, 69, 1);
    background-color: rgba(220, 53, 69, 0.05) !important;
    border-left: 0 !important;
}

.pulse-warning {
    background-color: rgba(253, 126, 20, 0.03) !important;
    border-left: 3px solid #fd7e14 !important;
}

/* =========================================
   MODERN ALERT (BİLGİLENDİRME KARTLARI)
   ========================================= */
.modern-alert {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.5s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.modern-alert-danger {
    background: rgba(220, 53, 69, 0.05);
    border-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.modern-alert-success {
    background: rgba(25, 135, 84, 0.05);
    border-color: rgba(25, 135, 84, 0.2);
    color: #198754;
}

.modern-alert-warning {
    background: rgba(255, 193, 7, 0.05);
    border-color: rgba(255, 193, 7, 0.1);
    color: #997404;
}

.modern-alert-icon {
    font-size: 1.75rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-alert-content {
    flex-grow: 1;
}

.modern-alert-title {
    font-weight: 700;
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
    letter-spacing: -0.2px;
}

.modern-alert-text {
    margin-bottom: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.9;
}

:root {
    /* Deprem Büyüklük Renkleri */
    --mag-color-0: rgb(225, 225, 225);
    --mag-color-1: rgb(180, 180, 180);
    --mag-color-2: rgb(135, 189, 55);
    --mag-color-3: rgb(67, 192, 236);
    --mag-color-4: rgb(251, 187, 16);
    --mag-color-5: rgb(158, 81, 153);
    --mag-color-6: rgb(230, 66, 36);
    --mag-color-7: rgb(111, 37, 28);
}

/* Disable transitions during theme switch */
.no-transition * {
    transition: none !important;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--theme-bg);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header Minimalist Butonlar */
.header-util-btn {
    border-radius: 8px !important;
    padding: 0.4rem 0.6rem !important;
    border: none !important;
    font-weight: 600;
}

.header-auth-btn {
    border-radius: 8px !important;
    padding: 0.4rem 0.85rem !important;
    font-weight: 600;
    font-size: 0.8rem !important;
}

.btn-soft-primary {
    background: rgba(59, 125, 221, 0.1) !important;
    color: #3b7ddd !important;
}


.btn-soft-secondary {
    background: rgba(108, 117, 125, 0.1) !important;
    color: #6c757d !important;
}


a {
    text-decoration: none;
}

/* =========================================
   2. KART YAPILARI (STANDART MODERN TASARIM)
   ========================================= */

/* Ana Kart Şablonu - Tüm kartlar bu stili miras alacak */
.card,
.modern-card,
.eq-card-modern,
.stat-card,
.stat-card-modern,
.table-row-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px var(--shadow-sm);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

/* Kart Hover Efekti (Genel) */
.card:hover,
.modern-card:hover,
.eq-card-modern:hover,
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-md);
}

.card-header {
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.card-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 10px;
    display: block;
}

/* Form Elemanları Odak (Focus) Ayarları */
.form-control:focus,
.form-select:focus {
    border-color: var(--border-color) !important;
    box-shadow: none !important;
    outline: 0 !important;
}

/* =========================================
   3. HARİTA VE ANİMASYONLAR
   ========================================= */
#main-map,
#detail-map,
#city-map {
    border-radius: 0 0 12px 12px;
    z-index: 1;
}

/* Leaflet Custom Styles */
.leaflet-control-layers {
    background: #fff !important;
    color: #333 !important;
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
}

.leaflet-control-layers-expanded {
    padding: 10px !important;
}

[data-theme="dark"] .leaflet-control-layers {
    background: #334155 !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Pulse (Nabız) Efekti */
/* --- HARİTA PULSE (NABIZ) EFEKTİ --- */

/* Marker kapsayıcısı */
.pulse-marker-container {
    background: transparent;
    border: none;
    pointer-events: none;
    /* Tıklamayı engelleme, alttakine geçir */
}

/* Merkezdeki sabit nokta */
.pulse-core {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: auto;
    /* Tıklanabilir olsun */
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Dışarı yayılan halka */
.pulse-ring {
    content: '';
    border: 3px solid transparent;
    /* Rengi JS ile dinamik veriyoruz */
    border-radius: 50%;
    height: 40px;
    width: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulsate 2s infinite ease-out;
    /* Animasyon Tanımı */
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Animasyon Keyframes - Geliştirilmiş Modern Efekt */
@keyframes pulsate {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 0;
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }

    30% {
        opacity: 0.6;
    }

    60% {
        opacity: 0.4;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* =========================================
   4. DETAY SAYFASI ÖZEL (HERO & LİSTE)
   ========================================= */
/* Büyüklük Kartı Arka Planı */
.hero-card-bg {
    background: var(--bg-primary);
    position: relative;
}

/* Büyüklük Halkası */
.mag-ring {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.bg-deco {
    position: absolute;
    bottom: -15px;
    left: -15px;
    font-size: 6rem;
    opacity: 0.03;
    transform: rotate(15deg);
    pointer-events: none;
}

/* Bilgi Kutucukları */
.info-box {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
}

/* Yerleşim Listesi */
.settlement-list {
    width: 100%;
}

.settlement-item {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settlement-item:last-child {
    border-bottom: none;
}

.settlement-link {
    text-decoration: none;
    color: #343a40;
    font-weight: 600;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* İlerleme Çubukları */
.progress-thin {
    height: 6px;
    border-radius: 10px;
    background-color: var(--border-color);
}

.progress-bar-solid {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* =========================================
   5. BİLEŞENLER (SAYFALAMA & FİLTRE)
   ========================================= */






/* =========================================
   7. BİLDİRİM SİSTEMİ (TOAST)
   ========================================= */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.earthquake-toast {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: var(--card-border-thin);
    border-left: 5px solid #ddd;
    padding: 15px;
    min-width: 300px;
    display: flex;
    align-items: center;
    animation: slideIn 0.4s forwards;
    cursor: pointer;
}

.map-popup-card {
    padding: 5px;
    border: none;
    /* Kapsayıcıda border olmasın, Leaflet hallediyor ama iç yapı için */
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-mag-badge {
    background: #f3f4f6;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 6px;
    margin-left: auto;
}

/* =========================================
   8. MEDYA SORGULARI VE YAZDIRMA
   ========================================= */
@media (max-width: 768px) {
    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-icon-box {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media print {
    body {
        background: var(--bg-primary);
    }

    .no-print,
    .btn {
        display: none;
    }

    .modern-card,
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
    }

    #detail-map {
        height: 400px;
        border: 1px solid #ccc;
    }
}


/* =========================================
   LOGO PULSE EFEKTİ
   ========================================= */
.pulse-container {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulse Logo (Red dot center) */
.pulse-dot {
    width: 12px;
    height: 12px;
    background: #ff3b30;
    border-radius: 50%;
    position: relative;
    z-index: 10;
}

/* Create two expanding rings using ::before and ::after */
.pulse-dot::before,
.pulse-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}

/* Inner Ring: Red with soft fill */
.pulse-dot::before {
    background-color: rgba(255, 59, 48, 0.3);
    border: 1px solid rgba(255, 59, 48, 0.5);
    animation: pulse-red-ring 3s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Outer Ring: White distinct line */
.pulse-dot::after {
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    animation: pulse-white-ring 3s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-delay: 0.5s;
    /* Slight delay for ripple effect */
}

@keyframes pulse-red-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

@keyframes pulse-white-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.2);
        /* Goes slightly further than red */
        opacity: 0;
    }
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* --- MODERN SIDEBAR TASARIMI --- */
.sidebar {
    background: #334155;
    /* Slate 700 */
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.sidebar-header {
    color: #ced4da;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1rem 1.5rem .25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* Menü Linkleri */
.sidebar-item {
    margin-bottom: 2px;
    padding: 0 10px;
    /* Kenarlardan boşluk */
}

.sidebar-link,
a.sidebar-link {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    border-left: 0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

/* AI Laboratuvarı Özel Stil */
.ai-lab-link {
    position: relative;
    background: rgba(139, 92, 246, 0.1) !important;
}



.ai-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    margin-right: 12px;
    animation: ai-pulse 3s ease-in-out infinite;
}

.ai-icon-wrapper i {
    color: #fff !important;
    font-size: 0.9rem;
    margin-right: 0 !important;
}

@keyframes ai-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(139, 92, 246, 0);
    }
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
}

.sidebar-item.active .ai-lab-link {
    background: linear-gradient(90deg, #8b5cf6 0%, #6366f1 100%) !important;
}

.sidebar-item.active .ai-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
}


/* İkonlar */
.sidebar-link i,
.sidebar-link svg {
    margin-right: 12px;
    color: rgba(255, 255, 255, 0.5);
}



/* Aktif (Seçili) Durumu */
.sidebar-item.active .sidebar-link {
    background: linear-gradient(90deg, #3b7ddd 0%, #3063aa 100%);
    /* Mavi Gradient */
    color: #fff;
    box-shadow: 0 4px 10px rgba(59, 125, 221, 0.4);
    /* Parlama efekti */
}

.sidebar-item.active .sidebar-link i,
.sidebar-item.active .sidebar-link svg {
    color: #fff;
}

/* Alt kısımdaki kullanıcı alanı (Mobil menüde şık durur) */
.sidebar-cta-content {
    background: rgba(59, 125, 221, 0.1);
    border: 1px solid rgba(59, 125, 221, 0.2);
    border-radius: 12px;
}

/* =========================================
   MODERN SAYFALAMA - TÜM SAYFALAR İÇİN
   ========================================= */

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    gap: 6px;
    margin: 0;
    align-items: center;
    flex-wrap: wrap;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px var(--shadow-sm);
    cursor: pointer;
}

.pagination .page-link:hover:not(.disabled) {
    background-color: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px var(--shadow-md);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #3b7ddd 0%, #2563aa 100%);
    border-color: #3b7ddd;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 125, 221, 0.3);
    transform: translateY(-1px);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    background-color: var(--bg-secondary);
    color: var(--text-muted);
}

/* Sayfalama responsive */
@media (max-width: 576px) {
    .pagination .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 8px;
    }
}

/* =========================================
   MODERN FİLTRE BUTONLARI
   ========================================= */

.filter-buttons {
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: inline-flex;
    gap: 4px;
    box-shadow: 0 2px 8px var(--shadow-sm);
    flex-wrap: wrap;
}

.filter-buttons .btn {
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 7px;
    color: var(--text-secondary);
    background: transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-buttons .btn.active {
    background: linear-gradient(135deg, #3b7ddd 0%, #2563aa 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(59, 125, 221, 0.25);
    transform: translateY(-1px);
}

.filter-buttons .btn:hover:not(.active) {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Filtre butonları responsive */
@media (max-width: 576px) {
    .filter-buttons {
        width: 100%;
        justify-content: center;
    }

    .filter-buttons .btn {
        flex: 1;
        min-width: 60px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* =========================================
   MODERN İSTATİSTİK KARTLARI
   ========================================= */

.stat-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 24px;
    border: var(--card-border-thin);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b7ddd, #2563aa);
    opacity: 0;
    transition: opacity 0.3s ease;
}



.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   GELIŞMIŞ KART HOVER EFEKTLERİ
   ========================================= */

.hover-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



/* =========================================
   MODERN BADGE STİLLERİ
   ========================================= */

.badge-modern {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* =========================================
   RESPONSIVE UTİLİTİES
   ========================================= */

/* =========================================
   TABLE HOVER EFEKTLERİ (TIKLANA BİLİR SATIRLAR)
   ========================================= */

.table-row-hover {
    transition: all 0.2s ease;
}



@media (max-width: 768px) {
    .stat-card {
        padding: 20px;
    }

    .stat-card .stat-value {
        font-size: 1.75rem;
    }
}

/* ============================================
   ADDITIONAL MOBILE RESPONSIVE RULES
   ============================================ */

@media (max-width: 768px) {

    /* Container */
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Cards */
    .card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }

    .card-header {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .card-body {
        padding: 1rem;
    }

    /* Hero sections */
    .hero-card-bg {
        padding: 1.5rem;
    }

    /* Stat cards */
    .stat-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    /* Map height */
    #main-map,
    #detail-map,
    #city-map {
        height: 350px;
    }

    /* Badge sizes */
    .badge {
        font-size: 0.7rem;
        padding: 0.3em 0.6em;
    }

    /* Mag ring */
    .mag-ring {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {

    /* Typography mobile */
    h1,
    .h1 {
        font-size: 1.5rem;
    }

    h2,
    .h2 {
        font-size: 1.35rem;
    }

    h3,
    .h3 {
        font-size: 1.2rem;
    }

    h4,
    .h4 {
        font-size: 1.1rem;
    }

    h5,
    .h5 {
        font-size: 1rem;
    }

    h6,
    .h6 {
        font-size: 0.9rem;
    }

    /* Buttons touch-friendly */
    .btn {
        min-height: 44px;
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }

    .btn-sm {
        min-height: 38px;
        font-size: 0.8rem;
        padding: 0.5rem 0.875rem;
    }

    /* Filter buttons */
    .filter-buttons {
        width: 100%;
        flex-wrap: wrap;
    }

    .filter-buttons .btn {
        flex: 1 1 auto;
        min-width: 65px;
        font-size: 0.75rem;
        padding: 0.5rem 0.5rem;
    }

    /* Table scroll */
    .table-responsive {
        font-size: 0.8rem;
    }

    .table {
        font-size: 0.8rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.5rem 0.35rem;
        font-size: 0.75rem;
    }

    /* Row spacing */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .row>* {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Info boxes */
    .info-box {
        padding: 0.75rem 0.5rem;
    }

    .info-value {
        font-size: 0.9rem;
    }

    .info-label {
        font-size: 0.6rem;
    }
}

/* ============================================
   DUNYA LISTE MODERNIZASYONU
   ============================================ */

.card-row-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}



.mag-badge-modern {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.mag-badge-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
}

.mag-badge-modern .mag-val {
    font-size: 1.2rem;
    line-height: 1;
}

.mag-badge-modern .mag-unit {
    font-size: 0.6rem;
    opacity: 0.8;
    margin-top: 2px;
}

[data-theme="dark"] .card-row-item {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}



/* ============================================
   UTILITY CLASSES - Inline CSS Replacement
   ============================================ */

/* Font Sizes */
.fs-tiny {
    font-size: 0.6rem;
}

.fs-xs {
    font-size: 0.65rem;
}

.fs-sm {
    font-size: 0.7rem;
}

.fs-md {
    font-size: 0.75rem;
}

.fs-lg {
    font-size: 0.85rem;
}

.fs-xl {
    font-size: 0.9rem;
}

.fs-2xl {
    font-size: 1rem;
}

.fs-3xl {
    font-size: 2rem;
}

.fs-4xl {
    font-size: 4rem;
}

.fs-5xl {
    font-size: 5rem;
}

/* Letter Spacing */
.ls-tight {
    letter-spacing: -0.5px;
}

.ls-normal {
    letter-spacing: 0;
}

.ls-wide {
    letter-spacing: 0.5px;
}

.ls-wider {
    letter-spacing: 1px;
}

.ls-widest {
    letter-spacing: 1.5px;
}

/* Line Height */
.lh-1 {
    line-height: 1;
}

.lh-tight {
    line-height: 1.2;
}

.lh-normal {
    line-height: 1.5;
}

/* Width & Height Utilities */
.w-8 {
    width: 8px;
}

.w-24 {
    width: 24px;
}

.w-28 {
    width: 28px;
}

.w-64 {
    width: 64px;
}

.h-8 {
    height: 8px;
}

.h-24 {
    height: 24px;
}

.h-28 {
    height: 28px;
}

.h-64 {
    height: 64px;
}

.h-300 {
    height: 300px;
}

.h-400 {
    height: 400px;
}

.w-100 {
    width: 100%;
}

/* Min Width */
.min-w-0 {
    min-width: 0;
}

/* Z-Index */
.z-1 {
    z-index: 1;
}

.z-5 {
    z-index: 5;
}

.z-400 {
    z-index: 400;
}

/* Opacity */
.opacity-15 {
    opacity: 0.15;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-80 {
    opacity: 0.8;
}

.opacity-95 {
    opacity: 0.95;
}

/* Transform */
.rotate-neg-15 {
    transform: rotate(-15deg);
}

/* Icon Sizes */
.icon-xs {
    font-size: 8px;
}

.icon-sm {
    font-size: 10px;
}

.icon-md {
    font-size: 12px;
}

/* Progress Bar Heights */
.progress-thin {
    height: 4px;
}

.progress-md {
    height: 6px;
}

/* Gradient Backgrounds */
.bg-gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #3b7ddd 0%, #2563aa 100%);
}

/* Positioning */
.pos-abs-icon {
    position: absolute;
    right: -10px;
    bottom: -15px;
    pointer-events: none;
}

/* Flex Min Width Fix */
.flex-1-min-0 {
    flex: 1;
    min-width: 0;
}

/* Border Radius */
.rounded-4 {
    border-radius: 4px;
}

.rounded-6 {
    border-radius: 6px;
}

.rounded-8 {
    border-radius: 8px;
}

/* Transitions */
.transition-width {
    transition: width 1s ease;
}

.transition-all {
    transition: all 0.2s ease;
}

/* Progress Styles */
.progress-bg-light {
    background-color: #f1f5f9;
}

/* Card Backgrounds */
.bg-card-light {
    background-color: #f8f9fa;
}

/* Max Height for Charts */
.chart-height-sm {
    max-height: 250px;
}

.chart-height-md {
    max-height: 300px;
}

/* Color Utilities for Icons */
.text-color-light {
    color: #ced4da;
}

.text-color-gray {
    color: #adb5bd;
}

/* ============================================
   LIST.PHP SPECIFIC STYLES
   ============================================ */

/* Magnitude Badge - Dynamic Color Support */
.magnitude-badge {
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

/* JavaScript will set the background color via data attribute */
.magnitude-badge[data-magnitude-color] {
    background-color: var(--magnitude-bg, #6c757d);
}

/* Kart Hover Efektleri */
.card-hover-effect {
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}



.group-hover-action:hover .hover-line {
    opacity: 1;
}

/* Table Row Cards - For list items */
.table-row-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}







.section-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* List Container */
.list-container {
    padding: 0.5rem;
}

/* Scrollbar Styling */
.list-container::-webkit-scrollbar,
.card-body-modern::-webkit-scrollbar {
    width: 6px;
}

.list-container::-webkit-scrollbar-track,
.card-body-modern::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.list-container::-webkit-scrollbar-thumb,
.card-body-modern::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}



/* ============================================
   DARK MODE SUPPORT FOR LIST & CARDS
   ============================================ */

[data-theme="dark"] .card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .card-header-modern {
    background: #1e293b;
    border-bottom-color: #334155;
}

[data-theme="dark"] .table-row-card {
    background: #1e293b;
    border-color: #334155;
}



[data-theme="dark"] .list-container::-webkit-scrollbar-track,
[data-theme="dark"] .card-body-modern::-webkit-scrollbar-track {
    background: #2d3748;
}

[data-theme="dark"] .list-container::-webkit-scrollbar-thumb,
[data-theme="dark"] .card-body-modern::-webkit-scrollbar-thumb {
    background: #475569;
}





/* ============================================
   ANIMATION UTILITIES
   ============================================ */

.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

.animate-fade-in.delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Icon Shape */
.icon-shape {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Flex utilities */
.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

/* Line Clamp Utility */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   KAPSAMLI DARK MODE DESTEĞİ
   ============================================ */



/* ============================================
   MODERN DEPREM LİSTESİ TASARIMI
   ============================================ */

/* Liste Öğesi Container */
.earthquake-list-item {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px;
}



[data-theme="dark"] .earthquake-list-item {
    border-color: var(--border-color);
}



/* Zaman Kutusu (Modern Box) */
.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px 4px;
    min-width: 85px;
    transition: all 0.2s ease;
}


.time-box-row {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-bottom: 4px;
}

.time-box-icon {
    font-size: 0.85rem;
    color: #6b7280;
    margin-right: 5px;
}

.time-box-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.5px;
}

.time-box-date {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Dark Mode Zaman Kutusu */
[data-theme="dark"] .time-box {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
}


[data-theme="dark"] .time-box-value {
    color: var(--text-primary);
}

[data-theme="dark"] .time-box-icon,
[data-theme="dark"] .time-box-date {
    color: var(--text-muted);
}

/* Lokasyon Bilgisi */
.location-info {
    display: flex;
    align-items: center;
    color: #1f2937;
}

.location-info .fw-bold {
    font-size: 0.95rem;
}

[data-theme="dark"] .location-info {
    color: var(--text-primary);
}

/* Koordinat Bilgisi */
.coordinate-info {
    display: flex;
    align-items: center;
}

.coordinate-info .small {
    font-size: 0.8rem;
}

/* Büyüklük Kutusu (Modern Dikdörtgen) */
.mag-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 55px;
    border-radius: 10px;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.mag-box::after {
    /* Parıltı efekti */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.05));
    pointer-events: none;
}

.mag-box-value {
    font-size: 1.4rem;
    /* Büyük rakam */
    font-weight: 900;
    line-height: 1;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mag-box-type {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.95;
    margin-top: 2px;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1px 6px;
    border-radius: 4px;
}

/* Derinlik Badge */
.depth-badge {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 80px;
    color: #4b5563;
}

.depth-badge .fw-bold {
    font-size: 0.95rem;
}

[data-theme="dark"] .depth-badge {
    color: var(--text-secondary);
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .time-box {
        min-width: 65px;
        padding: 4px;
    }

    .time-box-value {
        font-size: 1rem;
    }

    .time-box-icon {
        font-size: 0.75rem;
    }

    .mag-box {
        width: 50px;
        height: 45px;
    }

    .mag-box-value {
        font-size: 1.1rem;
    }

    .mag-box-type {
        font-size: 0.55rem;
        padding: 0 4px;
    }

    .location-info .fw-bold {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .earthquake-list-item {
        padding: 0.75rem;
    }

    .time-box {
        min-width: 55px;
    }

    .mag-box {
        width: 45px;
        height: 40px;
    }

    .mag-box-value {
        font-size: 1rem;
    }

    .location-info .fw-bold {
        font-size: 0.85rem;
    }

    .coordinate-info {
        font-size: 0.75rem;
    }
}

/* Transition class */
.transition-all {
    transition: all 0.2s ease;
}

/* ============================================
   HARİTA DÜZELTMELERİ
   ============================================ */
#main-map {
    height: 500px;
    width: 100%;
    z-index: 1;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

@media (max-width: 768px) {
    #main-map {
        height: 350px;
    }
}

/* Dark Mode Harita */
[data-theme="dark"] .leaflet-tile-pane {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

[data-theme="dark"] .leaflet-container {
    background: #0d1117;
}

[data-theme="dark"] .leaflet-control-zoom a {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
}


/* Liste Başlığı Arka Planı */
.list-header-bg {
    background-color: #f8f9fa;
}

[data-theme="dark"] .list-header-bg {
    background-color: var(--bg-tertiary);
}



#detail-map {
    height: 400px;
    width: 100%;
    z-index: 1;
}

@media (max-width: 768px) {
    #detail-map {
        height: 300px;
    }
}

/* ============================================
   DETAY HERO KARTLARI (KULLANICI ISTEGI)
   ============================================ */
.detail-hero-icon {
    position: absolute;
    right: -25px;
    bottom: -25px;
    font-size: 9rem;
    opacity: 0.04;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
    transition: all 0.3s ease;
}


.mag-display-huge {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* =========================================
   MINIMALIST COMPACT FILTERS
   ========================================= */

.filter-group-segmented {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    background: transparent;
    padding: 0;
    border: none;
}

.filter-btn-segmented {
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #555;
    padding: 4px 10px;
    /* Compact padding */
    font-size: 0.8rem;
    /* Smaller font */
    font-weight: 500;
    border-radius: 6px;
    /* Slightly rounded */
    cursor: pointer;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    /* Fixed compact height */
}


.filter-btn-segmented.active {
    background: #333;
    /* Dark/Minimalist active state */
    color: #fff;
    border-color: #333;
    font-weight: 600;
}

.filter-btn-segmented i {
    font-size: 0.9em;
    opacity: 0.8;
}

/* ============================================
   MOBILE ENHANCEMENTS (CONSOLIDATED)
   ============================================ */

/* Tablet & Mobile Improvements (max-width: 768px) */
@media (max-width: 768px) {

    /* Layout & Cards */
    .card-header-modern {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
        padding: 1rem;
    }

    .card-body-modern,
    .eq-card-minimalist {
        padding: 1rem !important;
    }

    /* Filters */
    .filter-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .filter-buttons .btn {
        flex: 1;
        font-size: 0.7rem;
        padding: 0.5rem 0.25rem;
    }

    .filter-buttons .btn i {
        display: none;
    }

    /* List Container & Items */
    .list-container {
        min-height: 200px !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }


    @keyframes list-item-fade-in {
        from {
            opacity: 0;
            transform: translateY(15px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Icons */
    .header-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-right: 10px !important;
    }
}


/* Mobile Specific Tweaks (max-width: 576px) */
@media (max-width: 576px) {

    /* Filters */
    .filter-btn-segmented {
        flex: 1;
        justify-content: center;
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .card-header-modern .badge-modern {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Badges & Text Sizes */
    .magnitude-badge {
        padding: 6px 10px;
    }

    .magnitude-badge .fs-5 {
        font-size: 1rem;
    }

    .badge-modern {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .fw-bold.small {
        font-size: 0.7rem;
    }

    .table-row-card .row {
        font-size: 0.75rem;
    }

    /* Minimalist Card Adjustments */
    .eq-card-minimalist h6 {
        font-size: 1rem !important;
        line-height: 1.3;
        margin-bottom: 0.5rem !important;
    }

    .eq-card-minimalist .badge {
        padding: 0.35em 0.65em !important;
        font-size: 0.7rem !important;
    }

    .eq-card-minimalist .text-muted.small {
        font-size: 0.75rem !important;
    }

    .eq-card-minimalist .shadow-sm.text-white {
        width: 60px !important;
        height: 50px !important;
    }

    .eq-card-minimalist .shadow-sm.text-white>div>div:first-child {
        font-size: 1.3rem !important;
    }

    .eq-card-minimalist .shadow-sm.text-white>div>div:last-child {
        font-size: 0.6rem !important;
    }

    /* Miscellaneous */
    .watermark-mag {
        font-size: 4rem !important;
        opacity: 0.05 !important;
    }

    #dynamic-report-title,
    .card-header-modern h5 {
        font-size: 1.1rem;
    }
}

/* =========================================
   HERO KART İKONLARI (Background)
   ========================================= */
.card-hero-icon {
    position: absolute;
    bottom: -15px;
    right: -10px;
    font-size: 6rem;
    opacity: 0.05;
    transform: rotate(-20deg);
    z-index: 0;
    pointer-events: none;
    color: currentColor;
    transition: all 0.3s ease;
}


/* Kartların position relative ve overflow hidden olduğundan emin olalım */


/* Hide Filter Scrollbar */
.filter-group-segmented::-webkit-scrollbar {
    display: none;
}

.filter-group-segmented {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =========================================
   EKSTRA YARDIMCI SINIFLAR (UTILITIES)
   ========================================= */
.fw-black {
    font-weight: 900 !important;
}

.fs-xs {
    font-size: 0.75rem !important;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.backdrop-blur {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hover-translate-up {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}


.opacity-10 {
    opacity: 0.1 !important;
}

.opacity-15 {
    opacity: 0.15 !important;
}

.cursor-pointer {
    cursor: pointer;
}

.header-search-container {
    max-width: 300px;
}



.hide-scrollbar {
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}



/* Grup Hover Efekti */

.group-hover-target {
    transition: all 0.3s ease;
}

/* =========================================
   MODERN NOTIFICATION TOAST (GLASSMORPHISM)
   ========================================= */

.earthquake-toast.modern-toast {
    position: fixed;
    top: 85px;
    right: 24px;
    width: 360px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    /* Border yerine ince gölge */
    z-index: 10000;
    overflow: hidden;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Inter', sans-serif;
    border-left: 6px solid var(--toast-color);
    /* Sol kenar rengi */
}

.earthquake-toast.modern-toast.show {
    transform: translateX(0);
}

.toast-body {
    display: flex;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* Sol İkon Alanı */
.toast-icon-wrapper {
    flex-shrink: 0;
    margin-right: 14px;
}

.mag-badge {
    width: 48px;
    height: 48px;
    background-color: var(--toast-color);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: toast-mag-pulse 2s infinite ease-in-out;
}

@keyframes toast-mag-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px var(--toast-color);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* İçerik Alanı */
.toast-content {
    flex: 1;
    min-width: 0;
    /* Text truncate çalışması için */
    margin-right: 24px;
    /* Kapat butonu için boşluk */
}

.toast-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    width: 100%;
}

.toast-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--toast-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.toast-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--toast-color);
    animation: toast-pulse 1.5s infinite;
}

.toast-time {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.toast-location {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.toast-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--toast-color);
    text-decoration: none;
    transition: all 0.2s;
}

.earthquake-toast.hide {
    animation: toast-slide-out 0.5s ease forwards;
}

@keyframes toast-slide-out {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}


.toast-link i {
    margin-left: 4px;
    font-size: 0.7rem;
    transition: transform 0.2s;
}


/* Kapat Butonu */
.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.05);
}

.toast-progress-bar {
    height: 100%;
    background-color: var(--toast-color);
    width: 100%;
    animation: toast-progress 10s linear forwards;
}

/* Animasyonlar */
@keyframes toast-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(0, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

@keyframes toast-progress {
    to {
        width: 0%;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .earthquake-toast.modern-toast {
        width: calc(100% - 32px);
        top: 85px;
        right: 16px;
        left: 16px;
        transform: translateY(-120%);
    }

    .earthquake-toast.modern-toast.show {
        transform: translateY(0);
    }
}

/* Footer Styles */
.footer.footer-dark {
    color: #212529 !important;
    width: 100% !important;
}

@media (prefers-color-scheme: dark) {
    [data-theme="dark"] .footer.footer-dark {
        background-color: #212529 !important;
        color: #adb5bd !important;
        border-top-color: #343a40 !important;
    }
}

.footer.footer-dark a {
    color: #495057 !important;
    transition: color 0.2s ease;
}



[data-theme="dark"] .footer.footer-dark a {
    color: #adb5bd !important;
}

/* =========================================
   LEAFLET LAYER CONTROL CUSTOMIZATION
   ========================================= */
.leaflet-control-layers-toggle {
    background-image: none !important;
    width: auto !important;
    height: 40px !important;
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: #333;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease;
}

.leaflet-control-layers-toggle:hover {
    background-color: #f8f9fa;
    color: #000;
}

.leaflet-control-layers-toggle::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f5fd";
    /* fa-layer-group */
    font-size: 16px;
    margin-right: 8px;
    color: #3B7DDD;
    /* Primary Color */
}

.leaflet-control-layers-toggle::after {
    content: "Katmanlar";
    font-weight: 600;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}

/* Dark Mode Support for Layer Control */
[data-theme="dark"] .leaflet-control-layers-toggle {
    background-color: #334155;
    color: #e2e8f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .leaflet-control-layers-toggle:hover {
    background-color: #475569;
    color: #fff;
}

[data-theme="dark"] .leaflet-control-layers-toggle::before {
    color: #60a5fa;
}

/* Expanded state adjustments */
.leaflet-control-layers-expanded {
    padding: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

[data-theme="dark"] .leaflet-control-layers-expanded {
    background-color: #1e293b !important;
    color: #fff !important;
}

/* =========================================
   MOBILE HEADER ALIGNMENT FILTER
   ========================================= */
@media (max-width: 991.98px) {
    .navbar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 56px !important;
        padding: 0 1rem !important;
    }

    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        align-items: center !important;
        justify-content: flex-end !important;
        padding: 0 !important;
    }

    .navbar-nav {
        flex-direction: row !important;
        align-items: center !important;
        margin-left: auto !important;
        margin-bottom: 0 !important;
        gap: 8px !important;
    }

    .header-util-btn,
    .header-auth-btn {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 34px !important;
        min-width: 34px !important;
        padding: 0 8px !important;
    }

    .nav-item {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }

    .sidebar-toggle {
        padding: 0 !important;
        margin-right: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
    }

    .nav-link {
        padding: 0.25rem 0.5rem !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* =========================================
   EARTHQUAKE LIST ITEM STYLES (MOBILE OPTIMIZED)
   ========================================= */

.eq-card-modern {
    background-color: var(--card-bg, #fff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    /* Filigran taşmasını önler */
}

.eq-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Sol Taraf: Bilgiler */
.eq-card-info {
    flex: 1;
    min-width: 0;
    /* Text truncate için gerekli */
}

.eq-card-time-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
}

.eq-card-time-group .item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.eq-card-location {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark, #212529);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.3px;
    padding-right: 1rem;
}

.eq-card-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    /* Mobilde alt alta geçebilsin */
}

.eq-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.8em;
    border-radius: 50rem;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.1);
    color: var(--bs-primary);
}

.eq-badge.secondary {
    background-color: rgba(var(--bs-secondary-rgb, 108, 117, 125), 0.1);
    color: var(--bs-secondary);
}

.eq-badge i {
    margin-right: 0.4rem;
}

/* Sağ Taraf: Büyüklük Kutusu */
.eq-mag-box {
    width: 80px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    line-height: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    /* Küçülmesini engelle */
}

.eq-mag-val {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.eq-mag-type {
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.9;
}

/* Watermark (Arkaplandaki büyük sayı) */
.eq-watermark {
    position: absolute;
    bottom: -10px;
    right: 10px;
    font-size: 6rem;
    font-weight: 900;
    line-height: 0.8;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-10deg);
    user-select: none;
}

/* Dark Mode Uyumluluğu */
[data-theme="dark"] .eq-card-modern {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .eq-card-location {
    color: #e2e8f0;
}

[data-theme="dark"] .eq-card-time-group {
    color: #94a3b8;
}

/* =========================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 576px) {
    .eq-card-modern {
        padding: 1rem !important;
        /* Padding'i küçült */
    }

    .eq-mag-box {
        width: 60px;
        height: 50px;
        border-radius: 10px;
    }

    .eq-mag-val {
        font-size: 1.4rem;
    }

    .eq-mag-type {
        font-size: 0.6rem;
    }

    .eq-card-location {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .eq-card-time-group {
        font-size: 0.75rem;
        gap: 0.75rem;
    }

    .eq-watermark {
        font-size: 4rem;
        /* Filigranı küçült */
        right: 0;
        bottom: -5px;
        opacity: 0.05;
    }

    .eq-badge {
        padding: 0.25em 0.6em;
        font-size: 0.7rem;
    }
}

/* =========================================
   LİSTE UYUMLULUK DÜZELTMELERİ (Mobil)
   ========================================= */
/* Bazı mobil tarayıcılarda overflow:hidden + flex sorununu çöz */
.list-container {
    display: block !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: 100px;
    visibility: visible !important;
    opacity: 1 !important;
}

.earthquake-list-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* modern-card içindeki listeler için overflow düzeltmesi */
.modern-card>.list-container,
.modern-card>.card-body-modern.list-container {
    overflow: visible !important;
}

/* Hero Big Icon */
.hero-big-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 10rem;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    /* Default fallback */
}

/* =========================================
   9. GLOBAL ANİMASYONLU LOGO
   ========================================= */
.animated-logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-container-inner {
    position: relative;
    display: inline-block;
    padding: 5px 10px;
}

/* Red Pulse Dot (Wandering) */
.wandering-container {
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
    pointer-events: none;
}

/* Scattered Dots */
.ai-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: appear-hold 60s infinite;
    pointer-events: none;
}

@keyframes appear-hold {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    5% {
        opacity: 1;
        transform: scale(1);
    }

    95% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Size Variants */
.logo-sm .logo-container-inner {
    padding: 2px 5px;
}

.logo-sm .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-lg .logo-container-inner {
    padding: 10px 20px;
}

.logo-lg .logo-text {
    font-size: 2.5rem;
}

.logo-text .text-danger {
    color: #dc3545 !important;
}

/* =========================================
   PROMO CARDS & GLASSMORPHISM
   ========================================= */
.ai-card-promo {
    background: rgba(var(--card-bg-rgb, 255, 255, 255), 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .ai-card-promo {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary-color);
}

.ai-card-promo:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.ai-card-icon-box {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.02));
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.1);
    transition: transform 0.3s ease;
}

.ai-card-promo:hover .ai-card-icon-box {
    transform: rotate(5deg) scale(1.1);
}

html[data-theme="dark"] .ai-card-icon-box {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(96, 165, 250, 0.05));
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.2);
}


/* =========================================
   STATISTICS CARD GRADIENTS
   ========================================= */
.bg-gradient-blue {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%) !important;
    color: #fff !important;
}

.bg-gradient-red {
    background: linear-gradient(135deg, #e74a3b 0%, #be2617 100%) !important;
    color: #fff !important;
}

.bg-gradient-yellow {
    background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%) !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bg-gradient-teal {
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%) !important;
    color: #fff !important;
}

.bg-gradient-green {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%) !important;
    color: #fff !important;
}

/* Custom Hover Classes */
.hover-primary {
    transition: all 0.2s ease;
}

.hover-primary:hover {
    color: #3b7ddd !important;
    /* var(--primary-color) value */
    text-decoration: underline !important;
}

html[data-theme="dark"] .hover-primary:hover {
    color: #60a5fa !important;
    /* var(--primary-color) dark value */
}



/* OTONOM UI GELİŞTİRMESİ: MİKRO ANİMASYONLAR */
.card,
.sim-card,
.info-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.card:hover,
.sim-card:hover,
.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15) !important;
}

.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    filter: brightness(1.1);
}
/* Detay.php inline style */
.custom-intensity-radio:checked + label {
    border-color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.05) !important;
    box-shadow: 0 0 0 2px var(--bs-primary);
}
.custom-intensity-radio:checked + label .opacity-25 {
    opacity: 0.8 !important;
}

