/* İyilik Hali Yönetim Paneli — teal marka (#06919D), kenar menü, admin düzeni */
:root {
    --ink: #06919D;
    --ink-dark: #057A84;
    --sand: #F6F4EF;
    --text: #1f2a2c;
}

body {
    font-family: 'Public Sans', system-ui, sans-serif;
    color: var(--text);
    margin: 0;
    background: #f4f6f6;
}

h1, h2, h3 {
    font-family: 'Instrument Serif', Georgia, serif;
}

/* ── Temel bileşenler ── */
.btn-portal { background: var(--ink); color: #fff; border: none; border-radius: 10px; padding: .5rem 1.1rem; font-weight: 600; }
.btn-portal:hover { background: var(--ink-dark); color: #fff; }
.btn-outline-portal { border-color: var(--ink); color: var(--ink); border-radius: 10px; }
.btn-outline-portal:hover { background: var(--ink); color: #fff; }
.btn-xs { padding: .2rem .5rem; font-size: .75rem; }
.badge-soft { display: inline-block; background: rgba(6,145,157,.12); color: var(--ink-dark); border-radius: 999px; padding: .15rem .7rem; font-size: .78rem; font-weight: 600; }
.bg-ink { background-color: var(--ink) !important; }
.text-ink { color: var(--ink) !important; }
.table-ink thead { background: var(--ink); color: #fff; }
.mgmt-title { font-size: clamp(1.5rem, 3vw, 2rem); }

/* ── Yönetim shell düzeni ── */
.mgmt-shell { display: flex; min-height: 100vh; }
.mgmt-sidebar { width: 240px; background: #0f1718; color: #cdd7d8; flex-shrink: 0; padding: 1.2rem 0; }
.mgmt-brand { font-family: 'Instrument Serif', serif; font-size: 1.4rem; color: #fff; padding: 0 1.4rem 1rem; display: flex; align-items: center; gap: .5rem; }
.mgmt-sidebar nav { display: flex; flex-direction: column; }
.mgmt-sidebar nav a { color: #aebcbd; text-decoration: none; padding: .65rem 1.4rem; display: flex; align-items: center; gap: .7rem; font-size: .9rem; }
.mgmt-sidebar nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.mgmt-sidebar nav a.active { background: var(--ink); color: #fff; }
.mgmt-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mgmt-topbar { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1.4rem; background: #fff; border-bottom: 1px solid #eee; }

/* ── Özet kartlar (Panel) ── */
.ozet-kart { background: #fff; border: 1px solid #eaeaea; border-radius: 14px; padding: 1.2rem; text-align: center; }
.ozet-kart .mdi { font-size: 1.8rem; color: var(--ink); }
.ozet-kart .deger { font-size: 1.8rem; font-weight: 700; line-height: 1.2; margin-top: .3rem; }
.ozet-kart .etiket { font-size: .78rem; color: #6c757d; }
.ozet-kart--warn .mdi, .ozet-kart--warn .deger { color: #e67e22; }
.ozet-kart--warn { border-color: #fde8cc; }
.ozet-kart--danger .mdi, .ozet-kart--danger .deger { color: #e74c3c; }
.ozet-kart--danger { border-color: #fad4d0; }
.ozet-kart--info .mdi { color: #6c757d; }

/* ── Panel kutu ── */
.panel-kutu { background: #fff; border: 1px solid #eaeaea; border-radius: 14px; padding: 1.2rem; }
.panel-kutu-baslik { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6c757d; margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem; }

/* ── Servis izleme kartları ── */
.servis-kart { background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 1rem; }
.servis-kart--aktif { border-color: #d1f5ea; }
.servis-kart--pasif { border-color: #fad4d0; opacity: .8; }
.durum-nokta { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.durum-nokta--yesil { background: #27ae60; box-shadow: 0 0 0 3px rgba(39,174,96,.2); }
.durum-nokta--kirmizi { background: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,.2); }

/* ── Güvenlik skoru dairesi ── */
.skor-daire { width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; margin: 0 auto; }
.skor-iyi { background: rgba(39,174,96,.1); color: #27ae60; border: 3px solid #27ae60; }
.skor-orta { background: rgba(230,126,34,.1); color: #e67e22; border: 3px solid #e67e22; }
.skor-kotu { background: rgba(231,76,60,.1); color: #e74c3c; border: 3px solid #e74c3c; }

/* ── Ayarlar satırı ── */
.ayar-satir { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #f1f1f1; }
.ayar-satir:last-child { border-bottom: none; }

/* ── Giriş yöntemi satırı (aç-kapa) ── */
.giris-satir { display: flex; align-items: center; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid #f1f1f1; }
.giris-satir.border-0 { border-bottom: none; }
.giris-ikon { width: 42px; height: 42px; flex: none; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.giris-satir .form-switch .form-check-input { width: 2.6em; height: 1.4em; cursor: pointer; }
.giris-satir .form-check-input:checked { background-color: #3d5a3d; border-color: #3d5a3d; }
.giris-satir .form-check-input:focus { border-color: #3d5a3d; box-shadow: 0 0 0 .2rem rgba(61,90,61,.18); }

/* ── Rehber kartı ── */
.rehber-kart { background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 1rem; height: 100%; }

/* ── Tanımlar merkez listesi ── */
.merkez-satir { display: flex; align-items: center; gap: .5rem; padding: .7rem .5rem; border-radius: 8px; cursor: pointer; }
.merkez-satir:hover { background: rgba(6,145,157,.06); }
.merkez-satir--aktif { background: rgba(6,145,157,.12); font-weight: 600; }

/* ── Giriş sayfası ── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--ink) 0%, var(--ink-dark) 100%); padding: 1rem; }
.login-card { background: #fff; border-radius: 18px; padding: 2rem; width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,.2); }

/* ═══════════════ Tanımlar — mod geçişi ═══════════════ */
.tanim-mod { display: inline-flex; gap: .25rem; background: #fff; border: 1px solid #e0e5e6; border-radius: 999px; padding: .25rem; }
.tanim-mod-btn { display: inline-flex; align-items: center; gap: .35rem; background: none; border: none; border-radius: 999px; padding: .45rem 1rem; font-size: .88rem; font-weight: 500; color: #6b7a7c; cursor: pointer; }
.tanim-mod-btn.aktif { background: var(--ink); color: #fff; }

/* ═══════════════ İstatistik / sayım kartları ═══════════════ */
.stat-kart { display: flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid #e0e5e6; border-radius: 14px; padding: .9rem 1rem; }
.stat-ikon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex-shrink: 0; border-radius: 12px; font-size: 1.3rem; }
.stat-deger { font-size: 1.4rem; font-weight: 700; line-height: 1; color: var(--text); }
.stat-ad { font-size: .76rem; color: #6b7a7c; margin-top: .15rem; }

/* ═══════════════ İzleme — sağlık kartı ═══════════════ */
.saglik-kart { display: flex; align-items: center; gap: .75rem; }
.saglik-ikon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex-shrink: 0; border-radius: 50%; font-size: 1.3rem; }
.saglik-ikon.iyi { background: #e7f6ee; color: #2e9e6b; }
.saglik-ikon.kotu { background: #fdeaea; color: #d35858; }

/* ═══════════════ Veritabanı — yoğunluk + son işlem ═══════════════ */
.yogunluk-rozet { display: inline-block; border-radius: 999px; padding: .1rem .6rem; font-size: .72rem; font-weight: 600; }
.son-islem { display: flex; align-items: center; gap: .35rem; padding: .35rem 0; border-bottom: 1px solid #f1f1f1; }
.son-islem:last-child { border-bottom: none; }

/* ═══════════════ Güvenlik — risk rozetleri ═══════════════ */
.risk-rozet { display: inline-block; border-radius: 999px; padding: .1rem .6rem; font-size: .72rem; font-weight: 600; }
.risk-yuksek { background: #fdeaea; color: #c0392b; }
.risk-orta { background: #fdf4e3; color: #b9770e; }
.risk-dusuk { background: #e7f6ee; color: #2e9e6b; }
