/* MAT İlkyardım Yönetim Paneli */
:root { --ana: #06A3DA; --ikinci: #F57E57; --koyu: #091E3E; --acik: #EEF9FF; --cizgi: #e4e9f0; }
body { background: #f4f7fb; color: #2b3445; font-size: 15px; }
a { color: var(--ana); }
.btn-primary { background: var(--ana); border-color: var(--ana); }
.btn-primary:hover, .btn-primary:focus { background: #0590c2; border-color: #0590c2; }
.form-label { font-weight: 600; color: var(--koyu); }

/* Giriş */
body.giris { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: linear-gradient(135deg, var(--koyu), #0d2f5c); }
.giris-kutu { background: #fff; width: 100%; max-width: 420px; border-radius: 14px; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.giris-kutu h1 { font-size: 1.4rem; color: var(--koyu); margin: 18px 0 16px; }
.giris-logo { height: 56px; display: block; }
body.giris .bildirim { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); }

/* Yerleşim */
.yan { position: fixed; top: 0; left: 0; bottom: 0; width: 240px; background: var(--koyu); color: #fff; display: flex; flex-direction: column; padding: 18px 12px; z-index: 10; }
.yan-logo { background: #fff; border-radius: 10px; padding: 8px 10px; margin-bottom: 18px; display: block; }
.yan-logo img { height: 40px; }
.yan nav, .yan-alt { display: flex; flex-direction: column; gap: 2px; }
.yan a { color: rgba(255,255,255,.78); text-decoration: none; padding: 10px 12px; border-radius: 8px; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.yan a:hover { background: rgba(255,255,255,.08); color: #fff; }
.yan a.aktif { background: var(--ana); color: #fff; }
.yan-alt { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; }
.icerik { margin-left: 240px; padding: 32px 36px 60px; max-width: 1200px; }
.sayfa-baslik { font-size: 1.6rem; font-weight: 700; color: var(--koyu); margin-bottom: 10px; }
.kart { background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; padding: 24px; }
.kart-baslik { font-size: 1.1rem; font-weight: 700; color: var(--koyu); margin-bottom: 14px; }
.bildirim { border-radius: 10px; }

/* Pano */
.pano-kart { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; padding: 20px; text-decoration: none; color: inherit; height: 100%; transition: box-shadow .2s, border-color .2s; }
.pano-kart:hover { border-color: var(--ana); box-shadow: 0 6px 20px rgba(9,30,62,.08); color: inherit; }
.pano-kart > i { font-size: 1.6rem; color: var(--ana); background: var(--acik); width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pano-kart strong { display: block; color: var(--koyu); font-size: 1.05rem; }
.pano-kart span { color: #6c7686; font-size: .9rem; }

/* Listeler */
.liste th { font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; color: #6c7686; background: #f8fafc; padding: 12px 16px; }
.liste td { padding: 10px 16px; }
.logo-kutu { width: 120px; height: 56px; border: 1px solid var(--cizgi); border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 6px; background: #fff; }
.logo-kutu img { max-width: 100%; max-height: 100%; object-fit: contain; }
.kucuk-gorsel { width: 90px; height: 60px; object-fit: cover; border-radius: 8px; }

/* Görsel seçici */
.gorsel-sec { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 230px; overflow-y: auto; padding: 4px; border: 1px solid var(--cizgi); border-radius: 10px; }
.gorsel-sec label { cursor: pointer; position: relative; }
.gorsel-sec input { position: absolute; opacity: 0; }
.gorsel-sec img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 3px solid transparent; }
.gorsel-sec input:checked + img { border-color: var(--ana); }

/* Galeri */
.galeri-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.galeri-oge { background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; overflow: hidden; }
.galeri-oge img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.galeri-alt { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; }

@media (max-width: 991.98px) {
    .yan { position: static; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px; }
    .yan-logo { margin: 0 8px 0 0; padding: 4px 8px; } .yan-logo img { height: 30px; }
    .yan nav, .yan-alt { flex-direction: row; flex-wrap: wrap; margin: 0; border: 0; padding: 0; }
    .yan a { padding: 6px 10px; font-size: .9rem; }
    .icerik { margin-left: 0; padding: 20px 16px 40px; }
}

/* İstatistikler */
.donem .btn { border: 1px solid var(--cizgi); }
.ist-kutular { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ist-kutu { background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; padding: 18px 20px; }
.ist-kutu span { display: block; color: #6c7686; font-size: .85rem; font-weight: 600; }
.ist-kutu strong { display: block; font-size: 2rem; color: var(--koyu); line-height: 1.2; margin: 4px 0 2px; }
.ist-kutu small { color: #8a93a2; font-size: .8rem; }
.ist-kutu.ana strong { color: var(--ana); }
.ist-kutu.vurgu { border-color: var(--ana); background: var(--acik); }
.ist-grafik { width: 100%; height: auto; display: block; }
.ist-izgara { stroke: #eef1f5; stroke-width: 1; }
.ist-taban { stroke: #c9d2dd; stroke-width: 1; }
.ist-eksen { fill: #8a93a2; font-size: 11px; }
.ist-bar { fill: var(--ana); }
.ist-cubuk:hover .ist-bar { fill: #0577a0; }
.ist-cubuk:hover rect { fill: rgba(6,163,218,.06); }
.ist-tablo td, .ist-tablo th { padding: 9px 4px; border-color: #eef1f5; }
.ist-tablo th { font-size: .8rem; color: #6c7686; font-weight: 600; }
.ist-satir { margin-bottom: 10px; }
.ist-satir-ust { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 4px; }
.ist-oran { height: 6px; background: #eef1f5; border-radius: 3px; overflow: hidden; }
.ist-oran i { display: block; height: 100%; background: var(--ana); border-radius: 3px; }
.ist-sayfa { position: relative; }
.ist-sayfa span { position: relative; z-index: 1; }
.ist-sayfa i { display: block; height: 4px; background: var(--acik); border-radius: 2px; margin-top: 4px; box-shadow: inset 0 0 0 1px rgba(6,163,218,.25); }
@media (max-width: 991.98px) { .ist-kutular { grid-template-columns: repeat(2, 1fr); } }
