:root {
  --library-ink: #17202a;
  --library-muted: #617080;
  --library-line: #dde7ee;
  --library-teal: #087f83;
  --library-blue: #2563eb;
  --library-gold: #f5b942;
  --library-coral: #ef6f5e;
  --library-bg: #f6fafb;
}

.admin-body {
  background: #f4f7fa;
  color: #17202a;
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  width: 272px;
  overflow-y: auto;
  background: #0f766e;
  border-right: 1px solid #0d5f59;
  padding: 20px 16px;
  transition: transform 0.22s ease;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 8px 18px;
  color: #fff;
  text-decoration: none !important;
}

.admin-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 5px;
}

.admin-brand strong,
.admin-brand small {
  display: block;
  color: #fff;
  letter-spacing: 0;
}

.admin-brand small {
  margin-top: 3px;
  color: #d8f3ef;
  font-size: 12px;
}

.admin-nav-label {
  margin: 18px 8px 8px;
  color: #b8e7e2;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #ecfeff;
  font-weight: 700;
  text-decoration: none !important;
}

.admin-nav a i {
  width: 22px;
  color: #ccfbf1;
  font-size: 18px;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: #ffffff;
  color: #0f766e;
}

.admin-nav a:hover i,
.admin-nav a.active i {
  color: #0f766e;
}

.admin-main {
  width: 100%;
  min-height: 100vh;
  margin-left: 272px;
  padding: 96px 28px 36px;
}

.admin-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 272px;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px 28px;
  background: #ffffff;
  border-bottom: 1px solid #dbe5ec;
}

.admin-topbar-title {
  display: flex;
  flex-direction: column;
  margin-right: auto;
}

.admin-topbar-title strong {
  color: #17202a;
  font-size: 16px;
}

.admin-topbar-title span {
  color: #6b7785;
  font-size: 13px;
}

.admin-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  color: #17202a;
}

.admin-user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #17202a;
  font-weight: 800;
  text-decoration: none !important;
}

.admin-user-trigger img {
  width: 38px;
  height: 38px;
  border: 1px solid #cbd5e1;
  object-fit: cover;
}

.admin-page {
  max-width: 1560px;
  margin: 0 auto;
}

.admin-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-kicker {
  display: block;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.admin-page-heading h1 {
  margin: 0;
  color: #17202a;
  font-size: 32px;
  font-weight: 850;
  letter-spacing: 0;
}

.admin-page-heading p,
.admin-card-header p {
  margin: 6px 0 0;
  color: #6b7785;
}

.admin-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-heading-actions .btn,
.admin-card .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  font-weight: 800;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-stat-card {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 20px;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
}

.admin-stat-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e8f7f6;
  color: #0f766e;
  font-size: 21px;
}

.admin-stat-card span {
  color: #6b7785;
  font-weight: 700;
}

.admin-stat-card strong {
  color: #17202a;
  font-size: 34px;
  line-height: 1;
}

