.editor-container {
    display: grid;
    grid-template-columns: 0.5fr 0.5fr 1.5fr;
    gap: 1rem;
    height: calc(100vh - 150px);
    padding: 1rem;
}

.editor-section, .preview-section {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-header h2 {
    margin: 0;
    font-size: 1rem;
}

.copy-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: inherit;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.CodeMirror {
    height: 100% !important;
    font-family: 'Sono', monospace;
    font-size: 12px;
}

#preview-frame {
    width: 100%;
    height: 100%;
    border: none;
    background-color: white;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .editor-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .preview-section {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .editor-container {
        grid-template-columns: 1fr;
    }
    
    .preview-section {
        grid-column: span 1;
    }
} 