/* Components */
.card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
}

.card-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.card-body {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 12px;
  background-color: rgba(103, 128, 99, 0.2);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  margin-right: 5px;
  margin-bottom: 5px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.modal-title {
  margin: 0;
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Reader Controls */
.reader-controls {
  position: sticky;
  top: 0;
  background-color: var(--surface-color);
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 15px;
  align-items: center;
  z-index: 100;
}

.reader-progress {
  height: 4px;
  background-color: var(--border-color);
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
}

.reader-progress-bar {
  height: 100%;
  background-color: var(--accent-color);
  width: 0%;
  transition: width 0.2s ease;
}

/* Image Placeholders */
.image-placeholder {
  background-color: var(--surface-color);
  border: 1px dashed var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--border-color);
  font-style: italic;
  min-height: 200px;
  border-radius: 4px;
}