/* ============================
FILE: style.css FINAL
============================ */

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

/* VARIABLES */
:root {
  --bg:#0F0F0F;
  --card:#1A1A1A;
  --muted:#AAA;
  --accent:#00A86B;
  --neon:#39FF14;
  --blue:#2DA8FF;
  --danger:#D0342C;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: #E8E8E8;
}

/* MAIN WRAPPER */
.page-container {
  width: 90%;
  max-width: 1000px;
  margin: 18px auto;
  padding-bottom: 120px;
}

/* ============================
NAVIGATION
============================ */
.desktop-nav {
  display: none;
}

.mobile-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111;
  padding: 10px 0;
  border-top: 1px solid #222;
  z-index: 99;
}

.mobile-nav a {
  color: #ccc;
  text-decoration: none;
  text-align: center;
  font-size: 12px;
}

.mobile-nav a.active {
  color: var(--accent);
  font-weight: 700;
}

@media(min-width:768px) {
  .desktop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    padding: 14px 40px;
    background: var(--bg);
    border-bottom: 1px solid #111;
    z-index: 99;
  }
  .desktop-nav .logo {
    color: var(--accent);
    font-weight: 700;
    font-size: 20px;
  }
  .desktop-nav .nav-links a {
    margin-left: 22px;
    color: #ccc;
    text-decoration: none;
  }
  .desktop-nav .nav-links a.active {
    color: var(--accent);
  }
  .mobile-nav {
    display: none;
  }
  body {
    padding-top: 72px;
  }
  .page-container {
    padding-top: 18px;
  }
}

/* ============================
CARDS + GRID GENERIC
============================ */
.section-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #222;
  margin-bottom: 18px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
}

@media(min-width:768px) {
  .book-grid {
    grid-template-columns: repeat(4,1fr);
  }
}

/* ============================
HOME — KOLEKSI BUKU SLIDER KECIL
============================ */

.home-collection-scroll {
  display: flex;
  overflow-x: auto;
  gap: 14px;
  padding-bottom: 12px;
  scroll-behavior: smooth;
}

.home-collection-scroll::-webkit-scrollbar {
  height: 6px;
}

.home-collection-scroll::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

.small-card {
  min-width: 160px;
  max-width: 200px;
  background: var(--card);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #222;
  transition: .2s;
  cursor: pointer;
}

.small-card:hover {
  transform: translateY(-3px);
  border-color: var(--neon);
}

.small-card img {
  width: 100%;
  height: 200px;    /* seragam */
  object-fit: cover;
  border-radius: 10px;
}

.small-card-title {
  font-size: 13px;
  margin-top: 6px;
  font-weight: 600;
}

.small-card-author {
  font-size: 11px;
  color: var(--muted);
}

/* ============================
BUKU TERBARU — LIST STYLE
============================ */

.latest-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #222;
  margin-bottom: 12px;
}

.latest-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

.latest-info {
  flex: 1;
}

.latest-title {
  font-size: 15px;
  font-weight: 600;
}

.latest-author {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

/* progress */
.latest-progress-bar {
  width: 100%;
  height: 8px;
  background: #333;
  border-radius: 10px;
  overflow: hidden;
}

.latest-progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
}

.latest-percent {
  font-size: 12px;
  margin-left: 8px;
}

/* ============================
EXPLORE PAGE — FINAL UI
============================ */

/* Search Bar Besar */
.explore-search-box {
  width: 100%;
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.search-large {
  width: 100%;
  padding: 18px 20px;
  font-size: 17px;
  border-radius: 14px;
  border: 2px solid #333;
  background: #1A1A1A;
  color: white;
  outline: none;
  transition: .2s;
}

.search-large:focus {
  border-color: #00ffc6;
}

/* Category Section */
.category-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.category-btn {
  padding: 10px 18px;
  border-radius: 12px;
  background: #222;
  color: #fff !important;
  border: 1px solid #333;
  cursor: pointer;
  font-size: 14px;
  transition: .2s;
}

.category-btn:hover {
  border-color: #00ffc6;
}

.category-btn.active {
  background: #00ffc6;
  color: #000 !important;
  font-weight: 600;
}

/* Explore Title */
.explore-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 10px;
}

.explore-title-row h1 {
  color: white;
  font-size: 28px;
}

.explore-title-row span {
  color: #00ffc6;
  font-size: 16px;
}

