:root{
  --gm-dark-brown:#3b2415;
  --gm-brown:#4b2a16;
  --gm-gold:#f3b533;
  --gm-light-gold:#ffef9a;
  --gm-orange:#e66b23;
  --gm-bg:#faf5ee;
  --gm-text:#2b1a10;
  --gm-shadow-lg:0 22px 40px rgba(0,0,0,.35);
  --gm-shadow-md:0 14px 30px rgba(0,0,0,.08);
  --gm-border-soft:1px solid rgba(0,0,0,.05);
}

/* ===== Global ===== */
*{ box-sizing:border-box; }

body{
  font-family:'Poppins',sans-serif;
  background:var(--gm-bg);
  color:var(--gm-text);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.gm-main{ flex:1 0 auto; }

.text-gm-gold{ color:var(--gm-gold); }

/* ===== Navbar ===== */
.gm-navbar{
  position:absolute;
  inset:0 0 auto 0;
  z-index:1000;
  padding:.4rem 0;
  border-bottom:2px solid rgba(255,255,255,.08);
  transition:background .3s ease, box-shadow .3s ease;
}

.gm-navbar .navbar-brand span{
  color:#fff;
  font-weight:600;
  font-size:1.05rem;
}
.gm-navbar .navbar-brand .text-gm-gold{ color:var(--gm-gold); }

.gm-navbar .nav-link{
  color:#f9f5e9;
  font-weight:500;
  font-size:.95rem;
}
.gm-navbar .nav-link:hover,
.gm-navbar .nav-link:focus{ color:var(--gm-light-gold); }

.gm-nav-signup{
  border-radius:999px;
  padding:.45rem 1.4rem;
  font-size:.9rem;
  font-weight:600;
  background:var(--gm-gold);
  border:1px solid var(--gm-gold);
  color:var(--gm-dark-brown);
  box-shadow:0 6px 16px rgba(0,0,0,.35);
}
.gm-nav-signup:hover,
.gm-nav-signup:focus{
  background:var(--gm-orange);
  border-color:var(--gm-orange);
  color:var(--gm-dark-brown);
}

.navbar-dark .navbar-toggler{ border-color:rgba(255,255,255,.4); }
.navbar-dark .navbar-toggler-icon{
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Shared Hero (index/catalog/book) ===== */
.gm-hero,
.gm-catalog-hero,
.gm-book-hero{
  position:relative;
  padding:6.2rem 0 2.6rem;
  color:#fff;
  background:
    linear-gradient(120deg, rgba(0,0,0,.88), rgba(0,0,0,.35)),
    url("../img/library.jfif") center/cover no-repeat fixed;
}

.gm-hero{ padding:6.2rem 0 2.2rem; min-height:auto; display:flex; align-items:center; }

.gm-hero-overlay,
.gm-catalog-hero-overlay,
.gm-book-hero-overlay{
  position:absolute;
  inset:0;
  background:radial-gradient(circle at top left, rgba(243,181,51,.22), transparent 60%);
  mix-blend-mode:soft-light;
  pointer-events:none;
}

.gm-hero-title,
.gm-hero-subtitle,
.gm-catalog-title,
.gm-catalog-subtitle,
.gm-book-hero-title,
.gm-book-hero-meta{
  text-shadow:0 4px 12px rgba(0,0,0,.9);
}

/* Index hero text */
.gm-hero-title{
  font-size:clamp(2.2rem, 2.1vw + .9rem, 2.95rem);
  line-height:1.12;
  font-weight:700;
}
.gm-hero-subtitle{ max-width:33rem; }
.gm-hero-highlight{ color:var(--gm-gold); white-space:nowrap; }

.gm-hero-badge{
  font-size:.8rem;
  padding:.25rem .9rem;
  border-radius:999px;
  background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.25);
  text-transform:uppercase;
  letter-spacing:.08em;
}
.gm-hero-dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--gm-gold);
  box-shadow:0 0 0 4px rgba(243,181,51,.4);
}

/* Catalog hero text */
.gm-catalog-title{
  font-size:clamp(2.1rem, 2.2vw + .9rem, 3rem);
  font-weight:800;
  letter-spacing:-.02em;
}
.gm-catalog-subtitle{ max-width:40rem; opacity:.92; }

/* Book hero text */
.gm-book-hero-title{
  font-size:clamp(2rem, 2.4vw + 1rem, 3.2rem);
  font-weight:900;
  letter-spacing:-.02em;
}
.gm-book-hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  align-items:center;
  opacity:.92;
}
.gm-book-hero-chips{ display:flex; flex-wrap:wrap; gap:.5rem; }

