/* Editor Panel Styles */
.editor-section {
    width: 100%;
    background-color: #2d2d2d;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.editor-title {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}


.editor-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editor-container {
    flex: 1;
    overflow: hidden;
    /* CodeMirror will be attached here */
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
    background-color: #333;
    border-top: 1px solid #444;
}

.editor-button {
    margin-left: 10px;
    padding: 6px 15px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.preview-button {
    background-color: #2c5282;
    color: white;
}

.preview-button:hover {
    background-color: #3a6ea5;
}

.save-button {
    background-color: #2f855a;
    color: white;
}

.save-button:hover {
    background-color: #38a169;
}

.cancel-button {
    background-color: #822727;
    color: white;
}

.cancel-button:hover {
    background-color: #9b2c2c;
}

/* Preview mode indicator for 3D panel */
.three-section.preview-mode {
    box-shadow: inset 0 0 0 3px #3182ce;
}

.three-section.preview-mode::after {
    content: "PREVIEW";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #3182ce;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    opacity: 0.8;
}
