.diff-tool-container {
    max-width: 100%;
}

.diff-controls {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.diff-controls label {
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.mode-toggle {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
}

.mode-btn {
    border: none;
    background: transparent;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    font-size: 0.9rem;
}

.mode-btn.active {
    background: #fff;
    color: var(--ast-global-color-0, #0274be);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.diff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .diff-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.diff-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

.diff-box textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
}

.diff-box textarea:focus {
    outline: none;
    border-color: var(--ast-global-color-0, #0274be);
}

.diff-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.diff-result-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.diff-result-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: #1e293b;
}

.diff-output {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
}

/* Diff Highlighting */
ins {
    background-color: #dcfce7;
    color: #166534;
    text-decoration: none;
    border-radius: 2px;
}

del {
    background-color: #fee2e2;
    color: #991b1b;
    text-decoration: none;
    border-radius: 2px;
}

.hidden {
    display: none;
}