.gm-pill-soft{ background:rgba(255,255,255,.88); color:var(--gm-dark-brown); }

.gm-backlink{
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  text-decoration:none;
  color:rgba(255,255,255,.9);
  font-weight:700;
}
.gm-backlink:hover{ color:var(--gm-light-gold); text-decoration:underline; }

/* ===== Shared pill input groups (hero search + catalog filter) ===== */
.gm-hero-search-card{
  max-width: 36rem;
  background: transparent;
  padding: 0;
  border: none;
}

/* Outer pill */
.gm-hero-search .input-group,
.gm-filter-pill{
  border-radius: 999px;
  overflow: hidden;

  /* Book-details vibe: lighter + softer */
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 14px 34px rgba(0,0,0,.14);

  align-items: stretch;
}

/* font size */
.gm-hero-search .input-group,
.gm-hero-search-input,
.gm-hero-search-btn,
.gm-hero-search-icon{
  font-size: .9rem;
}

/* Left icon area */
.gm-hero-search-icon,
.gm-filter-icon{
  background: transparent;
  border: none;
  border-right: 1px solid rgba(0,0,0,.08);
  padding-inline: 1.05rem;

  display: flex;
  align-items: center;
  justify-content: center;
}

.gm-hero-search-icon i{
  font-size: 1.05rem;
  color: rgba(59,36,21,.55);
  padding-left: .3rem;
}
.gm-filter-icon i{ color: rgba(59,36,21,.55); }

/* Input */
.gm-hero-search-input,
.gm-filter-input{
  border: none;
  border-radius: 0;
  box-shadow: none !important;
  background: transparent;
  color: #2b1a10;
}

.gm-hero-search-input{ height: 2.85rem; }
.gm-hero-search-input:focus{ background: transparent; }

.gm-hero-search-input::placeholder,
.gm-filter-input::placeholder{
  color: rgba(59,36,21,.45);
}

/* Right button (flat gold like book page) */
.gm-hero-search-btn,
.gm-filter-btn{
  border-radius: 0;
  border: none;

  background: var(--gm-gold);
  color: #3b2415;

  font-weight: 800;
  padding-inline: 1.2rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.gm-hero-search-btn{ height: 2.85rem; }
.gm-hero-search-btn:hover,
.gm-hero-search-btn:focus,
.gm-filter-btn:hover{
  background: var(--gm-orange);
  color: #3b2415;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

/* Bootstrap input-group-lg override */
.gm-hero-search .input-group-lg > .form-control,
.gm-hero-search .input-group-lg > .btn,
.gm-hero-search .input-group-lg > .input-group-text{
  font-size: 1rem;
}

/* ===== Catalog Filter Card ===== */
.gm-filter-card{
  border-radius: 22px;
  padding: 1.2rem 1.2rem 1rem;

  /* Book-details feel */
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 22px 40px rgba(0,0,0,.28);
}

.gm-filter-select{
  border-radius: 14px;
  padding-top: .75rem;
  padding-bottom: .75rem;

  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.12);
}

.gm-filter-apply{
  border-radius: 14px;
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-weight: 800;
}

.gm-filter-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: .1rem;
}

/* Chips match book pills (cream + subtle border) */
.gm-chip{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  border-radius: 999px;

  background: rgba(255,255,255,.90);
  color: #3b2415;
  border: 1px solid rgba(0,0,0,.10);

  font-size: .85rem;
  font-weight: 600;
}

/* Clear link (subtle) */
.gm-clear{
  color: rgba(59,36,21,.75);
  font-size: .9rem;
  text-decoration: none;
}
.gm-clear:hover{
  color: #111;
  text-decoration: underline;
}

.gm-catalog-wrap,
.gm-book-wrap{
  background: var(--gm-bg);
}

/* ===== Pagination ===== */
.gm-pager{ display:block; }

.gm-pager-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.9rem;

  padding: .85rem 1rem;

  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;

  box-shadow: 0 14px 34px rgba(0,0,0,.10);
  backdrop-filter: blur(8px);
}

.gm-page-btn{
  display:inline-flex;
  align-items:center;
  gap:.25rem;

  padding: .45rem .85rem;
  border-radius: 999px;

  text-decoration:none;
  font-weight: 800;
  font-size: .9rem;

  background: var(--gm-gold);
  color: #3b2415;
  border: 1px solid rgba(0,0,0,.08);

  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.gm-page-btn:hover{
  background: var(--gm-orange);
  color:#3b2415;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
}

.gm-page-btn.is-disabled{
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.45);
  cursor: not-allowed;
  box-shadow:none;
}

