body {
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 1rem;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

h1 {
    margin-bottom: 1.5rem;
    color: #333;
}

.editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.editor-wrapper {
    background: white;
    border-radius: 4px;
    border: 1px solid #ccc;
    overflow: hidden;
}

.editor-wrapper h3 {
    margin: 0;
    padding: 1rem;
    font-size: 1rem;
    font-weight: normal;
    color: #333;
}

.editor-header {
    background: #f5f5f5;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #ccc;
}

.file-name {
    color: #666;
    font-size: 0.875rem;
}

.editor {
    display: flex;
    position: relative;
    height: calc(100vh - 22rem);
    min-height: 300px;
}

.line-numbers {
    padding: 0.5rem 0;
    background: #f5f5f5;
    min-width: 3rem;
    text-align: right;
    color: #666;
    user-select: none;
    border-right: 1px solid #eee;
    overflow-y: hidden;
}

.line-numbers div {
    padding: 0 0.5rem;
    height: 1.5em;
}

textarea {
    flex-grow: 1;
    background: white;
    border: none;
    color: #333;
    padding: 0.5rem;
    font-family: monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    overflow-y: scroll;
    box-sizing: border-box;
    white-space: pre;
}

.button-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.compare-button {
    background: #0066ff;
    color: white;
}

.compare-button:hover {
    background: #0052cc;
}

.format-button {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
}

.format-button:hover {
    background: #e8e8e8;
}

.diff-container {
    display: none;
}

.editor-wrapper.has-diffs textarea {
    white-space: pre;
    overflow: auto;
}

.editor {
    position: relative;
}

.diff-overlay {
    position: absolute;
    top: 0;
    left: 3rem;
    right: 0;
    pointer-events: none;
    font-family: monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre;
    overflow: visible;
    will-change: transform;
    box-sizing: border-box;
    min-height: 100%;
}

.diff-line-highlight {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5rem;
    margin: 0;
}

.diff-line-highlight.added {
    background: rgba(46, 160, 67, 0.1);
}

.diff-line-highlight.removed {
    background: rgba(248, 81, 73, 0.1);
}

.diff-line-highlight.modified {
    background: rgba(210, 153, 34, 0.1);
}

.diff-gutter {
    position: absolute;
    left: 0;
    width: 3px;
    height: 1.5em;
}

.diff-gutter.added {
    background: #2ea043;
}

.diff-gutter.removed {
    background: #f85149;
}

.diff-gutter.modified {
    background: #d29922;
}

/* Legend styles */
.legend {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.legend-color.added {
    background: rgba(46, 160, 67, 0.2);
    border-left: 3px solid #2ea043;
}

.legend-color.removed {
    background: rgba(248, 81, 73, 0.2);
    border-left: 3px solid #f85149;
}

.legend-color.modified {
    background: rgba(210, 153, 34, 0.2);
    border-left: 3px solid #d29922;
} 
.twitter-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.2s ease;
}

.twitter-link:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
} 