/* SQL格式化工具样式 */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 30px;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.tool-group {
    display: flex;
    gap: 10px;
}

.editor-container {
    display: flex;
    gap: 20px;
    height: calc(100vh - 300px);
    min-height: 500px;
}

.editor-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.editor-section h3 {
    margin-bottom: 10px;
    color: #333;
}

.CodeMirror {
    flex: 1;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .editor-container {
        flex-direction: column;
        height: auto;
    }

    .editor-section {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .tool-group {
        justify-content: stretch;
    }

    button, select {
        flex: 1;
    }
} 