@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ─────────────────────────────────────────
   1. TOKENS
   ───────────────────────────────────────── */
:root {
  /* Brand */
  --primary:        #F97316;
  --primary-dk:     #EA580C;
  --primary-lt:     #FFEDD5;
  --primary-pale:   #FFF7ED;

  /* Sidebar */
  --sidebar-bg:     #0F172A;
  --sidebar-w:      248px;

  /* Text */
  --text:           #0F172A;
  --text-md:        #374151;
  --text-sm:        #64748B;

  /* Surface */
  --border:         #E2E8F0;
  --bg:             #F1F5F9;
  --white:          #FFFFFF;

  /* Status */
  --success:        #15803D;
  --success-lt:     #DCFCE7;
  --success-dk:     #166534;
  --danger:         #DC2626;
  --danger-lt:      #FEE2E2;
  --danger-dk:      #991B1B;
  --warning:        #D97706;
  --warning-lt:     #FEF3C7;
  --warning-dk:     #92400E;
  --info:           #1D4ED8;
  --info-lt:        #DBEAFE;
  --info-dk:        #1E3A8A;

  /* Icon palette (stat cards) */
  --icon-blue:      #2563EB;
  --icon-blue-lt:   #EFF6FF;
  --icon-green:     #16A34A;
  --icon-green-lt:  #F0FDF4;
  --icon-purple:    #7C3AED;
  --icon-purple-lt: #F5F3FF;
  --icon-orange:    #EA580C;
  --icon-orange-lt: #FFF7ED;
  --icon-amber:     #B45309;
  --icon-amber-lt:  #FFFBEB;
  --icon-red:       #DC2626;
  --icon-red-lt:    #FFF1F2;

  /* Geometry */
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      14px;
  --radius-xl:      20px;

  /* Shadows */
  --shadow-sm:      0 1px 2px rgba(15,23,42,.05);
  --shadow:         0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md:      0 4px 12px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg:      0 12px 32px rgba(15,23,42,.12), 0 4px 8px rgba(15,23,42,.06);
}

/* ─────────────────────────────────────────
   2. BASE RESET
   ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }
img { display: block; max-width: 100%; }

/* ─────────────────────────────────────────
   3. LAYOUT
   ───────────────────────────────────────── */
.app-layout    { display: flex; min-height: 100vh; }
.main-content  { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.page-body     { padding: 28px; flex: 1; }

/* ─────────────────────────────────────────
   4. SIDEBAR
   ───────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

/* — Brand header — */
.sidebar-header {
  padding: 20px 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.sidebar-logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 10px;
}
.sidebar-brand-tagline {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 99px;
  padding: 3px 10px;
}

/* — Nav — */
.sidebar-nav { padding: 10px 10px; flex: 1; }

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.28);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 10px 8px 5px;
  margin-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.55);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 1px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-item:hover  { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); }
.nav-item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .9;
}
.nav-item.active svg { opacity: 1; }

/* — Footer — */
.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  margin-bottom: 8px;
}
.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-user-info { min-width: 0; }
.sidebar-user-name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  margin-top: 1px;
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  background: rgba(220,38,38,.12);
  border: 1px solid rgba(220,38,38,.25);
  border-radius: var(--radius-sm);
  color: rgba(252,165,165,.85);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-logout svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-logout:hover { background: rgba(220,38,38,.22); color: #fff; }

/* ─────────────────────────────────────────
   5. TOPBAR
   ───────────────────────────────────────── */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}
.topbar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-lt);
  color: var(--primary-dk);
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: .02em;
}

/* — Peminjam topbar extras — */
.topbar-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.topbar-search input {
  width: 100%;
  padding: 8px 14px 8px 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.topbar-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
  background: var(--white);
}
.topbar-search input::placeholder { color: #94A3B8; }
.topbar-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
  display: flex;
}
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-user-info { text-align: right; }
.topbar-user-name  { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.2; }
.topbar-user-role  { font-size: 11px; color: var(--text-sm); margin-top: 1px; }
.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   6. CARDS
   ───────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.card-body { padding: 22px; }

