
/* ==== apps/modules/web/3200/0_sinavlar.php dosyasindan tasindi ==== */
/* ── Wrapper ────────────────────────────────────────────────── */
#sinavlar-wrap {
  min-height: 100%;
  background: #fff;
  padding-bottom: 2rem;
}

/* Toolbar */
#sinavlar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 10px;
}
#sv-search-box {
  position: relative;
  flex: 1;
  max-width: 280px;
}
#sv-search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 13px;
}
#sv-search {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
#sv-search:focus {
  border-color: #4f46e5;
}
#sv-siralama {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
}
#sv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}
.sv-pill {
  display: inline-block;
  padding: 4px 12px;
  background: #f3f4f6;
  border-radius: 20px;
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
  transition: all .15s;
}
.sv-pill:hover {
  background: #e5e7eb;
}
.sv-pill.active {
  background: #4f46e5;
  color: #fff;
}
#sv-count-bar {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

/* ── Normal sınav kartları ───────────────────────────────────── */
.sv-card { margin-bottom: 0.65rem; }
.sv-card .yzsv-row1 { width: 100%; }
.sv-card-highlight {
  outline: 3px solid #f97316;
  background: #fff7ed !important;
  transition: outline .15s, background .15s;
}

/* ── İkon ve kod badge düzeni ────────────────────────────────── */
.yzsv-icon {
  flex-shrink: 0;
  width: 50px;
  min-width: 50px;
  height: auto;
  min-height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg,#059669,#10b981);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  padding: 6px 0;
  gap: 4px;
}
.sv-kod-badge {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  background: rgba(0,0,0,0.2);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

/* ── YZ kart ────────────────────────────────────────────────── */
.yzsv-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: .75rem 1.1rem;
  margin-bottom: .65rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow .15s;
}
.yzsv-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.07); }

/* Satır 1: ikon + başlık/meta + butonlar */
.yzsv-row1 {
  display: flex;
  align-items: center;
  gap: .9rem;
}

/* Satır 1 orta: ad + meta */
.yzsv-body { flex: 1; min-width: 0; }

.yzsv-ad {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: .18rem;
}

.yzsv-meta {
  flex-wrap: wrap;
  gap: .2rem .6rem;
  font-size: 11px;
  color: #6b7280;
}
.yzsv-meta i { margin-right: .2rem; }

/* Satır 2: badge + progress + accordion */
.yzsv-row2 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .45rem;
  margin-top: .6rem;
  padding-top: .55rem;
  border-top: 1px solid #f3f4f6;
  width: 100%;
}

