/**
 * Coze Chat SDK 页面样式
 * 仅包含加载动画，其他样式由 SDK 自行管理
 */

/* ========== 加载动画容器 ========== */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #FFFFFF;
  z-index: 9999;
  transition: opacity 0.3s ease-out;
}

.loader-container.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ========== 橙色旋转圆环动画 ========== */
.loader {
  width: 48px;
  height: 48px;
  border: 4px solid #FF6B35;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ========== 加载提示文字 ========== */
.loader-text {
  margin-top: 16px;
  color: #666;
  font-size: 14px;
}

/* ========== 错误提示 ========== */
.error-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #FFFFFF;
  z-index: 9998;
}

.error-container.show {
  display: flex;
}

.error-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  color: #FF4D4F;
}

.error-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.error-message {
  font-size: 14px;
  color: #666;
  text-align: center;
  max-width: 300px;
  line-height: 1.5;
}

.error-retry {
  margin-top: 20px;
  padding: 10px 24px;
  background-color: #FF6B35;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.error-retry:hover {
  background-color: #E55A2B;
}