/* ─────────────────────────────────────────
   7. STAT CARDS (admin dashboard)
   ───────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.stat-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 20px; height: 20px; }
.stat-icon.blue   { background: var(--icon-blue-lt);   color: var(--icon-blue); }
.stat-icon.green  { background: var(--icon-green-lt);  color: var(--icon-green); }
.stat-icon.purple { background: var(--icon-purple-lt); color: var(--icon-purple); }
.stat-icon.orange { background: var(--icon-orange-lt); color: var(--icon-orange); }
.stat-icon.amber  { background: var(--icon-amber-lt);  color: var(--icon-amber); }
.stat-icon.red    { background: var(--icon-red-lt);    color: var(--icon-red); }

.stat-card-body { }
.stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sm);
}
.stat-sub {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 2px;
}

/* ─────────────────────────────────────────
   8. ACTION CARDS (peminjam dashboard)
   ───────────────────────────────────────── */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.action-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
}
.action-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(249,115,22,.25);
}

.action-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.action-card-icon svg { width: 20px; height: 20px; }
.action-card-icon.blue   { background: var(--icon-blue-lt);   color: var(--icon-blue); }
.action-card-icon.green  { background: var(--icon-green-lt);  color: var(--icon-green); }
.action-card-icon.amber  { background: var(--icon-amber-lt);  color: var(--icon-amber); }
.action-card-icon.purple { background: var(--icon-purple-lt); color: var(--icon-purple); }

.action-card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.action-card-desc {
  font-size: 11px;
  color: var(--text-sm);
  line-height: 1.5;
  margin-top: -4px;
}

/* ─────────────────────────────────────────
   9. INFO ITEMS (peminjam dashboard)
   ───────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.info-item-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-lt);
  color: var(--primary-dk);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-item-icon svg { width: 18px; height: 18px; }
.info-item-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.info-item-desc {
  font-size: 12px;
  color: var(--text-sm);
}

/* ─────────────────────────────────────────
   10. BUTTONS
   ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  line-height: 1;
  transition: all .15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover  { background: var(--primary-dk); }

.btn-secondary {
  background: var(--white);
  color: var(--text-md);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: var(--bg); border-color: #CBD5E1; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: var(--success-dk); }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn-danger:hover  { background: #B91C1C; }
.btn-warning { background: var(--warning); color: #fff; }

.btn-sm  { padding: 5px 10px; font-size: 12px; }
.btn-lg  { padding: 11px 22px; font-size: 15px; }
.btn-icon { padding: 7px; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ─────────────────────────────────────────
   11. FORMS
   ───────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sm);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}
.form-control::placeholder { color: #CBD5E1; }
.form-row       { display: grid; grid-template-columns: 1fr 1fr;     gap: 16px; }
.form-row.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-hint { font-size: 11px; color: var(--text-sm); margin-top: 4px; }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 30px;
}

/* ─────────────────────────────────────────
   12. TABLES
   ───────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

th {
  background: #F8FAFC;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sm);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  border-bottom: 1.5px solid var(--border);
}

td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 13px;
  color: var(--text-md);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFBFC; }

.table-empty {
  text-align: center;
  color: var(--text-sm);
  padding: 48px 20px !important;
  font-size: 13px;
}

/* ─────────────────────────────────────────
   13. BADGES
   ───────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge-orange { background: var(--primary-lt);  color: var(--primary-dk); }
.badge-green  { background: var(--success-lt);  color: var(--success-dk); }
.badge-red    { background: var(--danger-lt);   color: var(--danger-dk); }
.badge-yellow { background: var(--warning-lt);  color: var(--warning-dk); }
.badge-blue   { background: var(--info-lt);     color: var(--info-dk); }
.badge-gray   { background: #F1F5F9;            color: #64748B; }

/* ─────────────────────────────────────────
   14. MODALS
   ───────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(2px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal-lg { max-width: 720px; }
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.modal-title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-sm);
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: background .15s;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   15. TOOLBAR & SEARCH
   ───────────────────────────────────────── */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-input { position: relative; }