/* Durum badge */
.yzsv-badge {
    font-size: 11px;
    font-weight: 600;
    padding: .15rem .55rem;
    border-radius: 20px;
    white-space: nowrap;
    box-sizing: border-box;
    margin: 0 auto;
}
.yzsv-badge.d0 { background:#f3f4f6; color:#6b7280; }
.yzsv-badge.d1 { background:#ede9fe; color:#6d28d9; }
.yzsv-badge.d2 { background:#dbeafe; color:#1d4ed8; }
.yzsv-badge.d3 { background:#fef9c3; color:#92400e; }
.yzsv-badge.d4 { background:#d1fae5; color:#065f46; }
.yzsv-badge.d5 { background:#fee2e2; color:#991b1b; }

/* Progress bar */
.yzsv-progress-wrap {
  margin-top: .5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.yzsv-progress-bar {
  flex: 1;
  height: 5px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
}
.yzsv-progress-fill {
  height: 100%;
  background: linear-gradient(90deg,#6366f1,#8b5cf6);
  border-radius: 99px;
  transition: width .4s ease;
}
.yzsv-progress-pct {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
  min-width: 30px;
  text-align: right;
}

.yzsv-progress-stack {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.yzsv-progress-label {
  font-size: 10.5px;
  color: #9ca3af;
  white-space: nowrap;
  min-width: 62px;
}
.yzsv-progress-fill.onay {
  background: linear-gradient(90deg,#10b981,#059669);
}

/* Accordion */
.yzsv-accordion {
  display: none;
}
.yzsv-accordion.open { display: block; }
.yzsv-baglam-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.yzsv-baglam-table th {
  text-align: left;
  padding: .25rem .5rem;
  color: #9ca3af;
  font-weight: 600;
  border-bottom: 1px solid #f3f4f6;
}
.yzsv-baglam-table td {
  padding: .3rem .5rem;
  border-bottom: 1px solid #f9fafb;
  vertical-align: middle;
  color: #374151;
  text-align: left;
}
.yzsv-baglam-table th.col-soru,
.yzsv-baglam-table td.col-soru,
.yzsv-baglam-table th.col-durum,
.yzsv-baglam-table td.col-durum {
  text-align: center;
}
.yzsv-baglam-table th.col-kazanim,
.yzsv-baglam-table td.col-kazanim {
  text-align: left;
}
.yzsv-baglam-table tr:last-child td { border-bottom: none; }
.yzsv-baglam-table tr.b-onay td:first-child { border-left: 3px solid #10b981; }
.yzsv-baglam-table tr.b-bekliyor td:first-child { border-left: 3px solid #f59e0b; }
.yzsv-baglam-table tr.b-hata td:first-child { border-left: 3px solid #ef4444; }
.yzsv-baglam-table tr.b-kuyruk td:first-child { border-left: 3px solid #d1d5db; }

.yzsv-b-durum {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: 11px;
  font-weight: 600;
  padding: .1rem .4rem;
  border-radius: 20px;
  white-space: nowrap;
}
.yzsv-b-durum.onay { background:#d1fae5; color:#065f46; }
.yzsv-b-durum.bekliyor { background:#fef9c3; color:#92400e; }
.yzsv-b-durum.hata { background:#fee2e2; color:#991b1b; }
.yzsv-b-durum.kuyruk { background:#f3f4f6; color:#6b7280; }

.yzsv-b-onayla-btn {
  font-size: 11px;
  padding: .15rem .5rem;
  border: 1px solid #6366f1;
  border-radius: 5px;
  color: #6366f1;
  background: none;
  cursor: pointer;
  white-space: nowrap;
}
.yzsv-b-onayla-btn:hover { background: #ede9fe; }
.yzsv-btn-sorular-goster {
  font-size: 11.5px;
  padding: .25rem .75rem;
  border: 1px solid #059669;
  border-radius: 6px;
  color: #059669;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
}
.yzsv-btn-sorular-goster:hover { background: #d1fae5; }
/* Normal sınav "Soruları Göster" — YZ sekmesinden ayrı class */
.sv-btn-sorular-goster {
  font-size: 11.5px;
  padding: .25rem .75rem;
  border: 1px solid #059669;
  border-radius: 6px;
  color: #059669;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
}
.sv-btn-sorular-goster:hover { background: #d1fae5; }

/* ── Sınav Soruları Tab Arayüzü ──────────────────────────────── */
#sv-sorular-tabs-wrap {
  width: 100%;
}
#sv-sorular-tabs {
  display: flex;
  width: 100%;
  gap: 6px;
  background: #eef2f7;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 5px;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.sv-sorular-tab {
  flex: 1 1 0;
  min-width: 110px;
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: .75rem 1rem;
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: background .15s, color .15s, box-shadow .15s;
}
.sv-sorular-tab i { font-size: 12px; }
.sv-sorular-tab:hover { background: #e2e8f0; color: #1e293b; }
.sv-sorular-tab.active {
  background: #fff;
  color: #1a3a6e;
  box-shadow: 0 1px 5px rgba(15,42,82,.2);
}
.sv-sorular-tab .sv-tab-cnt {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}
#sv-sorular-tab-icerik .soruedit {
  position: relative;
}
#sv-sorular-tab-icerik .soruedit_soruno {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 5;
  background: #1a3a6e;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15,42,82,.3);
  pointer-events: none;
}
.sv-tab-versiyon-badge {
  display: inline-block;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  margin-left: .3rem;
  vertical-align: middle;
}
.sv-tab-bos {
  padding: 2rem 1rem;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

/* Toplu işlem dropdown */
.yzsv-toplu-wrap {
  position: relative;
  display: inline-flex;
}
.yzsv-btn-toplu {
  font-size: 11.5px;
  padding: .25rem .65rem;
  border: 1px solid #6366f1;
  border-radius: 6px;
  color: #6366f1;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.yzsv-btn-toplu:hover { background: #ede9fe; }
.yzsv-toplu-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  z-index: 999;
  min-width: 148px;
  overflow: hidden;
}
.yzsv-toplu-menu.open { display: block; }
.yzsv-toplu-menu button {
  display: flex;
  align-items: center;
  gap: .4rem;
  width: 100%;
  padding: .45rem .75rem;
  background: none;
  border: none;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.yzsv-toplu-menu button:hover { background: #f3f4f6; }
.yzsv-toplu-menu button.danger { color: #dc2626; }
.yzsv-toplu-menu button.danger:hover { background: #fee2e2; }
.yzsv-toplu-menu .menu-label {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  padding: .35rem .75rem .1rem;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.yzsv-accordion-loading {
  padding: .5rem;
  color: #9ca3af;
  font-size: 12px;
  text-align: center;
}

/* Aksiyon butonları */
.yzsv-actions {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex-shrink: 0;
  align-items: stretch;
}
.yzsv-btn {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: .3rem .7rem;
  font-size: 11.5px;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
  transition: background .12s, border-color .12s;
}
.yzsv-btn:hover { background: #f9fafb; border-color: #d1d5db; }
.yzsv-btn.primary {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}
.yzsv-btn.primary:hover { background: #4338ca; }
.yzsv-btn.success {
  background: #059669;
  border-color: #059669;
  color: #fff;
}
.yzsv-btn.success:hover { background: #047857; }
.yzsv-btn.danger { color: #dc2626; }
.yzsv-btn.danger:hover { background: #fee2e2; border-color: #fca5a5; }

/* ── Sorular Listesi (Soruları Göster paneli) ────────────────── */
.yzsv-sl-ozet {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid #f3f4f6;
}

/* Bağlam grup bloğu */
.yzsv-sl-grup {
  margin-bottom: 1.5rem;
}
.yzsv-sl-grup-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  padding: .5rem .8rem;
  background: #f8faff;
  border-left: 3px solid #6366f1;
  border-radius: 4px;
  margin-bottom: .6rem;
}
.yzsv-sl-grup-no {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
}
.yzsv-sl-kazanim {
  font-size: 11.5px;
  color: #6b7280;
  width: 100%;
}
.yzsv-sl-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: .1rem .45rem;
  border-radius: 20px;
  white-space: nowrap;
}
.yzsv-sl-badge.onay    { background: #d1fae5; color: #065f46; }
.yzsv-sl-badge.bekliyor { background: #fef9c3; color: #92400e; }

/* Onayla butonu (başlık içinde) */
.yzsv-sl-onayla-btn {
  font-size: 11px;
  padding: .2rem .6rem;
  border: 1px solid #6366f1;
  border-radius: 5px;
  color: #6366f1;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
}
.yzsv-sl-onayla-btn:hover { background: #ede9fe; }

/* Bağlam metni kutusu (raw HTML içeriği) */
.yzsv-sl-baglam-metin {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: .6rem;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
}
/* raw HTML içindeki baglam-metni div'ini normalize et */
.yzsv-sl-baglam-metin .baglam-metni { margin: 0; }
.yzsv-sl-baglam-metin figure { margin: .5rem 0; text-align: center; }
.yzsv-sl-baglam-metin img { max-width: 100%; height: auto; border-radius: 6px; }
.yzsv-sl-baglam-metin figcaption { font-size: 11px; color: #9ca3af; margin-top: .25rem; }

/* Soru kartı */
.yzsv-sl-soru-kart {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: .5rem;
  transition: box-shadow .12s;
}
.yzsv-sl-soru-kart:hover { box-shadow: 0 1px 6px rgba(0,0,0,.07); }

/* Soru numarası satırı */
.yzsv-sl-soru-no {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: 12px;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: .35rem;
}

/* raw HTML içindeki soru-maddesi normalize */
.yzsv-sl-soru-icerik .soru-maddesi { margin: 0; }
.yzsv-sl-soru-icerik .soru-maddesi p { font-size: 13px; color: #111827; line-height: 1.6; margin: 0 0 .4rem; }
.yzsv-sl-soru-icerik .secenekler {
  list-style: none;
  margin: .3rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.yzsv-sl-soru-icerik .secenekler li {
  font-size: 12.5px;
  color: #374151;
  padding: .15rem 0;
}

/* Doğru cevap satırı */
.yzsv-sl-dogru-cevap {
  font-size: 12px;
  color: #6b7280;
  margin-top: .4rem;
  padding-top: .35rem;
  border-top: 1px solid #f3f4f6;
}

/* Henüz üretildi uyarısı */
.yzsv-sl-uretilmedi {
  padding: .5rem .75rem;
  background: #fef9c3;
  border-radius: 6px;
  font-size: 12px;
  color: #92400e;
}

/* Boş durum */
#yz-empty, #sv-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af;
  font-size: 14px;
}
.yz-empty-icon, .sv-empty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: .8rem;
  color: #d1d5db;
}

/* Yükleniyor */
.sv-loading {
  padding: 2rem;
  text-align: center;
  color: #bbb;
  font-size: 13px;
}

/* Hata */
.yz-hata {
  padding: 1rem;
  background: #fee2e2;
  border-radius: 8px;
  color: #991b1b;
  font-size: 13px;
  margin: 1rem 0;
}

@keyframes yzModalIn {
  from { transform: translateY(-18px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
#yzop-modal-box, #yzsv-modal-box {
  animation: yzModalIn .2s ease;
}
