/* Diff viewer styles */
.diff-output {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: auto;
    max-height: 600px;
}

.diff-line {
    padding: 2px 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.diff-add {
    background: #dcfce7;
    color: #166534;
    border-left: 3px solid #22c55e;
}

.diff-remove {
    background: #fee2e2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
    text-decoration: line-through;
}

.diff-equal {
    color: #64748b;
}

.diff-marker {
    font-weight: 700;
    margin-right: 8px;
    user-select: none;
}

.diff-stats {
    display: flex;
    gap: 16px;
    padding: 10px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.diff-stats .added { color: #16a34a; }
.diff-stats .removed { color: #dc2626; }
.diff-stats .unchanged { color: #64748b; }

.diff-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
    border-radius: 6px 6px 0 0;
}

/* Side-by-side diff */
.diff-side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.diff-side-by-side .diff-pane {
    overflow: auto;
    max-height: 600px;
}

.diff-side-by-side .diff-pane-header {
    background: #f1f5f9;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
}

.diff-side-by-side .diff-pane:first-child { border-right: 1px solid var(--border); }

/* Snapshot viewer */
.snapshot-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    padding: 16px;
    max-height: 500px;
    overflow: auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
}
