/* ==========================================================================
   E-REPOSITORY INSTITUSI - MODERN PROFESSIONAL CORPORATE & INSTITUTIONAL
   Inspired by EPrints Institutional Repository (UPI) with Modern IKKH Style
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PAGE WRAPPER & CANVAS
   -------------------------------------------------------------------------- */
.eprints-content-canvas {
  background: #f8fafc;
  min-height: 70vh;
  padding: 2rem 0 4.5rem;
}

.repo-detail-container {
  width: 100%;
  max-width: var(--container-max, 1740px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 768px) {
  .repo-detail-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.eprints-main-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: #334155;
  font-family: 'Lora', Georgia, serif;
  margin: 0.5rem 0 0.4rem;
  line-height: 1.25;
}

.eprints-subtitle-desc {
  font-size: 1rem;
  color: #475569;
  margin: 0 0 2rem;
  line-height: 1.5;
}

/* Level Up Navigation (▲ Naik satu level) */
.repo-level-up {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.75rem;
  background: #eff6ff;
  border-radius: 6px;
  border: 1px solid #dbeafe;
  transition: all 0.2s ease;
}

.repo-level-up:hover {
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   3. SCREEN 1: KATEGORI / KELOMPOK PENELUSURAN (GAMBAR 1)
   -------------------------------------------------------------------------- */
.repo-categories-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2.25rem 2.5rem;
  max-width: 1000px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.repo-cat-bullet-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.repo-cat-bullet-list li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.repo-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.6rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.repo-cat-item:hover {
  background: #ffffff;
  border-color: #2563eb;
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.1);
}

.repo-cat-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.repo-cat-bullet {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.repo-cat-item:hover .repo-cat-bullet {
  transform: scale(1.25);
}

.repo-cat-title {
  color: #2563eb;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.18s ease;
}

.repo-cat-item:hover .repo-cat-title {
  color: #1d4ed8;
}

.repo-cat-arrow {
  color: #94a3b8;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.repo-cat-item:hover .repo-cat-arrow {
  color: #2563eb;
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4. SCREEN 2: TELUSURI BERDASARKAN TAHUN (GAMBAR 2)
   -------------------------------------------------------------------------- */
.repo-years-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 2.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.repo-year-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.repo-year-row-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.repo-year-row-item .bullet {
  color: #64748b;
  font-size: 0.9rem;
}

.repo-year-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.repo-year-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.repo-year-count-bracket {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   4B. SCREEN: TELUSURI BERDASARKAN SUBJEK (POHON TAKSONOMI EPRINTS)
   -------------------------------------------------------------------------- */
.repo-subjects-tree-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  line-height: 1.85;
}

.repo-subject-tree {
  list-style: none;
  padding: 0;
  margin: 0;
}

.repo-subject-root {
  list-style: none;
}

.repo-tree-root-label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.tree-bullet-root {
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1;
}

.repo-tree-l1 {
  list-style: none;
  padding-left: 2rem;
  margin: 0.5rem 0 1rem;
}

.repo-tree-l1-item {
  margin-bottom: 1.15rem;
}

.repo-tree-l1-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.tree-bullet-circle {
  color: #2563eb;
  font-size: 1.15rem;
  line-height: 1;
}

.repo-tree-l2 {
  list-style: none;
  padding-left: 2rem;
  margin: 0.4rem 0 0.75rem;
}

.repo-tree-l2-sublist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.repo-tree-l2-subitem {
  margin-bottom: 0.55rem;
}

.repo-tree-l2-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.94rem;
}

.tree-bullet-square {
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1;
}

.repo-tree-l3 {
  list-style: none;
  padding-left: 1.75rem;
  margin: 0.35rem 0 0.5rem;
}

.repo-tree-l3-item {
  margin-bottom: 0.35rem;
}

.repo-tree-l3-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.tree-bullet-dash {
  color: #64748b;
  font-weight: 700;
}

.repo-tree-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.15s ease;
}

.repo-tree-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.repo-tree-link.sub-link {
  color: #3b82f6;
  font-weight: 500;
}

.repo-tree-link.sub-link:hover {
  color: #1d4ed8;
}

.repo-tree-count {
  color: #64748b;
  font-weight: 500;
  font-size: 0.88em;
  margin-left: 0.2rem;
}

@media (max-width: 768px) {
  .repo-subjects-tree-card {
    padding: 1.5rem 1.25rem;
  }
  .repo-tree-l1,
  .repo-tree-l2,
  .repo-tree-l3 {
    padding-left: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   4D. SCREEN: TELUSURI BERDASARKAN PENGARANG / PEMBUAT (EXACT EPRINTS LAYOUT)
   -------------------------------------------------------------------------- */
.browse-by-author-title {
  font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #374151;
  margin: 0.5rem 0 1.25rem 0;
  letter-spacing: -0.01em;
}

.eprints-az-box {
  background: #ffffff;
  border: 1px solid #d8dee4;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 8px 16px;
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  line-height: 1.6;
}

.eprints-az-box .az-item {
  color: #0284c7;
  text-decoration: none;
  font-weight: 500;
  padding: 0 0.15rem;
  transition: color 0.15s ease;
}

.eprints-az-box .az-item:hover {
  text-decoration: underline;
  color: #0369a1;
}

.eprints-az-box .az-item.active {
  color: #111827;
  font-weight: 800;
  cursor: default;
  text-decoration: none;
}

.eprints-az-box .az-sep {
  color: #cbd5e1;
  user-select: none;
}

.eprints-letter-subheading {
  font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #1f2937;
  margin: 1.5rem 0 1.25rem 0;
}

.eprints-author-3col {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem 0;
  column-count: 3;
  column-gap: 3rem;
}

@media (max-width: 1024px) {
  .eprints-author-3col {
    column-count: 2;
    column-gap: 2rem;
  }
}

@media (max-width: 640px) {
  .eprints-author-3col {
    column-count: 1;
    column-gap: 0;
  }
}

.eprints-author-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 0.55rem;
  font-size: 0.93rem;
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.eprints-dot {
  color: #0f172a;
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.eprints-author-link {
  color: #0284c7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
  word-break: break-word;
}

.eprints-author-link:hover {
  color: #0369a1;
  text-decoration: underline;
}

.eprints-author-count {
  color: #0f172a;
  font-weight: 400;
  margin-left: 0.2rem;
  flex-shrink: 0;
}

.repo-authors-index-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  line-height: 1.8;
}

.repo-author-group-block {
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.repo-author-group-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.repo-author-letter-header {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.repo-author-letter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #2563eb;
  font-size: 1.15rem;
  font-weight: 800;
}

.repo-author-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.75rem 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.repo-author-role-tag {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
  margin-left: 0.35rem;
}

@media (max-width: 768px) {
  .repo-authors-index-card {
    padding: 1.5rem 1.25rem;
  }
  .repo-author-list-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   5. SCREEN 3: BARANG-BARANG TAHUN {YEAR} (GAMBAR 3)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   5. SCREEN 3: BARANG-BARANG TAHUN {YEAR} (GAMBAR 3) - REPO TOOLBAR
   -------------------------------------------------------------------------- */
.repo-year-toolbar-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 2px 6px rgba(15, 23, 42, 0.02);
}

.repo-export-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 0.95rem;
}

.repo-export-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.repo-export-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  user-select: none;
}

.repo-export-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.repo-export-select {
  height: 38px;
  min-width: 170px;
  padding: 0 2.2rem 0 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 13px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.repo-export-select:hover {
  border-color: #94a3b8;
}

.repo-export-select:focus {
  outline: none;
  border-color: #09a89e;
  box-shadow: 0 0 0 3px rgba(9, 168, 158, 0.15);
}

.btn-repo-export {
  background: #0f172a;
  color: #ffffff;
  border: none;
  height: 38px;
  padding: 0 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.btn-repo-export:hover {
  background: #09a89e;
  box-shadow: 0 3px 8px rgba(9, 168, 158, 0.28);
  transform: translateY(-1px);
}

.btn-repo-export:active {
  transform: translateY(0);
}

.btn-repo-export svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* RSS & Atom Feeds - Clean horizontal syndication pill */
.repo-rss-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  background: #fffaf5;
  border: 1px solid #fed7aa;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.04);
}

.repo-rss-icon-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ea580c;
  flex-shrink: 0;
}

.repo-rss-icon-tag svg,
.repo-rss-links svg {
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

.repo-rss-label {
  font-weight: 700;
  color: #c2410c;
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.1rem;
}

.repo-rss-link,
.repo-rss-links a,
.repo-rss-links > span:not(.repo-rss-icon-tag):not(.repo-rss-label):not(.repo-rss-sep) {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: #ea580c;
  text-decoration: none;
  font-size: 0.8125rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.repo-rss-link:hover,
.repo-rss-links a:hover {
  background: #ffedd5;
  color: #9a3412;
  text-decoration: underline;
}

.repo-rss-sep {
  color: #fdba74;
  font-size: 0.75rem;
  user-select: none;
  display: inline-block;
  line-height: 1;
}

/* Grouping Row */
.repo-group-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #475569;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
}

.repo-group-label {
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.repo-group-pills {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.repo-group-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  background: transparent;
  transition: all 0.15s ease;
  user-select: none;
}

.repo-group-pill.is-active,
.repo-group-row strong {
  background: #0f172a;
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
}

.repo-group-sep {
  color: #cbd5e1;
  font-size: 0.75rem;
  user-select: none;
}

@media (max-width: 680px) {
  .repo-year-toolbar-box {
    padding: 1rem;
  }
  .repo-export-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .repo-export-left {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .repo-export-controls {
    display: flex;
    width: 100%;
  }
  .repo-export-select {
    flex: 1;
    min-width: 0;
  }
  .repo-rss-links {
    align-self: flex-start;
  }
  .repo-group-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
}

/* A-Z Jump Bar */
.repo-alphabet-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #475569;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.repo-alphabet-bar a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.repo-alphabet-bar a:hover {
  background: #eff6ff;
  text-decoration: underline;
}

.repo-items-count-label {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Alphabetical Sections */
.repo-alphabet-section {
  margin-bottom: 2.25rem;
}

.repo-letter-heading {
  font-size: 1.85rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 1rem;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 0.35rem;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
}

.repo-citation-entry {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed #e2e8f0;
  color: #334155;
}

.repo-citation-entry .repo-author {
  font-weight: 600;
  color: #0f172a;
}

.repo-citation-entry .repo-item-link {
  color: #0284c7;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.repo-citation-entry .repo-item-link:hover {
  color: #0369a1;
  text-decoration: underline;
}

.repo-citation-entry .repo-genre {
  color: #64748b;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   6. SCREEN 4: DETAIL LENGKAP DOKUMEN / NASKAH (MODERN INSTITUTIONAL)
   -------------------------------------------------------------------------- */
.repo-detail-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.repo-top-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.repo-badge-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.repo-badge-pill.pill-prodi {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.repo-badge-pill.pill-year {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.repo-badge-pill.pill-access-open {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.repo-badge-pill.pill-access-restricted {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.repo-title-wrapper {
  margin-bottom: 1.25rem;
}

.repo-type-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: #09a89e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.repo-doc-heading-h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  letter-spacing: -0.015em;
}

/* Academic Citation Card */
.repo-citation-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #09a89e;
  border-radius: 10px;
  padding: 1.1rem 1.35rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.repo-citation-left {
  flex: 1;
}

.repo-citation-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #078f86;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.repo-citation-text {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.6;
}

.repo-btn-copy-citation {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 7px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.repo-btn-copy-citation:hover {
  border-color: #09a89e;
  color: #09a89e;
  background: #f0fdfa;
}

/* Two-Column Detail Grid */
.repo-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1280px) {
  .repo-detail-grid {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 1.5rem;
  }
}

@media (max-width: 1080px) {
  .repo-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Modern Card Architecture */
.repo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.repo-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.repo-card-header {
  padding: 0.95rem 1.35rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.repo-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.repo-card-subtitle {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0.15rem 0 0 0;
  font-weight: 400;
}

.repo-card-body {
  padding: 1.35rem;
}

.repo-card-icon-pill {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.repo-files-count-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: #078f86;
  background: rgba(9, 168, 158, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

/* Call to Action: Baca Teks Lengkap */
.repo-read-fulltext-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background: linear-gradient(135deg, #09a89e 0%, #078f86 100%);
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.95rem 1.5rem;
  border-radius: 10px;
  text-decoration: none !important;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(9, 168, 158, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.repo-read-fulltext-banner:hover {
  background: linear-gradient(135deg, #078f86 0%, #056e67 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(9, 168, 158, 0.45);
}

/* Abstract Text */
.repo-abstract-text {
  font-size: 0.925rem;
  line-height: 1.75;
  color: #334155;
  text-align: justify;
}

.repo-keywords-wrap {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.repo-keywords-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.repo-keywords-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.repo-kw-tag {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* 7 Files List */
.repo-files-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.repo-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.repo-file-row:hover {
  border-color: #09a89e;
  background: #fcfdfd;
  box-shadow: 0 3px 10px rgba(9, 168, 158, 0.08);
}

.repo-file-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.repo-file-icon-badge {
  width: 42px;
  height: 46px;
  border-radius: 8px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  flex-shrink: 0;
}

.repo-file-icon-badge span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.repo-file-meta-info {
  min-width: 0;
}

.repo-file-name-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.repo-file-badge-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.repo-file-code-tag {
  font-family: monospace;
  font-size: 0.74rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}

.repo-badge-open {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.70rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.repo-badge-restricted {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 0.70rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.repo-btn-download-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.95rem;
  border-radius: 8px;
  font-size: 0.80rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.repo-btn-download-pdf.btn-open {
  background: #09a89e;
  color: #ffffff !important;
  border: 1px solid #09a89e;
  box-shadow: 0 2px 6px rgba(9, 168, 158, 0.25);
}

.repo-btn-download-pdf.btn-open:hover {
  background: #078f86;
  border-color: #078f86;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(9, 168, 158, 0.35);
}

.repo-btn-download-pdf.btn-restricted {
  background: #ffffff;
  color: #475569 !important;
  border: 1px solid #cbd5e1;
}

.repo-btn-download-pdf.btn-restricted:hover {
  border-color: #09a89e;
  color: #09a89e !important;
  background: #f0fdfa;
}

@media (max-width: 640px) {
  .repo-file-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .repo-file-row .repo-btn-download-pdf {
    width: 100%;
    justify-content: center;
  }
}

/* Formal Metadata Table (Right Sidebar) */
.repo-metadata-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
}

.repo-metadata-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.repo-metadata-table tr:last-child {
  border-bottom: none;
}

.repo-metadata-table th {
  width: 28%;
  min-width: 120px;
  max-width: 140px;
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  color: #64748b;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  background: #f8fafc;
  border-right: 1px solid #f1f5f9;
  line-height: 1.35;
}

.repo-metadata-table td {
  padding: 0.65rem 0.85rem;
  vertical-align: top;
  color: #1e293b;
  font-weight: 500;
  font-size: 0.825rem;
  line-height: 1.45;
}

.repo-dosen-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.repo-dosen-item {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1.4;
  white-space: nowrap;
}

.repo-dosen-num {
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}

.repo-dosen-name {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .repo-dosen-item,
  .repo-dosen-name {
    white-space: normal;
  }
}

.repo-metadata-table code {
  font-family: monospace;
  font-size: 0.85rem;
  color: #078f86;
  font-weight: 700;
}

/* Official URI Box */
.repo-uri-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
}

.repo-uri-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: monospace;
  font-size: 0.78rem;
  color: #0f172a;
  outline: none;
  width: 100%;
}

.repo-btn-copy-uri {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: #09a89e;
  color: #ffffff;
  border: none;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.repo-btn-copy-uri:hover {
  background: #078f86;
}

/* Actions Stack */
.repo-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.repo-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.repo-action-btn:hover {
  border-color: #09a89e;
  color: #09a89e;
  background: #f0fdfa;
}

.repo-action-btn.btn-civitas {
  border-color: #09a89e;
  background: rgba(9, 168, 158, 0.08);
  color: #078f86;
}

.repo-action-btn.btn-civitas:hover {
  background: #09a89e;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .repo-years-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .repo-years-grid-3col {
    grid-template-columns: 1fr;
  }

  .eprints-main-title {
    font-size: 1.85rem;
  }

  .repo-doc-heading-h1 {
    font-size: 1.4rem;
  }

  .repo-citation-card {
    flex-direction: column;
  }
  .repo-btn-copy-citation {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   8. INTERACTIVE PDF READER & UNLOCK MODALS (RESPONSIVE & SECURE)
   -------------------------------------------------------------------------- */
.repo-file-actions-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.repo-btn-read-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.95rem;
  border-radius: 8px;
  font-size: 0.80rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #09a89e;
  background: #ffffff;
  color: #078f86 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.repo-btn-read-pdf:hover {
  background: #09a89e;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(9, 168, 158, 0.3);
}

.repo-btn-read-pdf.btn-locked {
  border-color: #fca5a5;
  background: #fff1f2;
  color: #e11d48 !important;
}

.repo-btn-read-pdf.btn-locked:hover {
  background: #e11d48;
  color: #ffffff !important;
  border-color: #e11d48;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

/* Modal Backdrop */
.repo-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.repo-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Dialog */
.repo-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.repo-modal-backdrop.active .repo-modal-dialog {
  transform: scale(1) translateY(0);
}

.repo-modal-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.repo-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.repo-modal-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.repo-modal-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.repo-modal-body {
  padding: 1.5rem;
}

.repo-modal-footer {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Fullscreen / Interactive PDF Viewer Modal */
.repo-reader-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.repo-reader-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.repo-reader-header {
  height: 58px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-bottom: 1px solid #334155;
  flex-shrink: 0;
  gap: 1rem;
}

.repo-reader-title-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.repo-reader-doc-name {
  font-size: 0.90rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.repo-reader-doc-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.repo-reader-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.repo-reader-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.repo-reader-btn:hover:not(:disabled) {
  background: #334155;
  color: #ffffff;
  border-color: #09a89e;
}

.repo-reader-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.repo-reader-page-indicator {
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 600;
  padding: 0 0.5rem;
  white-space: nowrap;
}

.repo-reader-page-indicator strong {
  color: #ffffff;
}

.repo-reader-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.25rem 1rem;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  background: radial-gradient(circle at 50% 15%, #1e293b 0%, #0b1120 100%);
  min-height: 0;
}

/* 3D Book Flip Stage */
.repo-book-stage {
  perspective: 1600px;
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 100%;
  margin: auto;
  transition: all 0.3s ease;
}

.repo-canvas-wrapper {
  position: relative;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.4), 0 15px 45px rgba(0, 0, 0, 0.55);
  border-radius: 4px 10px 10px 4px;
  background: #ffffff;
  max-width: 100%;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.38s ease;
}

/* Book Spine accent on left edge (buku fisik) */
.repo-canvas-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 5;
  border-radius: 4px 0 0 4px;
}

/* Page Curl / Flip Shadow Layer */
.repo-book-curl-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.35) 0%, rgba(255,255,255,0.2) 50%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 6;
  border-radius: inherit;
}

/* Animasi Membalik Halaman ke Depan (Next / Kanan ke Kiri) */
.repo-canvas-wrapper.flip-turn-next {
  transform: rotateY(-75deg) scale(0.95);
  transform-origin: left center;
  box-shadow: -25px 12px 35px rgba(0, 0, 0, 0.65);
}

.repo-canvas-wrapper.flip-turn-next .repo-book-curl-shadow {
  opacity: 0.4;
}

/* Animasi Membalik Halaman ke Belakang (Prev / Kiri ke Kanan) */
.repo-canvas-wrapper.flip-turn-prev {
  transform: rotateY(75deg) scale(0.95);
  transform-origin: right center;
  box-shadow: 25px 12px 35px rgba(0, 0, 0, 0.65);
}

.repo-canvas-wrapper.flip-turn-prev .repo-book-curl-shadow {
  opacity: 0.4;
}

/* Posisi Rata setelah Lembaran Mendarat */
.repo-canvas-wrapper.flip-settle {
  transform: rotateY(0deg) scale(1);
  transform-origin: center center;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.4), 0 15px 45px rgba(0, 0, 0, 0.55);
}

#pdfRenderCanvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Watermark Overlay on Canvas */
.repo-reader-watermark-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.repo-watermark-text {
  font-size: 1.4rem;
  font-weight: 900;
  color: rgba(9, 168, 158, 0.14);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transform: rotate(-35deg);
  white-space: nowrap;
  user-select: none;
}

/* Touch navigation helper on mobile */
.repo-swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .repo-file-actions-group {
    width: 100%;
  }
  .repo-file-actions-group .repo-btn-read-pdf,
  .repo-file-actions-group .repo-btn-download-pdf {
    flex: 1;
    justify-content: center;
  }
  .repo-reader-header {
    padding: 0 0.75rem;
    height: 52px;
  }
  .repo-reader-doc-sub {
    display: none;
  }
  .repo-reader-controls .hide-on-mobile {
    display: none;
  }
  .repo-swipe-hint {
    display: flex;
  }
}