.admin-card {
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.admin-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.admin-card-header h2 {
  margin: 0;
  color: #17202a;
  font-size: 20px;
  font-weight: 850;
}

.admin-card-header a {
  color: #0f766e;
  font-weight: 800;
}

.admin-table {
  margin-bottom: 0;
}

.admin-table thead th {
  border-top: 0;
  border-bottom: 1px solid #dbe5ec;
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.admin-table tbody td {
  border-top: 1px solid #edf2f7;
  color: #17202a;
  vertical-align: middle;
}

.admin-book-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.admin-book-cell img {
  width: 48px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #dbe5ec;
}

.admin-book-cell strong,
.admin-book-cell span {
  display: block;
}

.admin-book-cell strong {
  color: #17202a;
}

.admin-book-cell span {
  color: #6b7785;
  font-size: 13px;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-status.borrowed {
  background: #fff7ed;
  color: #9a3412;
}

.admin-status.done {
  background: #f0fdf4;
  color: #166534;
}

.admin-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 34px 16px;
  color: #6b7785;
  text-align: center;
}

.admin-empty i {
  color: #0f766e;
  font-size: 34px;
}

.admin-inline-scan,
.admin-table-scan {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-inline-scan {
  margin-top: 6px;
}

.admin-inline-scan i,
.admin-table-scan i {
  color: #0f766e;
  font-size: 24px;
}

.admin-inline-scan input,
.admin-table-scan input {
  min-width: 0;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 12px;
}

.admin-inline-scan input {
  flex: 1;
}

.admin-inline-scan button,
.admin-table-scan button {
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #17202a;
  color: #fff;
  font-weight: 800;
  padding: 0 14px;
}

.admin-mini-list {
  display: grid;
  gap: 10px;
}

.admin-mini-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #f8fafc;
}

.admin-mini-list span {
  color: #6b7785;
  font-weight: 700;
}

.admin-mini-list strong {
  color: #17202a;
}

.admin-latest-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.admin-latest-book {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  color: #17202a;
  text-decoration: none !important;
}

.admin-latest-book:hover {
  border-color: #0f766e;
}

.admin-latest-book img {
  width: 58px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-latest-book span,
.admin-latest-book small {
  display: block;
  color: #6b7785;
  font-size: 12px;
}

.admin-latest-book strong {
  display: block;
  margin: 3px 0;
  color: #17202a;
  line-height: 1.25;
}

.admin-file-btn {
  background: #dc2626;
  color: #fff !important;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.admin-avatar-thumb {
  width: 52px;
  height: 52px;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafc;
}

.admin-gallery-thumb {
  width: 72px;
  height: 96px;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafc;
}

.member-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.member-qr strong,
.member-qr span {
  color: #17202a;
}

.label-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.label-card {
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  text-align: center;
}

@media print {
  .admin-sidebar,
  .admin-topbar,
  .admin-heading-actions {
    display: none !important;
  }

  .admin-main {
    margin: 0 !important;
    padding: 0 !important;
  }

  .label-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  min-height: 36px;
  padding: 6px 10px;
}

.dataTables_wrapper .dataTables_filter input {
  min-width: 260px;
}

.dataTables_wrapper .page-item.active .page-link {
  background: #0f766e;
  border-color: #0f766e;
}

.dataTables_wrapper .page-link {
  color: #0f766e;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--library-bg);
  color: var(--library-ink);
}

.page-content {
  padding-top: 96px;
}

.navbar-perpus {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(221, 231, 238, 0.9);
  box-shadow: 0 16px 40px rgba(23, 32, 42, 0.06);
  backdrop-filter: blur(14px);
}

.navbar-perpus .container {
  min-height: 72px;
}

.perpus-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--library-ink) !important;
  line-height: 1.1;
}

.perpus-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.perpus-brand strong,
.perpus-brand small {
  display: block;
  letter-spacing: 0;
}

.perpus-brand small {
  color: var(--library-muted);
  font-size: 12px;
  margin-top: 4px;
}

.navbar-perpus .nav-link {
  color: #334155 !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 14px !important;
}

.navbar-perpus .nav-item.active .nav-link,
.navbar-perpus .nav-link:hover {
  color: var(--library-teal) !important;
  background: #e8f7f6;
}

.navbar-perpus .btn-primary,
.btn-primary {
  background: var(--library-teal);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(8, 127, 131, 0.22);
}

.btn-outline-dark {
  border-color: var(--library-line);
  border-radius: 8px;
  color: var(--library-ink);
  background: #fff;
}

.profile-picture {
  width: 34px;
  height: 34px;
  object-fit: cover;
  margin-left: 8px;
}

.user-menu {
  display: flex;
  align-items: center;
}

.library-hero {
  padding: 56px 0 34px;
  background: #edf8f8;
}

.catalog-hero {
  padding: 48px 0 32px;
  background: #ffffff;
  border-bottom: 1px solid var(--library-line);
}

.eyebrow,
.section-heading span,
.book-meta {
  color: var(--library-teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
}

.library-hero h1,
.catalog-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
  margin: 14px 0 18px;
  color: var(--library-ink);
}

.library-hero p,
.catalog-hero p,
.feature-item p,
.empty-state p,
.footer-copy {
  color: var(--library-muted);
  line-height: 1.7;
}

.library-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 680px;
  background: #fff;
  border: 1px solid var(--library-line);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 18px 50px rgba(23, 32, 42, 0.08);
}

.library-search i {
  color: var(--library-teal);
  font-size: 20px;
  margin-left: 10px;
}

.library-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 15px;
  color: var(--library-ink);
}