.search-input input { padding-left: 36px; min-width: 220px; }
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-sm);
  pointer-events: none;
  display: flex;
}

/* ─────────────────────────────────────────
   16. ALERTS
   ───────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }
.alert-error   { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert-info    { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
.alert-warning { background: var(--warning-lt); border: 1px solid #FDE68A; color: var(--warning-dk); }

/* ─────────────────────────────────────────
   17. PAGINATION
   ───────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
}
.page-btn {
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-md);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.page-btn:hover        { border-color: var(--primary); color: var(--primary); }
.page-btn.active       { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled     { opacity: .4; cursor: not-allowed; }

/* ─────────────────────────────────────────
   18. LOGIN PAGE
   ───────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}
.login-left {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.login-left-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.login-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,16,30,.88) 0%,
    rgba(10,16,30,.45) 45%,
    rgba(10,16,30,.12) 100%
  );
}
.login-hero {
  position: relative;
  z-index: 1;
  color: white;
  padding: 40px 44px;
  max-width: 480px;
}
.login-hero-logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.login-hero h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.login-hero p {
  font-size: 13px;
  opacity: .7;
  line-height: 1.7;
}

.login-right {
  width: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--white);
}
.login-form-wrap { width: 100%; max-width: 360px; }
.login-logo { margin-bottom: 32px; }
.login-logo h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}
.login-logo p { font-size: 13px; color: var(--text-sm); margin-top: 4px; }
.login-form .form-control { padding: 11px 14px; }
.login-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
  border-radius: var(--radius);
}
.login-error { color: var(--danger); font-size: 13px; margin-top: 10px; display: none; }

/* ─────────────────────────────────────────
   19. EBOOK GRID
   ───────────────────────────────────────── */
