* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background-color: white;
}

.frame-root {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
}

.frame-root.left {
    flex-direction: row;
}

.frame-root.right {
    flex-direction: row;
}

.line-numbers-container {
    width: 50px;
    height: 100%;
    overflow: hidden;
    background-color: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    flex-shrink: 0;
    display: none;
    flex-direction: column;
}

.frame-root.left .line-numbers-container {
    border-right: none;
    border-left: 1px solid #e0e0e0;
}

.frame-root.show-numbers .line-numbers-container {
    display: flex;
}

.content {
    flex: 1;
    overflow-y: scroll;
    overflow-x: auto;
    height: 100%;
    scrollbar-width: auto;
    background-color: white;
}

.frame-root.left .content {
    direction: rtl;
}

.frame-root.left .content > * {
    direction: ltr;
}

.text-container {
    width: 100%;
}

.line-row {
    display: flex;
    align-items: flex-start;
    width: 100%;
    background-color: white;
}

.line-text {
    flex: 1;
    padding: 0 15px;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    overflow-wrap: break-word;
}

.line-num-row {
    padding: 0 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #666;
    user-select: none;
    -webkit-user-select: none;
}

.frame-root.left .line-num-row {
    text-align: left;
    padding-left: 10px;
}

.frame-root.right .line-num-row {
    text-align: right;
    padding-right: 10px;
}

.highlight {
    border-radius: 2px;
}

.highlight-original {
    background-color: #ffe08a;
    box-shadow: inset 0 0 0 1px rgba(229, 143, 0, 0.6);
}

.highlight-alias-single {
    background-color: #d6dbe0;
    box-shadow: inset 0 0 0 1px rgba(104, 116, 128, 0.55);
}

.highlight-alias-merge {
    background-color: #8fe88d;
    box-shadow: inset 0 0 0 1px rgba(43, 132, 40, 0.55);
}

.placeholder {
    padding: 12px 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #666;
}

.content::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

.content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 8px;
}

.content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.content::-webkit-scrollbar-corner {
    background: #f1f1f1;
}
