/* ============================================================
   Diff Viewer Styles
   ============================================================ */

.diff-viewer { margin-top: 16px; }

.diff-summary {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.diff-stat {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
}
.diff-stat.added   { background: #dcfce7; color: #166534; }
.diff-stat.removed { background: #fee2e2; color: #991b1b; }
.diff-stat.modified { background: #fef9c3; color: #854d0e; }

/* Side-by-side */
.diff-sxs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.diff-pane { display: flex; flex-direction: column; }
.diff-pane-label { font-size: 0.8rem; font-weight: 600; color: #475569; margin-bottom: 4px; }
.diff-textarea {
  width: 100%; height: 320px; resize: vertical;
  font-family: var(--font-mono, monospace); font-size: 0.8rem;
  border: 1px solid #e2e8f0; border-radius: 6px; padding: 10px;
  background: #f8fafc; color: #1e293b;
}

/* Change table */
.diff-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.diff-table th {
  background: #f8fafc; padding: 8px 12px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: #64748b;
  border-bottom: 2px solid #e2e8f0; text-align: left;
}
.diff-table td { padding: 8px 12px; font-size: 0.85rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.diff-table tr:last-child td { border-bottom: none; }
.diff-row-added   td { background: #f0fdf4; }
.diff-row-removed td { background: #fff1f2; }
.diff-row-modified td { background: #fffbeb; }
.diff-icon { font-size: 1rem; }
.diff-field { font-family: monospace; font-size: 0.8rem; color: #6366f1; }
.diff-old { color: #b91c1c; text-decoration: line-through; word-break: break-word; }
.diff-new { color: #166534; word-break: break-word; }
