@charset "UTF-8";
/* BasinLens Components Common Styles */

/* Tooltip 样式 */
.bs-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bs-tooltip .bs-tooltip-text {
  visibility: hidden;
  width: max-content;
  max-width: 250px;
  background-color: rgba(48, 48, 48, 1.0);
  color: #F2F2F2;
  text-align: left;
  border-radius: 6px;
  padding: 6px 10px;
  position: absolute;
  z-index: 100;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: block;
}

/* 图片类型 tooltip 的特殊样式 */
.bs-tooltip .bs-tooltip-image {
  background-color: #fff;
  padding: 5px;
  border: 1px solid #ddd;
  max-width: none; /* 移除最大宽度限制以允许自定义尺寸 */
  width: fit-content; /* 让容器宽度适应图片内容 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.bs-tooltip .bs-tooltip-image img {
  display: block;
  max-width: none; /* 移除限制，允许图片使用指定的宽度 */
  border-radius: 4px;
}

/* 上方显示 */
.bs-tooltip .bs-tooltip-top {
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
}

.bs-tooltip .bs-tooltip-top::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(48, 48, 48, 1.0) transparent transparent transparent;
}

.bs-tooltip .bs-tooltip-image.bs-tooltip-top::after {
  border-color: #fff transparent transparent transparent;
}

/* 右侧显示 */
.bs-tooltip .bs-tooltip-right {
  top: 50%;
  left: calc(100% + 8px);
  transform: translateY(-50%);
}

.bs-tooltip .bs-tooltip-right::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent rgba(48, 48, 48, 1.0) transparent transparent;
}

.bs-tooltip .bs-tooltip-image.bs-tooltip-right::after {
  border-color: transparent #fff transparent transparent;
}

/* 下方显示 */
.bs-tooltip .bs-tooltip-bottom {
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
}

.bs-tooltip .bs-tooltip-bottom::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent rgba(48, 48, 48, 1.0) transparent;
}

.bs-tooltip .bs-tooltip-image.bs-tooltip-bottom::after {
  border-color: transparent transparent #fff transparent;
}

/* 左侧显示 */
.bs-tooltip .bs-tooltip-left {
  top: 50%;
  right: calc(100% + 8px);
  transform: translateY(-50%);
}

.bs-tooltip .bs-tooltip-left::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(48, 48, 48, 1.0);
}

.bs-tooltip .bs-tooltip-image.bs-tooltip-left::after {
  border-color: transparent transparent transparent #fff;
}

/* 显示tooltip - 只在父元素可见时才显示 */
.bs-tooltip:hover .bs-tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* 当父元素不可见或透明度为0时，不显示tooltip */
.opacity-0:hover .bs-tooltip-text,
.invisible:hover .bs-tooltip-text,
.bs-tooltip.opacity-0:hover .bs-tooltip-text,
.bs-tooltip.invisible:hover .bs-tooltip-text {
  visibility: hidden;
  opacity: 0;
}

/* Top Toast 组件 */
.top-toast {
  position: fixed;
  top: 6rem; /* 24 * 0.25rem = 6rem */
  left: 50%;
  padding: 1rem 1.5rem; /* py-4 px-6 */
  border-radius: 0.375rem; /* rounded-md */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); /* shadow-md */
  display: flex;
  align-items: center;
  gap: 0.75rem; /* space-x-3 */
  border-width: 1px;
  z-index: 110;
  opacity: 0;
  transform: translateX(-50%) translateY(-2rem) scale(0.95); /* -translate-y-8 */
  transition: all 0.5s ease-out;
}

.top-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.top-toast.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(-1rem) scale(0.95); /* -translate-y-4 */
}

.top-toast .icon svg {
  width: 1rem; /* size-4 */
  height: 1rem; /* size-4 */
}

.top-toast.success {
  background-color: #f0fdf4; /* bg-green-50 */
  border-color: #bbf7d0; /* border-green-200 */
}

.top-toast.success .icon {
  color: #22c55e; /* text-green-500 */
}

.top-toast.error {
  background-color: #fef2f2; /* bg-red-50 */
  border-color: #fecaca; /* border-red-200 */
}

.top-toast.error .icon {
  color: #ef4444; /* text-red-500 */
}

.top-toast.warning {
  background-color: #fffbeb; /* bg-amber-50 */
  border-color: #fde68a; /* border-amber-200 */
}

.top-toast.warning .icon {
  color: #f59e0b; /* text-amber-500 */
}

.top-toast .message {
  color: #4b5563; /* text-gray-600 */
}

/* Center ConfirmModal 组件 */
.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* bg-black bg-opacity-50 */
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.confirm-modal {
  width: 560px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  background-color: white;
  border-radius: 0.5rem; /* rounded-lg */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); /* shadow-md */
  padding: 2rem; /* p-8 */
  z-index: 110;
  font-size: 0.875rem; /* text-sm */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.confirm-modal-overlay.show,
.confirm-modal.show {
  opacity: 1;
  visibility: visible;
}

.confirm-modal.show {
  transform: translate(-50%, -50%);
}

.confirm-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem; /* mb-4 */
}

.confirm-modal-title {
  font-size: 1.125rem; /* text-lg */
  font-weight: 500; /* font-medium */
  color: #1f2937; /* text-gray-800 */
}

.confirm-modal-close-btn {
  color: #6b7280; /* text-gray-500 */
  cursor: pointer;
}

.confirm-modal-close-btn:hover {
  color: #374151; /* hover:text-gray-700 */
}

.confirm-modal-close-btn svg {
  width: 1.5rem; /* w-6 */
  height: 1.5rem; /* h-6 */
}

.confirm-modal-content {
  margin-bottom: 2rem; /* mb-8 */
}

.confirm-modal-content p {
  color: #4b5563; /* text-gray-600 */
}

.confirm-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem; /* gap-4 */
}

.confirm-modal-btn {
  min-width: 6rem; /* min-w-24 */
  height: 2.5rem; /* h-10 */
  border-radius: 0.375rem; /* rounded-md */
  padding-left: 1rem;
  padding-right: 1rem;
  cursor: pointer;
  font-size: 0.875rem; /* text-sm */
}

.confirm-modal-cancel-btn {
  border: 1px solid #d1d5db; /* border border-gray-300 */
  color: #374151; /* text-gray-700 */
  background-color: white;
}

.confirm-modal-cancel-btn:hover {
  background-color: #f9fafb; /* hover:bg-gray-50 */
}

.confirm-modal-confirm-btn {
  background-color: #ef4444; /* bg-red-500 */
  color: white;
  border: none;
}

.confirm-modal-confirm-btn:hover {
  background-color: #dc2626; /* hover:bg-red-600 */
}
