/* 确认弹窗样式 - 统一设计规范 */

.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  animation: confirmFadeIn 0.2s ease;
}

.confirm-modal-container {
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 360px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: confirmSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 关闭按钮 */
.confirm-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.confirm-modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* 图标 */
.confirm-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* 标题 */
.confirm-modal-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 20px;
  word-break: break-word;
}

.confirm-modal-title strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* 描述 */
.confirm-modal-description {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  margin-top: -12px;
  white-space: pre-line;
  margin-bottom: 20px;
}

/* 按钮组 */
.confirm-modal-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.confirm-modal-btn {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 取消按钮 */
.confirm-modal-btn.cancel {
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.confirm-modal-btn.cancel:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* 确认按钮 - 主色 */
.confirm-modal-btn.primary {
  background: var(--primary);
  color: white;
}

.confirm-modal-btn.primary:hover {
  background: var(--primary-hover);
}

/* 确认按钮 - 危险色（统一使用绿色主色调） */
.confirm-modal-btn.danger {
  background: var(--primary);
  color: white;
}

.confirm-modal-btn.danger:hover {
  background: var(--primary-hover);
}

/* 动画 */
@keyframes confirmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes confirmSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
