.dashboard-scroller-container {
  border-radius: 20px;
  padding: 1rem 2rem 0rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: color-mix(in srgb, var(--p-surface-500), transparent 50%) 1px solid;
}

.dashboard-scroller-title {
  text-align: left;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding: 0;
  background: linear-gradient(135deg, #ffffff, #e2e8f0, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
  letter-spacing: -0.02em;

  &::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color));
    border-radius: 2px;
  }
}

.dashboard-scroller-no-books {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;

  .empty-state-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;

    i {
      font-size: 2rem;
      color: white;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
  }

  p {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 500;
    max-width: 400px;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }
}

.dashboard-scroller-infinite {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 1rem 0.5rem 1rem 0.5rem;
  gap: 2rem;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 2;

  scrollbar-color: var(--primary-color) rgba(20, 20, 30, 0.5);
}

.dashboard-scroller-card {
  height: 200px;
  width: 116px;
  flex-basis: 124px;
  flex-shrink: 0;
  flex-grow: 0;
  scroll-snap-align: start;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;

  &:hover {
    transform: translateY(-4px) scale(1.04);
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));

    &::after {
      opacity: 1;
      transform: scale(1.2);
    }

    &::before {
      opacity: 0.8;
    }
  }

  &::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--p-primary-400), transparent 70%),
        color-mix(in srgb, var(--p-primary-800), transparent 70%)
    );
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(8px);
  }

  &::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10%;
    right: 10%;
    height: 5px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--p-primary-500),
        transparent
    );
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    filter: blur(6px);
  }
}

@media (max-width: 767px) {

  .dashboard-scroller-card {
    height: 184px;
    width: 108px;
    flex-basis: 108px;
  }

  .dashboard-scroller-no-books {
    padding: 4rem 1rem;

    .empty-state-icon {
      width: 80px;
      height: 80px;

      i {
        font-size: 2rem;
      }
    }

    p {
      font-size: 1.1rem;
    }
  }
}
