/* ============================================
   READ JOURNEY - Mobile App Design System
   ============================================ */

/* CSS Variables */
:root {
  --primary: #4A90E2;
  --primary-dark: #357ABD;
  --primary-light: #EBF3FC;
  --secondary: #50E3C2;
  --accent: #E94E77;
  --accent-light: #FDEEF2;

  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface2: #F0F4F8;

  --text-primary: #1A1F36;
  --text-secondary: #6B7A9A;
  --text-hint: #A0AABF;
  --text-on-primary: #FFFFFF;

  --border: #E4E9F2;
  --divider: #EEF1F8;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.08);
  --shadow-fab: 0 6px 20px rgba(74,144,226,0.4);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;

  --app-bar-h: 56px;
  --bottom-nav-h: 64px;
  --search-bar-h: 60px;

  --status-to-read: #F59E0B;
  --status-reading: #4A90E2;
  --status-finished: #10B981;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; outline: none; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-family: inherit; outline: none; }
a { text-decoration: none; color: inherit; }

/* App Container */
#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}

/* ============================================
   APP BAR
   ============================================ */
.app-bar {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  height: var(--app-bar-h);
  padding: 0 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.app-bar-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  padding: 0 8px;
}

.app-bar-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-primary);
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.app-bar-btn:active { background: var(--surface2); transform: scale(0.92); }

.app-bar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-bar-container {
  z-index: 99;
  background: var(--surface);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border-radius: var(--radius-full);
  padding: 0 16px;
  height: 40px;
}

.search-bar svg { color: var(--text-hint); flex-shrink: 0; }

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--text-primary);
  min-width: 0;
}
.search-bar input::placeholder { color: var(--text-hint); }

#clearSearchBtn {
  color: var(--text-hint);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}
#clearSearchBtn:active { background: var(--border); }

/* ============================================
   SCREENS CONTAINER
   ============================================ */
.screens-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.screen.slide-left {
  transform: translateX(-20px);
  opacity: 0;
}

.screen-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 16px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screen-scroll::-webkit-scrollbar { display: none; }

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
  display: flex;
  height: var(--bottom-nav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-hint);
  transition: var(--transition-fast);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.nav-item.active { color: var(--primary); }

.nav-item::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 56px;
  height: 28px;
  background: var(--primary-light);
  border-radius: 14px;
  transition: transform 0.2s ease;
}
.nav-item.active::before { transform: translateX(-50%) scaleX(1); }

.nav-icon {
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease;
}
.nav-item.active .nav-icon { transform: scale(1.1); }
.nav-item:active .nav-icon { transform: scale(0.88); }

.nav-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 1;
}

/* ============================================
   FAB
   ============================================ */
.fab {
  position: absolute;
  bottom: calc(var(--bottom-nav-h) + 20px);
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
  z-index: 90;
  transition: var(--transition);
}
.fab:active { transform: scale(0.92); box-shadow: 0 3px 10px rgba(74,144,226,0.3); }
.fab.fab--hidden { transform: scale(0) translateY(20px); opacity: 0; pointer-events: none; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 12px;
}

/* ============================================
   STATS ROW
   ============================================ */
.stats-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.stat-card {
  flex: 1;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-top: 3px solid var(--primary);
}
.stat-card--reading { border-color: var(--status-reading); }
.stat-card--finished { border-color: var(--status-finished); }

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  margin-top: 4px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.section-action {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.section-action:active { background: var(--primary-light); }

/* ============================================
   PROGRESS CARD
   ============================================ */
.progress-card {
  padding: 16px;
  margin-bottom: 20px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.progress-label span:last-child {
  font-weight: 600;
  color: var(--primary);
}

.progress-bar-track {
  height: 8px;
  background: var(--surface2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-goal-text {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-hint);
  text-align: center;
}

/* ============================================
   GENRE CARD
   ============================================ */
.genre-card {
  padding: 16px;
  margin-bottom: 20px;
}

.genre-item {
  margin-bottom: 12px;
}
.genre-item:last-child { margin-bottom: 0; }

.genre-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.genre-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.genre-count {
  font-size: 12px;
  color: var(--text-secondary);
}
.genre-bar-track {
  height: 5px;
  background: var(--surface2);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.genre-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* ============================================
   BOOK LIST ITEMS
   ============================================ */
.book-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.book-item:active { transform: scale(0.98); background: var(--surface2); }
.book-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.15s;
  border-radius: inherit;
}
.book-item:active::after { opacity: 0.03; }

.book-cover {
  width: 44px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.book-info {
  flex: 1;
  min-width: 0;
}

.book-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.book-author {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.book-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-badge--to-read { background: #FEF3C7; color: #92400E; }
.status-badge--reading { background: #DBEAFE; color: #1E40AF; }
.status-badge--finished { background: #D1FAE5; color: #065F46; }

.book-genre-tag {
  font-size: 11px;
  color: var(--text-hint);
}

.book-chevron {
  color: var(--text-hint);
  flex-shrink: 0;
}

/* Currently reading card variant */
.book-item--featured {
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
}
.book-item--featured .book-cover {
  width: 100%;
  height: 100px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  font-size: 36px;
}
.book-item--featured .book-info { width: 100%; }
.book-item--featured .book-title { font-size: 16px; white-space: normal; margin-bottom: 4px; }
.book-item--featured .book-author { font-size: 13px; margin-bottom: 8px; }

/* ============================================
   FILTER CHIPS
   ============================================ */
.filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  flex-shrink: 0;
}
.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: var(--transition-fast);
  border: 1.5px solid transparent;
  flex-shrink: 0;
}
.chip--active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.chip:active { transform: scale(0.95); }

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 240px;
  line-height: 1.5;
}

.empty-mini {
  padding: 12px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-hint);
}

.empty-state-mini {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-hint);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(74,144,226,0.3);
  transition: var(--transition);
}
.btn-primary:active { transform: scale(0.96); background: var(--primary-dark); }

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(74,144,226,0.3);
  transition: var(--transition);
  margin-top: 8px;
}
.btn-submit:active { transform: scale(0.98); background: var(--primary-dark); }

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.icon-btn:active { background: var(--surface2); transform: scale(0.9); }

/* ============================================
   OVERLAY
   ============================================ */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}
.overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ============================================
   BOTTOM SHEET
   ============================================ */
.bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 300;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
}
.bottom-sheet.open { transform: translateY(0); }