.gm-page-numbers{
  display:flex;
  align-items:center;
  gap:.45rem;
  flex-wrap:wrap;
  justify-content:center;
}

.gm-page-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-width: 38px;
  height: 36px;
  padding: 0 .6rem;
  border-radius: 999px;

  text-decoration:none;
  font-weight: 900;
  font-size: .9rem;

  color: #3b2415;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);

  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.gm-page-chip:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,.10);
}

.gm-page-chip.is-active{
  background: rgba(243,181,51,.95);
  color: #3b2415;
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 12px 22px rgba(0,0,0,.12);
}

.gm-page-ellipsis{
  padding: 0 .25rem;
  color: rgba(0,0,0,.55);
  font-weight: 800;
}

@media (max-width:575.98px){
  .gm-pager-inner{
    flex-direction:column;
    align-items:stretch;
  }
  .gm-page-btn{ justify-content:center; }
}

/* ===== Book Cards ===== */
.gm-book-card{
  background:#fff;
  border-radius: 20px;
  overflow:hidden;

  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);

  transition: transform .22s ease, box-shadow .22s ease;
  display:flex;
  flex-direction:column;
  height:100%;
}

.gm-book-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0,0,0,.12);
}

.gm-book-top{
  position:relative;
  padding: 1rem;

  /* same warm neutral as book details */
  background:
    radial-gradient(circle at 20% 20%, rgba(243,181,51,.16), transparent 45%),
    linear-gradient(135deg, #fffdf7, #f6f0e5);
}

/* Cover (base) */
.gm-book-cover{
  height: 170px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.06);
  background-color: #fff;
  overflow: hidden;
}

/* Image cover */
.gm-book-cover.gm-book-cover-img{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Fallback cover */
.gm-book-cover.gm-book-cover-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 30% 20%, rgba(243,181,51,.14), transparent 55%),
    linear-gradient(135deg, #fffdf7, #fbf3e6);
}
.gm-book-cover.gm-book-cover-fallback i{
  font-size: 2rem;
  color: rgba(59,36,21,.55);
}

/* Badges */
.gm-book-badges{
  position:absolute;
  left:1rem; right:1rem; bottom:.9rem;
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}

.gm-pill{
  display:inline-flex;
  align-items:center;
  padding: .32rem .65rem;
  border-radius: 999px;

  font-size: .78rem;
  font-weight: 800;

  border: 1px solid rgba(0,0,0,.10);
  backdrop-filter: blur(6px);
}

.gm-pill-branch{
  background: rgba(255,255,255,.92);
  color: #3b2415;
}

.gm-pill-available{
  background: rgba(243,181,51,.95);
  color: #3b2415;
}

.gm-pill-out{
  background: rgba(0,0,0,.78);
  color: #fff;
  border-color: rgba(255,255,255,.12);
}

/* Book body */
.gm-book-body{
  padding: 1.05rem 1.1rem 1.1rem;
  display:flex;
  flex-direction:column;
  height:100%;
}

.gm-book-title{
  font-weight: 900;
  color: var(--gm-brown);
  line-height: 1.15;
}

.gm-book-meta{
  font-size: .88rem;
  color: rgba(0,0,0,.55);
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  align-items:center;
}
.gm-book-meta .gm-dot{ opacity:.7; }

.gm-book-desc{
  color:#333;
  font-size: .92rem;
  line-height: 1.45;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
}

.gm-book-btn{
  border-radius: 999px;
  padding-inline: .9rem;
}

/* Empty state */
.gm-empty{
  border-radius: 22px;
  padding: 2.2rem 1.6rem;
  text-align:center;

  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);

  max-width: 620px;
  margin: 0 auto;
}

.gm-empty-icon{
  width: 68px;
  height: 68px;
  border-radius: 50%;

  background: var(--gm-gold);
  display:flex;
  align-items:center;
  justify-content:center;

  margin: 0 auto 1rem;
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
}
.gm-empty-icon i{
  font-size: 1.5rem;
  color: #3b2415;
}

/* ===== Hero stats ===== */
@media (min-width:576px){
  .gm-hero-stats{
    display:grid !important;
    grid-template-columns:1fr 1.2fr;
    grid-template-rows:auto auto;
    column-gap:3rem;
    row-gap:.6rem;
    align-items:start;
    margin-left:0;
    max-width:36rem;
  }

  .gm-hero-stats > [class*="col-"]{
    width:auto !important;
    max-width:none !important;
    flex:none !important;
    padding:0 !important;
  }

  .gm-hero-stats > :nth-child(1){ grid-column:1; grid-row:1; }
  .gm-hero-stats > :nth-child(2){ grid-column:1; grid-row:2; }
  .gm-hero-stats > :nth-child(3){ grid-column:2; grid-row:1 / span 2; }
}