.library-search button {
  border: 0;
  border-radius: 8px;
  background: var(--library-ink);
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 32, 42, 0.16);
}

.hero-floating {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--library-ink);
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(23, 32, 42, 0.12);
}

.hero-floating i {
  color: var(--library-coral);
  font-size: 22px;
}

.library-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.library-stats div,
.feature-item,
.empty-state {
  background: #fff;
  border: 1px solid var(--library-line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 32, 42, 0.06);
}

.library-stats div {
  padding: 18px;
}

.library-stats strong {
  display: block;
  color: var(--library-ink);
  font-size: 30px;
  line-height: 1;
}

.library-stats span {
  display: block;
  color: var(--library-muted);
  margin-top: 8px;
  font-weight: 600;
}

.digital-features,
.modern-section {
  padding: 54px 0;
}

.compact-section {
  padding-bottom: 28px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 6px 0 0;
  color: var(--library-ink);
  font-size: 28px;
  font-weight: 800;
}

.section-heading.with-action {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading.with-action a {
  color: var(--library-teal);
  font-weight: 700;
}

.feature-item {
  height: 100%;
  padding: 24px;
}

.feature-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--library-teal);
  background: #e8f7f6;
  border-radius: 8px;
  font-size: 22px;
  margin-bottom: 18px;
}

.feature-item h3,
.empty-state h3 {
  color: var(--library-ink);
  font-size: 18px;
  font-weight: 800;
}

.modern-category,
.modern-book {
  color: var(--library-ink);
  text-decoration: none !important;
}

.modern-category {
  background: #fff;
  border: 1px solid var(--library-line);
  border-radius: 8px;
  padding: 12px;
  height: 100%;
  box-shadow: 0 12px 28px rgba(23, 32, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-category:hover,
.modern-book:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(23, 32, 42, 0.12);
}

.modern-category .categories-image {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #eef5f7;
}

.modern-category .categories-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modern-category .categories-text {
  color: var(--library-ink);
  font-weight: 800;
  text-align: center;
  margin: 12px 0 0;
}

.modern-book {
  background: #fff;
  border: 1px solid var(--library-line);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  margin-bottom: 22px;
  box-shadow: 0 12px 28px rgba(23, 32, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-book .product-thumbnail {
  margin: 0;
  border-radius: 0;
}

.modern-book .product-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto !important;
  background-size: cover;
  background-position: center;
  background-color: #eef5f7;
}

.modern-book .book-meta,
.modern-book .product-text,
.modern-book .product-author {
  margin-left: 16px;
  margin-right: 16px;
}

.modern-book .book-meta {
  display: block;
  margin-top: 14px;
}

.modern-book .product-text {
  min-height: 48px;
  margin-top: 7px;
  color: var(--library-ink);
  font-weight: 800;
  line-height: 1.35;
}

.modern-book .product-author {
  color: var(--library-muted);
  margin-top: 8px;
  margin-bottom: 18px;
}

.empty-state {
  text-align: center;
  padding: 42px 18px;
}

.empty-state i {
  color: var(--library-gold);
  font-size: 44px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pills a,
.category-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--library-line);
  background: #fff;
  color: var(--library-ink);
  font-weight: 700;
  text-decoration: none;
}

.category-pills a.active,
.category-pills a:hover {
  background: var(--library-teal);
  color: #fff;
  border-color: var(--library-teal);
}

.modern-pagination .pagination {
  justify-content: center;
}

.page-details {
  background: #fff;
}

.page-details .breadcrumb {
  background: transparent;
  padding-left: 0;
}

.page-details .main-page {
  max-height: 620px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(23, 32, 42, 0.12);
}

.page-details .thumbnail-image {
  border-radius: 8px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.page-details .perpus-heading h1 {
  color: var(--library-ink);
  font-weight: 800;
}

.modern-footer {
  padding: 54px 0 24px;
  background: #102a43;
}

.barcode-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  font-weight: 700;
}

.book-barcode {
  width: 100%;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.book-barcode-title {
  margin-bottom: 10px;
  color: var(--library-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.book-barcode-svg {
  width: 100%;
  max-width: 260px;
  min-height: 72px;
}

.book-barcode-number {
  margin-top: 8px;
  color: #111827;
  font-family: Consolas, Monaco, monospace;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.barcode-scan-card {
  border: 1px solid var(--library-line);
  border-radius: 8px;
}

.barcode-scan-form label {
  color: var(--library-ink);
  font-weight: 800;
}

.barcode-scan-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.barcode-scan-input i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--library-teal);
  background: #e8f7f6;
  border-radius: 8px;
  font-size: 24px;
}

.barcode-scan-input .form-control {
  height: 44px;
  border-radius: 8px;
}

.barcode-result {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
}

.barcode-result-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--library-line);
}

.barcode-result-info h3 {
  color: var(--library-ink);
  font-weight: 800;
}

.barcode-result-info dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 14px;
  margin: 18px 0;
}

