/* 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); } }

/* ===================== Kursiyer paneli bölümleri ===================== */
.yan-bolum { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); font-weight: 700; padding: 14px 12px 4px; }
.yan nav { overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.yan-sayi { margin-left: auto; background: #f5b83d; color: #3d2a00; font-size: .72rem; font-weight: 700; border-radius: 10px; padding: 1px 8px; }
.yan a { padding: 8px 12px; }
.sekmeler .nav-link { color: #4b5566; font-weight: 600; border-radius: 8px; padding: 6px 12px; }
.sekmeler .nav-link.active { background: var(--koyu); }
.sekmeler .nav-link.active .badge { background: rgba(255,255,255,.2) !important; color: #fff !important; }
.bilgi-kart { background: var(--acik); border-color: #cdeaf7; }
.bilgi-kart .ornek { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border-radius: 8px; padding: 10px 12px; }
.bilgi-kart .ornek i { color: var(--ana); }
.yeni-kursiyer { border-color: #9ad9b4; background: #f3fbf6; }
.toplu-cubuk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; background: var(--acik); border-bottom: 1px solid var(--cizgi); border-radius: 12px 12px 0 0; }
.toplu-cubuk span { margin-right: auto; }
.puan-rozet { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 28px; padding: 0 8px; border-radius: 14px; font-weight: 700; font-size: .9rem; }
.puan-rozet.iyi { background: #e3f6ee; color: #0e8a5f; }
.puan-rozet.orta { background: #fdf2dc; color: #a26b0c; }
.puan-rozet.zayif { background: #fdeaea; color: #c43030; }
.ozet-liste li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eef1f5; }
.ozet-liste li:last-child { border: 0; }
.ozet-liste span { color: #6c7686; }
.soru-alani { font-size: .88rem; line-height: 1.55; background: #fbfcfe; }
.onizleme { display: grid; gap: 10px; }
.onizleme-soru { background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; padding: 16px 18px; }
.onizleme-soru.dogru-soru { border-left: 4px solid #12a170; } .onizleme-soru.yanlis-soru { border-left: 4px solid #dc3b3b; } .onizleme-soru.bos { border-left: 4px solid #c9d2dd; }
.onizleme-sik { padding: 5px 10px; border-radius: 8px; margin-bottom: 3px; font-size: .93rem; }
.onizleme-sik b { display: inline-block; width: 22px; color: #6c7686; }
.onizleme-sik.dogru { background: #e3f6ee; color: #0b6b4a; } .onizleme-sik.dogru b { color: #0b6b4a; }
.onizleme-sik.yanlis { background: #fdeaea; color: #9b2323; }
.onizleme-sik em { font-size: .8rem; }
.analiz-sik { position: relative; display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 8px; margin-bottom: 4px; background: #f6f8fb; overflow: hidden; font-size: .92rem; }
.analiz-sik > * { position: relative; }
.analiz-sik .analiz-cubuk { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(6,163,218,.14); }
.analiz-sik.dogru .analiz-cubuk { background: rgba(18,161,112,.2); }
.analiz-sik.dogru b { color: #0b6b4a; }
.analiz-sik small { color: #6c7686; white-space: nowrap; }
.kapak-onizleme { aspect-ratio: 3/4; max-width: 150px; border: 2px dashed var(--cizgi); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #98a1b0; font-size: .8rem; text-align: center; overflow: hidden; background: #fbfcfe; }
.kapak-onizleme.genis { aspect-ratio: 16/9; max-width: 100%; }
.kapak-onizleme i { font-size: 1.6rem; }
.kapak-onizleme img { width: 100%; height: 100%; object-fit: cover; }
.yukleme-durum small { display: block; margin-top: 6px; color: #4b5566; }
.yukleme-durum .progress { height: 10px; border-radius: 6px; }
.kitap-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.kitap-oge { display: flex; gap: 16px; background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; padding: 14px; }
.kitap-kapak { width: 92px; flex: 0 0 auto; aspect-ratio: 3/4; border-radius: 3px 8px 8px 3px; overflow: hidden; background: linear-gradient(160deg, var(--ana), var(--koyu)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 6px 14px rgba(9,30,62,.18); }
.kitap-kapak img { width: 100%; height: 100%; object-fit: cover; }
.min-w-0 { min-width: 0; }
.kategori-satir { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid #eef1f5; }
.video-grup-ust { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--cizgi); background: #f8fafc; border-radius: 12px 12px 0 0; }
.video-grup-ust strong { color: var(--koyu); }
.video-satir { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid #eef1f5; }
.video-satir:last-child { border-bottom: 0; }
.video-kucuk { position: relative; width: 112px; flex: 0 0 auto; aspect-ratio: 16/9; border-radius: 8px; background: linear-gradient(135deg, var(--koyu), #0b3a6e) center/cover; }
.video-kucuk em { position: absolute; right: 4px; bottom: 4px; font-style: normal; font-size: .7rem; background: rgba(0,0,0,.75); color: #fff; padding: 0 5px; border-radius: 4px; }
.video-kucuk i { position: absolute; left: 6px; top: 4px; color: #ff3d3d; }
@media (max-width: 991.98px) { .yan-bolum { display: none; } .kitap-izgara { grid-template-columns: 1fr; } .video-satir { flex-wrap: wrap; } }

/* E-posta bölümü */
.ep-sekme { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 20px; }
.ep-sekme a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--cizgi); color: #3b4657; text-decoration: none; font-size: .9rem; font-weight: 500; }
.ep-sekme a:hover { border-color: var(--ana); color: var(--ana); }
.ep-sekme a.aktif { background: var(--koyu); border-color: var(--koyu); color: #fff; }
.ep-sayi { background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; padding: 16px 18px; height: 100%; }
.ep-sayi b { display: block; font-size: 1.5rem; color: var(--koyu); line-height: 1.2; }
.ep-sayi span { color: #6c7686; font-size: .85rem; }
.ep-kamp { display: block; padding: 12px 0; border-top: 1px solid var(--cizgi); color: inherit; text-decoration: none; }
.ep-kamp:hover { color: inherit; background: #fafcff; }
.ep-gecmis-oge { padding: 10px 0; border-top: 1px solid var(--cizgi); }
.ep-gecmis-oge:first-of-type { border-top: 0; }
.ep-gelen { padding: 12px 18px; }
.ep-gelen .ep-kim { color: #3b4657; }
.ep-gelen .ep-konu { color: #6c7686; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-gelen.okunmadi .ep-kim, .ep-gelen.okunmadi .ep-konu { font-weight: 700; color: var(--koyu); }
.ep-gelen.okunmadi { border-left: 3px solid var(--ana); }
.ep-okuma { width: 100%; min-height: 480px; border: 1px solid var(--cizgi); border-radius: 8px; background: #fff; }
@media (min-width: 992px) {
    .yan nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
    .yan a { padding: 8px 12px; }
}
.sayfa-baslik .badge { font-size: .8rem; vertical-align: middle; }
.ep-ekler { background: #f8fafc; border: 1px dashed var(--cizgi); border-radius: 10px; padding: 12px 14px; }