.gm-hero-stats > :nth-child(1) .gm-hero-stat,
.gm-hero-stats > :nth-child(2) .gm-hero-stat{
  display:flex;
  align-items:baseline;
  gap:.6rem;
}

.gm-hero-stats .gm-hero-stat-value{
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.gm-hero-stats .gm-hero-stat-label{
  font-size: .95rem;
  font-weight: 500;
  opacity: .9;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}

.gm-hero-stats > :nth-child(3) .gm-hero-stat{
  display:flex;
  flex-direction:column;
  gap:.35rem;
}

/* ===== Right hero card ===== */
.gm-hero-card{
  background:#fff;
  border-radius:22px;
  padding:1.45rem 1.35rem;
  box-shadow:var(--gm-shadow-lg);
  border:1px solid rgba(0,0,0,.04);
  color:#222;
  max-width:330px;
  margin-left:auto;
}

.gm-hero-card-header .fw-semibold{ font-size:.95rem; color:var(--gm-brown); }
.gm-hero-card-header small{ color:#777 !important; }
.gm-hero-card ul{ margin-bottom:1.2rem; }
.gm-hero-card ul li{ color:#333; line-height:1.35; }

.gm-hero-card .badge.bg-warning{
  background:var(--gm-gold) !important;
  border-color:var(--gm-gold) !important;
  color:var(--gm-dark-brown) !important;
  padding:.45rem .9rem;
  font-weight:600;
  font-size:.78rem;
  letter-spacing:.03em;
  box-shadow:0 8px 18px rgba(0,0,0,.15);
}
.gm-hero-card .badge.bg-light{
  background:#f5f5f5 !important;
  border-color:#dcdcdc !important;
  color:#333 !important;
  padding:.45rem .9rem;
  font-weight:500;
  font-size:.78rem;
}

.gm-hero-logo{ height:48px; }
.gm-hero-photo{
  aspect-ratio:16/9;
  max-width:280px;
  width:100%;
  border-radius:16px;
  background:url("../img/library_student.png") center/cover no-repeat;
}

/* ===== Features ===== */
.gm-feature-section{ padding:2rem 0 !important; }

.gm-feature-card{
  padding:1.7rem 1.5rem;
  border-radius:20px;
  max-width:360px;
  margin:0 auto;
  transition:transform .22s ease, box-shadow .22s ease;
}

.gm-feature-card h5{
  margin-bottom:.35rem;
  color:var(--gm-brown);
  font-weight:600;
}

.gm-feature-icon{ display:flex; justify-content:center; }

.gm-feature-icon-inner{
  width:66px;height:66px;border-radius:50%;
  background:var(--gm-gold);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.6rem;
  box-shadow:0 10px 22px rgba(0,0,0,.18);
}

/* ===== Footer ===== */
.gm-footer{
  background:linear-gradient(120deg, rgba(0,0,0,.82), rgba(0,0,0,.55));
  color:rgba(255,255,255,.85);
  border-top:1px solid rgba(255,255,255,.10);
  padding:1.1rem 0;
  position:relative;
  overflow:hidden;
}
.gm-footer small{
  font-size:.9rem;
  letter-spacing:.02em;
  position:relative;
  z-index:1;
}
.gm-footer small strong{ color:var(--gm-gold); font-weight:600; }

@media (max-width:575.98px){
  .gm-footer{ padding:.9rem 0; }
  .gm-footer small{ font-size:.85rem; }
}

/* ===== Auth card width ===== */
.gm-auth-card{ max-width:420px; width:100%; transform-origin:80% 20%; }
/* ================= DASHBOARD = BOOK DETAILS THEME =================
   Paste at the bottom of your CSS.
   (Remove the previous “color upgrade” patch if you added it.) */

/* ---- 1) Buttons: match book page (flat gold, no gradient) ---- */
.btn-gm-primary{
  background: var(--gm-gold) !important;
  border: 1px solid var(--gm-gold) !important;
  color: #3b2415 !important;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-gm-primary:hover,
.btn-gm-primary:focus{
  background: var(--gm-orange) !important;
  border-color: var(--gm-orange) !important;
  color:#3b2415 !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0,0,0,.18);
}

.btn-outline-secondary{
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  color: #3b2415 !important;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus{
  background: rgba(243,181,51,.10) !important;
  border-color: rgba(243,181,51,.35) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0,0,0,.12);
}

/* ---- 2) Hero chips: match the book pills (cream + subtle border) ---- */
.gm-chip{
  background: rgba(255,255,255,.88);
  color: #3b2415;
  border: 1px solid rgba(0,0,0,.10);
  backdrop-filter: blur(6px);
}
.gm-chip strong{ color:#3b2415; }

.gm-clear{
  color: rgba(255,255,255,.90);
}
.gm-clear:hover{ color: var(--gm-light-gold); }

/* ---- 3) Right tools card: same “book cover card” feel ---- */
.gm-book-cover-card{
  background:#fff !important;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 22px 40px rgba(0,0,0,.35);
}

/* cover placeholder: same soft cream gradient used in book page */
.gm-book-cover-lg.gm-book-cover-fallback{
  background:
    radial-gradient(circle at 30% 20%, rgba(243,181,51,.14), transparent 55%),
    linear-gradient(135deg, #fffdf7, #fbf3e6);
  border: 1px solid rgba(0,0,0,.06);
}
.gm-book-cover-lg.gm-book-cover-fallback i{
  color: rgba(59,36,21,.55);
}

/* ---- 4) The little “kv” boxes: match book page tiles ---- */
.gm-book-kv{
  background: rgba(243,181,51,.10);
  border: 1px solid rgba(243,181,51,.22);
  border-radius: 16px;
}
.gm-book-kv span{ color:#7b6a5f; }
.gm-book-kv strong{ color: var(--gm-brown); }

/* ---- 5) Feature cards: keep them neutral like your bottom section ---- */
.gm-feature-card{
  background:#fff !important;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}
.gm-feature-icon-inner{
  background: var(--gm-gold);
  color:#3b2415;
}

/* ---- 6) Optional: make hero text slightly cleaner (like book page) ---- */
.gm-catalog-title{
  text-shadow: 0 4px 12px rgba(0,0,0,.85);
}
.gm-catalog-subtitle{
  opacity:.92;
}

/* Mobile performance (same behavior as book page) */
@media (max-width: 767.98px){
  .gm-catalog-hero{ background-attachment: scroll; }
}
/* ================= LOAN REQUESTS (MATCH BOOK THEME) ================= */

.gm-req-panel{
  padding: 1.25rem 1.25rem 1.1rem;
}

/* table wrapper */
.gm-req-table-wrap{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}

/* table */
.gm-req-table{
  margin: 0;
}
.gm-req-table thead th{
  background: rgba(0,0,0,.03);
  border-bottom: 1px solid rgba(0,0,0,.08);
  color: rgba(43,26,16,.75);
  font-weight: 800;
  font-size: .9rem;
  padding: .9rem 1rem;
  white-space: nowrap;
}

.gm-req-table tbody td{
  padding: 1rem;
  border-top: 1px solid rgba(0,0,0,.06);
  vertical-align: middle;
}

.gm-req-table tbody tr:hover{
  background: rgba(243,181,51,.06);
}

/* Actions */
.gm-req-actions .btn{
  border-radius: 999px;
  font-weight: 800;
  padding: .45rem .85rem;
}

/* Approve = your gold primary (like book request) */
.gm-btn-approve{
  background: var(--gm-gold);
  border: 1px solid var(--gm-gold);
  color: #3b2415;
  box-shadow: 0 10px 18px rgba(0,0,0,.10);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.gm-btn-approve:hover{
  background: var(--gm-orange);
  border-color: var(--gm-orange);
  color:#3b2415;
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(0,0,0,.14);
}

/* Reject = neutral outline (matches your outline buttons) */
.gm-btn-reject{
  background: #fff;
  border: 1px solid rgba(0,0,0,.14);
  color: #3b2415;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.gm-btn-reject:hover{
  background: rgba(0,0,0,.04);
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(0,0,0,.10);
}

/* Use existing soft pill style if you want it lighter */
.gm-pill-soft{
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(0,0,0,.10);
  color: #3b2415;
}
/* ===== Books: Delete button ===== */
.gm-btn-delete{
  background: rgba(220,53,69,.12);
  color: #7a1220;
  border: 1px solid rgba(220,53,69,.35);
  border-radius: 999px;
  font-weight: 800;
  padding: .3rem .85rem;
  transition: background .2s ease, transform .15s ease, box-shadow .15s ease;
}
.gm-btn-delete:hover{
  background: rgba(220,53,69,.2);
  color: #7a1220;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,.15);
}

/* ================= MANAGE BOOKS (MATCH THEME) ================= */

.gm-books-panel{
  padding: 1.25rem 1.25rem 1.1rem;
}

/* add book button in filter card */
.gm-books-addbtn{
  border-radius: 14px; /* matches filter apply shape */
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-weight: 900;
}

/* table wrapper */
.gm-books-table-wrap{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}

/* table header */
.gm-books-table thead th{
  background: rgba(0,0,0,.03);
  border-bottom: 1px solid rgba(0,0,0,.08);
  color: rgba(43,26,16,.75);
  font-weight: 800;
  font-size: .9rem;
  padding: .9rem 1rem;
  white-space: nowrap;
}

/* body cells */
.gm-books-table tbody td{
  padding: 1rem;
  border-top: 1px solid rgba(0,0,0,.06);
  vertical-align: middle;
}

.gm-books-table tbody tr:hover{
  background: rgba(243,181,51,.06);
}

/* Qty badge */
.gm-books-qty{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  padding: 0 .6rem;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.90);
  color: #3b2415;
}

.gm-books-qty.is-ok{
  border-color: rgba(243,181,51,.35);
  background: rgba(243,181,51,.14);
}

.gm-books-qty.is-zero{
  border-color: rgba(0,0,0,.12);
  background: rgba(0,0,0,.04);
  color: rgba(59,36,21,.70);
}

/* Edit button (theme style) */
.gm-btn-edit{
  border-radius: 999px;
  font-weight: 800;
  padding: .45rem .85rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.14);
  color: #3b2415;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.gm-btn-edit:hover{
  background: rgba(243,181,51,.10);
  border-color: rgba(243,181,51,.35);
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(0,0,0,.10);
}
/* ================= DASHBOARD ANIMATIONS =================
   Paste at the VERY BOTTOM of your CSS (after the existing animation rules)
*/

/* Dashboard panels (My Requests / My Loans) */
.gm-catalog-wrap .gm-panel{
  opacity: 0;
  transform: translateY(14px) scale(.985);
  animation: gmCardUp .6s ease forwards;
  will-change: transform, opacity;
}

/* Stagger the two dashboard panels */
.gm-catalog-wrap .row > .col-lg-6:nth-child(1) .gm-panel{ animation-delay: .10s; }
.gm-catalog-wrap .row > .col-lg-6:nth-child(2) .gm-panel{ animation-delay: .18s; }

/* Student Tools card (right side hero card) */
.gm-catalog-hero .gm-book-cover-card{
  animation: gmSlideInRight .6s cubic-bezier(.2,.9,.2,1) both;
  animation-delay: .10s;
  will-change: transform, opacity;
}
/* ================= MY LOANS (ANIMATIONS) ================= */

/* Hero left content (your page uses col-lg-8) */
.gm-catalog-hero .col-lg-8{
  animation: gmFadeUp .55s ease both;
}

/* Hero right card (your page uses col-lg-4 + gm-book-cover-card) */
.gm-catalog-hero .col-lg-4 .gm-book-cover-card{
  animation: gmSlideInRight .6s cubic-bezier(.2,.9,.2,1) both;
  animation-delay: .10s;
  will-change: transform, opacity;
}

/* Content panel (Loans list) */
.gm-catalog-wrap .gm-panel{
  opacity: 0;
  transform: translateY(14px) scale(.985);
  animation: gmCardUp .6s ease forwards;
  animation-delay: .14s;
  will-change: transform, opacity;
}

/* Optional: rows fade-up nicely */
.gm-catalog-wrap .gm-panel tbody tr{
  opacity: 0;
  animation: gmFadeUp .45s ease forwards;
}
.gm-catalog-wrap .gm-panel tbody tr:nth-child(1){ animation-delay: .22s; }
.gm-catalog-wrap .gm-panel tbody tr:nth-child(2){ animation-delay: .26s; }
.gm-catalog-wrap .gm-panel tbody tr:nth-child(3){ animation-delay: .30s; }
.gm-catalog-wrap .gm-panel tbody tr:nth-child(4){ animation-delay: .34s; }
.gm-catalog-wrap .gm-panel tbody tr:nth-child(5){ animation-delay: .38s; }

/* Reduced motion (extend your existing block) */
@media (prefers-reduced-motion: reduce){
  .gm-catalog-hero .col-lg-8,
  .gm-catalog-hero .col-lg-4 .gm-book-cover-card,
  .gm-catalog-wrap .gm-panel,
  .gm-catalog-wrap .gm-panel tbody tr{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Optional: smooth row entrance inside the tables */
.gm-catalog-wrap .gm-panel tbody tr{
  opacity: 0;
  animation: gmFadeUp .45s ease forwards;
}
.gm-catalog-wrap .gm-panel tbody tr:nth-child(1){ animation-delay: .18s; }
.gm-catalog-wrap .gm-panel tbody tr:nth-child(2){ animation-delay: .22s; }
.gm-catalog-wrap .gm-panel tbody tr:nth-child(3){ animation-delay: .26s; }
.gm-catalog-wrap .gm-panel tbody tr:nth-child(4){ animation-delay: .30s; }
.gm-catalog-wrap .gm-panel tbody tr:nth-child(5){ animation-delay: .34s; }

/* Reduced motion: extend your existing rule to cover dashboard bits */
@media (prefers-reduced-motion: reduce){
  .gm-catalog-wrap .gm-panel,
  .gm-catalog-hero .gm-book-cover-card,
  .gm-catalog-wrap .gm-panel tbody tr{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== Book Details page panels ===== */
.gm-panel{
  border-radius:22px;
  padding:1.4rem 1.35rem;
  box-shadow:0 18px 40px rgba(0,0,0,.08);
  border:var(--gm-border-soft);
}

.gm-book-cover-card{
  border-radius:22px;
  padding:1rem;
  box-shadow:var(--gm-shadow-lg);
  border:var(--gm-border-soft);
}

.gm-book-cover-lg{
  height:350px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.06);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.gm-book-cover-lg.gm-book-cover-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(243,181,51,.16), rgba(0,0,0,.02));
}
.gm-book-cover-lg.gm-book-cover-fallback i{
  font-size:2.4rem;
  color:rgba(59,36,21,.55);
}

.gm-book-cover-info{
  display:flex;
  gap:.9rem;
  justify-content:space-between;
  margin-top:1rem;
}

.gm-book-kv{
  flex:1;
  background:rgba(243,181,51,.10);
  border:1px solid rgba(243,181,51,.25);
  padding:.7rem .8rem;
  border-radius:16px;
}
.gm-book-kv span{ display:block; font-size:.85rem; }
.gm-book-kv strong{ display:block; color:var(--gm-brown); }

.gm-detail{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
  padding:.85rem .9rem;
}
.gm-detail-label{ font-size:.82rem; color:#777; margin-bottom:.15rem; }
.gm-detail-value{ font-weight:800; color:var(--gm-brown); }

.gm-input{
  border-radius:14px;
  padding:.75rem 0;
}
.gm-request-btn{ border-radius:999px; font-weight:800; }

.gm-alert{
  background:rgba(243,181,51,.10);
  border:1px solid rgba(243,181,51,.25);
  padding:.85rem .9rem;
  border-radius:16px;
  color:var(--gm-brown);
}
.gm-alert a{ color:var(--gm-brown); font-weight:800; }

.gm-alert-danger{
  background:rgba(220,53,69,.08);
  border-color:rgba(220,53,69,.22);
  color:#7a1220;
}

.gm-mini-help-row{
  display:flex;
  gap:.6rem;
  align-items:flex-start;
  color:#555;
  margin-bottom:.6rem;
}
.gm-mini-help-row i{ margin-top:.2rem; color:rgba(59,36,21,.55); }

@media (min-width:992px){
  .gm-sticky{ position:sticky; top:92px; }
}

/* ===== Animations (single source of truth) ===== */
@keyframes gmFadeUp{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes gmSlideInRight{
  from{ opacity:0; transform:translateX(18px) scale(.98); }
  to{ opacity:1; transform:translateX(0) scale(1); }
}
@keyframes gmCardUp{
  to{ opacity:1; transform:translateY(0) scale(1); }
}

/* Page entrance */
.gm-hero .col-lg-7,
.gm-catalog-hero .col-lg-7,
.gm-book-hero .col-lg-8,
.gm-auth-hero .col-lg-7{
  animation:gmFadeUp .55s ease both;
}

.gm-hero .col-lg-5 .gm-hero-card,
.gm-auth-card,
.gm-catalog-hero .gm-filter-card,
.gm-book-hero .gm-book-cover-card{
  animation:gmSlideInRight .6s cubic-bezier(.2,.9,.2,1) both;
  animation-delay:.08s;
  will-change:transform, opacity;
}

/* Feature cards */
.gm-feature-section .gm-feature-card{
  opacity:0;
  transform:translateY(14px) scale(.985);
  animation:gmCardUp .6s ease forwards;
  will-change:transform, opacity;
}
.gm-feature-section .col-md-4:nth-child(1) .gm-feature-card{ animation-delay:.10s; }
.gm-feature-section .col-md-4:nth-child(2) .gm-feature-card{ animation-delay:.20s; }
.gm-feature-section .col-md-4:nth-child(3) .gm-feature-card{ animation-delay:.30s; }
.gm-feature-section .gm-feature-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 34px rgba(0,0,0,.12);
}

/* Catalog book card stagger (first 12) */
.gm-catalog-wrap .gm-book-card{
  opacity:0;
  transform:translateY(14px) scale(.985);
  animation:gmCardUp .6s ease forwards;
  will-change:transform, opacity;
}
.gm-catalog-wrap .col-sm-6:nth-child(1)  .gm-book-card{ animation-delay:.05s; }
.gm-catalog-wrap .col-sm-6:nth-child(2)  .gm-book-card{ animation-delay:.10s; }
.gm-catalog-wrap .col-sm-6:nth-child(3)  .gm-book-card{ animation-delay:.15s; }
.gm-catalog-wrap .col-sm-6:nth-child(4)  .gm-book-card{ animation-delay:.20s; }
.gm-catalog-wrap .col-sm-6:nth-child(5)  .gm-book-card{ animation-delay:.25s; }
.gm-catalog-wrap .col-sm-6:nth-child(6)  .gm-book-card{ animation-delay:.30s; }
.gm-catalog-wrap .col-sm-6:nth-child(7)  .gm-book-card{ animation-delay:.35s; }
.gm-catalog-wrap .col-sm-6:nth-child(8)  .gm-book-card{ animation-delay:.40s; }
.gm-catalog-wrap .col-sm-6:nth-child(9)  .gm-book-card{ animation-delay:.45s; }
.gm-catalog-wrap .col-sm-6:nth-child(10) .gm-book-card{ animation-delay:.50s; }
.gm-catalog-wrap .col-sm-6:nth-child(11) .gm-book-card{ animation-delay:.55s; }
.gm-catalog-wrap .col-sm-6:nth-child(12) .gm-book-card{ animation-delay:.60s; }

/* Book panels animate */
.gm-book-wrap .gm-panel{
  opacity:0;
  transform:translateY(14px) scale(.985);
  animation:gmCardUp .6s ease forwards;
  will-change:transform, opacity;
}
.gm-book-wrap .col-lg-7 .gm-panel:nth-of-type(1){ animation-delay:.10s; }
.gm-book-wrap .col-lg-7 .gm-panel:nth-of-type(2){ animation-delay:.20s; }
.gm-book-wrap .col-lg-5 .gm-panel:nth-of-type(1){ animation-delay:.18s; }

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  .gm-hero .col-lg-7,
  .gm-hero .col-lg-5 .gm-hero-card,
  .gm-feature-section .gm-feature-card,
  .gm-catalog-hero .col-lg-7,
  .gm-catalog-hero .gm-filter-card,
  .gm-catalog-wrap .gm-book-card,
  .gm-book-hero .col-lg-8,
  .gm-book-hero .gm-book-cover-card,
  .gm-book-wrap .gm-panel,
  .gm-auth-hero .col-lg-7,
  .gm-auth-card{
    animation:none !important;
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}

/* ===== Responsive ===== */
@media (max-height:760px) and (min-width:992px){
  .gm-hero{ padding-top:6rem; padding-bottom:1.6rem; }
  .gm-hero-search-card{ margin-bottom:1rem !important; }
  .gm-hero-subtitle{ margin-bottom:1rem !important; }
  .gm-feature-section{ padding-top:1.4rem !important; padding-bottom:1.4rem !important; }
  .gm-feature-card{ padding:1.5rem 1.35rem; }
}

@media (max-width:991.98px){
  .gm-hero{ padding-top:6rem; padding-bottom:2rem; }
  .gm-hero-card{ max-width:380px; margin-left:0; margin-right:auto; }
  .gm-hero-photo{ max-width:320px; }
}

@media (max-width:767.98px){
  .gm-hero,
  .gm-catalog-hero,
  .gm-book-hero{
    padding:5.6rem 0 2rem;
    background-attachment:scroll;
  }

  .gm-hero-title{ font-size:2.05rem; }

  /* Search stacked */
  .gm-hero-search .input-group{ flex-wrap:wrap; border-radius:18px; }
  .gm-hero-search-icon{ border-right:none; }
  .gm-hero-search-btn{ width:100%; height:2.75rem; }

  .gm-hero-card{ margin-top:1.2rem; max-width:420px; }

  .gm-feature-section{ padding-top:1.2rem !important; padding-bottom:1.8rem !important; }
  .gm-feature-card{ max-width:420px; padding:1.6rem 1.35rem; border-radius:18px; }
  .gm-feature-icon-inner{ width:60px; height:60px; }

  .gm-book-cover-lg{ height:260px; }
}

@media (max-width:420px){
  .gm-hero-title{ font-size:1.9rem; }
  .gm-hero-subtitle{ font-size:.95rem; }
  .gm-hero-highlight{ white-space:normal; }
}
