/* 编辑器只读模式样式 */

/* 只读模式下的编辑器内容区 */
.editor-readonly {
    cursor: not-allowed !important;
    background-color: #f9f9f9 !important;
    opacity: 0.9;
}

/* 确保只读模式下所有子元素都显示禁止光标 */
.editor-readonly * {
    cursor: not-allowed !important;
}

/* 禁用状态的标题输入框 */
.title-input:disabled,
.title-input:readonly {
    cursor: not-allowed !important;
    background-color: #f5f5f5;
    color: #666;
    opacity: 0.8;
}

/* 禁用状态的按钮 */
.btn-icon:disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* 版本历史恢复按钮禁用状态 */
.version-restore-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    background-color: #e0e0e0 !important;
    color: #999 !important;
}

/* 查看权限警告样式 */
.view-only-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 3px solid var(--warning);
    border-radius: 4px;
    font-size: 13px;
    color: var(--warning);
}

/* 确保禁用状态的视觉反馈 */
[disabled] {
    cursor: not-allowed !important;
}