.diff-added {
    background-color: rgba(0, 255, 65, 0.15) !important;
}

.diff-modified {
    background-color: rgba(255, 176, 0, 0.15) !important;
}

.diff-glyph-added {
    background-color: var(--term-green);
    border-radius: 50%;
}

.diff-glyph-modified {
    background-color: var(--amber);
    border-radius: 50%;
}

.monaco-editor .diff-added,
.monaco-editor .diff-modified {
    transition: background-color 0.2s ease;
}

.diff-panel {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.4;
}

.diff-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--panel-bg);
    border-bottom: 1px solid var(--amber-dim);
    margin-bottom: 10px;
}

.diff-title {
    font-weight: bold;
    color: var(--amber);
    text-shadow: 0 0 5px var(--amber);
}

.diff-stats {
    font-size: 11px;
    color: var(--term-green);
    background: rgba(0, 255, 65, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
}

.diff-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 5px 0;
}

.diff-line {
    display: flex;
    padding: 2px 10px;
    min-height: 20px;
}

.diff-line:hover {
    background: rgba(255, 255, 255, 0.05);
}

.diff-num {
    width: 40px;
    text-align: right;
    padding-right: 10px;
    color: var(--amber-dim);
    font-size: 11px;
    user-select: none;
    flex-shrink: 0;
}

.diff-num-added {
    color: var(--term-green);
}

.diff-num-removed {
    color: #ff3e3e;
}

.diff-text {
    flex: 1;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--amber);
}

.diff-text-added {
    color: var(--term-green);
}

.diff-text-removed {
    color: #ff3e3e;
}

.diff-unchanged {
    opacity: 0.6;
}

.diff-added-line {
    background: rgba(0, 255, 65, 0.1);
}

.diff-removed-line {
    background: rgba(255, 62, 62, 0.1);
}

.diff-toggle-btn {
    background: var(--amber);
    color: #000;
    border: none;
    font-size: 10px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: bold;
    transition: background 0.2s;
}

.diff-toggle-btn:hover {
    background: #fff;
}

.diff-toggle-btn.active {
    background: var(--term-green);
}

.editor-tools .diff-toggle-btn {
    margin-left: auto;
}
