
/* ==== apps/modules/web/3300/01_sonuclar.php dosyasindan tasindi ==== */
.sn-header {
  position: fixed; top: 0; left: 0; right: 0; height: 50px; z-index: 30;
  background: linear-gradient(135deg,#0f2a52,#1a3a6e);
  border-bottom: 1px solid rgba(56,189,248,.22);
  display: flex; align-items: center;
}
.sn-geri { width: 40px; height: 40px; background: rgba(255,255,255,.10); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 10px; margin-left: 6px; flex-shrink: 0; }
.sn-geri:hover { background: rgba(56,189,248,.25); }
.sn-baslik {
  position: absolute; left: 0; right: 0; text-align: center; pointer-events: none;
  color: #e2e8f0; font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 60px;
}
/* Tek kaydırılan gövde, header'ın (50px) altından başlıyor. İçinde sırayla:
   .sn-ust (istatistik/grafik, HER ZAMAN görünür) → .sn-sekmeler (sticky,
   ust kayınca şeride yapışır) → .sn-govde (aktif sekmenin paneli). */
.sn-body-scroll {
  position: absolute; top: 50px; bottom: 0; left: 0; right: 0;
  overflow-y: auto; background: #f1f5f9;
}
.sn-ust { max-width: 1100px; margin: 0 auto; padding: 1rem 1rem 0; }
.sn-sekmeler {
  position: sticky; top: 0; z-index: 5; margin-top: 1rem;
  box-sizing: border-box;
  display: flex; background: #fff; border-bottom: 1px solid #e5e7eb;
}
.sn-sekme {
  flex: 1; border: none; background: none; cursor: pointer;
  padding: .7rem .4rem; font-size: 13px; font-weight: 600; color: #6b7280;
  border-bottom: 2px solid transparent;
}
.sn-sekme i { margin-right: .35rem; }
.sn-sekme.aktif { color: #4f46e5; border-bottom-color: #4f46e5; background: #f8fafc; }

.sn-govde { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.sn-panel { display: none; }
.sn-panel.aktif { display: block; }
.sn-yukleniyor { padding: 3rem; text-align: center; color: #9ca3af; font-size: 13px; }
.sn-bos { padding: 2.5rem; text-align: center; color: #9ca3af; font-size: 13.5px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }

.sn-kart { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.sn-kart-baslik { font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase;
  letter-spacing: .3px; margin-bottom: .8rem; }

/* Özet kutular */
.sn-ozet { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: .7rem; }
.sn-oz {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: .8rem .9rem; text-align: center;
}
.sn-oz b { display: block; font-size: 24px; font-weight: 800; color: #111827; line-height: 1.2; }
.sn-oz span { font-size: 11px; color: #6b7280; }
.sn-oz.vurgu b { color: #4f46e5; }

/* Histogram */
.sn-histogram { display: flex; align-items: flex-end; gap: .35rem; height: 150px; }
.sn-hcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .25rem; }
.sn-hbar { width: 100%; border-radius: 5px 5px 0 0; background: linear-gradient(180deg,#818cf8,#4f46e5); min-height: 3px; }
.sn-hsay { font-size: 11px; font-weight: 800; color: #374151; }
.sn-hetiket { font-size: 9.5px; color: #9ca3af; }

/* Tablolar */
.sn-tablo { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sn-tablo th {
  padding: .5rem .6rem; font-size: 11px; font-weight: 700; color: #6b7280;
  text-transform: uppercase; letter-spacing: .3px; border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.sn-tablo td { padding: .5rem .6rem; border-bottom: 1px solid #f3f4f6; color: #374151; }
.sn-tablo tr:hover td { background: #f9fafb; }
.sn-sag { text-align: right; }
.sn-orta { text-align: center; }

.sn-puan { font-weight: 800; font-size: 14px; }
.sn-puan.iyi { color: #059669; }
.sn-puan.orta { color: #d97706; }
.sn-puan.dusuk { color: #dc2626; }
.sn-yok { color: #9ca3af; font-size: 11.5px; }

/* KISMİ NOT ROZETİ — açık uçluları henüz değerlendirilmemiş öğrenci.
   Puanın yanında durur; not sınavın tamamından değil, yalnızca
   değerlendirilmiş kısımdan hesaplandığı için (bkz. ajax_sinif_istek.php
   içindeki payda gerekçesi) öğretmen bu notu tam sanmasın. */
.sn-kismi {
  display: inline-block; margin-left: .3rem; font-size: 9.5px; font-weight: 800;
  background: #fef3c7; color: #92400e; border-radius: 5px; padding: 1px 5px;
  vertical-align: middle; white-space: nowrap; cursor: help;
}
/* Yüzdenin altındaki ham değer: "23,75 / 30 puan" */
.sn-ham { display: block; font-size: 10px; font-weight: 600; color: #6b7280; white-space: nowrap; }

.sn-av {
  width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: #eef2ff; color: #4f46e5; display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 800; vertical-align: middle; margin-right: .5rem;
}
.sn-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Ortak modal kabuğu — Kağıt görüntüleyici bunu kullanıyor. */
.sn-modal-katman {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 10060;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.sn-modal-kutu {
  background: #fff; border-radius: 12px; width: min(620px, 96vw); max-height: 88vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.sn-modal-ust {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.1rem; border-bottom: 1px solid #e5e7eb; font-size: 13.5px; font-weight: 700;
}
.sn-modal-ust button { background: none; border: none; font-size: 18px; cursor: pointer; color: #9ca3af; }
.sn-modal-govde { padding: 1rem 1.1rem; overflow-y: auto; font-size: 12.5px; line-height: 1.6; }
.sn-yz-adim { display: flex; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid #f3f4f6; }
.sn-yz-ik { flex-shrink: 0; font-weight: 800; }
.sn-yz-ik.ok  { color: #059669; }
.sn-yz-ik.yok { color: #dc2626; }
.sn-yz-metin { flex: 1; }
.sn-yz-gerekce { color: #6b7280; font-style: italic; margin-top: .15rem; }
.sn-yz-yorum { margin-top: .7rem; padding: .6rem .8rem; background: #f9fafb; border-radius: 8px; }
.sn-yz-uyari { margin-top: .6rem; padding: .5rem .7rem; background: #fffbeb;
  border: 1px solid #fde68a; color: #92400e; border-radius: 8px; font-size: 11.5px; }

/* Kağıt görüntüleyici — .sn-modal-katman kabuğunu kullanıyor, yalnızca daha geniş. */
.sn-kagit-kutu { width: min(900px, 96vw); }
.sn-kagit-sayfa { margin: 0 0 1rem; }
.sn-kagit-sayfa img {
  width: 100%; height: auto; display: block; border-radius: 10px;
  border: 1px solid #e5e7eb; background: #fff;
}
.sn-kagit-sayfa figcaption { font-size: 11.5px; color: #6b7280; margin-top: .3rem; text-align: center; }
.sn-kagit-pdf {
  display: block; padding: .8rem 1rem; margin-bottom: .7rem; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 10px; font-size: 12.5px; color: #374151; text-decoration: none;
}
.sn-kagit-pdf:hover { background: #f9fafb; }

/* Öğrenciler sekmesi — Sorular sekmesiyle aynı satır/sıralama kalıbı
   (.sn-soru-satir/.sn-siralama zaten var), yalnızca öğrenciye özel parçalar. */
.sn-ogrenci-ust-satir { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.sn-ogrenci-ad { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #111827; }
.sn-ogrenci-numara { font-size: 11px; color: #9ca3af; width: 48px; flex-shrink: 0; }
/* Katılım tarihi + Veli E-postası kolonları (kullanıcı kararı, 2026-08-28) —
   .sn-ogrenci-ust-satir'in AYNI flex satırına eklendi, tıkla-genişlet
   davranışı bozulmadı. Bir üstteki .sn-ogr-header-satir aynı flex-basis
   değerleriyle hizalanıyor ("excel görünümü" için sütun başlıkları). */
.sn-ogrenci-katilim { font-size: 11px; color: #6b7280; width: 110px; flex-shrink: 0; white-space: nowrap; }
.sn-ogrenci-veli { font-size: 11px; color: #374151; width: 170px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-ogrenci-veli a { margin-left: .3rem; color: #4f46e5; }
.sn-ogrenci-veli .kl-ortalama-yok, .sn-ogrenci-veli-yok { color: #d1d5db; }
.sn-ogr-header-satir {
  display: flex; align-items: center; gap: .6rem; padding: 0 0 .4rem;
  font-size: 10px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .3px;
  border-bottom: 1px solid #e5e7eb; margin-bottom: .3rem;
}
.sn-ogr-header-numara { width: 48px; flex-shrink: 0; }
.sn-ogr-header-ad { flex: 1; }
.sn-ogr-header-katilim { width: 110px; flex-shrink: 0; }
.sn-ogr-header-veli { width: 170px; flex-shrink: 0; }
.sn-ogr-header-puan { margin-left: auto; }
.sn-th-sirala { cursor: pointer; user-select: none; }
.sn-th-sirala:hover { color: #4f46e5; }
.kl-sort-pasif { color: #d1d5db; }
/* İşlemler dropdown — 05_kodlu_odevlerim.php'deki .kl-islemler-* deseninin AYNISI. */
.sn-islemler-wrap { position: relative; display: inline-block; }
.sn-islemler-btn {
  border-radius: 7px; padding: .4rem .8rem; font-size: 12px; font-weight: 600;
  cursor: pointer; border: 1px solid #e5e7eb; background: #fff; color: #374151;
  display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap;
}
.sn-islemler-btn:hover { background: #f9fafb; }
.sn-islemler-menu {
  position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.14); min-width: 190px; z-index: 30; overflow: hidden; display: none;
}
.sn-islemler-menu a {
  display: flex; align-items: center; gap: .55rem; width: 100%; text-align: left; padding: .65rem .85rem;
  background: none; border: none; font-size: 12.5px; color: #374151; cursor: pointer; text-decoration: none;
}
.sn-islemler-menu a:hover { background: #f3f4f6; }
.sn-islemler-menu a + a { border-top: 1px solid #f3f4f6; }
.sn-islemler-menu i { color: #4f46e5; width: 14px; text-align: center; }
.sn-ogrenci-detay { display: none; margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed #e5e7eb; }
.sn-ogrenci-detay.acik { display: block; }
.sn-ogrenci-detay-ust { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; flex-wrap: wrap; }

/* Oran çubuğu */
.sn-oran-bar { height: 8px; background: #f3f4f6; border-radius: 99px; overflow: hidden; min-width: 70px; }
.sn-oran-bar div { height: 100%; border-radius: 99px; }

/* Öğrenci detay paneli — Değerlendirme sekmesi (03_sihirbaz.php) tarzı TAM
   döküm: test soruları OMR şık daireleriyle salt okunur, açık uçlu sorular
   adım adım YZ dökümüyle (bkz. ogrenciDetayHtml). Bu blok eksikti; içerik
   DOM'a giriyordu ama karşılık gelen kural olmadığı için stilsiz görünüyordu. */
.sn-dt-kutu {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: .8rem .9rem; margin-bottom: .8rem;
}
.sn-dt-baslik {
  display: flex; align-items: center; gap: .4rem; font-weight: 700;
  font-size: 12.5px; color: #111827; margin-bottom: .3rem;
}
.sn-dt-rozet {
  font-size: 10px; font-weight: 700; padding: .1rem .4rem; border-radius: 5px;
  background: #f3f4f6; color: #6b7280; margin-left: auto;
}
.sn-dt-rozet-kirmizi { background: #fee2e2; color: #991b1b; }
.sn-dt-rozet-sari { background: #fef3c7; color: #92400e; }
.sn-dt-not { font-size: 11px; color: #6b7280; line-height: 1.5; margin-bottom: .5rem; }

.sn-dt-test-satir {
  display: flex; align-items: center; gap: .6rem; padding: .4rem 0;
  border-top: 1px solid #f3f4f6;
}
.sn-dt-test-satir:first-of-type { border-top: none; }
.sn-dt-no { font-size: 11.5px; font-weight: 700; color: #6b7280; width: 22px; flex-shrink: 0; }
.sn-dt-secenekler { display: flex; gap: .3rem; flex: 1; flex-wrap: wrap; }
.sn-dt-secenek {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid #d1d5db;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; color: #9ca3af; background: #fff; flex-shrink: 0;
}
.sn-dt-secenek.secili { background: #fee2e2; border-color: #f87171; color: #991b1b; }
.sn-dt-secenek.secili.dogru-sik { background: #d1fae5; border-color: #34d399; color: #065f46; }
.sn-dt-secenek.dogru-halka { border: 2px solid #059669; color: #059669; }
.sn-dt-durum { font-size: 11px; font-weight: 700; width: 76px; flex-shrink: 0; text-align: center; }
.sn-dt-durum.dogru { color: #059669; }
.sn-dt-durum.yanlis { color: #dc2626; }
.sn-dt-durum.bos { color: #9ca3af; }
.sn-dt-puan {
  font-size: 11.5px; font-weight: 700; color: #374151; width: 78px;
  flex-shrink: 0; text-align: right; white-space: nowrap;
}

.sn-dt-acik-kutu {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: .8rem .9rem; margin-bottom: .8rem;text-align:left;
}
.sn-dt-acik-ust { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .2rem; }
.sn-dt-acik-puan-kutu {
  font-size: 11.5px; font-weight: 800; padding: .1rem .5rem; border-radius: 6px;
  background: #eef2ff; color: #4338ca;
}

/* Şık dağılımı — Sorular sekmesindeki soru satırında kullanılıyor. */
.sn-rozet { font-size: 10px; font-weight: 700; padding: .1rem .4rem; border-radius: 5px; }
.sn-rozet.test { background: #eef2ff; color: #4338ca; }
.sn-rozet.acik { background: #ecfdf5; color: #065f46; }
.sn-not { font-size: 11.5px; color: #6b7280; line-height: 1.6; margin-top: .6rem; }
.sn-kaydir { overflow-x: auto; }

/* Soru listesi (Genel tab) — tüm sorular, sıralanabilir */
.sn-kart-baslik-satir { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .8rem; flex-wrap: wrap; gap: .5rem; }
.sn-kart-baslik-satir .sn-kart-baslik { margin-bottom: 0; }
.sn-siralama { display: flex; align-items: center; gap: .4rem; font-size: 11.5px; color: #6b7280; }
.sn-siralama select {
  border: 1px solid #e5e7eb; border-radius: 6px; padding: .3rem .5rem; font-size: 12px; color: #374151; background: #fff;
}
.sn-soru-satir { padding: .55rem 0; border-bottom: 1px solid #f3f4f6; }
.sn-soru-satir:last-child { border-bottom: none; }
.sn-soru-ust-satir { display: flex; align-items: center; gap: .6rem; }
.sn-soru-no { width: 24px; flex-shrink: 0; }
.sn-oran-wrap { flex: 1; display: flex; align-items: center; min-width: 60px; }
.sn-oran-yuzde { width: 44px; text-align: right; font-size: 12.5px; color: #374151; flex-shrink: 0; }
.sn-ikon-btn {
  border: none; background: #f3f4f6; color: #4b5563; width: 27px; height: 27px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; flex-shrink: 0;
}
.sn-ikon-btn:hover { background: #e5e7eb; color: #111827; }
.sn-ikon-btn.aktif { background: #4f46e5; color: #fff; }

/* Öğrenci puanları paneli — bardan sonra genişleyen alan */
.sn-ogr-panel { display: none; margin-top: .6rem; padding: .7rem .8rem; background: #f9fafb; border-radius: 8px; }
.sn-ogr-panel.acik { display: block; }
.sn-ogr-panel-ust { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; flex-wrap: wrap; gap: .5rem; }

/* Soru gösterme — TAM SAYFA (öğrencinin sınav çözme ekranı gibi) + akıllı tahta */
.sn-soru-tam {
  position: fixed; inset: 0; background: #fff; z-index: 10070;
  display: flex; flex-direction: column;
}
.sn-soru-tam-ust {
  display: flex; align-items: center; gap: .8rem; padding: .8rem 1.2rem;
  background: #1e293b; color: #fff; flex-shrink: 0; position: relative; z-index: 30;
}
.sn-soru-geri { background: none; border: none; cursor: pointer; padding: .3rem; display: flex; }
.sn-soru-tam-baslik-grup { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sn-soru-tam-baslik { font-size: 15px; font-weight: 700; }
.sn-tahta-btn {
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff;
  padding: .45rem .9rem; border-radius: 8px; cursor: pointer; font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: .4rem;
}
.sn-tahta-btn:hover { background: rgba(255,255,255,.16); }
.sn-tahta-btn.aktif { background: #4f46e5; border-color: #4f46e5; }
.sn-soru-tam-govde { flex: 1; overflow-y: auto; padding: 2rem 1.5rem 3rem; }
#sn-soru-icerik-katman { max-width: 900px; margin: 0 auto; }
.sn-soru-icerik { padding: .5rem 0; font-size: 16px; line-height: 1.9; color: #111827; }
.sn-soru-icerik img, .sn-soru-icerik svg { max-width: 100%; height: auto; }
/* class_soruviews.php::build_soruedits() kartın en başına kendi
   ".yazar_container"unu gömüyor (bkz. soru_goster action notu — view=1'de
   basılıyor). Kullanıcı kararı: tamamen kaldırıldı. */
#sn-soru-icerik .yazar_container { display: none; }
/* Kartın EN DIŞTAKİ div'i (soruid+baglamid taşıyan — class_soruviews.php'nin
   ürettiği ".soruedit yz-soruedit") sol tarafa sabitlenmiş bir panel.
   Flex column: içindeki .sv-tabcontrol (ve onun içindeki .sv-frames) flex:1
   ile kalan TÜM yüksekliği dolduruyor — önceden sekme içeriği kendi
   boyunda kalıp kutunun altına kadar inmiyordu (kullanıcı bulgusu).
   Kaydırma artık .sv-frames'te (overflow-y:auto); dış kutu overflow:hidden,
   sayfanın geri kalanı bundan etkilenmiyor. */
/* !important: class.soruviews.js (svTabInit) sekmelere kendi INLINE
   height'ini yazıyor (kullanıcının inceleyip bulduğu "style='height:100%'"
   — ya da JS sekme geçişinde piksel cinsinden yeniden yazabiliyor). Sıradan
   bir kural bunu ezemiyordu ("height:100% işe yaramıyor" bulgusu) —
   inline stil en yüksek özgüllüğe sahip olduğu için yalnızca !important
   üzerine çıkabilir. */
#sn-soru-icerik div[soruid][baglamid] {
  position: fixed !important;
  top: 55px !important;
  left: 10px !important;
  bottom: 10px !important;
  width: 400px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  height: auto !important;
}
#sn-soru-icerik .sv-tabcontrol {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
}
#sn-soru-icerik .sv-frames {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 0 !important;
}
/* Sekme paneli (Soru/Çözüm, Özellikler) — JS bunlara da sabit piksel
   yükseklik yazabiliyor; auto'ya zorlanmazsa .sv-frames'in taşma alanı
   kısalıp içerik aşağıya inmeden kesiliyordu. */
#sn-soru-icerik .sv-frame.myframe {
  height: auto !important;
  max-height: none !important;
}
/* .soruedit_frames — .sv-frames ile AYNI eleman (id='frames_$soruid',
   iki class birden), ayrı bir kural olarak da (kullanıcı isteği) verildi. */
#sn-soru-icerik .soruedit_frames {
  min-height: 0 !important;
  max-height: none !important;
}
/* Akıllı tahta: .sn-soru-tam-govde'nin İÇİNDE değil, .sn-soru-tam'ın
   doğrudan çocuğu — başlık çubuğunun altındaki TÜM sayfayı kaplıyor (yalnızca
   soru metninin üstünü değil, kenar boşluklarını da), top JS'te başlık
   yüksekliğine göre ayarlanıyor (bkz. tahtaAc). */
#sn-tahta-canvas {
  position: fixed; left: 0; right: 0; bottom: 0; touch-action: none; cursor: crosshair; z-index: 20;
}
#sn-tahta-arac {
  display: none; align-items: center; gap: .5rem; position: fixed; left: 50%; bottom: 1.2rem;
  transform: translateX(-50%); z-index: 25; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: .6rem .9rem; box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
#sn-tahta-arac.acik { display: flex; }
.sn-tahta-renk {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d1d5db;
  cursor: pointer; padding: 0;
}
.sn-tahta-renk.secili { box-shadow: 0 0 0 2px #111827; }
#sn-tahta-temizle {
  border: 1px solid #e5e7eb; background: #fff; border-radius: 6px;
  padding: .4rem .8rem; font-size: 12px; cursor: pointer; color: #374151;
}
#sn-tahta-temizle:hover { background: #f9fafb; }
