body {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    line-height: 1.5;
    color: #333;
}
h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2563eb;
}
.container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.input-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.input-box {
    flex: 1;
    min-width: 300px;
}
.input-box h2 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}
textarea {
    width: 100%;
    height: 300px;
    font-family: monospace;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    resize: vertical;
    font-size: 14px;
}
.button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}
button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s;
}
button:hover {
    background-color: #1d4ed8;
}
button:disabled {
    background-color: #93c5fd;
    cursor: not-allowed;
}
#result {
    margin-top: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    padding: 1rem;
    background-color: #f9fafb;
    display: none;
    max-height: 500px;
    overflow: auto;
}
pre {
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}
.added {
    background-color: #dbeafe;
    color: #1e3a8a;
    display: block;
    padding: 2px 0;
}
.removed {
    background-color: #fee2e2;
    color: #b91c1c;
    display: block;
    padding: 2px 0;
}
.modified {
    background-color: #fef08a;
    color: #854d0e;
    display: block;
    padding: 2px 0;
}
.unchanged {
    color: #374151;
    display: block;
    padding: 2px 0;
}
.error {
    color: #b91c1c;
    font-weight: bold;
    margin-top: 1rem;
}
.path {
    font-weight: bold;
    margin-right: 5px;
}
.sample {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}
.sample-button {
    color: #2563eb;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    margin: 0;
}
.summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.stat {
    background-color: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}
.stat.additions {
    background-color: #dcfce7;
}
.stat.removals {
    background-color: #fee2e2;
}
.stat.changes {
    background-color: #fef9c3;
}
.toggle-container {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.progress-container {
    width: 100%;
    height: 4px;
    background-color: #e5e7eb;
    margin-bottom: 1rem;
    border-radius: 2px;
    display: none;
}
.progress-bar {
    height: 100%;
    width: 0;
    background-color: #2563eb;
    border-radius: 2px;
    transition: width 0.3s;
}
.source {
    text-align: center;
}
