.full-height {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.editor-layout {
    display: flex;
    flex: 1;
    gap: 20px;
    margin-top: 20px;
    min-height: 0;
    /* Important for flex child scrolling */
}

/* Sidebar */
.editor-sidebar {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-right: 1px solid #ddd;
    padding-right: 20px;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-section.scrollable {
    flex: 1;
    overflow-y: auto;
}

.scene-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scene-item {
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.scene-item:hover {
    background: #f0f0f0;
}

.scene-item.active {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: bold;
}

/* Editor Main */
.editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.scene-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.scene-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-control-inline {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

.editor-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
}

.editor-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.editor-textarea {
    min-height: 150px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    padding: 15px;
    resize: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow-y: hidden;
}

/* Placeholder */
.editor-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    color: #888;
    border: 1px dashed #ddd;
    border-radius: 8px;
}

.status-message {
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 4px;
    display: none;
}

.status-message.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
}

.status-message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
}

@media (max-width: 900px) {
    .editor-layout {
        flex-direction: column;
    }

    .editor-sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-right: 0;
        padding-bottom: 20px;
    }

    .editor-sections {
        grid-template-columns: 1fr;
    }

    .full-height {
        height: auto;
    }
}