/* =============================================
   DİLEKÇE GÜÇLENDİRİCİ  –  Modern Tasarım
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }
body {
  font-family:'Inter','Segoe UI',Arial,sans-serif;
  background:#f0f2f8;
  color:#1a1a2e;
  min-height:100vh;
}
a { text-decoration:none; color:inherit; }
textarea { font-family:'Inter','Segoe UI',Arial,sans-serif; }

/* ══════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════ */
.app-wrapper { display:flex; flex-direction:column; min-height:100vh; }

:root {
  --ink:#172033;
  --muted:#64748b;
  --line:#dfe4ec;
  --paper:#ffffff;
  --panel:#f8fafc;
  --brand:#14213d;
  --brand-2:#1f3b63;
}

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.app-header {
  background:linear-gradient(135deg,#0a1628 0%,#0f2548 45%,#1a3a6b 100%);
  color:white;
  box-shadow:0 4px 24px rgba(0,0,0,.35);
  position:sticky; top:0; z-index:100;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header-inner {
  max-width:1180px; margin:0 auto; padding:14px 28px;
  display:flex; align-items:center; justify-content:space-between;
}
.logo { display:flex; align-items:center; gap:14px; }
.logo-icon {
  font-size:2rem;
  background:rgba(255,255,255,.12);
  width:46px; height:46px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.18);
}
.logo h1 { font-size:1.22rem; font-weight:800; letter-spacing:-.01em; }
.logo p  { font-size:.76rem; opacity:.6; margin-top:2px; font-weight:400; }
.main-nav {
  display:flex;
  align-items:center;
  gap:6px;
}
.main-nav a,
.main-nav button {
  color:rgba(255,255,255,.82);
  background:transparent;
  border:1px solid transparent;
  padding:8px 12px;
  border-radius:6px;
  font:600 .8rem/1 'Inter','Segoe UI',Arial,sans-serif;
  cursor:pointer;
}
.main-nav a:hover,
.main-nav button:hover {
  color:#fff;
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
}
.btn-back {
  padding:8px 18px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2);
  border-radius:22px;
  color:white; font-size:.82rem; font-weight:500;
  transition:all .2s;
}
.btn-back:hover { background:rgba(255,255,255,.2); transform:translateX(-2px); }

