/* ===============================
   GENEL AYARLAR & DEĞİŞKENLER
   =============================== */
:root {
    /* TRAFİK PALETİ (LIGHT) */
    --renk-mavi: #0072ce;           /* Ana mavi (bilgi / ana aksiyon) */
    --renk-mavi-acik: #4da3ff;      /* Açık mavi (hover / accent) */

    --renk-yesil: #009739;          /* Onay / başarı */
    --renk-yesil-acik: #33c46a;

    --renk-kirmizi: #d7263d;        /* İhlal / hata */
    --renk-kirmizi-acik: #ff5c74;

    --renk-arka: #f4f6f8;           /* Sayfa arka planı */
    --renk-yuzey: #ffffff;          /* Kart / panel yüzeyi */
    --renk-koyu: #111111;           /* Ana metin */
    --renk-gri: #6b7280;            /* Yardımcı metin */
    --renk-gri-acik: #e5e7eb;

    --radius: 12px;
    --golge-kart: 0 12px 28px rgba(15, 23, 42, 0.12);
    --hizli: 0.2s ease;
    --font-kucuk: 13px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    background: var(--renk-arka);
    color: var(--renk-koyu);
    line-height: 1.5;
}

/* Konteyner */
.kapsayici {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

/* Linkler */
a {
    color: var(--renk-mavi);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===============================
   ÜST BAR & MENÜ (HEADER + NAV)
   =============================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #0f172a, #020617); /* koyu trafik / asfalt havası */
    color: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.55);
}

.site-header-icerik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
}

/* NAV GENEL */
.nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--font-kucuk);
}

/* NAV linkleri */
.nav a {
    color: #e5e7eb;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--hizli), color var(--hizli), transform var(--hizli);
    font-size: var(--font-kucuk);
}

