/* Code Line Numbers Styling */

/* Container for code with line numbers */
.code-with-line-numbers {
    display: flex;
    width: 100%;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    line-height: 1.5;
    overflow: hidden;
    background-color: #0d1117;
    height: 100%;
}

/* Line numbers container */
.line-numbers {
    flex: 0 0 auto;
    padding: 16px 8px 16px 16px;
    text-align: right;
    color: #484f58;
    background-color: #0d1117;
    border-right: 1px solid #30363d;
    user-select: none;
    min-width: 40px;
    font-size: 13px;
}

/* Code content with proper padding to align with line numbers */
.code-content-with-lines {
    flex: 1;
    padding: 16px;
    overflow: auto;
    color: #c9d1d9;
    font-size: 13px;
    white-space: pre;
}

/* Ensure line numbers and code content scroll together vertically */
.code-display {
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

/* Ensure the line numbers and code content have the same line height */
.line-numbers div,
.code-content-with-lines div {
    height: 1.5em;
}

/* Highlight current line */
.line-numbers div.current-line {
    color: #c9d1d9;
    font-weight: bold;
}

.code-content-with-lines div.current-line {
    background-color: rgba(110, 118, 129, 0.1);
    border-radius: 2px;
}

/* Syntax highlighting remains the same */
.keyword {
    color: #ff7b72;
}

.string {
    color: #a5d6ff;
}

.comment {
    color: #8b949e;
}
