/* Light tema — Tailwind CDN üzerine sade override'lar. */

:root {
  --brand: #5a8d4a;
  --brand-hover: #4a7a3c;
  --brand-dark: #3f6633;
  --brand-light: #8bba6e;
  --brand-soft: rgba(90, 141, 74, 0.10);
}

/* Sidebar collapse animasyonu */
#sidebar {
  width: 16rem;
  transition: width 200ms ease, padding 200ms ease, border-color 200ms ease;
  overflow: hidden;
}
#sidebar.collapsed {
  width: 0;
  border-right-width: 0;
}
#sidebar.collapsed > * {
  visibility: hidden;
}

/* Aktif sekme — yeşil yumuşak vurgu */
.tab-btn[data-active="true"] {
  background-color: var(--brand-soft);
  color: var(--brand-dark);
}
.tab-btn[data-active="true"] svg {
  color: var(--brand-dark);
}

.section-item[data-active="true"] {
  background-color: var(--brand-soft);
  border-color: var(--brand);
}

/* Scroll bar — light tema */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1aa; }

/* ────────  Tapu çıktısı — rapor görünümü  ──────── */

.tapu-output {
  border: 1px solid #d4d4d8;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #ffffff;
}
.tapu-output h2.section-band {
  background: var(--brand-dark);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  margin: 0;
  letter-spacing: 0.02em;
}
.tapu-output h3.subsection-band {
  background: var(--brand-light);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  margin: 0;
  letter-spacing: 0.02em;
}
.tapu-output table.kv-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.tapu-output table.kv-grid td {
  padding: 0.5rem 0.85rem;
  vertical-align: top;
  border: 1px solid #e4e4e7;
  font-size: 0.82rem;
  color: #1f2937;
  word-break: break-word;
}
.tapu-output table.kv-grid td.kv-label {
  background: #f8fafc;
  font-weight: 700;
  color: #1f2937;
  width: 18%;
}
.tapu-output .tak-block {
  padding: 0.6rem 1rem;
  border: 1px solid #e4e4e7;
  border-top: 0;
  font-size: 0.82rem;
  color: #1f2937;
}
.tapu-output .tak-block .hane-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.tapu-output .tak-block .hane-item {
  margin-left: 0.25rem;
  margin-top: 0.15rem;
  line-height: 1.55;
}
.tapu-output .tak-meta {
  padding: 0.55rem 1rem;
  border: 1px solid #e4e4e7;
  border-top: 0;
  font-size: 0.82rem;
  color: #1f2937;
  line-height: 1.5;
}
.tapu-output .tak-meta strong { font-weight: 700; }

/* Bölge Özellikleri — 2-sütun tek satır (konum başlığı + paragraf) */
.tapu-output table.bolge-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.tapu-output table.bolge-grid td {
  border: 1px solid #e4e4e7;
  padding: 0.6rem 0.85rem;
  vertical-align: top;
  font-size: 0.82rem;
  color: #1f2937;
}
.tapu-output table.bolge-grid td.bolge-label {
  background: #f8fafc;
  font-weight: 700;
  width: 22%;
}
.tapu-output table.bolge-grid textarea.bolge-text {
  width: 100%;
  min-height: 220px;
  border: 1px dashed transparent;
  font-family: inherit;
  font-size: 0.82rem;
  color: #1f2937;
  resize: vertical;
  background: transparent;
  line-height: 1.55;
  padding: 0.25rem;
}
.tapu-output table.bolge-grid textarea.bolge-text:focus {
  outline: none;
  border-color: #cbd5e1;
  background: #fffbeb;
}
.tapu-output table.bolge-grid .bolge-placeholder {
  color: #94a3b8;
  font-style: italic;
}

/* Radio tablosu — görseldeki gibi */
.tapu-output table.radio-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.tapu-output table.radio-grid td {
  border: 1px solid #e4e4e7;
  padding: 0.45rem 0.6rem;
  vertical-align: middle;
  font-size: 0.78rem;
  color: #1f2937;
  text-align: center;
}
.tapu-output table.radio-grid td.radio-label {
  background: #f8fafc;
  font-weight: 700;
  text-align: left;
  width: 22%;
}
.tapu-output table.radio-grid td.radio-opt label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
  cursor: pointer;
  font-size: 0.78rem;
}
.tapu-output table.radio-grid td.radio-opt input[type="radio"] {
  cursor: pointer;
  accent-color: var(--brand);
}

/* ────────  Accordion (rapor bölümleri için)  ──────── */

.acc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  margin-top: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.acc-card > .acc-header {
  cursor: pointer;
  user-select: none;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 150ms;
}
.acc-card.collapsed > .acc-header {
  border-bottom-color: transparent;
}
.acc-card > .acc-header:hover {
  background: #f1f5f9;
}
.acc-card > .acc-header .acc-arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 200ms;
  color: var(--brand-dark);
  flex-shrink: 0;
}
.acc-card.collapsed > .acc-header .acc-arrow {
  transform: rotate(-90deg);
}
.acc-card > .acc-body {
  padding: 1rem 1.25rem;
}
.acc-card.collapsed > .acc-body {
  display: none;
}
.acc-card > .acc-header .acc-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
  flex: 1;
  min-width: 0;
}
.acc-card > .acc-header .acc-subtitle {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 400;
  margin-top: 0.1rem;
}
.acc-card > .acc-header .acc-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  flex-shrink: 0;
}
.acc-card > .acc-header .acc-badge-ok {
  background: #dcfce7;
  color: #166534;
}
.acc-card > .acc-header .acc-badge-pending {
  background: #fef9c3;
  color: #854d0e;
}

/* Bulk toolbar */
.acc-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}
.acc-toolbar button {
  padding: 0.3rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background: white;
  color: #475569;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
}
.acc-toolbar button:hover { background: #f1f5f9; }