.nav a:hover {
    background: rgba(148, 163, 184, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ===============================
   HAMBURGER MENÜ (Mobil)
   =============================== */

.nav-toggle {
    display: none;
}

/* Hamburger buton */
.nav-toggle-btn {
    display: none;
    width: 34px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: transparent;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

/* Çizgiler */
.nav-toggle-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 999px;
    position: relative;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-btn span::before,
.nav-toggle-btn span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 999px;
    transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-btn span::before {
    top: -6px;
}

.nav-toggle-btn span::after {
    top: 6px;
}

/* Mobil görünümde aktifken X işaretine dönüşsün */
.nav-toggle:checked + .nav-toggle-btn span {
    transform: rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-btn span::before {
    top: 0;
    transform: rotate(90deg);
}

.nav-toggle:checked + .nav-toggle-btn span::after {
    top: 0;
    opacity: 0;
}

/* ===============================
   KART, BAŞLIK, METİN
   =============================== */

main {
    padding-bottom: 2rem;
}

.kart {
    background: var(--renk-yuzey);
    border-radius: var(--radius);
    box-shadow: var(--golge-kart);
    padding: 1.1rem 1.2rem;
    margin-top: 1rem;
}

.kart-baslik {
    margin: 0 0 0.4rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.kart-aciklama {
    margin: 0;
    font-size: 0.9rem;
    color: var(--renk-gri);
}

/* Özet bilgi kutuları */
.bilgi {
    background: #ecfdf3;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    border: 1px solid #bbf7d0;
}

/* Bilgi / Hata mesajları */
.bilgi,
.hata {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
}

.bilgi {
    background: rgba(0, 151, 57, 0.06);
    color: #00712a;
    border: 1px solid rgba(0, 151, 57, 0.4);
}

.hata {
    background: rgba(215, 38, 61, 0.06);
    color: #a40e25;
    border: 1px solid rgba(215, 38, 61, 0.4);
}

/* Etiketler */
.etiket {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
}

/* ===============================
   FORM ELEMANLARI
   =============================== */

.form-grup {
    margin-bottom: 0.8rem;
}

.form-etiket {
    display: block;
    font-size: 0.8rem;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.form-girdi,
.form-select,
textarea.form-girdi {
    width: 100%;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    font-size: 0.9rem;
    transition: border-color var(--hizli), box-shadow var(--hizli), background-color var(--hizli);
}

.form-girdi:focus,
.form-select:focus,
textarea.form-girdi:focus {
    outline: none;
    border-color: var(--renk-mavi);
    box-shadow: 0 0 0 2px rgba(0, 114, 206, 0.18);
    background: #ffffff;
}

.form-select {
    appearance: none;
}

/* ===============================
   BUTONLAR
   =============================== */

.buton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: none;
    background: var(--renk-mavi);
    color: #ffffff;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--hizli), box-shadow var(--hizli), transform var(--hizli);
}

.buton:hover {
    background: var(--renk-mavi-acik);
    box-shadow: 0 2px 10px rgba(0, 114, 206, 0.35);
    transform: translateY(-1px);
    text-decoration: none;
}

.buton-ikincil {
    background: #e5e7eb;
    color: #111827;
}

.buton-ikincil:hover {
    background: #d1d5db;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.15);
}

.buton-kucuk {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
}

.buton-yesil {
    background: var(--renk-yesil);
}

.buton-yesil:hover {
    background: var(--renk-yesil-acik);
}

.buton-kirmizi {
    background: var(--renk-kirmizi);
}

.buton-kirmizi:hover {
    background: var(--renk-kirmizi-acik);
}

/* ===============================
   TABLOLAR
   =============================== */

table {
    border-collapse: collapse;
}

table th,
table td {
    font-size: 0.85rem;
}

/* ===============================
   GRAFİK (Ziyaretçi grafiği)
   =============================== */

.grafik-kutu {
    width: 100%;
    height: 250px;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.grafik-sutunlar {
    display: flex;
    align-items: flex-end;
    gap: 0.7rem;
    width: 100%;
    justify-content: center;
}

.grafik-sutun {
    flex: 0 0 40px;
    text-align: center;
}

.grafik-cubuk {
    width: 100%;
    background: var(--renk-mavi);
    border-radius: 6px 6px 0 0;
    transition: height 0.25s ease;
}

.grafik-deger {
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.grafik-etiket {
    font-size: 0.7rem;
    color: var(--renk-gri);
}

/* ===============================
   HARİTA (Leaflet container)
   =============================== */

#harita,
#adminHarita {
    border-radius: 12px;
    overflow: hidden;
}

/* ===============================
   DRAG & DROP ALANI
   =============================== */

.dosya-alani {
    border: 2px dashed rgba(0, 114, 206, 0.35);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color var(--hizli), background-color var(--hizli), color var(--hizli);
}

.dosya-alani:hover {
    border-color: var(--renk-mavi);
    background: #dbeafe;
}

/* ===============================
   BİLDİRİM STİLLERİ (isteğe bağlı)
   =============================== */

.badge-sayi {
    display: inline-block;
    min-width: 18px;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: var(--renk-kirmizi);
    color: #fff;
    font-size: 0.7rem;
    text-align: center;
}

/* ===============================
   RESPONSIVE - ORTA BOYUTLAR
   =============================== */

@media (max-width: 992px) {
    .kapsayici {
        padding: 0.75rem;
    }

    .kart {
        padding: 1rem;
    }
}

/* ===============================
   RESPONSIVE - MOBİL
   =============================== */

@media (max-width: 768px) {
    .site-header-icerik {
        align-items: center;
    }

    .nav-toggle-btn {
        display: inline-flex;
    }

    .nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #020617;
        padding: 0.5rem 1rem 0.7rem 1rem;
        flex-direction: column;
        gap: 0.2rem;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid #0f172a;
        box-shadow: 0 6px 10px rgba(15, 23, 42, 0.6);
        transition: max-height 0.25s ease;
    }

    .nav a {
        width: 100%;
        text-align: left;
        padding: 0.4rem 0.6rem;
    }

    .nav-toggle:checked ~ .nav {
        max-height: 280px;
    }

    .logo {
        font-size: 1rem;
    }
}

/* Çok küçük ekranlar için font biraz küçülsün */
@media (max-width: 480px) {
    body {
        font-size: 0.9rem;
    }

    .kart-baslik {
        font-size: 1rem;
    }

    .nav a {
        font-size: 12px;
    }
}

/* ============ BİLDİRİM STİLLERİ ============ */

.bildirim-alani {
    position: relative;
    display: inline-block;
}

.bildirim-buton {
    background: #eff6ff;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    padding: 0.25rem 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #0f172a;
}

.bildirim-buton:hover {
    background: #dbeafe;
}

.bildirim-badge {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--renk-kirmizi);
    color: #ffffff;
    font-size: 0.7rem;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.bildirim-panel {
    position: absolute;
    right: 0;
    top: 120%;
    width: 260px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(15,23,42,0.15);
    border: 1px solid #e2e8f0;
    padding: 0.6rem 0.7rem;
    display: none;
    z-index: 1500;
}

.bildirim-panel.acik {
    display: block;
}

.bildirim-panel-baslik {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #0f172a;
}

#bildirimListe {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 220px;
    overflow-y: auto;
}

.bildirim-kayit {
    padding: 0.35rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.82rem;
}

.bildirim-kayit:last-child {
    border-bottom: none;
}

.bk-baslik {
    font-weight: 500;
    color: #0f172a;
}

.bk-alt {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Şikayet Açıklaması textarea görünümü */
.form-textarea {
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    font-size: .9rem;
    line-height: 1.4;
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.18s ease-in-out,
                background-color 0.18s ease-in-out;
}

.form-textarea:focus {
    background: #ffffff;
    border-color: var(--renk-mavi);
    outline: none;
}