@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500&display=swap');

body {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    color: #333;
    background: #f0f0f0;
}
.diff-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 0 0 20px 0;
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box;
}
.file-header {
    background: #0077ff;
    color: white;
    padding: 12px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.deleted-file-header {
    background: #e74c3c;
    background-image: linear-gradient(to right, #e74c3c, #c0392b);
}
.new-file-header {
    background: #2ecc71;
    background-image: linear-gradient(to right, #2ecc71, #27ae60);
}
.diff-content {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    background: white;
}
.line-numbers {
    width: 40px;
    text-align: center;  /* Changed from 'right' to 'center' */
    padding: 0;  /* Remove horizontal padding */
    color: #777;
    background: #f8f8f8;
    border-right: 1px solid #ddd;
    user-select: none;
    flex-shrink: 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    display: flex;  /* Add flex display */
    align-items: center;  /* Center vertically */
    justify-content: center;  /* Center horizontally */
}
.line-content {
    flex: 1;
    padding: 0 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-width: 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
}
.diff-row {
    display: flex;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}
.diff-row:hover {
    background: #f8f8f8;
}
.diff-old, .diff-new {
    flex: 1;
    display: flex;
    min-width: 0;
}
.diff-old {
    border-right: 1px solid #ddd;
}
.ins {
    background-color: #cfffcf;
    text-decoration: none;
    color: #006400;
    border-radius: 2px;
    padding: 0 1px;
    margin: 0 -1px;
}
.del {
    background-color: #ffd7d7;
    text-decoration: none;
    color: #8b0000;
    border-radius: 2px;
    padding: 0 1px;
    margin: 0 -1px;
}
.line-ins {
    background-color: #e6ffec;
    border-left: 3px solid #2ecc71;
}
.line-del {
    background-color: #ffebe9;
    border-left: 3px solid #e74c3c;
}
.empty-line {
    height: 1.5em;
    background-color: #fafafa;
}
.line-replaced {
    background-color: #f8f4e8;
    border-left: 3px solid #f39c12;
    width: 100%;
    padding: 0.25rem 0.5rem;
    white-space: pre-wrap;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
}