body {
    margin: 0;
    background: #15191f;
    color: #f3f4f6;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

#app {
    display: grid;
    grid-template-columns: 420px 1fr 360px;
    height: 100vh;
}

#rightPanel {
    padding: 14px;
    background: #20252b;
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.exportSection {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 0;
}

#exportOutput {
    flex: 1;
    min-height: 0;
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    font-family: Consolas, monospace;
    font-size: 12px;
    line-height: 1.4;
    resize: none;
    box-sizing: border-box;
    color: #e5e7eb;
    border: 1px solid #374151;
    border-radius: 8px;
}

#leftPanel {
    padding: 14px;
    background: #20252b;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#viewer {
    position: relative;
    width: 100%;
    height: 100%;
}

#codeEditor {
    width: 100%;
    flex: 1;
    min-height: 420px;
    background: #101418;
    color: #d1fae5;
    border: 1px solid #3b3b3b;
    border-radius: 8px;
    padding: 10px;
    font-family: Consolas, monospace;
    font-size: 13px;
    resize: none;
    box-sizing: border-box;
}

.row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

button {
    background: #ff8a00;
    color: #111;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
}

button.secondary {
    background: #374151;
    color: #fff;
}

#errorBox {
    min-height: 48px;
    max-height: 180px;
    overflow: auto;
    background: #120f0f;
    border: 1px solid #4b1d1d;
    color: #ffb4b4;
    border-radius: 8px;
    padding: 8px;
    font-family: Consolas, monospace;
    font-size: 12px;
    white-space: pre-wrap;
}

.hint {
    color: #a7b0bd;
    font-size: 13px;
    line-height: 1.35;
}

.editor {
    display: flex;
    font-family: monospace;
    height: 400px;
}

#lineNumbers {
    background: #1e1e1e;
    color: #888;
    padding: 10px 6px;
    text-align: right;
    user-select: none;
    overflow: hidden;
    line-height: 1.5;
}

#codeEditor {
    background: #1e1e1e;
    color: #fff;
    border: none;
    outline: none;
    padding: 10px;
    width: 100%;
    resize: none;
    line-height: 1.5;
    overflow: auto;
}

.exportSection {
    margin-top: 16px;
}

#exportOutput {
    width: 100%;
    height: 260px;
    background: #1e1e1e;
    margin-top: 8px;
    padding: 10px;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.4;
    resize: vertical;
    box-sizing: border-box;
    color: #e5e7eb;
    border: 1px solid #374151;
    border-radius: 8px;
}

textarea {
    font-family: Consolas, monospace;
    box-sizing: border-box;
}

.exportSection {
    display: flex;
    gap: 10px;
}

.exportSection button {
    width: 40%;
    height: 28px;
    padding: 0 16px;
    margin: 0;
}

.exportSection textarea {
    width: 100%;
    margin-top: 10px;
}