
/* ==== apps/modules/web/3300/02_kagitlar.php dosyasindan tasindi ==== */
.kg-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;
}
.kg-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; }
.kg-geri:hover { background: rgba(56,189,248,.25); }
.kg-baslik {
  position: absolute; left: 0; right: 0; text-align: center; pointer-events: none;
  color: #e2e8f0; font-size: 14px; font-weight: 600; padding: 0 60px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.kg-govde {
  position: absolute; top: 0; bottom: 0; left: 0; right: 0;
  overflow: auto; background: #f1f5f9; padding: 1rem;
  /* Alttaki sabit blok araç çubuğu son satırı örtmesin */
  padding-bottom: 80px;
}
.kg-ust { max-width: 1100px; margin: 0 auto 1rem; }
.kg-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2rem; padding: 1.3rem; cursor: pointer;
  border: 2px dashed #c7d2fe; border-radius: 12px; background: #fff;
  color: #4338ca; font-size: 14px; font-weight: 700;
}
.kg-drop:hover { background: #eef2ff; border-color: #4f46e5; }
.kg-drop i { font-size: 24px; }
.kg-drop small { font-weight: 500; color: #9ca3af; font-size: 11px; text-align: center; }
.kg-yonlendirme {
  padding: .8rem 1rem; border-radius: 12px; background: #eff6ff;
  border: 1px solid #bfdbfe; color: #1e3a8a; font-size: 12.5px; line-height: 1.6;
}
.kg-yonlendirme i { margin-right: .35rem; color: #2563eb; }
/* Karekodlu ayraç: özet kutusu + ayraç sayfasının kartı. Ayraç sayfaları
   öğrencinin cevabı değil, o yüzden görsel olarak da cevap sayfalarından
   ayrışıyorlar (soluk, kesikli çerçeve). */
.kg-ayrac-ozet {
    margin: .6rem auto 0; max-width: 760px; font-size: 12.5px; line-height: 1.6;
    color: #1e40af; background: #eff6ff; border: 1px solid #bfdbfe;
    border-radius: 8px; padding: .5rem .7rem;
}
.kg-ayrac-uyari { margin: .35rem 0 0; padding-left: 1.1rem; color: #92400e; }
.kg-ayrac-uyari li { margin-bottom: .15rem; }
.kg-kart-ayrac { opacity: .72; }
.kg-kart-ayrac .kg-onizleme { border: 1px dashed #94a3b8; }
.kg-ad-ayrac small { opacity: .85; }

.kg-durum { margin-top: .6rem; font-size: 12.5px; color: #6b7280; text-align: center; }
.kg-durum.ok { color: #059669; }
.kg-durum.hata { color: #dc2626; }
.kg-durum b { color: #111827; }

#kg-liste {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem;
}
.kg-yukleniyor, .kg-bos {
  grid-column: 1 / -1; padding: 2.5rem; text-align: center;
  color: #9ca3af; font-size: 13px; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 12px;
}

.kg-kart {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.kg-kart.eslesti { border-color: #a7f3d0; box-shadow: 0 0 0 1px #a7f3d0; }
.kg-onizleme {
  position: relative; height: 200px; background: #f9fafb;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.kg-onizleme img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.kg-pdf-yuk { font-size: 11.5px; color: #9ca3af; }
.kg-sira {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: rgba(17,24,39,.75); color: #fff; font-size: 10.5px; font-weight: 800;
  padding: .1rem .4rem; border-radius: 5px;
}
.kg-sil {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 24px; height: 24px; border-radius: 6px; border: none; cursor: pointer;
  background: rgba(220,38,38,.9); color: #fff; font-size: 11px; line-height: 1;
}
.kg-sil:hover { background: #b91c1c; }
.kg-alt { padding: .55rem .6rem; border-top: 1px solid #f3f4f6; }
.kg-sec {
  width: 100%; box-sizing: border-box; padding: .4rem .5rem;
  border: 1px solid #e5e7eb; border-radius: 8px; font-size: 12.5px;
  background: #fff; color: #374151; cursor: pointer;
}
.kg-sec.bos { border-color: #fca5a5; background: #fef2f2; color: #991b1b; }
.kg-sec.dolu { border-color: #a7f3d0; background: #f0fdf4; color: #065f46; font-weight: 600; }

/* Elle Düzelt (karışık sınav) — karekod zinciri kırılınca kullanılan
   ikincil araçlar; daraltılmış <details> ile öne çıkmıyor. */
.kg-elle-duzelt {
  margin-top: .8rem; max-width: 640px; margin-left: auto; margin-right: auto;
  border: 1px solid #e5e7eb; border-radius: 10px; background: #fff;
}
.kg-elle-duzelt summary {
  cursor: pointer; list-style: none; padding: .55rem .8rem;
  font-size: 12.5px; font-weight: 700; color: #374151;
  display: flex; align-items: center; gap: .4rem;
}
.kg-elle-duzelt summary::-webkit-details-marker { display: none; }
.kg-elle-duzelt summary i { color: #6b7280; }
.kg-elle-not { font-weight: 500; color: #9ca3af; }
.kg-elle-duzelt[open] summary { border-bottom: 1px solid #f3f4f6; }
.kg-elle-ic { padding: .3rem .8rem .7rem; }
.kg-elle-ic .kg-adet-satir { margin-top: .4rem; }

/* Sayfa adedi */
.kg-adet-satir {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  flex-wrap: wrap; margin-top: .8rem; font-size: 12.5px; color: #374151;
}
.kg-adet-satir label { font-weight: 700; }
#kg-adet {
  width: 62px; padding: .3rem .4rem; text-align: center;
  border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; font-weight: 700;
}
.kg-adet-not { color: #9ca3af; font-size: 11.5px; }

/* YZ ad okuma */
.kg-yz-satir { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: .6rem; }
.kg-yz-btn {
  padding: .42rem .8rem; border-radius: 8px; border: 1px solid #ddd6fe; cursor: pointer;
  background: #f5f3ff; color: #5b21b6; font-size: 12.5px; font-weight: 700;
}
.kg-yz-btn:hover { background: #ede9fe; }
.kg-yz-btn[disabled] { opacity: .55; cursor: default; }
.kg-yz-uygula { background: #059669; border-color: #059669; color: #fff; }
.kg-sira-btn  { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.kg-sira-btn:hover { background: #dbeafe; }
.kg-pro {
  display: inline-block; margin-left: .25rem; padding: 0 .28rem; border-radius: 4px;
  background: #f59e0b; color: #111827; font-size: 9.5px; font-weight: 800; vertical-align: middle;
}
.kg-yz-pas    { background: #fff; border-color: #e5e7eb; color: #6b7280; }

/* Öneri şeridi — kabul edilene kadar atama YAPILMAZ */
.kg-oneri {
  display: flex; align-items: center; gap: .3rem;
  padding: .3rem .4rem; background: #fef3c7; border-top: 1px solid #fde68a;
  font-size: 11px; color: #78350f; font-weight: 700;
}
.kg-oneri .ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.kg-oneri .gv { flex-shrink: 0; opacity: .8; font-weight: 600; }
.kg-oneri button {
  flex-shrink: 0; width: 22px; height: 22px; border: none; border-radius: 5px;
  cursor: pointer; color: #fff; font-size: 10px; line-height: 1;
}
.kg-oneri .kg-o-evet { background: #059669; }
.kg-oneri .kg-o-hayir { background: #9ca3af; }
.kg-oneri.dusuk { background: #fee2e2; border-top-color: #fecaca; color: #991b1b; }
.kg-oneri.yok   { background: #f3f4f6; border-top-color: #e5e7eb; color: #6b7280; font-weight: 600; }

/* Blok seçimi — sürükleyerek aralık seçme */
.kg-kart { user-select: none; -webkit-user-select: none; cursor: pointer; }
.kg-kart.secili { border-color: #6366f1; box-shadow: 0 0 0 2px #6366f1; }
.kg-kart.secili .kg-onizleme::after {
  content: ''; position: absolute; inset: 0; background: rgba(99,102,241,.18); pointer-events: none;
}
/* Öğrenci şeridi: aynı renk = aynı öğrencinin kağıdı */
.kg-ad {
  display: flex; align-items: center; gap: .3rem;
  padding: .25rem .5rem; font-size: 11px; font-weight: 700; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kg-ad small { font-weight: 600; opacity: .85; margin-left: auto; flex-shrink: 0; }
.kg-ad.bos { background: #e5e7eb; color: #9ca3af; font-weight: 600; }

#kg-arac {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: none;
  align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: .6rem .8rem; background: #111827; border-top: 2px solid #6366f1;
}
#kg-arac-bilgi { color: #e5e7eb; font-size: 13px; font-weight: 700; margin-right: .3rem; }
#kg-arac-ogr {
  flex: 1 1 180px; min-width: 150px; max-width: 320px;
  padding: .4rem .5rem; border-radius: 8px; border: 1px solid #374151;
  background: #1f2937; color: #f9fafb; font-size: 13px;
}
.kg-a-btn {
  padding: .42rem .7rem; border-radius: 8px; border: none; cursor: pointer;
  font-size: 12.5px; font-weight: 700; color: #fff;
}
.kg-a-ata      { background: #059669; }
.kg-a-aralik   { background: #4f46e5; }
.kg-a-aralik.kg-a-armed { background: #f59e0b; color: #111827; }
.kg-a-kaldir   { background: #b45309; }
.kg-a-temizle  { background: #374151; }
.kg-a-btn:hover { filter: brightness(1.15); }
.kg-buyut-btn {
  position: absolute; bottom: 6px; right: 6px; z-index: 2;
  width: 24px; height: 24px; border-radius: 6px; border: none; cursor: pointer;
  background: rgba(17,24,39,.75); color: #fff; font-size: 11px; line-height: 1;
}
.kg-buyut-btn:hover { background: #111827; }

/* Büyütme katmanı */
#kg-buyut {
  position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 40;
  display: none; align-items: center; justify-content: center; padding: 1rem; cursor: zoom-out;
}
#kg-buyut img { max-width: 100%; max-height: 100%; object-fit: contain; }
