/* 全局确认模态框和气泡提示样式 */

/* 确认删除模态框 */
.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.confirm-modal-overlay.show {
  display: flex;
}

.confirm-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 420px;
  max-width: 90%;
  animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.confirm-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.confirm-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.confirm-modal-body {
  padding: 20px 24px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

.confirm-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.confirm-modal-footer button {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid;
}

.confirm-cancel-btn {
  background: white;
  color: #6b7280;
  border-color: #d1d5db !important;
}

.confirm-cancel-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af !important;
}

.confirm-delete-btn {
  background: #dc2626;
  color: white;
  border-color: #dc2626 !important;
}

.confirm-delete-btn:hover {
  background: #b91c1c;
  border-color: #b91c1c !important;
}

/* 气泡提示 */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 10001;
  min-width: 300px;
  animation: toastSlideIn 0.3s ease;
}

.toast.show {
  display: flex;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  background: #dcfce7;
  color: #16a34a;
}

.toast.error .toast-icon {
  background: #fee2e2;
  color: #dc2626;
}

.toast.warning .toast-icon {
  background: #fef3c7;
  color: #d97706;
}

.toast.info .toast-icon {
  background: #dbeafe;
  color: #2563eb;
}

.toast-message {
  color: #111827;
  font-size: 14px;
  flex: 1;
}

.toast-close {
  color: #9ca3af;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
}

.toast-close:hover {
  color: #6b7280;
}