.ebook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.ebook-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.ebook-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ebook-cover {
  height: 180px;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ebook-cover img { width: 100%; height: 100%; object-fit: cover; }
.ebook-cover-placeholder {
  color: var(--primary);
  opacity: .4;
}
.ebook-info { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ebook-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ebook-author { font-size: 11px; color: var(--text-sm); }
.ebook-langs  { font-size: 10px; color: var(--primary-dk); font-weight: 700; text-transform: uppercase; }
.ebook-actions {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────
   20. BOOK CATALOG (peminjam)
   ───────────────────────────────────────── */
.katalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.katalog-header h1 { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.katalog-toolbar   { display: flex; gap: 10px; align-items: center; }
.katalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}
.book-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.book-cover {
  height: 180px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover-placeholder {
  width: 100%;
  height: 100%;
  background: var(--border);
  border-radius: 0;
}
.book-info {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.book-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-author   { font-size: 11px; color: var(--text-sm); font-weight: 500; }
.book-category {
  font-size: 10px;
  color: var(--primary-dk);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.book-stock { font-size: 11px; color: var(--text-sm); margin-top: 4px; }
.book-stock strong { color: var(--success); font-weight: 700; }
.book-actions { padding: 12px 14px; border-top: 1px solid var(--border); }
.book-actions .btn { width: 100%; justify-content: center; }

.search-form {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.search-input-wrapper { position: relative; flex: 1; }
.search-input-wrapper input { width: 100%; padding-left: 38px; }
.search-right  { display: flex; align-items: center; gap: 10px; }
.genre-select {
  min-width: 160px;
  padding: 8px 30px 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.genre-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}

/* ─────────────────────────────────────────
   21. BOOK DETAIL
   ───────────────────────────────────────── */
.detail-hero {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.detail-cover {
  flex-shrink: 0;
  width: 200px;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* .detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover-placeholder {
  width: 80px; height: 80px;
  background: var(--border);
  border-radius: var(--radius);
} */
.detail-cover {
  width: 240px;
  height: 340px;
  overflow: hidden;
  border-radius: 18px;
  background: #f3f4f6;

  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-cover-placeholder {
  color: #9ca3af;
  font-size: 14px;
  text-align: center;
  padding: 16px;
}
.detail-meta    { flex: 1; min-width: 260px; }
.detail-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 16px;
}
.detail-field { display: flex; flex-direction: column; gap: 2px; }
.detail-field-label {
  font-size: 11px;
  color: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.detail-field-value { font-size: 14px; font-weight: 700; color: var(--text); }
.detail-stock-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.detail-stock-badge.available { background: var(--success-lt); color: var(--success-dk); }
.detail-stock-badge.empty     { background: var(--danger-lt);  color: var(--danger-dk); }
.detail-rating { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.stars         { color: #F59E0B; font-size: 16px; }
.rating-val    { font-size: 14px; font-weight: 700; color: var(--text); }

/* ─────────────────────────────────────────
   22. FORM PEMINJAMAN
   ───────────────────────────────────────── */
.form-peminjaman-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.form-peminjaman-left  { flex: 1; min-width: 300px; }
.form-peminjaman-right { flex-shrink: 0; text-align: center; }
.form-book-cover {
  width: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg);
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.form-book-cover img   { width: 100%; height: 100%; object-fit: cover; }
.form-book-title-label  { font-size: 13px; font-weight: 700; color: var(--text); }
.form-book-author-label { font-size: 12px; color: var(--text-sm); }

/* ─────────────────────────────────────────
   23. QR CODE PAGE
   ───────────────────────────────────────── */
.qr-alert {
  background: #ECFDF5;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.qr-alert-left  { display: flex; align-items: center; gap: 16px; }
.qr-alert-icon {
  width: 52px; height: 52px;
  background: #D1FAE5;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #065F46;
  flex-shrink: 0;
}
.qr-alert-title { font-size: 16px; font-weight: 800; color: #065F46; margin-bottom: 2px; }
.qr-alert-sub   { font-size: 12px; color: #047857; }
.qr-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid #BBF7D0;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}
.qr-timer svg { color: #065F46; }
.qr-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.qr-code-wrap {
  flex-shrink: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-code-wrap img { width: 220px; height: 220px; display: block; }
.qr-steps {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  min-width: 240px;
}
.qr-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.qr-step-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #1E3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.qr-step-num   { font-size: 10px; font-weight: 700; color: var(--primary-dk); text-transform: uppercase; letter-spacing: .05em; }
.qr-step-title { font-size: 13px; font-weight: 800; color: var(--text); }
.qr-step-desc  { font-size: 11px; color: var(--text-sm); line-height: 1.5; }

/* ─────────────────────────────────────────
   24. WELCOME BANNER (peminjam)
   ───────────────────────────────────────── */
.welcome-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 40%, #1E3A5F 100%);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  color: white;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.welcome-banner::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(249,115,22,.2) 0%, transparent 70%);
  top: -40px; right: 60px;
  border-radius: 50%;
  pointer-events: none;
}
.welcome-banner-body { position: relative; z-index: 1; }
.welcome-banner h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -.02em;
}
.welcome-banner p { font-size: 13px; opacity: .7; }
.welcome-banner-icon {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  background: rgba(249,115,22,.2);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(249,115,22,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.welcome-banner-icon svg { width: 28px; height: 28px; }

/* ─────────────────────────────────────────
   25. HISTORY / STATUS BADGES
   ───────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.status-menunggu     { background: var(--warning-lt); color: var(--warning-dk); }
.status-dipinjam     { background: var(--info-lt);    color: var(--info-dk); }
.status-dikembalikan { background: var(--success-lt); color: var(--success-dk); }
.status-terlambat    { background: var(--danger-lt);  color: var(--danger-dk); }
.status-batal        { background: #F1F5F9;            color: #64748B; }
.status-ditolak      { background: var(--danger-lt);  color: var(--danger-dk); }
.status-selesai      { background: var(--success-lt); color: var(--success-dk); }

/* ─────────────────────────────────────────
   26. PROFILE / AKUN
   ───────────────────────────────────────── */
.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 560px;
}
.profile-header {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  padding: 32px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: white;
}
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255,255,255,.25);
  flex-shrink: 0;
  color: #fff;
}
.profile-name { font-size: 20px; font-weight: 800; margin-bottom: 4px; letter-spacing: -.01em; }
.profile-role { font-size: 12px; opacity: .65; }
.profile-body { padding: 24px 28px; }
.profile-field {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.profile-field:last-child { border-bottom: none; }
.profile-field-label {
  width: 140px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: .05em;
  flex-shrink: 0;
  padding-top: 2px;
}
.profile-field-value { font-size: 14px; font-weight: 600; color: var(--text); }
.profile-logout-wrap { padding: 16px 28px; border-top: 1px solid var(--border); }

/* ─────────────────────────────────────────
   27. ANTRIAN CONFIRM
   ───────────────────────────────────────── */
.antrian-confirm-box { max-width: 480px; margin: 0 auto; }
.antrian-book-info {
  background: var(--primary-pale);
  border: 1px solid var(--primary-lt);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.antrian-icon-wrap {
  width: 72px;
  height: 72px;
  background: var(--warning-lt);
  border: 1.5px solid #FDE68A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warning);
  margin: 0 auto 16px;
  flex-shrink: 0;
}
.antrian-icon-wrap svg { width: 32px; height: 32px; }

/* ─────────────────────────────────────────
   28. EMPTY STATE
   ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-sm);
}
.empty-state-icon {
  width: 56px;
  height: 56px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  margin: 0 auto 14px;
}
.empty-state-icon svg { width: 24px; height: 24px; }
.empty-state h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-state p  { font-size: 13px; }

/* ─────────────────────────────────────────
   29. LOADING & SPINNER
   ───────────────────────────────────────── */
.spinner {
  width: 32px;
  height: 32px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { display: flex; align-items: center; justify-content: center; min-height: 200px; }

/* ─────────────────────────────────────────
   30. TOAST
   ───────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn .25s ease;
  max-width: 320px;
}
.toast-success { background: #F0FDF4; color: #166534; }
.toast-error   { background: #FEF2F2; color: #991B1B; }
.toast-info    { background: #EFF6FF; color: #1E40AF; }
@keyframes toastIn { from { opacity:0; transform: translateX(16px); } to { opacity:1; transform: translateX(0); } }

/* ─────────────────────────────────────────
   31. PAGE TITLE
   ───────────────────────────────────────── */
.page-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

/* ─────────────────────────────────────────
   32. UTILITIES
   ───────────────────────────────────────── */
.text-sm      { font-size: 12px; }
.text-muted   { color: var(--text-sm); }
.text-center  { text-align: center; }
.font-bold    { font-weight: 700; }
.font-semibold{ font-weight: 600; }
.mt-8  { margin-top:    8px; }
.mt-12 { margin-top:   12px; }
.mt-16 { margin-top:   16px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom:12px; }
.mb-16 { margin-bottom:16px; }
.flex  { display: flex; }
.flex-1{ flex: 1; }
.gap-8 { gap:  8px; }
.gap-12{ gap: 12px; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.w-full  { width: 100%; }

/* Related Books */
.related-section { margin-top: 28px; }
.related-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 16px; letter-spacing: -.01em; }
.related-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.related-item  {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow .15s;
}
.related-item:hover { box-shadow: var(--shadow); }
.related-thumb { width: 44px; height: 54px; border-radius: 6px; flex-shrink: 0; background: var(--bg); object-fit: cover; }
.related-info  { flex: 1; min-width: 0; }
.related-book-title  { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related-book-author { font-size: 11px; color: var(--text-sm); }

/* ─────────────────────────────────────────
   33. RESPONSIVE
   ───────────────────────────────────────── */

   .mobile-menu-btn {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1200;

  width: 40px;
  height: 40px;

  border: none;
  border-radius: 10px;

  background: transparent;
  box-shadow: none;

  font-size: 24px;
  color: var(--text);

  cursor: pointer;

  display: none;

  align-items: center;
  justify-content: center;
}


/* @media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .page-body { padding: 20px; }
  .katalog-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .detail-hero { flex-direction: column; }
  .detail-cover { width: 160px; height: 220px; }
  .qr-steps { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { width: 100%; }
  .action-grid { grid-template-columns: 1fr 1fr; }
} */

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   MOBILE RESPONSIVE — KATALOG BUKU
========================================= */
@media (max-width: 768px) {

   .topbar-user-info,
  .topbar-avatar {
    display: none;
  }


  .main-content {
    margin-left: 0;
    width: 100%;
    min-width: 0;
  }

  .page-body {
    padding: 16px;
  }

  /* ===== MOBILE BUTTON ===== */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ===== SIDEBAR ===== */
  .sidebar {
    width: 220px;
    transform: translateX(-100%);
    transition: transform .28s ease;
    z-index: 1100;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  /* ===== TOPBAR ===== */
  .topbar {
    padding: 12px 16px 12px 68px;
    min-height: 64px;
    height: auto;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .topbar-search {
    width: 100%;
    max-width: 100%;
  }

  /* ===== SEARCH FORM ===== */
  .search-form {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .search-input-wrapper {
    width: 100%;
  }

  .search-input-wrapper input {
    width: 100%;
    height: 44px;

    padding-left: 40px;
    font-size: 14px;
  }

  .topbar-search-icon {
    left: 14px;
  }

  .search-right {
    width: 100%;

    display: flex;
    gap: 10px;
  }

  .genre-select {
    flex: 1;
    min-width: 0;
    height: 44px;
    font-size: 14px;
  }

  .search-right .btn {
    height: 44px;
    padding: 0 18px;
    flex-shrink: 0;
  }

  /* ===== HEADER ===== */
  .katalog-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 18px;
  }

  .katalog-header h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .katalog-toolbar {
    width: 100%;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .katalog-toolbar .btn {
    width: 100%;
    justify-content: center;
  }

  /* ===== GRID ===== */
  .katalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* ===== CARD ===== */
  .book-card {
    width: 100%;
    min-width: 0;

    border-radius: 18px;
    overflow: hidden;
  }

  .book-cover {
    height: 200px;
    background: #f3f4f6;
  }

  .book-cover img,
  .book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .book-info {
    padding: 12px;
    gap: 5px;
  }

  .book-title {
    font-size: 14px;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
  }

  .book-author {
    font-size: 12px;
  }

  .book-category {
    font-size: 10px;
  }

  .book-stock {
    font-size: 12px;
    margin-top: 4px;
  }

  .book-actions {
    padding: 12px;
  }

  .book-actions .btn {
    width: 100%;
    height: 40px;

    border-radius: 12px;

    font-size: 13px;
    font-weight: 700;
  }

  /* ===== EMPTY STATE ===== */
  .empty-state {
    padding: 48px 20px;
  }

  .empty-state h3 {
    font-size: 18px;
  }

  .empty-state p {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* =========================================
   EXTRA SMALL DEVICES
   iPhone SE / old Android
========================================= */
@media (max-width: 420px) {

  .page-body {
    padding: 14px;
  }

  .katalog-grid {
    gap: 12px;
  }

  .book-cover {
    height: 170px;
  }

  .book-title {
    font-size: 13px;
  }

  .book-author,
  .book-stock {
    font-size: 11px;
  }

  .book-actions .btn {
    height: 38px;
    font-size: 12px;
  }

  .genre-select {
    font-size: 13px;
  }
}