.nexus-code-editor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.nexus-code-editor .code-editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.nexus-code-editor .code-editor-panel {
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
}

.nexus-code-editor .code-editor-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: var(--bg-secondary, #f9fafb);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.nexus-code-editor .code-editor-panel .panel-header h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.nexus-code-editor .code-editor-panel .panel-header .language-selector {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 4px;
    font-size: 0.75rem;
}

.nexus-code-editor .code-editor-panel textarea {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    border: none;
    resize: vertical;
    background-color: var(--code-bg, #1e293b);
    color: var(--code-text, #e2e8f0);
}

.nexus-code-editor .code-editor-panel textarea:focus {
    outline: none;
}

.nexus-code-editor .code-editor-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.nexus-code-editor .code-editor-actions button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 4px;
    background-color: var(--bg-primary, #ffffff);
    color: var(--text-primary, #1f2937);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.nexus-code-editor .code-editor-actions button:hover {
    background-color: var(--primary-color, #2563eb);
    color: #ffffff;
    border-color: var(--primary-color, #2563eb);
}

.nexus-code-editor .code-editor-actions button.primary {
    background-color: var(--primary-color, #2563eb);
    color: #ffffff;
    border-color: var(--primary-color, #2563eb);
}

.nexus-code-editor .code-output {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    background-color: var(--code-bg, #1e293b);
    color: var(--code-text, #e2e8f0);
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    min-height: 100px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .nexus-code-editor .code-editor-container {
        grid-template-columns: 1fr;
    }
}