/* Editor Page Layout */
.editor-main-area {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.template-sidebar {
    display: flex;
    flex-direction: column;
    background-color: var(--header-bg);
    border-right: 1px solid var(--header-border);
    overflow: hidden;
}

.main-view-container.usage-pinned {
    /* When pinned, add a margin to the whole container to make space for the expanded sidebar */
    margin-right: var(--editor-right-width, 350px);
}


.editor-workspace,
.viewer-workspace {
    display: none;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
    overflow: auto;
}

.editor-workspace.active,
.viewer-workspace.active {
    display: flex;
}

.editor-placeholder {
    display: none;
    flex-grow: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: var(--bg-alt);
    text-align: center;
    padding: 2rem;
}

.editor-placeholder.active {
    display: flex;
}

.placeholder-content {
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.placeholder-icon {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.editor-placeholder h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.editor-placeholder p {
    color: var(--text-muted);
    line-height: 1.6;
}