.bottom-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: 12px auto 0;
  flex-shrink: 0;
}

.bottom-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  flex-shrink: 0;
}

.bottom-sheet-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.bottom-sheet-body {
  overflow-y: auto;
  padding: 8px 16px 0;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* ============================================
   FORM FIELDS
   ============================================ */
.form-field {
  position: relative;
  margin-bottom: 18px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-field--half { flex: 1; }

.form-input {
  width: 100%;
  height: 52px;
  padding: 16px 14px 4px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-primary);
  transition: var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(74,144,226,0.15);
}

.form-label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-hint);
  transition: var(--transition-fast);
  pointer-events: none;
  transform-origin: left top;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  transform: translateY(-100%) scale(0.82);
  top: 28px;
  color: var(--primary);
  font-weight: 500;
}

.form-label--float {
  top: 28px;
  transform: translateY(-100%) scale(0.82);
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-select {
  cursor: pointer;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%236B7A9A'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
}

.form-select:focus + .form-label--float { color: var(--primary); }

.form-input--date {
  padding-top: 20px;
  padding-bottom: 6px;
  font-size: 13px;
}

.form-textarea {
  height: auto;
  padding-top: 22px;
  resize: none;
  line-height: 1.5;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  transform: translateY(-100%) scale(0.82);
  top: 28px;
  color: var(--primary);
  font-weight: 500;
}

.form-error {
  display: block;
  font-size: 11px;
  color: var(--accent);
  margin-top: 4px;
  padding-left: 2px;
  min-height: 16px;
}

/* ============================================
   DIALOG
   ============================================ */
.dialog-overlay {
  position: absolute;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }

.dialog {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dialog-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.dialog-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.dialog-btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-fast);
}
.dialog-btn--cancel {
  color: var(--text-secondary);
  background: var(--surface2);
}
.dialog-btn--cancel:active { background: var(--border); }
.dialog-btn--confirm {
  background: var(--accent);
  color: white;
}
.dialog-btn--confirm:active { transform: scale(0.96); background: #D43F68; }

/* ============================================
   SNACKBAR
   ============================================ */
.snackbar {
  position: absolute;
  bottom: calc(var(--bottom-nav-h) + 16px);
  left: 16px;
  right: 16px;
  background: #1A1F36;
  color: white;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  z-index: 500;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.snackbar.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   BOOK DETAIL SCREEN
   ============================================ */
.detail-header {
  padding: 0 0 20px;
}

.detail-cover {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  margin-bottom: 16px;
}

.detail-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.detail-author {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.detail-actions {
  display: flex;
  gap: 10px;
}

.detail-action-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}
.detail-action-btn--edit {
  background: var(--primary-light);
  color: var(--primary);
}
.detail-action-btn--delete {
  background: var(--accent-light);
  color: var(--accent);
}
.detail-action-btn:active { transform: scale(0.96); }

.detail-info-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.detail-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--divider);
}
.detail-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.detail-info-row:first-child { padding-top: 0; }

.detail-info-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.detail-info-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  max-width: 60%;
}

.detail-notes-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.detail-notes-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.detail-notes-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
  font-style: italic;
}

/* ============================================
   LOG ENTRY ITEMS
   ============================================ */
.log-entry {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.log-entry-cover {
  width: 40px;
  height: 54px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.log-entry-info { flex: 1; min-width: 0; }

.log-entry-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-entry-author {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.log-entry-date {
  font-size: 11px;
  color: var(--text-hint);
}

.log-entry-pages {
  font-size: 13px;
  font-weight: 600;
  color: var(--status-finished);
  flex-shrink: 0;
  text-align: right;
}

/* ============================================
   WISH LIST ITEMS
   ============================================ */
.wishlist-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 12px;
  align-items: center;
  transition: var(--transition-fast);
}
.wishlist-item:active { transform: scale(0.98); background: var(--surface2); }

.wishlist-cover {
  width: 44px;
  height: 60px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  font-weight: 700;
}

.wishlist-info { flex: 1; min-width: 0; }
.wishlist-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wishlist-author {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.wishlist-genre {
  font-size: 11px;
  color: var(--text-hint);
}

.wishlist-heart {
  color: var(--accent);
  flex-shrink: 0;
}

/* ============================================
   SKELETON LOADING
   ============================================ */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--divider) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================
   MISC
   ============================================ */
.genre-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
}
