// Guide Tour 自定义样式
// 覆盖 driver.js 默认样式

.driver-popover {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: none;
  padding: 20px;
  min-width: 300px;
  max-width: 400px;

  &.guide-tour-popover {
    // 自定义样式类
  }

  .driver-popover-title {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 12px;
    padding-right: 24px;
  }

  .driver-popover-description {
    font-size: 14px;
    color: #606266;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .driver-popover-progress-text {
    font-size: 12px;
    color: #909399;
    margin-bottom: 12px;
  }

  .driver-popover-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .driver-popover-navigation-btns {
    display: flex;
    gap: 8px;
  }

  .driver-popover-prev-btn,
  .driver-popover-next-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
  }

  .driver-popover-prev-btn {
    background-color: #f5f7fa;
    color: #606266;

    &:hover {
      background-color: #e6e8eb;
    }
  }

  .driver-popover-next-btn {
    background-color: #409eff;
    color: #fff;

    &:hover {
      background-color: #66b1ff;
    }
  }

  .driver-popover-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    color: #909399;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;

    &:hover {
      background-color: #f5f7fa;
      color: #606266;
    }
  }

  // 箭头样式
  .driver-popover-arrow {
    border: none;
  }

  &.driver-popover-side-top .driver-popover-arrow {
    border-top-color: #fff;
  }

  &.driver-popover-side-bottom .driver-popover-arrow {
    border-bottom-color: #fff;
  }

  &.driver-popover-side-left .driver-popover-arrow {
    border-left-color: #fff;
  }

  &.driver-popover-side-right .driver-popover-arrow {
    border-right-color: #fff;
  }
}

// 高亮区域样式
.driver-highlighted-element {
  outline: none !important;
}

// 遮罩层样式
.driver-overlay {
  background-color: rgba(0, 0, 0, 0.65) !important;
}

// 动画效果
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.driver-popover {
  animation: fadeInUp 0.3s ease-out;
}
