
/* ==== apps/modules/web/0100/04_odev_coz_ogrenci.php dosyasindan tasindi ==== */
  #oc-wrap { position: fixed; inset: 0; z-index: 5; background: #f1f5f9; display: flex; flex-direction: column; font-family: inherit; }

  #oc-header {
    flex-shrink: 0; height: 52px; background: linear-gradient(135deg,#0f2a52,#1a3a6e);
    display: flex; align-items: center; gap: .5rem; padding: 0 .5rem; color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.25); z-index: 20;
  }
  #oc-geri {
    width: 40px; height: 40px; flex-shrink: 0; border: none; background: transparent; color: #fff;
    border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 17px;
  }
  #oc-geri:hover { background: rgba(255,255,255,.12); }
  #oc-baslik { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #oc-panel-toggle {
    border: none; background: rgba(255,255,255,.14); color: #fff; border-radius: 8px;
    width: 40px; height: 40px; font-size: 16px; cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }
  #oc-panel-toggle:hover { background: rgba(255,255,255,.24); }

  #oc-body { flex: 1; display: flex; overflow: hidden; min-height: 0; }

  /* ── PDF alanı ─────────────────────────────────────────────────────── */
  #oc-pdf-alan { flex: 1; min-width: 0; overflow-y: auto; position: relative; }
  #oc-toolbar {
    position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid #e2e8f0;
    display: flex; align-items: center; gap: .4rem; padding: .5rem .7rem; flex-wrap: wrap;
  }
  .oc-arac {
    border: 1.5px solid #dbe7f3; background: #fff; color: #334155; border-radius: 8px;
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 15px; flex-shrink: 0;
  }
  .oc-arac.aktif { background: #1a3a6e; border-color: #1a3a6e; color: #fff; }
  .oc-arac:hover:not(.aktif) { background: #f1f5f9; }
  .oc-toolbar-ayrac { width: 1px; align-self: stretch; background: #e2e8f0; margin: 0 .2rem; }
  .oc-toolbar-grup { display: flex; align-items: center; gap: .3rem; }
  #oc-zoom-kaydirici { width: 90px; }
  #oc-zoom-etiket { font-size: 11px; font-weight: 700; color: #475569; width: 34px; text-align: center; flex-shrink: 0; }

  /* Kalınlık — küçük bir düğme, tıklayınca dikey bir kaydırıcı açan popover
     (kullanıcı kararı, 2026-08-27: toolbar'a sabit yatay kaydırıcı yerine
     "select gibi" açılıp kapanan bir kutu). */
  #oc-kalinlik-alan { position: relative; }
  #oc-kalinlik-menu {
    display: none; position: absolute; top: 44px; left: 50%; transform: translateX(-50%);
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15);
    z-index: 30; padding: .9rem .6rem; height: 130px; align-items: center; justify-content: center;
  }
  #oc-kalinlik-menu.acik { display: flex; }
  #oc-kalinlik-menu input[type="range"] {
    writing-mode: vertical-lr; direction: rtl; width: 8px; height: 100px; accent-color: #1a3a6e;
  }

  .oc-renk {
    width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #dbe7f3;
    cursor: pointer; flex-shrink: 0; padding: 0;
  }
  .oc-renk.aktif { box-shadow: 0 0 0 2px #1a3a6e; }

  #oc-indir-alan { position: relative; }
  #oc-indir-menu {
    display: none; position: absolute; top: 44px; right: 0; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); z-index: 30; overflow: hidden; min-width: 170px;
  }
  #oc-indir-menu.acik { display: block; }
  #oc-indir-menu button {
    display: block; width: 100%; text-align: left; border: none; background: #fff; padding: .6rem .8rem;
    font-size: 12.5px; font-weight: 600; color: #334155; cursor: pointer;
  }
  #oc-indir-menu button:hover { background: #f1f5f9; }
  #oc-indir-menu button + button { border-top: 1px solid #f1f5f9; }

  /* Şekil — "select gibi" açılan zengin menü (kullanıcı kararı, 2026-08-27):
     ayrı ayrı toolbar düğmeleri yerine TEK düğme + dropdown, İndir menüsüyle
     AYNI görsel dil, ama her satırda ikon + isim var. */
  #oc-sekil-alan { position: relative; }
  #oc-sekil-menu {
    display: none; position: absolute; top: 44px; left: 0; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); z-index: 30; overflow: hidden; min-width: 150px;
  }
  #oc-sekil-menu.acik { display: block; }
  #oc-sekil-menu button {
    display: flex; align-items: center; gap: .55rem; width: 100%; text-align: left; border: none; background: #fff;
    padding: .55rem .8rem; font-size: 12.5px; font-weight: 600; color: #334155; cursor: pointer;
  }
  #oc-sekil-menu button i { width: 16px; text-align: center; flex-shrink: 0; }
  #oc-sekil-menu button:hover { background: #f1f5f9; }
  #oc-sekil-menu button.aktif { background: #eef2ff; color: #1a3a6e; }
  #oc-sekil-menu button + button { border-top: 1px solid #f1f5f9; }

  #oc-sayfalar { padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
  #oc-pdf-alan.oc-yakinlastirilmis { overflow-x: auto; }
  .oc-sayfa-kutu { position: relative; box-shadow: 0 4px 18px rgba(0,0,0,.12); background: #fff; touch-action: none; flex-shrink: 0; }
  /* El aracı aktifken: touch-action:none gevşetiliyor (pan-x pan-y) —
     mobilde parmakla sürüklemek artık tarayıcının KENDİ native kaydırmasını
     tetikliyor (yukarı/aşağı zaten #oc-pdf-alan'da vardı, sağ/sol da
     .oc-yakinlastirilmis dışında bu sayede açılmış oluyor). Fare için AYRICA
     JS ile sürükle-kaydır uygulanıyor (bkz. #oc-arac-el pointerdown/move/up) —
     touch-action mouse'u etkilemiyor. */
  #oc-pdf-alan.oc-el-modu { overflow-x: auto; }
  #oc-pdf-alan.oc-el-modu .oc-sayfa-kutu { touch-action: pan-x pan-y; cursor: grab; }
  #oc-pdf-alan.oc-el-modu.oc-el-surukleniyor .oc-sayfa-kutu { cursor: grabbing; }
  .oc-sayfa-kutu canvas { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
  .oc-pdf-canvas { position: static !important; }
  .oc-sayfa-no {
    position: absolute; left: 8px; top: 8px; background: rgba(15,42,82,.85); color: #fff; font-size: 11px;
    font-weight: 700; padding: 2px 8px; border-radius: 999px; pointer-events: none;
  }
  #oc-pdf-yukleniyor, #oc-pdf-hata { text-align: center; padding: 3rem 1rem; color: #64748b; font-size: 13.5px; }
  #oc-pdf-hata { color: #dc2626; display: none; }

  /* ── Sağ panel ─────────────────────────────────────────────────────── */
  #oc-panel {
    /* Sabit 270px — hem masaüstü hem mobil (kullanıcı kararı, 2026-08-27). */
    width: 270px; flex-shrink: 0; background: #fff; border-left: 1px solid #e2e8f0;
    display: flex; flex-direction: column; overflow: hidden; transition: width .2s ease;
  }
  /* Kapalı: masaüstünde genişlik sıfırlanır (PDF tüm alanı kaplar); mobilde
     aşağıdaki media query bunun yerine kaydırarak gizler (bkz. altta). */
  #oc-panel.oc-panel-kapali { width: 0; border-left: none; }
  #oc-panel-body { flex: 1; overflow-y: auto; padding: .75rem; }
  .oc-bolum-baslik {
    font-size: 11px; font-weight: 800; color: #1a3a6e; text-transform: uppercase; letter-spacing: .04em;
    margin: 1.1rem 0 .6rem; padding-bottom: .35rem; border-bottom: 1px solid #eef2f7;
  }
  .oc-bolum-baslik:first-child { margin-top: 0; }
  #oc-durum { font-size: 12px; color: #64748b; min-height: 16px; margin-bottom: .3rem; }
  #oc-durum.kayit-ok { color: #16a34a; }
  #oc-durum.kayit-hata { color: #dc2626; }

  .oc-test-satir { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; }
  .oc-test-no { width: 22px; flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: #475569; }
  .oc-test-sikler { display: flex; gap: .3rem; flex: 1; }
  /* Öğrencinin isteği: optik form şıkları dairesel (klasik optik form
     görünümü) — kare/dikdörtgen değil. Tekrar tıklayınca seçim kalkıyor
     (cevapGonder'daki toggle), bu yüzden ayrı bir "sil" düğmesine gerek yok. */
  .oc-sik {
    width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #dbe7f3; background: #fff;
    color: #334155; font-size: 12px; font-weight: 700; cursor: pointer; flex-shrink: 0; padding: 0;
  }
  .oc-sik:hover { background: #f1f5f9; }
  .oc-sik.secili { background: #1a3a6e; border-color: #1a3a6e; color: #fff; }

  .oc-veya-ayrac { display: flex; align-items: center; gap: .6rem; margin: .8rem 0; color: #94a3b8; font-size: 11px; font-weight: 700; }
  .oc-veya-ayrac::before, .oc-veya-ayrac::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
  .oc-drop {
    display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center;
    border: 2px dashed #b8d9f0; border-radius: 10px; padding: 1rem; cursor: pointer; color: #1a3a6e;
    font-size: 12.5px; font-weight: 700;
  }
  .oc-drop:hover { background: #eef2ff; border-color: #1a3a6e; }
  .oc-drop small { font-weight: 500; color: #94a3b8; font-size: 10.5px; }
  #oc-yazdiklarim-ekle {
    width: 100%; margin-top: .6rem; padding: .6rem; border: 1.5px solid #1a3a6e; background: #fff;
    color: #1a3a6e; border-radius: 8px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  }
  #oc-yazdiklarim-ekle:hover { background: #eef2ff; }
  #oc-yazdiklarim-ekle:disabled { opacity: .45; cursor: not-allowed; }

  .oc-sayfa-satir {
    display: flex; align-items: center; gap: .5rem; padding: .4rem .5rem; border: 1px solid #eef2f7;
    border-radius: 8px; margin-top: .4rem;
  }
  .oc-sayfa-satir img { width: 34px; height: 34px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
  .oc-sayfa-satir .oc-pdf-rozet {
    width: 34px; height: 34px; border-radius: 5px; background: #fee2e2; color: #dc2626; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
  }
  .oc-sayfa-satir a { flex: 1; font-size: 12px; color: #1a3a6e; text-decoration: none; font-weight: 600; }
  .oc-sayfa-sil { border: none; background: none; color: #dc2626; cursor: pointer; font-size: 13px; }
  .oc-bos { text-align: center; padding: 1rem; color: #94a3b8; font-size: 12px; }

  #oc-teslim-alt {
    padding: .8rem 1rem; border-top: 1px solid #e2e8f0; flex-shrink: 0;
  }
  #oc-teslim-buton {
    width: 100%; padding: .8rem; border: none; border-radius: 10px; font-size: 14px; font-weight: 700;
    cursor: pointer; background: linear-gradient(135deg,#16a34a,#15803d); color: #fff;
  }
  #oc-teslim-buton:disabled { opacity: .5; cursor: not-allowed; }

  #oc-sonuc-katman {
    display: none; position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 50;
    align-items: center; justify-content: center; padding: 1rem;
  }
  #oc-sonuc-kutu {
    background: #fff; border-radius: 16px; padding: 1.6rem 1.4rem; max-width: 360px; width: 100%; text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
  }
  #oc-sonuc-kutu .oc-sonuc-ikon { font-size: 40px; color: #16a34a; margin-bottom: .6rem; }
  #oc-sonuc-kutu h3 { margin: 0 0 .5rem; font-size: 16px; color: #0f2a52; }
  #oc-sonuc-kutu p { margin: 0 0 1rem; font-size: 13px; color: #475569; line-height: 1.55; }
  #oc-sonuc-kapat {
    width: 100%; padding: .7rem; border: none; border-radius: 9px; background: #1a3a6e; color: #fff;
    font-size: 13.5px; font-weight: 700; cursor: pointer;
  }

  @media (max-width: 860px) {
    #oc-panel {
      position: fixed; top: 52px; right: 0; bottom: 0; width: 270px; z-index: 30;
      transform: translateX(0); transition: transform .2s ease; box-shadow: -6px 0 24px rgba(0,0,0,.18);
    }
    /* Mobilde kapalı hâl genişlik sıfırlamak yerine ekran dışına kaydırır —
       masaüstündeki width:0 kuralı burada geçersiz kılınıyor. */
    #oc-panel.oc-panel-kapali { width: 270px; border-left: 1px solid #e2e8f0; transform: translateX(100%); }
  }
