/* 编辑器自定义样式 */

/* 上传状态提示样式 */
.editor-status {
  margin-top: 10px;
  padding: 8px;
  border-radius: 4px;
  background-color: #f8f9fa;
  color: #495057;
  font-size: 14px;
  transition: all 0.3s ease;
}

.editor-status:not(:empty) {
  border-left: 4px solid #4dabf7;
  background-color: #e7f5ff;
}

/* 自定义上传按钮悬停效果 */
.custom-upload-btn:hover {
  background-color: #f1f3f5;
  border-radius: 4px;
}

/* 编辑器工具栏增强 */
.toastui-editor-toolbar {
  border-radius: 4px 4px 0 0;
}

/* 编辑器容器样式 */
.editor-container {
  margin-top: 20px;
  margin-bottom: 40px;
}

.editor-panel {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.editor-header {
  padding: 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.editor-main {
  border: 1px solid #e9ecef;
}

.editor-footer {
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 上传进度指示器 */
.upload-progress {
  height: 4px;
  background-color: #e9ecef;
  margin-top: 10px;
  border-radius: 2px;
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  background-color: #4dabf7;
  width: 0;
  transition: width 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .editor-header {
    padding: 15px;
  }
  
  .editor-footer {
    flex-direction: column;
    gap: 10px;
  }
  
  .editor-footer button {
    width: 100%;
  }
  
  .editor-status {
    width: 100%;
    text-align: center;
  }
}