.barcode-result-info dt {
  color: var(--library-muted);
}

.barcode-result-info dd {
  margin: 0;
  color: var(--library-ink);
  font-weight: 700;
}

.loan-status {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid;
}

.loan-status strong,
.loan-status span,
.loan-status small {
  display: block;
}

.loan-status-ready {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.loan-status-borrowed {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
}

.modern-footer h2,
.modern-footer h4 {
  color: #fff;
  font-weight: 800;
}

.modern-footer p,
.modern-footer a,
.modern-footer small {
  color: rgba(255, 255, 255, 0.78);
}

.modern-footer a:hover {
  color: #fff;
}

.modern-footer li {
  margin-bottom: 10px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.copy-inline-form {
  display: grid;
  grid-template-columns: 128px 120px minmax(160px, 1fr) auto;
  gap: 8px;
  min-width: 560px;
}

.import-card {
  max-width: 820px;
}

.reader-shell {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  overflow: hidden;
}

.reader-toolbar {
  align-items: center;
  background: #102a43;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 12px;
}

.reader-toolbar span {
  font-weight: 700;
  min-width: 150px;
  text-align: center;
}

.reader-canvas-wrap {
  background: #eef2f6;
  height: calc(100vh - 250px);
  min-height: 520px;
  overflow: auto;
  padding: 24px;
  text-align: center;
}

.reader-canvas-wrap canvas {
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  max-width: 100%;
}

.about-panel {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 34px;
}

.page-about .about-title {
  color: #102a43;
  font-size: 38px;
  font-weight: 800;
}

.page-about .about-subtitle {
  color: #0f766e;
  font-size: 22px;
  font-weight: 800;
}

.page-about .about-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-about .about-list li {
  background: #f5f7fb;
  border-left: 4px solid #0f766e;
  border-radius: 6px;
  padding: 12px 14px;
}

.page-about .about-contact {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-about .about-contact li {
  align-items: center;
  background: #eef6f5;
  border-radius: 6px;
  color: #102a43;
  display: flex;
  font-weight: 700;
  gap: 10px;
  padding: 12px 14px;
}

.about-copyright {
  align-items: center;
  background: #102a43;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  font-weight: 800;
  gap: 10px;
  justify-content: space-between;
  padding: 14px 16px;
}

.about-whatsapp {
  background: #0f766e;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  gap: 8px;
  padding: 10px 12px;
  text-decoration: none;
}

.about-whatsapp:hover {
  color: #ffffff;
  text-decoration: none;
}

.member-body {
  background: #f5f7fb;
  color: #1f2937;
}

.member-shell {
  min-height: 100vh;
}

.member-sidebar {
  background: #0f766e;
  bottom: 0;
  color: #ffffff;
  left: 0;
  overflow-y: auto;
  padding: 20px 14px;
  position: fixed;
  top: 0;
  width: 268px;
  z-index: 1035;
}

.member-brand {
  align-items: center;
  color: #ffffff;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  text-decoration: none;
}

.member-brand:hover {
  color: #ffffff;
  text-decoration: none;
}

.member-brand img {
  background: #ffffff;
  border-radius: 8px;
  height: 58px;
  object-fit: contain;
  padding: 6px;
  width: 58px;
}

.member-brand strong,
.member-brand small {
  display: block;
}

.member-brand small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.member-profile-box {
  align-items: center;
  background: #0b5f59;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  padding: 12px;
}

.member-profile-box img {
  background: #ffffff;
  border-radius: 50%;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

.member-profile-box strong,
.member-profile-box span {
  display: block;
}

.member-profile-box span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.member-nav-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 16px 10px 8px;
  text-transform: uppercase;
}

.member-nav {
  display: grid;
  gap: 6px;
}

.member-nav a {
  align-items: center;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  gap: 12px;
  font-weight: 700;
  padding: 12px 14px;
  text-decoration: none;
}

.member-nav a:hover,
.member-nav a.active {
  background: #0b5f59;
  color: #ffffff;
  text-decoration: none;
}

.member-nav i {
  font-size: 17px;
  width: 20px;
}

.member-sidebar-logout {
  margin-top: 18px;
}

.member-sidebar-logout button {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-radius: 8px;
  color: #0f766e;
  display: flex;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  padding: 12px 14px;
  width: 100%;
}

.member-main {
  margin-left: 268px;
  min-height: 100vh;
  padding: 102px 34px 34px;
}

.member-topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #d9e2ec;
  display: flex;
  justify-content: space-between;
  left: 268px;
  min-height: 78px;
  padding: 14px 34px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1030;
}

.member-topbar-title strong,
.member-topbar-title span {
  display: block;
}

.member-topbar-title span {
  color: #64748b;
  font-size: 13px;
}

.member-topbar-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.member-menu-button {
  background: #0f766e;
  color: #ffffff;
}

.section-dashboard-home {
  padding-top: 0;
}

.section-dashboard-home .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.section-dashboard-home .card,
.dashboard-content .card {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  box-shadow: none;
}

.dashboard-heading {
  margin-bottom: 20px;
}

.dashboard-title {
  color: #102a43;
  font-size: 30px;
  font-weight: 800;
}

.dashboard-subtitle {
  color: #64748b;
}

.auth-helper-text {
  color: #64748b;
  margin-bottom: 22px;
}

.auth-form-card {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 28px;
}

.auth-form-card .form-control {
  width: 100% !important;
}

.site-preview {
  align-items: center;
  background: #f5f7fb;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  display: inline-flex;
  gap: 10px;
  padding: 10px;
}

.site-preview img {
  background: #ffffff;
  border-radius: 6px;
  height: 54px;
  object-fit: contain;
  width: 54px;
}

.site-preview.wide {
  display: flex;
  max-width: 420px;
}

.site-preview.wide img {
  height: 84px;
  width: 140px;
}

.admin-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.admin-table .pagination {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .member-sidebar {
    transform: translateX(-100%);
  }

  .admin-shell.toggled .admin-sidebar {
    transform: translateX(0);
  }

  .member-shell.toggled .member-sidebar {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
    padding: 92px 18px 28px;
  }

  .member-main {
    margin-left: 0;
    padding: 92px 18px 28px;
  }

  .admin-topbar {
    left: 0;
    padding: 14px 18px;
  }

  .member-topbar {
    left: 0;
    padding: 14px 18px;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page-heading,
  .admin-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-content {
    padding-top: 82px;
  }

  .navbar-perpus .navbar-collapse {
    padding: 14px 0;
  }

  .library-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading.with-action {
    align-items: start;
    flex-direction: column;
  }

  .barcode-result {
    grid-template-columns: 1fr;
  }

  .barcode-result-cover img {
    max-width: 220px;
  }
}

@media (max-width: 575.98px) {
  .admin-stat-grid,
  .admin-latest-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar-title {
    display: none;
  }

  .admin-user-trigger span {
    display: none;
  }

  .member-topbar-title {
    display: none;
  }

  .member-topbar-actions .btn {
    padding-left: 10px;
    padding-right: 10px;
  }

  .admin-page-heading h1 {
    font-size: 26px;
  }

  .admin-table-scan,
  .admin-inline-scan {
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
  }

  .admin-table-scan input,
  .admin-table-scan button,
  .admin-inline-scan input,
  .admin-inline-scan button {
    width: 100%;
  }

  .perpus-brand small {
    display: none;
  }

  .library-hero h1,
  .catalog-hero h1 {
    font-size: 34px;
  }

  .library-search {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .library-search input {
    flex-basis: calc(100% - 42px);
  }

  .library-search button {
    width: 100%;
  }

  .library-stats {
    grid-template-columns: 1fr;
  }

  .barcode-scan-input {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .barcode-scan-input .form-control,
  .barcode-scan-input .btn {
    width: 100%;
  }
}
