
/* ==== apps/modules/web/3300/05_kodlu_odevlerim.php dosyasindan tasindi ==== */
/* Sayfa iskeleti — Sınıflarım (00_siniflarim.php #siniflarim-wrap/#sl-toolbar/
   .sl-btn) ile AYNI: tam genişlik, açık gri zemin, üstte beyaz kartlar. */
#ko-wrap { min-height: 100%; background: #f8fafc; padding: 1rem 1rem 2rem; box-sizing: border-box; }

#ko-toolbar { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 1.1rem; flex-wrap: wrap; gap: 10px; }
#ko-aciklama { font-size: 12.5px; color: #6b7280; margin-bottom: 1.1rem; line-height: 1.5; }
.ko-btn {
  border-radius: 7px; padding: .5rem 1rem; font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1px solid #e5e7eb; background: #fff; color: #374151;
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
}
.ko-btn i { font-size: 12px; }
.ko-btn:hover { background: #f9fafb; }
.ko-btn:disabled { opacity: .5; cursor: not-allowed; background: #fff; }
.ko-btn:disabled:hover { background: #fff; }
.ko-btn-primary { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.ko-btn-primary:hover { background: #4338ca; }
.ko-btn-mini { padding: .25rem .6rem; font-size: 11.5px; }

/* Durum rozeti — hem klasör-içi liste satırında (.ko-durum-inline) hem de
   oluşturma/düzenleme modalının sonuç kutusunda kullanılıyor. */
.ko-durum { position: absolute; top: .8rem; right: .8rem; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.ko-durum-acik { background: #d1fae5; color: #065f46; }
.ko-durum-kapali { background: #f3f4f6; color: #6b7280; }
.ko-kod-box { display: flex; align-items: center; justify-content: center; gap: .4rem; background: #eef2ff; border-radius: 8px; padding: .5rem .7rem; margin-bottom: .7rem; }
.ko-kod-box b { font-size: 16px; letter-spacing: 2px; color: #4338ca; }
.ko-kod-box b.ko-link-metin { font-size: 12.5px; letter-spacing: 0; word-break: break-all; text-align: left; flex: 1; }
.ko-kod-aksiyon { display: flex; gap: .35rem; flex-shrink: 0; }
.ko-bos { text-align: center; padding: 2.5rem 1rem; color: #9ca3af; font-size: 13px; grid-column: 1/-1; }
.ko-loading { text-align: center; padding: 2rem; color: #bbb; font-size: 13px; grid-column: 1/-1; }

/* Klasör grid'i — Sınıflarım'daki #sl-grid/.sl-card ile BİREBİR AYNI kart
   iskeleti (00_siniflarim.php satır ~344-366): renkli banner + yuvarlak
   avatar üstte, beyaz gövde altta. Ayrı sayfa olduğu için kf- önekiyle
   tekrarlanıyor (bkz. dosyadaki diğer ko-/sl- ikili bileşenler). */
#ko-klasor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.kf-kart {
  background: #fff; border: 1px solid gray; border-radius: 10px; overflow: hidden;
  cursor: pointer; transition: box-shadow .15s, transform .15s;
}
.kf-kart:hover { box-shadow: 0 6px 18px rgba(0,0,0,.09); transform: translateY(-2px); }
.kf-kart-banner {
  height: 84px; padding: .9rem 1rem; position: relative; color: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
.kf-kart-banner-ad { font-size: 16px; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 3px rgba(0,0,0,.2); }
.kf-kart-avatar {
  position: absolute; right: 12px; bottom: -22px; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center; font-size: 17px; color: #4f46e5;
}
.kf-kart-body { padding: 1.6rem 1rem .9rem; }
.kf-kart-meta { font-size: 12px; color: #6b7280; display: flex; align-items: center; gap: .4rem; }
.kf-badge { margin-top: .5rem; display: inline-block; background: #d1fae5; color: #065f46; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }

/* Klasör tam ekran detay sayfası — Sınıflarım'daki .sd-* (sınıf detayı) ile
   AYNI görsel dil (kd- önekiyle tekrarlanıyor: sd-geri/.sd-tabs gibi genel
   isimleri BİREBİR paylaşmak, aynı SPA içinde delegated click handler'ları
   çakıştırabilir — bkz. dosya başlığındaki ko-/sl- ayrımı kararı). */
.kd-wrap { padding: 0 0 2rem; }
.kd-banner { padding: 1.6rem 1.3rem 2.2rem; color: #fff; position: relative; overflow: hidden; }
.kd-banner::after {
  content: ''; position: absolute; right: -30px; bottom: -40px; width: 160px; height: 160px;
  background: rgba(255,255,255,.12); border-radius: 50%;
}
.kd-banner-ad { font-size: 22px; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.2); position: relative; }
.kd-banner-alt { font-size: 12.5px; opacity: .92; margin-top: .3rem; position: relative; }
.kd-icerik { padding: 1.2rem 1rem 0; }

/* Sekmeler — Sınıflarım'daki .sd-tabs/.sd-tab ile AYNI görsel dil (kd- öneki). */
.kd-tabs { display: flex; gap: 4px; padding: 0 1rem; border-bottom: 1px solid #e5e7eb; margin-bottom: 1rem; overflow-x: auto; }
.kd-tab {
  background: none; border: none; padding: .7rem .9rem; font-size: 13px; font-weight: 600; color: #6b7280;
  cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap;
}
.kd-tab.active { color: #4f46e5; border-bottom-color: #4f46e5; }
.kd-tab-content { padding: 0 1rem; }

/* Kodlu Ödevler sekmesi — Sınıflarım'daki Ödevler sekmesindeki .sd-sinav-card
   ile BİREBİR AYNI kart iskeleti (00_siniflarim.php ~satır 642-657), kf- öneki
   ile tekrarlanıyor. */
.kf-sinav-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: .8rem 1rem; margin-bottom: .6rem;
  display: flex; align-items: flex-start; gap: .8rem;
}
.kf-sinav-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(135deg,#4f46e5,#6366f1);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px;
}
.kf-sinav-ad { font-size: 13.5px; font-weight: 600; color: #111827; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.kf-sinav-meta { font-size: 11px; color: #9ca3af; margin-top: .15rem; }
.kf-kod-satir { display: flex; align-items: center; gap: .35rem; margin-top: .5rem; flex-wrap: wrap; }
/* Sınıflarım'daki .sd-sinav-btnlar ile AYNI dikey buton sütunu (kullanıcı kararı). */
.kf-sinav-aksiyon { flex-shrink: 0; display: flex; flex-direction: column; gap: .35rem; align-items: stretch; }

.kl-tablo-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid #e5e7eb; }
/* Kullanıcı kararı (2026-08-28): "tüm sayfa excel tablosu görünümünde
   olsun" — hücreler her kenarda çizgili, klasik e-tablo ızgarası. */
.kl-tablo { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; }
.kl-tablo th {
  text-align: left; padding: .6rem .7rem; background: #f8fafc; color: #6b7280; font-weight: 700;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; border: 1px solid #e5e7eb; white-space: nowrap;
}
.kl-tablo td { padding: .6rem .7rem; border: 1px solid #f3f4f6; vertical-align: middle; }
.kl-kod { font-size: 11px; color: #4338ca; font-weight: 700; word-break: break-all; }
.kl-aksiyon { display: flex; gap: .3rem; flex-wrap: wrap; }
.kl-ortalama-yok { color: #d1d5db; }
.kl-btn-sil { color: #dc2626; border-color: #fecaca; }
.kl-btn-sil:hover { background: #fef2f2; }
.ko-durum-inline { position: static; display: inline-block; margin-top: .3rem; }

/* Öğrenciler sekmesi başlık satırı + İşlemler dropdown — Sınıflarım'daki
   .sd-ogr-ekle-wrap/.sd-ogr-ekle-menu deseninin AYNISI (00_siniflarim.php). */
.kl-ogr-baslik-satir { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
/* Notlar sekmesinin üst satırı — sekme düğmesi zaten başlığı taşıdığı için
   içerikte ikinci bir başlık YOK, İşlemler menüsü tek başına sağa yaslı
   (kullanıcı kararı, 2026-08-29). */
.kl-islemler-satir { display: flex; justify-content: flex-end; margin-bottom: .7rem; }
.kl-ogr-baslik { font-size: 13.5px; font-weight: 700; color: #111827; }
.kl-islemler-wrap { position: relative; display: inline-block; }
.kl-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;
}
.kl-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;
}
.kl-islemler-menu a:hover { background: #f3f4f6; }
.kl-islemler-menu a + a { border-top: 1px solid #f3f4f6; }
.kl-islemler-menu i { color: #4f46e5; width: 14px; text-align: center; }
.kl-veli-hucre a { margin-left: .3rem; color: #4f46e5; }
/* Sıralanabilir başlıklar (kullanıcı kararı, 2026-08-28) */
.kl-th-sirala, .kl-th-sirala-notlar, .ko-th-sirala-sonuc, .ko-th-sirala-sifre { cursor: pointer; user-select: none; }
.kl-th-sirala:hover, .kl-th-sirala-notlar:hover, .ko-th-sirala-sonuc:hover, .ko-th-sirala-sifre:hover { background: #eef2ff; }
.kl-sort-pasif { color: #d1d5db; }
.kl-vp-satir { display: block; padding: .5rem .2rem; font-size: 13px; color: #374151; cursor: pointer; }
.kl-vp-satir input { margin-right: .5rem; }

/* Modal */
.ko-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(17,24,39,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 9998; align-items: center; justify-content: center; }
.ko-modal-box { background: #fff; border-radius: 14px; width: min(440px, 94vw); max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.ko-modal-head { 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; color: #111827; }
.ko-modal-head button { background: none; border: none; font-size: 18px; cursor: pointer; color: #9ca3af; }
.ko-modal-body { padding: 1rem 1.1rem; overflow-y: auto; }
.ko-modal-foot { display: flex; justify-content: flex-end; gap: .6rem; padding: .8rem 1.1rem; border-top: 1px solid #e5e7eb; }
.ko-label {
  display: flex; align-items: center; gap: .35rem;
  font-size: 11px; font-weight: 800; color: #4f46e5;
  text-transform: uppercase; letter-spacing: .55px;
  margin: 0 0 .4rem; padding-bottom: .3rem;
  border-bottom: 1px solid #eef0f4;
}
.ko-select, .ko-input { width: 100%; box-sizing: border-box; padding: .55rem .7rem; border: 1px solid #d1d5db; border-radius: 7px; font-size: 13.5px; outline: none; }
.ko-select:focus, .ko-input:focus { border-color: #4f46e5; }
.ko-hata { margin-top: .6rem; padding: .5rem .7rem; background: #fee2e2; color: #991b1b; border-radius: 7px; font-size: 12.5px; }
.ko-sonuc-basari { color: #16a34a; font-size: 13.5px; font-weight: 600; margin-bottom: .8rem; text-align: center; }
.ko-sonuc-tablo { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ko-sonuc-tablo th { text-align: left; padding: .35rem .5rem; color: #9ca3af; font-weight: 600; border-bottom: 1px solid #f3f4f6; }
.ko-sonuc-tablo td { padding: .45rem .5rem; border-bottom: 1px solid #f9fafb; }
.ko-puan-var { color: #065f46; font-weight: 700; }
.ko-puan-yok { color: #d1d5db; }
.ko-durum-bekliyor { background: #fef3c7; color: #92400e; }
.ko-durum-bitti { background: #fee2e2; color: #991b1b; }
.ko-tarih-satir { font-size: 10.5px; color: #9ca3af; margin-top: .2rem; }

.ko-ipucu { font-size: 11px; color: #6b7280; margin-top: .25rem; line-height: 1.45; }
.ko-puan-secim-satir { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .35rem; }
.ko-puan-radio-grp { display: flex; flex-direction: column; gap: .3rem; }
.ko-puan-radio { display: flex; align-items: center; gap: .4rem; cursor: pointer; font-size: 12.5px; color: #374151; font-weight: 600; }
.ko-puan-radio input[type="radio"] { accent-color: #4f46e5; cursor: pointer; }
.ko-tarih { cursor: pointer; background: #fff; }
.sd-bos { text-align: center; padding: 2.5rem 1rem; color: #9ca3af; font-size: 13px; }
.sd-uyari { margin-top: .4rem; padding: .45rem .65rem; border-radius: 7px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 11.5px; line-height: 1.5; }
.sd-uyari i { margin-right: .3rem; }

/* ── Türkçe tarih-saat seçici (00_siniflarim.php'deki #sl-secici ile AYNI
   bileşen — ayrı sayfa/kapsam olduğu için ko- önekiyle tekrarlanıyor) ── */
#ko-secici-katman { position: fixed; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 10050; display: none; align-items: center; justify-content: center; padding: 1rem; }
#ko-secici { background: #fff; border-radius: 12px; width: min(320px, 94vw); box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: hidden; font-size: 13px; color: #111827; }
.kot-ust { display: flex; align-items: center; justify-content: space-between; padding: .7rem .8rem; border-bottom: 1px solid #e5e7eb; font-weight: 700; }
.kot-ok { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; color: #4f46e5; font-size: 18px; line-height: 1; cursor: pointer; }
.kot-ok:hover { background: #eef2ff; }
.kot-gunbaslik, .kot-izgara { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 0 .6rem; }
.kot-gunbaslik { padding-top: .6rem; font-size: 11px; color: #9ca3af; font-weight: 700; text-align: center; }
.kot-izgara { padding-bottom: .6rem; }
.kot-gun { height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; font-weight: 600; }
.kot-gun:hover:not(.bos) { background: #eef2ff; }
.kot-gun.bos { cursor: default; }
.kot-gun.bugun { box-shadow: inset 0 0 0 1px #c7d2fe; }
.kot-gun.secili { background: #4f46e5; color: #fff; }
.kot-saat { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; border-top: 1px solid #e5e7eb; }
.kot-saat span { font-size: 12px; font-weight: 700; color: #6b7280; margin-right: auto; }
.kot-saat select { padding: .3rem .5rem; border: 1px solid #e5e7eb; border-radius: 7px; font-size: 14px; font-weight: 700; background: #fff; color: #111827; }
.kot-alt { display: flex; justify-content: flex-end; gap: .5rem; padding: .7rem .8rem; border-top: 1px solid #e5e7eb; background: #f9fafb; }

/* ── Puanlama paneli (00_siniflarim.php'deki .sp-* ile AYNI — panel
   sinav_id'ye ait ortak backend action'ları kullanıyor, bkz. JS) ── */
.sp-anahtar { display: flex; gap: .6rem; align-items: flex-start; background: #eef2ff; border: 1px solid #e0e7ff; border-radius: 9px; padding: .7rem .85rem; margin-bottom: .9rem; cursor: pointer; }
.sp-anahtar input { margin-top: 2px; flex-shrink: 0; }
.sp-anahtar b { font-size: 13px; color: #3730a3; }
.sp-anahtar .ko-ipucu { margin-top: .2rem; }
.sp-satir { border: 1px solid #e5e7eb; border-radius: 9px; padding: .65rem .8rem; margin-bottom: .55rem; }
.sp-satir-ust { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sp-no { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: #eef2ff; color: #4338ca; font-size: 11.5px; font-weight: 800; line-height: 24px; text-align: center; }
.sp-tur { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.sp-tur-test { background: #dbeafe; color: #1e40af; }
.sp-tur-acik { background: #ede9fe; color: #5b21b6; }
.sp-ozet { flex: 1; min-width: 120px; font-size: 11.5px; color: #6b7280; }
.sp-puan-etiket { font-size: 11.5px; color: #374151; font-weight: 600; }
.sp-puan { width: 62px; padding: .3rem .45rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; font-weight: 700; text-align: center; box-sizing: border-box; }
.sp-puan:focus { border-color: #4f46e5; outline: none; }
.sp-goturur { font-size: 11.5px; color: #92400e; margin-top: .35rem; }
.sp-goturur i { margin-right: .25rem; }
.sp-pasif { opacity: .45; }
.sp-adimlar { margin-top: .55rem; border-top: 1px dashed #e5e7eb; padding-top: .5rem; }
.sp-adim { display: flex; align-items: center; gap: .45rem; margin-bottom: .35rem; }
.sp-adim-no { font-size: 11px; font-weight: 700; color: #9ca3af; width: 46px; flex-shrink: 0; }
.sp-adim-puan { width: 52px; flex-shrink: 0; padding: .25rem .35rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12.5px; font-weight: 700; text-align: center; box-sizing: border-box; }
.sp-adim-metin { flex: 1; min-width: 0; padding: .25rem .45rem; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 12px; color: #374151; box-sizing: border-box; }
.sp-adim-metin:focus, .sp-adim-puan:focus { border-color: #4f46e5; outline: none; }
.sp-adim-sil { flex-shrink: 0; border: none; background: none; color: #dc2626; cursor: pointer; font-size: 13px; padding: 0 4px; line-height: 1; }
.sp-adim-alt { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }
.sp-toplam { font-size: 11.5px; font-weight: 700; margin-right: auto; }
.sp-toplam-ok { color: #065f46; }
.sp-toplam-hata { color: #dc2626; }
.sp-rozet { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.sp-rozet-kayitli { background: #d1fae5; color: #065f46; }
.sp-rozet-cozum { background: #fef3c7; color: #92400e; }
.sp-genel-toplam { margin-right: auto; font-size: 12px; font-weight: 700; color: #374151; }