/* ══════════════════════════════════════════════
   HERO BÖLÜMÜ (Ana sayfa)
══════════════════════════════════════════════ */
.hero-section {
  background:linear-gradient(160deg,#0a1628 0%,#0f2548 40%,#1a3a6b 70%,#1e4d8c 100%);
  color:white;
  padding:60px 28px 70px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.hero-section::before {
  content:'';
  position:absolute; inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position:relative; max-width:680px; margin:0 auto; }
.hero-badge {
  display:inline-flex; align-items:center; gap:7px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2);
  padding:5px 16px; border-radius:20px; font-size:.76rem; font-weight:600;
  margin-bottom:22px; letter-spacing:.03em;
}
.hero-badge span { font-size:.9rem; }
.hero-section h1 {
  font-size:2.6rem; font-weight:800; line-height:1.2;
  margin-bottom:16px; letter-spacing:-.02em;
}
.hero-section h1 em {
  font-style:normal;
  background:linear-gradient(90deg,#7eb8f7,#a5cfff);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
.hero-section p {
  font-size:1rem; opacity:.75; line-height:1.65; margin-bottom:32px;
}
.hero-stats {
  display:flex; justify-content:center; gap:32px; flex-wrap:wrap;
  border-top:1px solid rgba(255,255,255,.12); padding-top:28px; margin-top:8px;
}
.hero-stat strong { display:block; font-size:1.55rem; font-weight:800; }
.hero-stat span   { font-size:.76rem; opacity:.6; font-weight:500; }

/* ══════════════════════════════════════════════
   MAIN İÇERİK
══════════════════════════════════════════════ */
.main-content { max-width:1180px; margin:0 auto; padding:30px 24px 100px; width:100%; }
.center-wrap  { max-width:760px; margin:0 auto; }

.workspace-hero {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:10px;
  padding:26px;
  box-shadow:0 1px 3px rgba(15,23,42,.05);
}
.workspace-title {
  display:flex;
  justify-content:space-between;
  gap:28px;
  align-items:flex-start;
  border-bottom:1px solid #edf1f6;
  padding-bottom:20px;
  margin-bottom:18px;
}
.workspace-title h1 {
  color:var(--ink);
  font-size:1.75rem;
  font-weight:750;
  letter-spacing:0;
  line-height:1.22;
}
.workspace-title p {
  color:var(--muted);
  margin-top:8px;
  max-width:720px;
  font-size:.94rem;
  line-height:1.65;
}
.workspace-status {
  min-width:260px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
  padding:12px 14px;
}
.workspace-status span {
  display:block;
  color:var(--muted);
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:5px;
}
.workspace-status strong {
  color:var(--ink);
  font-size:.82rem;
  line-height:1.5;
  font-weight:650;
}
.workspace-grid {
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
  gap:18px;
  align-items:stretch;
}
.primary-upload {
  margin-bottom:0;
  box-shadow:none;
}
.case-panel {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  padding:20px;
}
.case-panel-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
}
.case-panel h2 {
  color:var(--ink);
  font-size:1rem;
  font-weight:700;
}
.case-panel a {
  color:var(--brand-2);
  font-size:.8rem;
  font-weight:700;
}
.scope-table {
  width:100%;
  border-collapse:collapse;
  background:white;
  border:1px solid #e2e8f0;
  border-radius:8px;
  overflow:hidden;
}
.scope-table th,
.scope-table td {
  padding:11px 12px;
  border-bottom:1px solid #eef2f7;
  text-align:left;
  vertical-align:top;
  font-size:.8rem;
  line-height:1.45;
}
.scope-table tr:last-child th,
.scope-table tr:last-child td { border-bottom:none; }
.scope-table th {
  width:34%;
  color:#334155;
  font-weight:700;
  background:#fbfdff;
}
.scope-table td {
  color:#475569;
}
.panel-note {
  margin-top:14px;
  color:#475569;
  font-size:.82rem;
  line-height:1.6;
  border-left:3px solid var(--brand-2);
  padding-left:12px;
}

/* ══════════════════════════════════════════════
   ADIM ÇUBUĞU
══════════════════════════════════════════════ */
.steps-bar {
  display:flex; align-items:center; justify-content:center;
  margin-bottom:28px; gap:0;
}
.step {
  display:flex; align-items:center; gap:7px;
  font-size:.79rem; font-weight:600;
  color:#9aa0b0; padding:6px 15px;
  border-radius:24px; background:white;
  border:2px solid #e0e3ef; white-space:nowrap;
  box-shadow:0 2px 6px rgba(0,0,0,.05);
}
.step.active    { color:#1a3a6b; border-color:#1a3a6b; background:#eef2fb; }
.step.completed { color:#16a34a; border-color:#16a34a; background:#f0fdf4; }
.step-num {
  width:22px; height:22px; border-radius:50%;
  background:#d0d4e0; color:white;
  display:flex; align-items:center; justify-content:center;
  font-size:.7rem; font-weight:700;
}
.step.active .step-num    { background:#1a3a6b; }
.step.completed .step-num { background:#16a34a; }
.step-line { flex:1; height:2px; background:#e0e3ef; max-width:50px; min-width:14px; }
.step-line.active { background:linear-gradient(90deg,#1a3a6b,#4a8fd4); }

/* ══════════════════════════════════════════════
   YÜKLEME KARTI
══════════════════════════════════════════════ */
.upload-card {
  background:white;
  border-radius:8px;
  padding:28px;
  box-shadow:0 1px 3px rgba(15,23,42,.05);
  margin-bottom:20px;
  border:1px solid var(--line);
}
.upload-card h2 {
  font-size:1.16rem; color:var(--ink); margin-bottom:7px; font-weight:700;
}
.subtitle { color:#6b7280; font-size:.9rem; line-height:1.6; margin-bottom:26px; }

/* ── YÜKLEME ALANI ── */
.upload-zone {
  border:1.5px dashed #b8c1cf; border-radius:8px; padding:42px 28px;
  text-align:center; cursor:pointer; transition:all .25s;
  background:#f8fafc;
  display:flex; flex-direction:column; align-items:center; gap:12px;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color:var(--brand-2); background:#f3f6fb;
  box-shadow:0 0 0 3px rgba(31,59,99,.08);
}
.upload-icon {
  width:56px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:#fff;
  border:1px solid #d8dee8;
  color:var(--brand);
  font-size:.88rem;
  font-weight:800;
  letter-spacing:.04em;
}
.upload-text { font-size:.97rem; color:#374151; display:flex; flex-direction:column; gap:4px; }
.upload-text strong { color:var(--ink); font-weight:700; }
.upload-text span { color:#7b8798; font-size:.86rem; }
.upload-formats {
  font-size:.74rem; color:#9ca3af;
  background:#fff; padding:5px 12px;
  border-radius:6px; border:1px solid #e5e7eb;
}

/* ── SEÇİLEN DOSYA ── */
.file-selected {
  background:linear-gradient(135deg,#f0fdf4,#e8f5e9);
  border:1.5px solid #86efac; border-radius:12px;
  padding:14px 18px; margin-top:16px;
}
.file-info { display:flex; align-items:center; gap:12px; }
.file-icon-sm { font-size:2rem; }
.file-name { font-weight:700; color:#1a1a2e; font-size:.93rem; }
.file-size { color:#6b7280; font-size:.8rem; margin-top:1px; }
.btn-remove {
  margin-left:auto; background:none; border:none; cursor:pointer;
  font-size:1.1rem; color:#9ca3af; padding:5px 9px; border-radius:6px;
  transition:all .18s;
}
.btn-remove:hover { color:#ef4444; background:#fef2f2; }
.upload-actions { margin-top:24px; text-align:center; }

/* ══════════════════════════════════════════════
   BUTONLAR
══════════════════════════════════════════════ */
.btn-primary {
  display:inline-flex; align-items:center; gap:9px;
  background:var(--brand);
  color:white; border:none; padding:12px 28px;
  border-radius:6px; font-size:.94rem; font-weight:650;
  cursor:pointer; transition:all .22s;
  box-shadow:none;
  letter-spacing:.01em;
}
.btn-primary:hover {
  background:#0f1a30;
  transform:translateY(-1px);
  box-shadow:none;
}
.btn-primary:disabled {
  background:linear-gradient(135deg,#9ca3af,#b0b8c5);
  cursor:not-allowed; transform:none;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
}
.btn-primary.btn-large { padding:13px 30px; font-size:.95rem; border-radius:6px; }
.btn-primary.btn-sm    { padding:8px 17px; font-size:.83rem; }

.btn-secondary {
  display:inline-flex; align-items:center; gap:8px;
  background:white; color:#1a3a6b;
  border:2px solid #1a3a6b; padding:11px 24px;
  border-radius:10px; font-size:.93rem; font-weight:600;
  cursor:pointer; transition:all .2s;
}
.btn-secondary:hover { background:#eef2fb; transform:translateY(-1px); }
.btn-secondary.btn-sm { padding:7px 15px; font-size:.81rem; }

/* ══════════════════════════════════════════════
   NASIL ÇALIŞIR KARTI
══════════════════════════════════════════════ */
.how-card {
  background:white; border-radius:18px; padding:28px;
  box-shadow:0 4px 18px rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.05);
}
.how-card h3 { color:#0d1b4b; margin-bottom:22px; font-size:1.05rem; font-weight:700; }
.how-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.how-item {
  display:flex; flex-direction:column; align-items:center; text-align:center;
  gap:10px; padding:18px 10px;
  background:#f8f9fc; border-radius:14px;
  border:1px solid #e8edf8; transition:all .2s;
}
.how-item:hover { background:#eef2fb; border-color:#c4d0e8; transform:translateY(-2px); }
.how-icon {
  font-size:1.9rem;
  background:white; width:52px; height:52px;
  border-radius:14px; display:flex; align-items:center; justify-content:center;
  box-shadow:0 3px 10px rgba(0,0,0,.08);
}
.how-item strong { font-size:.87rem; color:#1a3a6b; font-weight:700; }
.how-item p { font-size:.77rem; color:#6b7280; line-height:1.5; }

/* ══════════════════════════════════════════════
   ÖZELLİK KARTLARI (Ana sayfa yeni bölüm)
══════════════════════════════════════════════ */
.features-section {
  max-width:1180px;
  margin:24px auto 0;
}
.section-heading {
  margin-bottom:12px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-end;
}
.section-heading h2 {
  color:var(--ink);
  font-size:1.08rem;
  font-weight:700;
}
.section-heading p {
  color:var(--muted);
  font-size:.84rem;
  line-height:1.5;
}
.features-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:12px;
}
.feature-card {
  background:white; border-radius:8px; padding:18px;
  border:1px solid var(--line); box-shadow:0 1px 3px rgba(15,23,42,.04);
  display:flex; align-items:stretch; gap:14px; transition:all .2s;
}
.feature-card:hover { border-color:#b8c4d3; box-shadow:0 3px 10px rgba(15,23,42,.07); }
.feature-card::before {
  content:'';
  width:4px;
  border-radius:4px;
  background:#cbd5e1;
  flex-shrink:0;
}
.feature-icon { display:none; }
.feature-card h4 { font-size:.88rem; font-weight:700; color:var(--ink); margin-bottom:5px; }
.feature-card p  { font-size:.78rem; color:#64748b; line-height:1.5; }

/* ══════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════ */
.modal-overlay {
  position:fixed; top:0; left:0; right:0; bottom:0;
  background:rgba(10,22,40,.7); backdrop-filter:blur(4px);
  z-index:1000; display:flex; align-items:center; justify-content:center;
}
.modal-box {
  background:white; border-radius:20px; padding:40px 44px;
  max-width:440px; width:90%; text-align:center;
  box-shadow:0 24px 64px rgba(0,0,0,.3);
  border:1px solid rgba(255,255,255,.8);
}
.modal-spinner { font-size:3rem; margin-bottom:16px; display:inline-block; }
.modal-spinner.spinning { animation:spin 2s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.modal-box h3 { font-size:1.2rem; color:#0d1b4b; margin-bottom:8px; font-weight:700; }
.modal-box p  { color:#6b7280; font-size:.9rem; margin-bottom:20px; line-height:1.55; }
.progress-bar {
  height:6px; background:#e5e7eb; border-radius:4px; overflow:hidden;
}
.progress-fill {
  height:100%;
  background:linear-gradient(90deg,#1a3a6b,#4a8fd4,#7eb8f7);
  background-size:200%;
  border-radius:4px; transition:width .5s;
  animation:shimmer 2s infinite;
}
@keyframes shimmer { 0%{background-position:0%} 100%{background-position:200%} }
.progress-fill.indeterminate {
  width:40%!important; animation:slide 1.5s infinite;
}
@keyframes slide { 0%{transform:translateX(-150%)} 100%{transform:translateX(350%)} }
.progress-steps {
  margin-top:16px; text-align:left; font-size:.81rem;
  max-height:130px; overflow-y:auto; color:#555;
}
.ps-row    { padding:3px 0; }
.ps-done   { color:#16a34a; }
.ps-active { color:#1a3a6b; font-weight:700; }

/* ══════════════════════════════════════════════
   ANALİZ KARTI (review sayfası)
══════════════════════════════════════════════ */
.analysis-card {
  background:white; border-radius:16px; padding:24px;
  box-shadow:0 4px 18px rgba(0,0,0,.07); margin-bottom:20px;
  border:1px solid #e8edf8;
}
.analysis-header {
  display:flex; align-items:center; gap:12px; margin-bottom:18px;
  padding-bottom:14px; border-bottom:1px solid #f0f2f8;
}
.analysis-header h2 { font-size:1.05rem; color:#0d1b4b; font-weight:700; }
.badge-type {
  background:linear-gradient(135deg,#eef2fb,#dde7f5);
  color:#1a3a6b; padding:4px 13px;
  border-radius:20px; font-size:.74rem; font-weight:700;
  border:1px solid #c4d0e8;
}
.analysis-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.analysis-item.full { grid-column:1/-1; }
.analysis-label {
  font-size:.72rem; color:#9ca3af; text-transform:uppercase;
  letter-spacing:.6px; margin-bottom:5px; font-weight:600;
}
.analysis-value { font-size:.88rem; color:#374151; line-height:1.55; }
.analysis-value.tags { display:flex; flex-wrap:wrap; gap:6px; }
.tag { padding:3px 10px; border-radius:12px; font-size:.75rem; font-weight:600; }
.tag-red  { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }
.tag-blue { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }

/* ══════════════════════════════════════════════
   SONUÇ BÖLÜMÜ
══════════════════════════════════════════════ */
.results-section { margin-bottom:20px; }
.results-header {
  display:flex; align-items:flex-start; justify-content:space-between;
  margin-bottom:16px; gap:12px;
}
.results-header h2 { font-size:1.1rem; color:#0d1b4b; font-weight:700; }
.results-sub { font-size:.83rem; color:#6b7280; margin-top:4px; }
.results-meta-box { display:flex; gap:8px; flex-shrink:0; }
.count-badge {
  background:#eff6ff; color:#1d4ed8; padding:5px 13px;
  border-radius:20px; font-size:.78rem; font-weight:700;
  border:1px solid #bfdbfe; white-space:nowrap;
}
.selected-badge {
  background:#f0fdf4; color:#16a34a; border-color:#86efac;
}

/* ══════════════════════════════════════════════
   KONTROL ÇUBUĞU
══════════════════════════════════════════════ */
.control-bar {
  display:flex; align-items:center; justify-content:space-between;
  background:white; border-radius:12px; padding:12px 18px; margin-bottom:14px;
  box-shadow:0 2px 10px rgba(0,0,0,.06); border:1px solid #e8edf8;
  flex-wrap:wrap; gap:10px;
}
.cb-label {
  display:flex; align-items:center; gap:8px; cursor:pointer;
  font-size:.87rem; font-weight:600; color:#374151;
}
.cb-label input { width:18px; height:18px; accent-color:#1a3a6b; cursor:pointer; }
.filter-row { display:flex; gap:6px; flex-wrap:wrap; }
.fbtn {
  padding:5px 13px; border:1.5px solid #d1d5db;
  border-radius:18px; background:white; color:#6b7280;
  font-size:.76rem; font-weight:600; cursor:pointer; transition:all .18s;
}
.fbtn.active, .fbtn:hover {
  background:#1a3a6b; color:white; border-color:#1a3a6b;
  box-shadow:0 2px 8px rgba(26,58,107,.25);
}

/* ══════════════════════════════════════════════
   KARAR KARTLARI
══════════════════════════════════════════════ */
.card-list { display:flex; flex-direction:column; gap:12px; }
.kcard {
  background:white; border-radius:14px; padding:18px;
  box-shadow:0 2px 10px rgba(0,0,0,.06); display:flex; gap:14px;
  border:2px solid transparent; transition:all .2s;
  border-left:4px solid #e0e3ef;
}
.kcard:hover {
  box-shadow:0 6px 20px rgba(0,0,0,.1);
  border-left-color:#1a3a6b;
  transform:translateX(2px);
}
.kcard-selected {
  border-color:#1a3a6b; border-left-color:#1a3a6b;
  background:linear-gradient(135deg,#f8faff,#f0f4fd);
}

.kcard-check { padding-top:2px; }
.kcard-check input { width:18px; height:18px; accent-color:#1a3a6b; cursor:pointer; }
.kcard-body  { flex:1; min-width:0; }
.kcard-top   { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-bottom:10px; }

.src-badge {
  padding:3px 10px; border-radius:10px;
  font-size:.71rem; font-weight:700; letter-spacing:.02em;
}
.src-yargitay { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }
.src-danistay { background:#f0fdf4; color:#15803d; border:1px solid #bbf7d0; }
.src-aihm     { background:#eff6ff; color:#1e40af; border:1px solid #93c5fd; }
.src-aym      { background:#fdf4ff; color:#7e22ce; border:1px solid #e9d5ff; }

/* Karar Tipi */
.tip-badge {
  padding:3px 9px; border-radius:10px;
  font-size:.7rem; font-weight:700; letter-spacing:.03em;
}
.tip-bozma  { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }
.tip-onama  { background:#f0fdf4; color:#16a34a; border:1px solid #86efac; }
.tip-karma  { background:#fffbeb; color:#d97706; border:1px solid #fde68a; }

/* Güç Skoru */
.guc-badge {
  padding:3px 10px; border-radius:10px;
  font-size:.7rem; font-weight:700; cursor:help;
}
.guc-gold  { background:#fffbeb; color:#92400e; border:1px solid #fde68a; }
.guc-green { background:#f0fdf4; color:#15803d; border:1px solid #86efac; }
.guc-blue  { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }
.guc-gray  { background:#f9fafb; color:#6b7280; border:1px solid #e5e7eb; }

/* Hukuk Dalı */
.dal-badge {
  padding:3px 11px; border-radius:10px;
  font-size:.71rem; font-weight:700; vertical-align:middle; margin-left:6px;
}
.dal-ceza    { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }
.dal-hukuk   { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }
.dal-idare   { background:#f0fdf4; color:#15803d; border:1px solid #86efac; }
.dal-vergi   { background:#fffbeb; color:#d97706; border:1px solid #fde68a; }
.dal-anayasa { background:#fdf4ff; color:#7e22ce; border:1px solid #e9d5ff; }
.dal-diğer   { background:#f9fafb; color:#6b7280; border:1px solid #e5e7eb; }

.kcard-court { font-size:.83rem; font-weight:600; color:#374151; }
.kcard-no    { font-size:.78rem; color:#6b7280; font-family:monospace;
  background:#f3f4f6; padding:2px 8px; border-radius:5px; border:1px solid #e5e7eb; }
.kcard-date  { font-size:.77rem; color:#9ca3af; }
.kcard-summary {
  font-size:.85rem; color:#4b5563; line-height:1.65;
  padding:8px 0;
}
.kcard-full {
  margin-top:10px; font-size:.82rem; color:#4b5563; line-height:1.65;
  background:#f8f9fc; padding:12px 14px; border-radius:10px;
  border:1px solid #e8edf8;
}
.btn-toggle {
  background:none; border:none; color:#1a3a6b;
  font-size:.78rem; cursor:pointer; padding:5px 0; margin-top:4px;
  font-weight:500;
}
.btn-toggle:hover { text-decoration:underline; }
.kcard-url { font-size:.75rem; color:#1d4ed8; text-decoration:underline; }
.kcard-aihm-madde {
  font-size:.79rem; color:#4b5563; margin:5px 0 2px;
  background:#f0f9ff; padding:4px 10px; border-radius:6px; display:inline-block;
}

/* ══════════════════════════════════════════════
   LEHE / ALEYHE ROZET
══════════════════════════════════════════════ */
.lehe-badge {
  display:inline-flex; align-items:center; gap:4px;
  padding:3px 10px; border-radius:10px;
  font-size:.71rem; font-weight:700; letter-spacing:.02em;
}
.lehe-lehe    { background:#f0fdf4; color:#15803d; border:1px solid #86efac; }
.lehe-aleyhe  { background:#fef2f2; color:#dc2626; border:1px solid #fca5a5; }
.lehe-belirsiz{ background:#f9fafb; color:#6b7280; border:1px solid #e5e7eb; }

/* ══════════════════════════════════════════════
   KARAR GÜÇ SEVİYESİ (İBK/HGK/AYM/AİHM/Daire)
══════════════════════════════════════════════ */
.seviye-badge {
  display:inline-flex; align-items:center; padding:2px 9px;
  border-radius:8px; font-size:.68rem; font-weight:800; letter-spacing:.05em;
}
.seviye-ibk   { background:#7f1d1d; color:white; }
.seviye-hgk   { background:#9a3412; color:white; }
.seviye-aym   { background:#581c87; color:white; }
.seviye-aihm  { background:#1e3a8a; color:white; }
.seviye-daire { background:#14532d; color:white; }
.seviye-gray  { background:#6b7280; color:white; }

/* ══════════════════════════════════════════════
   BOŞ DURUM
══════════════════════════════════════════════ */
.empty-state {
  text-align:center; padding:64px 28px; background:white;
  border-radius:16px; box-shadow:0 4px 16px rgba(0,0,0,.06);
  border:1px solid #e8edf8;
}
.empty-icon { font-size:3.2rem; margin-bottom:16px; }
.empty-state h3 { font-size:1.15rem; color:#374151; margin-bottom:8px; font-weight:700; }
.empty-state p  { color:#6b7280; font-size:.9rem; margin-bottom:26px; line-height:1.6; }

/* ══════════════════════════════════════════════
   ALT ÇUBUK (sabit)
══════════════════════════════════════════════ */
.bottom-bar {
  position:fixed; bottom:0; left:0; right:0;
  background:rgba(255,255,255,.96); backdrop-filter:blur(10px);
  box-shadow:0 -4px 20px rgba(0,0,0,.1); z-index:99; padding:14px 22px;
  border-top:1px solid rgba(0,0,0,.07);
}
.bottom-inner {
  max-width:1200px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.bottom-count { font-weight:700; color:#1a3a6b; font-size:.97rem; }
.bottom-hint  { font-size:.78rem; color:#9ca3af; margin-left:8px; }
.bottom-btns  { display:flex; gap:10px; }

/* ══════════════════════════════════════════════
   RESULT SAYFASI
══════════════════════════════════════════════ */
.result-header-card {
  background:linear-gradient(135deg,#f0fdf4,#dcfce7);
  border-radius:16px; padding:24px 28px;
  box-shadow:0 4px 16px rgba(22,163,74,.1); margin-bottom:20px;
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; flex-wrap:wrap;
  border:1px solid #86efac;
}
.result-header-left h2 { font-size:1.15rem; color:#14532d; margin-bottom:6px; font-weight:700; }
.result-header-left p  { font-size:.87rem; color:#166534; line-height:1.5; }
.result-header-right { display:flex; gap:9px; flex-wrap:wrap; }
.btn-copy-all {
  display:inline-flex; align-items:center; gap:7px;
  background:linear-gradient(135deg,#15803d,#16a34a);
  color:white; border:none; padding:11px 22px; border-radius:9px;
  font-size:.88rem; font-weight:700; cursor:pointer; transition:all .2s;
  box-shadow:0 4px 12px rgba(22,163,74,.3);
}
.btn-copy-all:hover { background:linear-gradient(135deg,#14532d,#15803d); }

.usage-note {
  background:#fffbeb; border-left:4px solid #f59e0b; border-radius:10px;
  padding:12px 18px; font-size:.85rem; color:#78350f;
  margin-bottom:22px; line-height:1.55;
}

/* ── BLOK KARTLARI ── */
.blocks-list { display:flex; flex-direction:column; gap:24px; margin-bottom:32px; }
.block-card {
  background:white; border-radius:16px;
  box-shadow:0 4px 18px rgba(0,0,0,.08); overflow:hidden;
  border:1px solid #e8edf8;
}
.block-header {
  display:flex; align-items:center; justify-content:space-between;
  background:linear-gradient(135deg,#f0f4fb,#e8edf8);
  padding:14px 20px; gap:12px;
  border-bottom:1px solid #e0e6f0;
}
.block-meta   { display:flex; align-items:center; gap:10px; flex:1; min-width:0; }
.block-num    {
  width:30px; height:30px; border-radius:50%;
  background:linear-gradient(135deg,#1a3a6b,#2451a3); color:white;
  display:flex; align-items:center; justify-content:center;
  font-size:.8rem; font-weight:700; flex-shrink:0;
  box-shadow:0 2px 8px rgba(26,58,107,.3);
}
.block-title  { min-width:0; }
.block-title strong {
  font-size:.92rem; color:#0d1b4b; display:block; font-weight:700;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.block-source { font-size:.75rem; color:#6b7280; margin-top:1px; }
.btn-copy-block {
  display:inline-flex; align-items:center; gap:6px;
  background:white; color:#1a3a6b;
  border:1.5px solid #1a3a6b; padding:8px 16px;
  border-radius:8px; font-size:.82rem; font-weight:600;
  cursor:pointer; transition:all .2s; white-space:nowrap;
}
.btn-copy-block:hover {
  background:#1a3a6b; color:white;
  box-shadow:0 3px 10px rgba(26,58,107,.25);
}
.block-ref-section {
  padding:14px 20px; border-bottom:1px solid #f0f2f7; background:#fafbfe;
}
.block-ref-label {
  font-size:.72rem; color:#9ca3af; text-transform:uppercase;
  letter-spacing:.5px; margin-bottom:7px; font-weight:600;
}
.block-ref-text {
  font-size:.84rem; color:#4b5563; line-height:1.6;
  background:#f3f4f6; padding:10px 14px; border-radius:8px;
  font-style:italic; border-left:3px solid #1a3a6b;
}
.block-text-section { padding:18px 20px; }
.block-text-label {
  font-size:.76rem; color:#1a3a6b; font-weight:700; text-transform:uppercase;
  letter-spacing:.5px; margin-bottom:9px;
  display:flex; align-items:center; justify-content:space-between;
}
.char-count { font-size:.72rem; color:#9ca3af; font-weight:400; text-transform:none; }
.block-textarea {
  width:100%; border:1.5px solid #d1d5db; border-radius:10px; padding:14px 16px;
  font-size:.9rem; line-height:1.75; color:#374151; resize:vertical; min-height:180px;
  background:#fdfdff; transition:all .2s;
}
.block-textarea:focus {
  outline:none; border-color:#1a3a6b;
  box-shadow:0 0 0 4px rgba(26,58,107,.08);
}
.block-footer {
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 20px 16px;
}
.block-footer-hint { font-size:.78rem; color:#9ca3af; }
.btn-copy-sm { padding:7px 14px; font-size:.79rem; }
.bottom-actions {
  display:flex; gap:12px; align-items:center; justify-content:center;
  padding:18px 0 44px;
}

/* ══════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════ */
.toast {
  position:fixed; bottom:30px; left:50%;
  transform:translateX(-50%) translateY(20px);
  background:linear-gradient(135deg,#1a3a6b,#2451a3);
  color:white; padding:11px 24px; border-radius:26px;
  font-size:.88rem; font-weight:600; opacity:0;
  transition:all .3s; z-index:2000; pointer-events:none;
  box-shadow:0 8px 24px rgba(26,58,107,.35);
}
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

.toast-msg {
  background:linear-gradient(135deg,#1a3a6b,#2451a3);
  color:white; padding:10px 20px;
  border-radius:24px; font-size:.85rem; font-weight:600;
  box-shadow:0 6px 18px rgba(26,58,107,.3); margin-top:8px;
  animation:fadeInUp .25s ease;
}
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ══════════════════════════════════════════════
   MEVZUAT
══════════════════════════════════════════════ */
.mevzuat-section { margin-bottom:24px; }
.mevzuat-section h2 {
  font-size:1.05rem; color:#0d1b4b; margin-bottom:14px; font-weight:700;
}
.mevzuat-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:12px;
}
.mevzuat-card {
  background:white; border-radius:12px; padding:16px 18px;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  border-left:4px solid #1a3a6b; border:1px solid #e8edf8;
  border-left:4px solid #1a3a6b;
}
.mevzuat-card.mevzuat-missing { border-left-color:#d1d5db; opacity:.7; }
.mevzuat-header { display:flex; align-items:baseline; gap:10px; margin-bottom:9px; flex-wrap:wrap; }
.mevzuat-ref   { font-weight:800; color:#1a3a6b; font-size:.96rem; }
.mevzuat-kanun { font-size:.75rem; color:#9ca3af; }
.mevzuat-metin {
  font-size:.83rem; color:#374151; line-height:1.7;
  background:#f8f9fc; padding:10px 13px; border-radius:8px;
  max-height:200px; overflow-y:auto; white-space:pre-wrap;
  border:1px solid #e8edf8;
}
.mevzuat-missing-msg { font-size:.8rem; color:#9ca3af; font-style:italic; }

/* ══════════════════════════════════════════════
   UYARI KARTLARI
══════════════════════════════════════════════ */
.uyari-kart {
  border-radius:12px; padding:14px 18px; margin-bottom:14px;
  font-size:.87rem; line-height:1.6;
  display:flex; align-items:flex-start; gap:12px;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
}
.uyari-kart .uyari-ikon  { font-size:1.3rem; flex-shrink:0; margin-top:1px; }
.uyari-kart .uyari-icerik{ flex:1; }
.uyari-kart strong { display:block; margin-bottom:4px; font-size:.9rem; font-weight:700; }
.uyari-kart small  { font-size:.78rem; opacity:.75; display:block; margin-top:4px; }

.uyari-zamanasimi-acil, .zamanasimi-acil {
  background:linear-gradient(135deg,#fef2f2,#fee2e2);
  border-left:4px solid #dc2626; border:1px solid #fca5a5; border-left:4px solid #dc2626;
}
.uyari-zamanasimi-uyar, .zamanasimi-uyar {
  background:linear-gradient(135deg,#fffbeb,#fef3c7);
  border-left:4px solid #d97706; border:1px solid #fde68a; border-left:4px solid #d97706;
}
.uyari-zamanasimi-ok, .zamanasimi-ok {
  background:linear-gradient(135deg,#f0fdf4,#dcfce7);
  border-left:4px solid #16a34a; border:1px solid #86efac; border-left:4px solid #16a34a;
}
.uyari-lehe-kanun, .lehe-kanun {
  background:linear-gradient(135deg,#eef2ff,#e0e7ff);
  border-left:4px solid #4f46e5; border:1px solid #c7d2fe; border-left:4px solid #4f46e5;
}
.uyari-celisen, .celisen {
  background:linear-gradient(135deg,#fffbeb,#fef9c3);
  border-left:4px solid #ca8a04; border:1px solid #fde68a; border-left:4px solid #ca8a04;
}
.uyari-kaynak-hata, .kaynak-hata {
  background:#f9fafb; border-left:4px solid #9ca3af; border:1px solid #e5e7eb; border-left:4px solid #9ca3af;
}

/* ══════════════════════════════════════════════
   DİLEKÇE TÜRÜ PANELİ
══════════════════════════════════════════════ */
.dilekce-turu-panel {
  background:white; border-radius:12px; padding:14px 20px;
  box-shadow:0 2px 10px rgba(0,0,0,.06); margin-bottom:18px;
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  border:1px solid #e8edf8;
}
.dt-form { display:none; align-items:center; gap:8px; flex-wrap:wrap; }
.dt-form.goster { display:flex; }
.dt-input {
  padding:7px 12px; border:1.5px solid #d1d5db; border-radius:8px;
  font-size:.87rem; color:#374151; background:white; min-width:260px;
  transition:border-color .2s;
}
.dt-input:focus { outline:none; border-color:#1a3a6b; box-shadow:0 0 0 3px rgba(26,58,107,.08); }

/* ══════════════════════════════════════════════
   AKADEMİK KAYNAKLAR
══════════════════════════════════════════════ */
.akademik-section {
  background:white; border-radius:14px; padding:20px 22px;
  box-shadow:0 3px 12px rgba(0,0,0,.06); margin-bottom:20px;
  border:1px solid #e8edf8;
}
.akademik-section h2 {
  font-size:1.02rem; color:#0d1b4b; margin-bottom:6px; font-weight:700;
}
.akademik-aciklama { font-size:.83rem; color:#9ca3af; margin-bottom:14px; }
.akademik-liste  { display:flex; flex-direction:column; gap:9px; }
.akademik-item   {
  background:#f8f9fc; border-radius:9px; padding:11px 14px;
  border-left:3px solid #1a3a6b; font-size:.84rem; line-height:1.55;
  border:1px solid #e8edf8; border-left:3px solid #1a3a6b;
}
.akademik-atif  { font-size:.84rem; color:#374151; line-height:1.6; font-weight:600; }
.akademik-sayfa { font-size:.76rem; color:#9ca3af; margin-top:3px; }

/* Akademik özet paragraf */
.akademik-ozet {
  font-size:.82rem; color:#374151; line-height:1.65;
  margin-top:10px; padding:10px 14px;
  background:#f0f7ff; border-radius:8px;
  border-left:3px solid #3b82f6;
}
.akademik-ozet strong { color:#1d4ed8; margin-right:5px; }

/* Hazır atıf metni kutusu */
.akademik-atif-metin {
  margin-top:10px; border:1.5px solid #e0e7ff;
  border-radius:10px; overflow:hidden;
}
.atif-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:7px 14px; background:#eef2ff;
  font-size:.78rem; font-weight:600; color:#4338ca;
  border-bottom:1px solid #e0e7ff;
}
.btn-copy-atif {
  background:#4338ca; color:white; border:none;
  padding:4px 12px; border-radius:6px; font-size:.74rem;
  cursor:pointer; font-weight:600; transition:all .18s;
}
.btn-copy-atif:hover { background:#3730a3; }
.atif-icerik {
  padding:11px 14px; font-size:.81rem; color:#374151;
  line-height:1.7; font-style:italic; background:white;
  white-space:pre-wrap;
}

/* GPT Yorum rozeti (boş içerikli kararlar için) */
.kcard-gpt-yorum {
  margin-top:8px; padding:9px 13px;
  background:#fefce8; border:1px solid #fde68a;
  border-radius:8px; font-size:.8rem; color:#78350f;
  line-height:1.6;
}
.gpt-yorum-badge {
  display:inline-block; background:#fbbf24; color:#78350f;
  font-weight:700; font-size:.7rem; padding:1px 8px;
  border-radius:10px; margin-right:7px; vertical-align:middle;
}

/* ══════════════════════════════════════════════
   GEÇMİŞ ANALİZLER
══════════════════════════════════════════════ */
.gecmis-section {
  background:white; border-radius:18px; padding:26px 28px;
  box-shadow:0 6px 24px rgba(0,0,0,.07); margin-top:24px;
  max-width:1200px; margin-left:auto; margin-right:auto;
  border:1px solid rgba(0,0,0,.06);
}
.gecmis-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:18px; padding-bottom:14px; border-bottom:1px solid #f0f2f8;
}
.gecmis-header h2 { font-size:1.05rem; color:#0d1b4b; font-weight:700; }
.gecmis-section h2 { font-size:1.05rem; color:#0d1b4b; margin-bottom:14px; font-weight:700; }
.gecmis-section h3 { font-size:1rem; color:#0d1b4b; margin-bottom:14px; }
.gecmis-sayi {
  font-size:.76rem; color:#6b7280; background:#f3f4f6;
  padding:3px 12px; border-radius:12px; border:1px solid #e5e7eb;
}
.gecmis-liste { display:flex; flex-direction:column; gap:10px; }
.gecmis-item  {
  background:#f8f9fc; border-radius:12px; padding:14px 18px;
  border:1.5px solid #e8edf8; transition:all .2s;
}
.gecmis-item:hover { border-color:#1a3a6b; box-shadow:0 3px 12px rgba(26,58,107,.08); }
.gecmis-meta  {
  display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-bottom:5px;
}
.gecmis-tarih  { font-size:.74rem; color:#9ca3af; white-space:nowrap; }
.gecmis-dosya  { font-weight:600; color:#1a3a6b; font-size:.86rem; }
.gecmis-tur    { font-size:.85rem; color:#374151; margin-bottom:4px; }
.gecmis-karar-sayi { font-size:.74rem; color:#9ca3af; margin-left:8px; }
.gecmis-ozet   { font-size:.79rem; color:#6b7280; line-height:1.5; margin-bottom:10px; }
.gecmis-actions{ display:flex; gap:8px; }

/* ══════════════════════════════════════════════
   KAYNAK DURUM ÇUBUĞU
══════════════════════════════════════════════ */
.kaynak-durum-bar { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:10px; }
.kaynak-chip {
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 11px; border-radius:12px; font-size:.75rem; font-weight:600;
}
.kaynak-chip-ok, .kaynak-ok   { background:#f0fdf4; color:#15803d; border:1px solid #86efac; }
.kaynak-chip-hata,.kaynak-err { background:#fef2f2; color:#dc2626; border:1px solid #fca5a5; }

/* ══════════════════════════════════════════════
   EKSTRA BUTONLAR
══════════════════════════════════════════════ */
.btn-outline-sm {
  background:none; border:1.5px solid #1a3a6b; color:#1a3a6b;
  padding:6px 13px; border-radius:7px; font-size:.78rem; font-weight:600;
  cursor:pointer; text-decoration:none; display:inline-flex; align-items:center;
  transition:all .18s;
}
.btn-outline-sm:hover { background:#1a3a6b; color:white; }
.btn-danger-sm {
  background:none; border:1.5px solid #fca5a5; color:#dc2626;
  padding:6px 11px; border-radius:7px; font-size:.78rem; font-weight:600; cursor:pointer;
}
.btn-danger-sm:hover { background:#fef2f2; border-color:#ef4444; }
.btn-sm { padding:7px 15px; font-size:.83rem; border-radius:8px; cursor:pointer; border:none; }

/* ══════════════════════════════════════════════
   FİLTRE BUTON EK RENKLERİ
══════════════════════════════════════════════ */
.fbtn-aihm   { border-color:#93c5fd; color:#1d4ed8; }
.fbtn-aihm:hover,.fbtn-aihm.active { background:#1d4ed8; color:white; border-color:#1d4ed8; }
.fbtn-aym    { border-color:#d8b4fe; color:#7e22ce; }
.fbtn-aym:hover,.fbtn-aym.active   { background:#7e22ce; color:white; border-color:#7e22ce; }
.fbtn-lehe   { border-color:#86efac; color:#15803d; }
.fbtn-lehe:hover,.fbtn-lehe.active { background:#15803d; color:white; border-color:#15803d; }
.fbtn-aleyhe { border-color:#fca5a5; color:#dc2626; }
.fbtn-aleyhe:hover,.fbtn-aleyhe.active { background:#dc2626; color:white; border-color:#dc2626; }

/* ══════════════════════════════════════════════
   ARGÜMAN ANALİZİ
══════════════════════════════════════════════ */
.arguman-section {
  background:white; border-radius:18px; padding:24px 28px;
  box-shadow:0 6px 24px rgba(0,0,0,.07); margin-bottom:20px;
  border:1px solid rgba(0,0,0,.06);
}
.arguman-header {
  display:flex; align-items:center; justify-content:space-between;
  cursor:pointer; user-select:none;
}
.arguman-header h2 { font-size:1.08rem; color:#0d1b4b; font-weight:700; }
.arguman-sub { font-size:.78rem; color:#6b7280; display:block; margin-top:2px; }
.btn-arguman-ac {
  background:#0f2548; color:white; border:none;
  padding:9px 20px; border-radius:9px; font-size:.83rem;
  font-weight:600; cursor:pointer; white-space:nowrap; transition:all .18s;
}
.btn-arguman-ac:hover { background:#1a3a6b; }
.arguman-body { margin-top:18px; }
.arguman-yukle {
  display:flex; align-items:center; gap:10px; color:#6b7280;
  font-size:.88rem; padding:12px 0;
}
.arguman-spinner { font-size:1.4rem; animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.arguman-liste { display:flex; flex-direction:column; gap:12px; }
.arguman-item {
  border-radius:12px; padding:14px 18px;
  border-left:4px solid #e5e7eb;
}
.arguman-guclu { background:#f0fdf4; border-left-color:#16a34a; }
.arguman-zayif { background:#fffbeb; border-left-color:#f59e0b; }
.arguman-eksik { background:#fff1f2; border-left-color:#f43f5e; }
.arguman-item-top { display:flex; align-items:center; gap:10px; margin-bottom:7px; }
.arguman-durum {
  font-size:.7rem; font-weight:700; padding:2px 10px;
  border-radius:10px; white-space:nowrap;
}
.arguman-durum-guclu { background:#dcfce7; color:#15803d; }
.arguman-durum-zayif { background:#fef3c7; color:#b45309; }
.arguman-durum-eksik { background:#ffe4e6; color:#be123c; }
.arguman-baslik { font-weight:600; font-size:.9rem; color:#1a1a2e; }
.arguman-aciklama { font-size:.82rem; color:#374151; line-height:1.6; }
.arguman-oneri {
  margin-top:8px; font-size:.8rem; color:#4338ca;
  background:#eef2ff; padding:7px 12px; border-radius:7px; line-height:1.5;
}
.arguman-err { color:#dc2626; font-size:.84rem; padding:8px 0; }

/* ══════════════════════════════════════════════
   ZAMANAŞIMI HESAPLAYICI
══════════════════════════════════════════════ */
.zamanasimi-hesap-section {
  background:white; border-radius:18px; padding:0;
  box-shadow:0 6px 24px rgba(0,0,0,.07); margin-bottom:20px;
  border:1px solid rgba(0,0,0,.06); overflow:hidden;
}
.zas-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 28px; cursor:pointer; user-select:none;
}
.zas-header h2 { font-size:1.08rem; color:#0d1b4b; font-weight:700; }
.zas-chevron { font-size:.9rem; color:#6b7280; transition:transform .2s; }
.zas-body { padding:0 28px 24px; border-top:1px solid #f0f2f8; }
.zas-form { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; padding-top:18px; }
.zas-row { display:flex; flex-direction:column; gap:6px; }
.zas-row label { font-size:.8rem; font-weight:600; color:#374151; }
.zas-row label small { font-weight:400; color:#9ca3af; }
.zas-select,.zas-input {
  padding:9px 13px; border:1.5px solid #e5e7eb; border-radius:8px;
  font-size:.84rem; font-family:inherit; background:white;
  transition:border-color .15s;
}
.zas-select:focus,.zas-input:focus { outline:none; border-color:#1a3a6b; }
.zas-sonuc {
  margin-top:18px; border-radius:12px; padding:16px 20px;
}
.zas-tamam { background:#f0fdf4; border:1.5px solid #86efac; }
.zas-yakin { background:#fffbeb; border:1.5px solid #fde68a; }
.zas-doldu { background:#fff1f2; border:1.5px solid #fecdd3; }
.zas-sonuc-top { font-size:1rem; font-weight:700; color:#1a1a2e; margin-bottom:6px; }
.zas-sonuc-kalan { font-size:.88rem; color:#374151; margin-bottom:5px; }
.zas-sonuc-acik { font-size:.8rem; color:#4338ca; margin-bottom:5px; }
.zas-sonuc-meta { font-size:.75rem; color:#9ca3af; }
.zas-err { color:#dc2626; font-size:.84rem; }

/* ══════════════════════════════════════════════
   KARDLARDAKİ KARAR ANALİZ BÖLÜMLERİ
══════════════════════════════════════════════ */
.kcard-actions {
  margin-top:12px; padding-top:10px;
  border-top:1px solid #f0f2f8; display:flex; flex-direction:column; gap:8px;
}
.btn-dilekce-ekle {
  background:#0f2548; color:white; border:none;
  padding:8px 18px; border-radius:8px; font-size:.8rem; font-weight:600;
  cursor:pointer; width:fit-content; transition:all .18s;
}
.btn-dilekce-ekle:hover { background:#1a3a6b; }
.btn-dilekce-ekle:disabled { opacity:.6; cursor:wait; }
.atif-sonuc {
  background:#f0fdf4; border:1.5px solid #86efac; border-radius:10px;
  padding:12px 15px; display:flex; flex-direction:column; gap:8px;
}
.atif-uretilen { font-size:.82rem; color:#15803d; line-height:1.65; white-space:pre-wrap; }
.btn-atif-kopyala {
  background:#15803d; color:white; border:none;
  padding:6px 15px; border-radius:7px; font-size:.78rem; font-weight:600;
  cursor:pointer; width:fit-content; transition:all .18s;
}
.btn-atif-kopyala:hover { background:#166534; }

/* ══════════════════════════════════════════════
   KANUN MADDESİ GPT YORUMU
══════════════════════════════════════════════ */
.btn-kanun-yorum {
  margin-top:10px; background:#eef2ff; color:#4338ca;
  border:1.5px solid #c7d2fe; padding:6px 14px;
  border-radius:7px; font-size:.78rem; font-weight:600; cursor:pointer;
  transition:all .18s;
}
.btn-kanun-yorum:hover { background:#4338ca; color:white; }
.kanun-yorum-kutu {
  margin-top:10px; background:#f8f9ff; border:1px solid #c7d2fe;
  border-radius:10px; overflow:hidden;
}
.kanun-yukleniyor,.kanun-yorum-icerik,.kanun-yorum-err {
  padding:13px 16px; font-size:.82rem; line-height:1.7;
}
.kanun-yorum-icerik { color:#1a1a2e; }
.kanun-yorum-err { color:#dc2626; }
.kanun-yukleniyor { color:#6b7280; font-style:italic; }

/* ══════════════════════════════════════════════
   GRAFİKLER
══════════════════════════════════════════════ */
.charts-section {
  display:grid; grid-template-columns:220px 1fr auto; gap:18px;
  margin-bottom:20px; align-items:center;
}
.chart-card {
  background:white; border-radius:16px; padding:18px 20px;
  box-shadow:0 4px 16px rgba(0,0,0,.06); border:1px solid rgba(0,0,0,.06);
}
.chart-card h4 { font-size:.82rem; color:#6b7280; font-weight:600; margin-bottom:12px; text-align:center; }
.chart-fallback {
  margin-top:12px;
  padding:12px;
  border-radius:8px;
  background:#f8fafc;
  color:#64748b;
  font-size:.82rem;
  text-align:center;
}
.chart-stats {
  display:flex; flex-direction:column; gap:12px;
  justify-content:center; min-width:160px;
}
.chart-stat-item { display:flex; flex-direction:column; align-items:center; }
.cstat-num { font-size:1.6rem; font-weight:800; color:#0f2548; }
.cstat-lbl { font-size:.72rem; color:#6b7280; font-weight:500; }
.cstat-lehe  { color:#16a34a; }
.cstat-aleyhe{ color:#dc2626; }
.cstat-aihm  { color:#1d4ed8; }

/* ══════════════════════════════════════════════
   KARAR ARAMA ÇUBUĞU
══════════════════════════════════════════════ */
.karar-ara-bar {
  background:white; border-radius:14px; padding:14px 20px;
  box-shadow:0 4px 16px rgba(0,0,0,.06); margin-bottom:16px;
  border:1px solid rgba(0,0,0,.06);
  display:flex; align-items:center; gap:14px;
}
.karar-ara-input-wrap {
  flex:1; display:flex; align-items:center; gap:10px;
  border:1.5px solid #e5e7eb; border-radius:10px; padding:8px 14px;
  background:#f8f9fc; transition:border-color .15s;
}
.karar-ara-input-wrap:focus-within { border-color:#1a3a6b; background:white; }
.karar-ara-icon { font-size:1rem; color:#9ca3af; }
.karar-ara-input {
  flex:1; border:none; background:none; font-size:.88rem;
  font-family:inherit; color:#1a1a2e; outline:none;
}
.karar-ara-temizle {
  background:none; border:none; color:#9ca3af; cursor:pointer;
  font-size:.9rem; padding:2px 5px; border-radius:4px;
}
.karar-ara-temizle:hover { color:#374151; background:#f0f0f0; }
.karar-ara-sonuc { font-size:.78rem; color:#6b7280; white-space:nowrap; min-width:60px; }

/* ══════════════════════════════════════════════
   İSTATİSTİK PANELİ (index.html)
══════════════════════════════════════════════ */
.hizli-erisim {
  display:flex; gap:12px; margin-bottom:18px; flex-wrap:wrap;
}
.hizli-btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 20px; border-radius:10px; font-size:.85rem;
  font-weight:600; cursor:pointer; transition:all .18s;
  border:1.5px solid transparent; text-decoration:none;
}
.hizli-taslak {
  background:#0f2548; color:white; border-color:#0f2548;
}
.hizli-taslak:hover { background:#1a3a6b; }
.hizli-istatistik {
  background:white; color:#0f2548; border-color:#c7d2fe;
}
.hizli-istatistik:hover { background:#eef2ff; }
.istatistik-panel {
  background:white; border-radius:14px; padding:22px 24px;
  margin-bottom:18px; box-shadow:0 4px 16px rgba(0,0,0,.06);
  border:1px solid #e0e7ff;
}
.istat-yukle { color:#6b7280; font-size:.85rem; }
.istat-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:14px;
}
.istat-item {
  text-align:center; background:#f8f9fc; border-radius:10px; padding:14px 10px;
}
.istat-item strong { display:block; font-size:1.6rem; font-weight:800; color:#0f2548; }
.istat-item span   { font-size:.74rem; color:#6b7280; }
.istat-daller { display:flex; flex-wrap:wrap; gap:8px; }
.istat-dal-chip {
  font-size:.74rem; font-weight:600; padding:4px 12px; border-radius:12px;
  background:#e0e7ff; color:#3730a3;
}

/* ══════════════════════════════════════════════
   DİLEKÇE TASLAĞI SAYFASI
══════════════════════════════════════════════ */
.taslak-form { display:flex; flex-direction:column; gap:18px; margin-top:20px; }
.form-row { display:flex; flex-direction:column; gap:6px; }
.form-label { font-size:.84rem; font-weight:600; color:#374151; }
.form-zorunlu { color:#dc2626; }
.form-opsiyonel { font-weight:400; color:#9ca3af; font-size:.75rem; }
.taslak-sonuc-wrap { margin-top:26px; border-top:2px solid #f0f2f8; padding-top:22px; }
.taslak-sonuc-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:14px; flex-wrap:wrap; gap:10px;
}
.taslak-sonuc-header h3 { font-size:1rem; color:#0d1b4b; font-weight:700; }
.taslak-sonuc-btns { display:flex; gap:8px; }
.taslak-icerik {
  background:#fafafa; border:1.5px solid #e5e7eb; border-radius:12px;
  padding:20px 24px; font-size:.88rem; line-height:1.8; color:#1a1a2e;
  min-height:300px; white-space:pre-wrap; font-family:'Times New Roman',serif;
  outline:none; transition:border-color .15s;
}
.taslak-icerik:focus { border-color:#1a3a6b; background:white; }
.taslak-not {
  margin-top:12px; font-size:.78rem; color:#6b7280;
  background:#fef9c3; padding:10px 15px; border-radius:8px;
  border:1px solid #fde68a;
}
.taslak-yukle {
  display:flex; align-items:center; gap:12px; justify-content:center;
  padding:28px 0; color:#6b7280; font-size:.9rem;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width:900px) {
  .features-grid { grid-template-columns:1fr 1fr; }
  .workspace-title,
  .workspace-grid {
    grid-template-columns:1fr;
  }
  .workspace-title {
    flex-direction:column;
  }
  .workspace-status {
    min-width:0;
    width:100%;
  }
  .main-nav {
    flex-wrap:wrap;
    justify-content:flex-end;
  }
}
@media (max-width:700px) {
  .hero-section h1 { font-size:1.8rem; }
  .hero-stats { gap:18px; }
  .how-grid { grid-template-columns:1fr 1fr; }
  .features-grid { grid-template-columns:1fr; }
  .header-inner {
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding:14px 20px;
  }
  .main-nav {
    width:100%;
    justify-content:flex-start;
    gap:4px;
    overflow-x:auto;
    padding-bottom:2px;
  }
  .main-nav a,
  .main-nav button {
    padding:7px 9px;
    font-size:.76rem;
  }
  .workspace-hero {
    padding:16px;
    border-radius:8px;
  }
  .workspace-title h1 {
    font-size:1.25rem;
  }
  .workspace-title p { font-size:.88rem; }
  .section-heading {
    flex-direction:column;
    align-items:flex-start;
  }
  .analysis-grid { grid-template-columns:1fr; }
  .steps-bar {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-bottom:18px;
  }
  .steps-bar .step {
    width:100%;
    justify-content:flex-start;
    padding:8px 10px;
    font-size:.72rem;
    border-width:1px;
    border-radius:8px;
  }
  .steps-bar .step-line { display:none; }
  .upload-card { padding:20px; }
  .upload-zone { padding:30px 18px; }
  .bottom-inner { flex-direction:column; }
  .result-header-card { flex-direction:column; }
  .filter-row { gap:4px; }
  .fbtn { padding:4px 9px; font-size:.72rem; }
}

/* Professional report polish */
body {
  background:#f6f7f9;
  color:#182033;
}
.app-header {
  background:#14213d;
  box-shadow:0 2px 12px rgba(15,23,42,.18);
}
.logo-icon { display:none; }
.logo h1 { font-weight:700; letter-spacing:0; }
.logo p { opacity:.72; }
.btn-back,
.btn-primary,
.btn-secondary,
.btn-arguman-ac,
.btn-dilekce-ekle,
.btn-report,
.btn-copy-block,
.btn-copy-all {
  border-radius:6px;
  box-shadow:none;
}
.analysis-card,
.arguman-section,
.zamanasimi-hesap-section,
.mevzuat-section,
.akademik-section,
.chart-card,
.karar-ara-bar,
.result-header-card,
.block-card,
.rewrite-report,
.audit-section {
  border-radius:8px;
  border:1px solid #dfe4ec;
  box-shadow:0 1px 3px rgba(15,23,42,.05);
}
.analysis-header h2,
.results-header h2,
.arguman-header h2,
.zas-header h2,
.audit-header h2,
.report-toolbar h2 {
  color:#172033;
  letter-spacing:0;
}

.audit-section {
  background:white;
  padding:22px 26px;
  margin-bottom:20px;
}
.audit-header,
.report-toolbar {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.audit-header h2,
.report-toolbar h2 {
  font-size:1.08rem;
  font-weight:700;
}
.audit-sub,
.report-toolbar p {
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:.82rem;
  line-height:1.5;
}
.btn-report {
  background:#14213d;
  color:white;
  border:none;
  padding:9px 18px;
  font-size:.83rem;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
}
.btn-report:disabled { opacity:.7; cursor:wait; }
.audit-body { margin-top:18px; }
.audit-loading,
.audit-error {
  padding:14px 16px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:6px;
  color:#475569;
  font-size:.86rem;
}
.audit-error { color:#b91c1c; background:#fef2f2; border-color:#fecaca; }
.audit-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.audit-card {
  border:1px solid #e2e8f0;
  border-radius:8px;
  background:#fff;
  overflow:hidden;
}
.audit-card h3 {
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#334155;
  background:#f8fafc;
  border-bottom:1px solid #e2e8f0;
  padding:10px 14px;
}
.audit-card ul {
  list-style:none;
  padding:0;
}
.audit-card li {
  padding:12px 14px;
  border-bottom:1px solid #eef2f7;
}
.audit-card li:last-child { border-bottom:none; }
.audit-line {
  color:#1f2937;
  font-size:.84rem;
  line-height:1.55;
}
.audit-line:first-child {
  font-weight:700;
  color:#111827;
}
.audit-line.muted {
  font-weight:400;
  color:#64748b;
}
.audit-note {
  grid-column:1 / -1;
}
.audit-note p {
  padding:14px;
  color:#1f2937;
  line-height:1.6;
  font-size:.86rem;
}

.rewrite-report {
  background:white;
  padding:24px;
  margin-bottom:22px;
}
.rewrite-columns {
  display:grid;
  grid-template-columns:minmax(260px,.8fr) minmax(320px,1.2fr);
  gap:16px;
  margin-top:18px;
}
.rewrite-panel {
  border:1px solid #e2e8f0;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}
.rewrite-panel h3,
.report-table-card h3 {
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#334155;
  background:#f8fafc;
  border-bottom:1px solid #e2e8f0;
  padding:10px 14px;
}
.rewrite-old {
  padding:16px;
  min-height:220px;
  color:#475569;
  line-height:1.7;
  font-size:.88rem;
  white-space:pre-wrap;
}
.rewrite-textarea {
  width:100%;
  min-height:520px;
  border:none;
  resize:vertical;
  padding:18px 20px;
  color:#111827;
  font-family:'Times New Roman',serif;
  font-size:.98rem;
  line-height:1.85;
  outline:none;
  background:#fff;
}
.report-tables {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:16px;
}
.report-table-card {
  border:1px solid #e2e8f0;
  border-radius:8px;
  overflow:hidden;
  background:white;
}
.report-table-card table {
  width:100%;
  border-collapse:collapse;
}
.report-table-card td {
  padding:11px 14px;
  border-bottom:1px solid #eef2f7;
  color:#1f2937;
  font-size:.83rem;
  line-height:1.5;
}
.report-table-card tr:last-child td { border-bottom:none; }

@media (max-width:900px) {
  .audit-grid,
  .rewrite-columns,
  .report-tables {
    grid-template-columns:1fr;
  }
  .audit-header,
  .report-toolbar {
    flex-direction:column;
  }
}
