.dashboard {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Bookshelf design */
.shelf-group {
  display: flex;
  flex-direction: column;
}

.shelf-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-left: 8px;
  color: var(--text-color);
}

.shelf-container {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
}

.shelf-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 5px;
  width: 100%;
  scrollbar-width: none;
}

.shelf-track::-webkit-scrollbar {
  display: none;
}

.shelf-item {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
}

.shelf-item img {
  width: 130px;
  height: 190px;
  object-fit: cover;
  border-radius: 3px 6px 6px 3px;
  box-shadow: 
    6px 10px 15px rgba(0, 0, 0, 0.5),
    -1px 0px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.shelf-item img:hover {
  transform: translateY(-6px);
}

/* TODO: Improve shelves */
/* For such a thin widget, the neumorphic effect isnt effective here. Not a fan. */
.shelf-ledge {
  height: 16px;
  width: 100%;
  background: var(--bg-color);
  border-radius: 12px;
  z-index: 1;
  box-shadow: var(--extruded-shadow);
}
/*  */

/* Scroll button design */
.btn-wrap {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  display: none;
  /* For track overflow. Not needed most of the time considering the limited number of papers. */
  
  filter: drop-shadow(4px 4px 6px var(--shadow-dark)) 
          drop-shadow(-3px -3px 5px var(--shadow-light));
}

.btn-wrap-prev {
  left: 8px;
}

.btn-wrap-next {
  right: 8px;
}

.btn-wrap.is-visible {
  display: block;
}

.scroll-btn {
  width: 50px;
  height: 45px;
  background-color: var(--bg-color);
  border: none;
  cursor: pointer;
  clip-path: polygon(0 40%, 50% 35%, 45% 20%, 85% 50%, 45% 80%, 50% 65%, 0 60%);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.scroll-btn-prev {
  transform: scaleX(-1);
}

.scroll-btn:hover {
  filter: brightness(0.96);
}

.scroll-btn:active {
  transform: scale(0.92);
}

.scroll-btn-prev:active {
  transform: scaleX(-1) scale(0.92);
}
/*  */