.bookshelf-stats {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-around;
  text-align: center;
}
.bookshelf-stats .stat-item {
  flex: 1;
}
.bookshelf-stats .stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4284ee;
}
.bookshelf-stats .stat-label {
  font-size: 0.75rem;
  color: #999;
  margin-top: 5px;
}
.book-time-info {
  font-size: 0.7rem;
  color: #999;
  margin-top: 5px;
}
.book-chapter-info {
  font-size: 0.75rem;
  color: #4284ee;
  margin-top: 5px;
  font-weight: 500;
}
.empty-bookshelf {
  text-align: center;
  padding: 60px 20px;
}
.empty-bookshelf svg {
  width: 80px;
  height: 80px;
  fill: #ddd;
  margin-bottom: 20px;
}
.empty-bookshelf p {
  color: #999;
  font-size: 1rem;
  margin-bottom: 20px;
}
.empty-bookshelf a {
  display: inline-block;
  padding: 10px 30px;
  background: #4284ee;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
}
.btn-tag-link {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #eca2a2 0%, #d93a42 100%);
  border-color: #FF3955;
  color: #fff !important;
  border-radius: 4px;
  font-size: 0.7rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(66, 132, 238, 0.3);
}
.btn-tag-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 132, 238, 0.4);
}

.btn-tag-link-unme {
  display: inline-block;
  padding: 6px 16px;
  background: #fff;
  border-color: #FF3955;
  color: #b43535 !important;
  border-radius: 4px;
  font-size: 0.7rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(66, 132, 238, 0.3);
}
.btn-tag-link-unme:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 132, 238, 0.4);
}

.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.loading-state .loading-spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4284ee;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-state .loading-text {
  font-size: 1rem;
  color: #666;
  margin-top: 15px;
}

.loading-state .loading-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}
.module-merge .book-ol {
  padding: 0;
}
.module-merge .book-li:last-child::after {
  display: block;
}
.modal-button-group {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.modal-btn-secondary {
  padding: 0.625rem 1.5rem;
  background: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.modal-btn-secondary:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show {
  display: flex;
}
.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 320px;
  width: 90%;
  text-align: center;
  animation: modalSlideIn 0.3s ease;
  border: 2px solid #ff3955;
}
@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.modal-icon.success {
  background: #ffc7ce;
  color: #ff3955;
}
.modal-icon.error {
  background: #ffebee;
  color: #ff4757;
}
.modal-title {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.modal-message {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.modal-btn {
  padding: 0.625rem 1.5rem;
  background: linear-gradient(135deg, #ff3955 0%, #ff1744 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 57, 85, 0.3);
}
@media screen and (min-width: 768px) {
  .bookshelf-stats .stat-value {
    font-size: 1.8rem;
  }
  .bookshelf-stats .stat-label {
    font-size: 0.85rem;
  }
  .book-time-info {
    font-size: 0.8rem;
  }
  .empty-bookshelf p {
    font-size: 1.1rem;
  }
  .modal-content {
    max-width: 400px;
  }
  .modal-title {
    font-size: 1.4rem;
  }
  .modal-message {
    font-size: 0.95rem;
  }
}