.bookshelf-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.bookshelf-header h1 {
  font-size: 28px;
  color: #333;
  margin: 0;
}
.bookshelf-header .bookshelf-filter {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}
.bookshelf-header .bookshelf-filter .filter-btn {
  padding: 8px 16px;
  background-color: #f5f5f5;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}
.bookshelf-header .bookshelf-filter .filter-btn.active {
  background-color: #5672f6;
  color: #fff;
}
.bookshelf-header .bookshelf-filter .filter-btn:hover:not(.active) {
  background-color: #eee;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
@media (max-width: 768px) {
  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

.book-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.book-item:hover {
  transform: translateY(-5px);
}
.book-item.removing {
  transform: translateY(20px);
  opacity: 0;
  transition: transform opacity ease;
}
.book-item .book-cover {
  position: relative;
  overflow: hidden;
}
.book-item .book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-item .book-cover .book-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.book-item .book-cover:hover .book-actions {
  opacity: 1;
}
.book-item .action-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.book-item .action-btn.read-btn {
  background-color: #5672f6;
  color: #fff;
}
.book-item .action-btn.more-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.book-item .book-info {
  padding: 15px;
  background-color: #fff;
  flex-grow: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.book-item .book-info .book-title {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.book-item .book-info .book-author {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #666;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-item .book-info .book-progress {
  width: 100%;
}
.book-item .book-info .book-progress .progress-bar {
  height: 6px;
  background-color: #eee;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 5px;
}
.book-item .book-info .book-progress .progress-bar .progress-fill {
  height: 100%;
  background-color: #5672f6;
}
.book-item .book-info .book-progress .progress-text {
  font-size: 12px;
  color: #666;
}

.empty-bookshelf {
  grid-column: 1/-1;
  text-align: center;
  padding: 50px 20px;
}
.empty-bookshelf img {
  width: 120px;
  margin-bottom: 20px;
}
.empty-bookshelf h2 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #333;
}
.empty-bookshelf p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}
.empty-bookshelf .browse-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #5672f6;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}

.empty-history {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  border-radius: 8px;
}
.empty-history img {
  width: 100px;
  margin-bottom: 20px;
  opacity: 0.7;
}
.empty-history h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}
.empty-history p {
  font-size: 16px;
  color: #666;
  max-width: 400px;
  margin: 0 auto;
}

.recommendations {
  background-color: #fff;
  margin-top: 40px;
  overflow-y: auto;
}
.recommendations::-webkit-scrollbar {
  display: none;
}
.recommendations h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #333;
}
.recommendations .recommended-books {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.recommendations .recommended-books .recommended-book {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  transition: transform 0.3s ease;
  cursor: pointer;
  flex: 0 0 auto;
  max-width: 160px;
}
@media (max-width: 768px) {
  .recommendations .recommended-books .recommended-book {
    width: 120px;
  }
}
.recommendations .recommended-books .recommended-book:hover {
  transform: translateY(-5px);
}
.recommendations .recommended-books .recommended-book img {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .recommendations .recommended-books .recommended-book img {
    width: 120px;
    height: 160px;
  }
}
.recommendations .recommended-books .recommended-book h3 {
  font-size: 14px;
  margin: 0 0 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  line-height: 24px;
}
.recommendations .recommended-books .recommended-book p {
  font-size: 12px;
  color: #666;
}
.recommendations .recommended-books .recommended-book .add-to-shelf-btn, .recommendations .recommended-books .recommended-book .add-to-shelf-btn-no {
  padding: 8px;
  background-color: transparent;
  border: 1px solid #5672f6;
  color: #5672f6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-weight: 500;
}
.recommendations .recommended-books .recommended-book .add-to-shelf-btn:hover, .recommendations .recommended-books .recommended-book .add-to-shelf-btn-no:hover {
  background-color: #5672f6;
  color: #fff;
}
.recommendations .recommended-books .recommended-book .add-to-shelf-btn.added, .recommendations .recommended-books .recommended-book .add-to-shelf-btn-no.added {
  background-color: #28a745;
  color: #fff;
  border-color: #28a745;
}

.swiper-container {
  width: 100%;
  display: none;
  margin-top: 20px;
  overflow: hidden;
  position: relative;
}
.swiper-container .swiper-slide {
  width: 160px !important;
  height: auto;
  position: relative;
}
.swiper-container .swiper-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
}
.swiper-container .recommended-book {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: auto;
}
.swiper-container .recommended-book img {
  height: 180px;
}
.swiper-container .recommended-book .add-to-shelf-btn {
  padding: 10px 15px;
  font-size: 14px;
  min-height: 44px;
  border-width: 2px;
  margin-top: 5px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  -webkit-tap-highlight-color: rgba(86, 66, 233, 0.2);
}
.swiper-container .recommended-book .add-to-shelf-btn:active {
  transform: scale(0.95);
  background-color: rgba(86, 66, 233, 0.1);
}
.swiper-container .swiper-pagination {
  position: relative;
  bottom: -10px;
  margin-top: 15px;
}
.swiper-container .swiper-pagination.swiper-pagination-bullets {
  bottom: 0px;
  position: relative;
  margin-top: 15px;
}
.swiper-container .swiper-button-next,
.swiper-container .swiper-button-prev {
  display: none !important;
}

.message-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  max-width: 300px;
}
.message-container .message {
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 4px;
  color: #fff;
  opacity: 1;
  transition: opacity 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.message-container .message.hide {
  opacity: 0;
}
.message-container .message.message-success {
  background-color: #28a745;
}
.message-container .message.message-error {
  background-color: #dc3545;
}
.message-container .message.message-info {
  background-color: #17a2b8;
}
.message-container .message.message-warning {
  background-color: #ffc107;
}

.book-options-menu {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-width: 160px;
}
.book-options-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.book-options-menu ul li {
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.book-options-menu ul li:hover {
  background-color: #f5f5f5;
}
.book-options-menu ul li i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.reading-history h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
  padding-bottom: 10px;
  margin-top: 30px;
}
.reading-history .history-books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.reading-history .history-book-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  height: 100%;
}
.reading-history .history-book-item .book-cover {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
}
.reading-history .history-book-item .book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reading-history .history-book-item .book-progress {
  width: 100%;
  margin: 5px 0;
}
.reading-history .history-book-item .book-progress .progress-bar {
  height: 5px;
  background-color: #eee;
  border-radius: 3px;
  overflow: hidden;
}
.reading-history .history-book-item .book-progress .progress-bar .progress-fill {
  height: 100%;
  background-color: #5672f6;
}
.reading-history .history-book-item .book-info {
  width: 100%;
  overflow: hidden;
}
.reading-history .history-book-item .book-info .book-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reading-history .history-book-item .book-info .book-chapter {
  font-size: 14px;
  color: #333;
  margin: 0 0 5px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reading-history .history-book-item .book-info .book-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}
