body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #1e1e1e;
    color: #d4d4d4;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.toolbar {
    background-color: #252526;
    padding: 2px 3px;
    display: flex;
    align-items: center;
    gap: 1px;
}

.toolbar button, .toolbar select {
    background-color: #0e639c;
    color: white;
    border: none;
    padding: 2px 2px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 14px;
}

.toolbar button:hover {
    background-color: #1177bb;
}

.toolbar select {
    background-color: #333;
    padding: 2px 3px;
}

.toolbar input {
    padding: 2px 2px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #333;
    color: white;
    flex-grow: 1;
}

.editor-container {
    display: flex;
    height: calc(100% - 50px);
    position: relative;
}

.editor {
    width: 50%;
    height: 100%;
}

.preview {
    width: 50%;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    background-color: white;
    color: #333;
}

/* 拖动条样式 */
.resizer {
    width: 5px;
    background-color: #444;
    cursor: col-resize;
    user-select: none;
}

/* 全屏预览模式 */
.full-preview .editor {
    display: none;
}

.full-preview .preview {
    width: 100%;
}

.full-preview .resizer {
    display: none;
}

/* 编辑器暗色主题 */
.monaco-editor {
    --vscode-editor-background: #1e1e1e;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .editor, .preview {
        width: 100%;
    }
    
    .preview {
        display: none;
    }
    
    .mobile-preview .preview {
        display: block;
    }
    
    .mobile-preview .editor {
        display: none;
    }
    
    .resizer {
        display: none;
    }
}