/* File Change Styling */
.file-change {
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e1e4e8;
}

.file-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: none;
}

.file-header .bg-light {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 16px 20px !important;
}

.file-header .file-path {
    color: #ffffff;
    font-weight: 500;
}

.file-header .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.file-path {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.file-path i {
    color: #ffffff !important;
}

/* Diff Content */
.diff-content {
    background-color: #fafbfc;
    overflow-x: auto;
}

.diff-hunk {
    border-top: none;
    margin-bottom: 0;
}

.diff-hunk:not(:first-child) .diff-hunk-header {
    margin-top: 8px;
}

.diff-hunk-header {
    background: linear-gradient(to right, #f6f8fa, #ffffff);
    padding: 4px 8px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 11px;
    color: #0366d6;
    font-weight: 600;
    border-top: 1px solid #e1e4e8;
    border-bottom: 1px solid #e1e4e8;
    letter-spacing: 0.3px;
    margin-top: 0;
}

.diff-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.3;
}

.diff-table td {
    padding: 1px 6px;
    vertical-align: top;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Line Numbers */
.line-number {
    width: 35px;
    min-width: 35px;
    text-align: right;
    color: #6a737d;
    user-select: none;
    border-right: 1px solid #e1e4e8;
    background-color: #fafbfc;
    padding: 0 4px !important;
    font-weight: 400;
    font-size: 11px;
}

.old-line-number {
    border-right: 1px solid #e1e4e8;
}

.new-line-number {
    border-right: 1px solid #e1e4e8;
}

/* Line Content */
.line-content {
    padding: 0 4px !important;
    width: 100%;
    background-color: #ffffff;
}

.line-prefix {
    display: inline-block;
    width: 12px;
    font-weight: 700;
    margin-right: 4px;
}

/* Diff Line Types */
.diff-line-context {
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

.diff-line-context:hover {
    background-color: #f6f8fa;
}

.diff-line-added {
    background-color: #e6ffed;
    border-left: 2px solid #28a745;
    transition: background-color 0.2s ease;
}

.diff-line-added:hover {
    background-color: #d4f8dd;
}

.diff-line-added .line-number {
    background-color: #cdffd8;
    font-weight: 600;
}

.diff-line-added .line-content {
    background-color: #e6ffed;
}

.diff-line-added .line-prefix {
    color: #22863a;
    font-size: 13px;
}

.diff-line-removed {
    background-color: #ffeef0;
    border-left: 2px solid #d73a49;
    transition: background-color 0.2s ease;
}

.diff-line-removed:hover {
    background-color: #ffdce0;
}

.diff-line-removed .line-number {
    background-color: #ffdce0;
    font-weight: 600;
}

.diff-line-removed .line-content {
    background-color: #ffeef0;
}

.diff-line-removed .line-prefix {
    color: #cb2431;
    font-size: 13px;
}

/* Code Highlighting */
.diff-table code {
    background: none;
    padding: 0;
    margin: 0;
    font-size: inherit;
    color: #24292e;
    font-family: inherit;
    line-height: inherit;
    display: inline;
    white-space: pre-wrap;
}