.reading-history .history-book-item .book-info .book-meta .book-author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}
.reading-history .history-book-item .book-info .book-meta .read-time {
  font-style: italic;
  font-size: 12px;
}
.reading-history .history-book-item .continue-reading-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background-color: #5672f6;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.2s ease;
  margin-top: auto;
}
.reading-history .history-book-item .continue-reading-btn i {
  margin-right: 6px;
}
.reading-history .history-book-item .continue-reading-btn:hover {
  background-color: rgb(37.5786516854, 73.6011235955, 243.4213483146);
}

@media (max-width: 992px) {
  .reading-history {
    padding: 20px;
  }
  .reading-history h2 {
    font-size: 20px;
  }
  .reading-history .history-books {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }
  .reading-history .history-book-item {
    padding: 10px;
  }
  .reading-history .history-book-item .book-cover {
    height: 210px;
  }
  .reading-history .history-book-item .book-info .book-title {
    font-size: 15px;
  }
  .reading-history .history-book-item .book-info .book-chapter {
    font-size: 13px;
  }
  .reading-history .history-book-item .book-info .book-meta {
    font-size: 12px;
  }
  .reading-history .history-book-item .continue-reading-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
}
@media (max-width: 768px) {
  .reading-history {
    padding: 15px;
  }
  .reading-history .history-books {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
  .reading-history .history-book-item {
    padding: 8px;
  }
  .reading-history .history-book-item .book-cover {
    height: 180px;
  }
  .reading-history .history-book-item .book-info .book-title {
    font-size: 14px;
  }
  .reading-history .history-book-item .book-info .book-chapter {
    font-size: 12px;
  }
  .reading-history .history-book-item .book-info .book-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .reading-history .history-book-item .book-info .book-meta .book-author {
    max-width: 100%;
  }
  .reading-history .history-book-item .continue-reading-btn {
    padding: 6px 8px;
    font-size: 12px;
  }
  .reading-history .history-book-item .continue-reading-btn i {
    margin-right: 4px;
  }
}
@media (max-width: 480px) {
  .reading-history .history-books {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*# sourceMappingURL=bookshelf.css.map */