/* ============================
EXPLORE – LIST CARD PANJANG
============================ */

.explore-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.explore-item {
  display: flex;
  gap: 14px;
  background: #1c1c1c;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #2a2a2a;
  cursor: pointer;
  transition: .2s;
}

.explore-item:hover {
  border-color: #00ffc6;
  transform: translateY(-3px);
}

.explore-item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

/* text */
.explore-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.explore-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}

.explore-author {
  font-size: 14px;
  color: #aaa;
}



/* BUTTON GROUP */
.explore-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* BUTTON STYLES */
.btn-ex {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-done { background: #00c853; }   /* green */
.btn-not  { background: #ff9100; }   /* orange */
.btn-edit { background: #ffd600; color:#000; } /* yellow */
.btn-del  { background: #ff1744; }   /* red */

.btn-done:hover {
  background: #00a042; /* Hijau yang lebih gelap */
}

.btn-not:hover {
  background: #cc7400; /* Oranye yang lebih gelap */
}



.btn-del:hover {
  background: #d4143a; /* Merah yang lebih gelap */
}

.btn-ex i {
  font-size: 16px;
}

/* ============================
GLOBAL PROGRESS BAR — FIX
============================ */
.progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.progress-label {
  font-size: 14px;
  font-weight: 600;
  color: #ccc;
  min-width: 40px;
  text-align: right;
}



/* selesai */



.completed-badge {
  display: inline-block;
  background: #c6f6d5;
  color: #22543d;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}


/* EXPLORE CATEGORY – MOBILE SLIDER */
@media (max-width: 768px) {

  .category-wrap {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 6px 2px 10px;
    scroll-snap-type: x mandatory;
  }

  .category-wrap::-webkit-scrollbar {
    height: 6px;
  }

  /* scrollbar warna mint indikasi geser */
  .category-wrap::-webkit-scrollbar-thumb {
    background: #00ffc6;
    border-radius: 10px;
  }

  .category-wrap::-webkit-scrollbar-track {
    background: #222;
  }

  .category-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 18px;
    border-radius: 12px;
    background: #00ffc6;     /* 🌟 kotak mint */
    color: #000 !important;  /* teks hitam */
    border: 1px solid #00ffc6;
    font-weight: 600;
    scroll-snap-align: start;
    box-shadow: 0 0 8px #00ffc6aa; /* glow halus */
  }

  /* active berubah ke mode inverse supaya jelas */
  .category-btn.active {
    background: #fff;
    border-color: #00ffc6;
    color: #000 !important;
    box-shadow: 0 0 10px #00ffc6bb;
  }
}
/* ============================
RESPONSIVE EXPLORE ITEM
============================ */
@media (max-width: 768px) {

  .explore-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
  }

  .explore-item img {
    width: 90px;
    height: 90px;
  }

  .explore-info {
    width: 100%;
  }

  /* Judul lebih kecil agar tidak meledak keluar */
  .explore-title {
    font-size: 16px;
  }

  .explore-author {
    font-size: 13px;
  }

  /* progress full width */
  .progress-container {
    flex-direction: row;
    width: 100%;
  }

  /* BUTTONS → jadi 2 baris, tidak keluar dari card */
  .explore-buttons {
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
    margin-top: 12px;
  }

  .btn-ex {
    flex: 1 1 calc(50% - 8px); /* 2 tombol per baris */
    justify-content: center;
  }

  .progress-label {
    font-size: 12px;
    min-width: 32px;
    color: #ddd; /* lebih terang biar kelihatan di dark mode */
  }

}
/* =============================================
EXPLORE PROGRESS BAR — FINAL FIX (NO CONFLICT)
============================================= */

.explore-progress-box {
  width: 100%;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.explore-progress-text {
  font-size: 13px;
  font-weight: 600;
  color: #eaeaea;
  min-width: 34px;
  text-align: right;
}

.explore-progress-track {
  flex: 1;
  height: 8px;
  background: #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
}

.explore-progress-fill {
  height: 100%;
  background: #00ffc6;
  width: 0%;
  transition: width .3s ease;
}

.explore-progress-fill.complete {
  background: #00c853;
}

/* MOBILE */
@media (max-width: 768px) {
  .explore-progress-box {
    gap: 6px;
  }
  .explore-progress-text {
    font-size: 12px;
    min-width: 28px;
  }
  .explore-progress-track {
    height: 6px;
  }
}


/* ============================
SAVE PAGE (SMALL CARDS)
============================ */
.book-save-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #222;
  transition: .2s;
}

.book-save-card:hover {
  transform: translateY(-3px);
  border-color: var(--neon);
}

.book-save-card img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
}

.book-info {
  flex: 1;
}

.book-save-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}

.year-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #262626;
  border: 1px solid #444;
}

.book-save-author {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

/* Progress */
.progress-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.progress-bar-container {
  flex: 1;
  background: #333;
  height: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
}

.progress-bar-fill.orange {
  background: orange;
}

.progress-percent {
  font-size: 13px;
  min-width: 36px;
  text-align: right;
}

/* Tambahkan ke style.css */
.book-save-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-save {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #2d2d2d;
  color: #e0e0e0;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-save:hover {
  background: #3d3d3d;
  transform: translateY(-1px);
}

.btn-save i {
  font-size: 14px;
}

.btn-mark-complete {
  border-color: #48bb78;
  color: #48bb78;
}

.btn-mark-complete:hover {
  background: rgba(72, 187, 120, 0.1);
}

.btn-mark-incomplete {
  border-color: #4299e1;
  color: #4299e1;
}

.btn-mark-incomplete:hover {
  background: rgba(66, 153, 225, 0.1);
}

.btn-edit {
  border-color: #d69e2e;
  color: #d69e2e;
}

.btn-edit:hover {
  background: rgba(214, 158, 46, 0.1);
}

.btn-delete {
  border-color: #f56565;
  color: #f56565;
}

.btn-delete:hover {
  background: rgba(245, 101, 101, 0.1);
}

/* =============================================
SAVE PAGE — RESPONSIVE MOBILE FIX
============================================= */
@media (max-width: 768px) {

  .book-save-card {
    flex-direction: column;        /* from row → column */
    align-items: flex-start;
    padding: 12px;
    gap: 12px;
  }

  .book-save-card img {
    width: 90px;                   /* lebih kecil */
    height: 90px;
    border-radius: 10px;
  }

  .book-info {
    width: 100%;                   /* biar teks ikut lebar card */
  }

  .book-save-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .year-badge {
    font-size: 11px;
    padding: 3px 8px;
  }

  /* Progress area mobile */
  .progress-area {
    width: 100%;
    gap: 6px;
  }

  .progress-bar-container {
    height: 7px;
    border-radius: 6px;
  }

  .progress-percent {
    font-size: 12px;
    min-width: 30px;
  }

  /* BUTTONS RESPONSIVE — jadi 2 kolom */
  .book-save-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  .btn-save {
    flex: 1 1 calc(50% - 8px);  /* 2 tombol per baris */
    justify-content: center;
    text-align: center;
  }
}


/* ============================
ADD BOOK
============================ */
.cover-box {
  border: 2px dashed #333;
  padding: 36px 18px;
  border-radius: 12px;
  text-align: center;
  background: #161616;
  cursor: pointer;
  transition: border .2s;
}

.cover-box:hover {
  border-color: var(--blue);
}

.add-input,
.add-textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #141414;
  color: #eee;
  transition: border .2s;
}

.add-input:focus,
.add-input:hover,
.add-textarea:focus,
.add-textarea:hover {
  border-color: var(--blue);
  outline: none;
}

.add-textarea {
  min-height: 120px;
  resize: vertical;
}

.check-card {
  background: var(--card);
  border: 1px solid #333;
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: fit-content;
  transition: .2s;
}

.check-card:hover {
  border-color: var(--blue);
}

.submit-btn {
  margin-top: 18px;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  color: #000;
  transition: .2s;
}

.submit-btn:hover {
  background: var(--blue);
  color: #fff;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #E8E8E8;
}

/* container grid for category cards (2 kolom) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

/* cat-card (used in add_book.html) */
.cat-card {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid #333;
  color: #E8E8E8;
  text-align: center;
  cursor: pointer;
  transition: border .18s ease, background .18s ease, transform .18s;
  user-select: none;
}

/* hover and focus */
.cat-card:hover,
.cat-card:focus {
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* active state */
.cat-card.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 700;
}

/* support .category-btn as alias (in case other pages use it) */
.category-btn, .cat-card {
  font-size: 14px;
}

/* preview */
.cover-preview {
  max-width: 140px !important;      /* Ukuran lebih kecil */
  max-height: 180px !important;     /* Ukuran lebih kecil */
  width: auto;
  height: auto;
  border-radius: 10px;
  object-fit: contain;              /* Gambar utuh terlihat */
  display: block;
  margin: 0 auto;
}

/* Cover box khusus untuk edit */
.cover-box.edit-mode {
  padding: 24px 12px;    /* Padding lebih kecil */
  min-height: 200px;     /* Tinggi minimum dikurangi */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Untuk mode upload cover baru */
.cover-preview.uploaded {
  max-width: 120px;
  max-height: 160px;
  border: 2px dashed var(--accent);
}

/* Responsif untuk mobile */
@media (max-width: 480px) {
  .cover-preview {
    max-width: 120px;
    max-height: 160px;
  }
  
  .cover-box {
    padding: 20px 10px;
  }
}

/* ============================
DETAIL BOOK - IMPROVED
============================ */

/* Back button yang lebih baik */
.back-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
}

.back-btn {
  background: var(--card);
  border: 1px solid #333;
  color: #e0e0e0;
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.back-btn:hover {
  background: #2a2a2a;
  border-color: var(--accent);
  transform: translateX(-2px);
}

.back-btn span {
  font-size: 18px;
}

/* Main container */
.detail-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Cover wrapper */
.cover-wrapper {
  width: 200px;
  height: 280px;
  margin-top: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border-radius: 16px;
  border: 2px solid #333;
  overflow: hidden;
}

.cover-img {
  width: 200px;          /* Perkecil dari 220px */
  height: 280px;         /* Perkecil dari proporsi tinggi */
  border-radius: 14px;
  margin-top: 20px;      /* Kurangi margin atas */
  object-fit: cover;     /* Tetap cover untuk detail */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* Fallback jika gambar error */
.cover-wrapper::before {
  content: "📚";
  font-size: 80px;
  position: absolute;
  opacity: 0.3;
  display: none;
}

.cover-img[src*="bukuku.png"] {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.book-title {
  font-size: 28px;
  margin-top: 24px;
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
  padding: 0 20px;
}

.book-author {
  margin-top: 8px;
  font-size: 16px;
  color: #aaa;
  text-align: center;
  padding: 0 20px;
}

/* Icon buttons */
.icon-row {
  margin-top: 24px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #333;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 22px;
  color: #e0e0e0;
}

.icon-btn:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: #2a2a2a;
}

/* Cards */
.card {
  width: 100%;
  max-width: 700px;
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  border: 1px solid #333;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent);
}

.desc-box {
  background: #0f0f0f;
  border-radius: 12px;
  border: 1px solid #333;
  padding: 16px;
  line-height: 1.6;
  color: #ccc;
  min-height: 100px;
}

/* Progress section */
.progress-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.progress-bar-wrapper {
  flex: 1;
  background: #222;
  height: 12px;
  border-radius: 20px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4299e1, #3182ce);
  border-radius: 20px;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-slider {
  width: 100%;
  height: 6px;
  margin-top: 10px;
  -webkit-appearance: none;
  appearance: none;
  background: #333;
  border-radius: 10px;
  outline: none;
}

.progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #fff;
}

.progress-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #fff;
}

.percent-value {
  background: var(--card);
  border: 1px solid var(--accent);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
}

/* Detail rows */
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #333;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: #aaa;
  font-size: 15px;
}

.detail-value {
  font-weight: 500;
  font-size: 15px;
}

.status-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.orange-chip {
  background: #ff9900;
  color: #000;
}

.green-chip {
  background: #48bb78;
  color: #000;
}

/* Responsive */
@media (max-width: 768px) {
  .back-container {
    top: 15px;
    left: 15px;
  }
  
  .back-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .detail-container {
    padding: 70px 16px 30px;
  }
  
  .cover-wrapper {
    width: 200px;
    height: 280px;
  }
  
  .book-title {
    font-size: 24px;
  }
  
  .icon-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .cover-wrapper {
    width: 180px;
    height: 240px;
  }
  
  .book-title {
    font-size: 22px;
  }
  
  .icon-row {
    gap: 12px;
  }
  
  .icon-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  .progress-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .percent-value {
    align-self: flex-start;
  }
}


/* FAB */
.desktop-fab {
  display: none;
}

@media(min-width:768px) {
  .desktop-fab {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--accent);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #000;
    font-size: 30px;
    position: fixed;
    right: 36px;
    bottom: 36px;
    text-decoration: none;
  }
}