body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

.editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #f5f5f5;
    border-right: 1px solid #ddd;
}

.plot-container {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.CodeMirror {
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#run-button {
    margin: 10px 0;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#run-button:hover {
    background-color: #45a049;
}

.output-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: white;
    height: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
}

#plot {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Mobile responsive design */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        height: 100vh;
    }
    
    .editor-container {
        flex: 0.5;
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding: 10px;
        height: 50vh;
    }
    
    .output-container {
        flex: 0.5;
        padding: 10px;
        height: 50vh;
    }
    
    .resizer {
        display: none;
    }
    
    /* Adjust CodeMirror height for mobile */
    .CodeMirror {
        height: 100% !important;
    }
    
    /* Ensure tab buttons are visible on mobile */
    .tab-buttons {
        display: flex !important;
        border-bottom: 1px solid #ccc;
        margin-bottom: 10px;
    }
    
    .tab-buttons button {
        flex: 1;
        padding: 8px 12px;
        font-size: 14px;
        width: auto;
        float: none;
    }
    
    /* Adjust tab content height for mobile */
    .tab-content {
        height: calc(100% - 100px) !important;
    }
    
    #yaml-tab .CodeMirror {
        height: calc(100% - 30px) !important;
    }
} 