/* ===== NAVBAR WRAPPER ===== */
.kreasi-header-wrapper {
    background: #65C85E;
    padding: 12px 0;
}

.kreasi-header-inner {
    display: flex;
    align-items: center;      /* semua elemen sejajar vertikal */
    justify-content: space-between;
    width: 95%;
    margin: auto;
}

/* ===== LOGO ===== */
.kreasi-brand {
    display: flex;
    align-items: center;
}

.kreasi-logo {
    height: 45px;
    margin-right: 10px;
}

.kreasi-brand-text {
    color: white;
    font-weight: bold;
    line-height: 1.1;
}

/* ===== SEARCH BAR ===== */
.kreasi-search-container {
    flex-grow: 1;
    margin: 0 40px;
    max-width: 650px;   /* atur sesuai selera, bisa 750px atau 700px */
}


.kreasi-search-box {
    background: white;
    height: 48px;
    border-radius: 7px;
    padding-left: 30px;
    display: flex;
    align-items: center;    /* icon + input center */
    position: relative;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.kreasi-search-icon {
    position: absolute;
    left: 10px;
    font-size: 18px;
    color: #2e6b2e;
}

.kreasi-search-input {
    width: 100%;
    border: none;
    background: transparent;
    color: #444;
    font-size: 15px;
}

.kreasi-search-input:focus { outline: none; }

/* ===== ADVANCED SEARCH BUTTON ===== */
.kreasi-adv-btn {
    background: white;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
}

/* ===== RIGHT SIDE (Advance Search + Bahasa + More) ===== */
.kreasi-right {
    display: flex;
    align-items: center;
    gap: 15px;   /* jarak antar elemen kanan */
}

/* ===== LANGUAGE & MORE MENU ===== */
.kreasi-lang,
.kreasi-more {
    display: flex;
    align-items: center;
}

.kreasi-lang .dropdown-toggle,
.kreasi-more .dropdown-toggle {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    color: white;
    font-size: 20px;
}

/* hilangkan arrow bootstrap */
.kreasi-lang .dropdown-toggle::after,
.kreasi-more .dropdown-toggle::after {
    display: none !important;
}

.kreasi-lang .flag-icon {
    font-size: 20px;
}

.kreasi-lang .dropdown-menu {
    min-width: 150px;
    margin-top: 8px;
}

.kreasi-lang .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* FIX SEARCH BAR BOOTSTRAP OFFSET */
.kreasi-search-container * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.kreasi-search-box {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.kreasi-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    font-weight: bold;
    color: white;
}

.kreasi-brand-text .line-1 {
    font-size: 16px;
}

.kreasi-brand-text .line-2 {
    font-size: 18px;
}



/* ==========================================================
   HEADER WRAPPER
   ========================================================== */
.kreasi-header-wrapper {
    background: #65C85E;
    padding: 12px 0;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000 !important;
}

.kreasi-header-inner {
    width: 95%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ==========================================================
   LOGO + BRAND TEXT
   ========================================================== */
.kreasi-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.kreasi-logo {
    height: 45px;
    margin-right: 10px;
}

.kreasi-brand-text {
    color: white;
    font-weight: bold;
    line-height: 1.1;
}

.kreasi-brand-text .line-1,
.kreasi-brand-text .line-2 {
    display: block;
    font-size: 15px;
}


/* ==========================================================
   SEARCH BAR
   ========================================================== */
.kreasi-search-container {
    flex-grow: 1;
    margin: 0 30px;
    display: flex;
    align-items: center !important;
}

.kreasi-search-form {
    width: 100%;
}

.kreasi-search-box {
    background: white;
    height: 46px;
    border-radius: 8px;
    padding-left: 40px;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.kreasi-search-icon {
    position: absolute;
    left: 12px;
    font-size: 18px;
    color: #333;
}

.kreasi-search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
}

.kreasi-search-input:focus {
    outline: none;
}


/* ==========================================================
   RIGHT MENU SECTION
   ========================================================== */
.kreasi-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Button */
.kreasi-adv-btn {
    background: white;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 14px;
    color: #333;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* ==========================================================
   DROPDOWN MENU FIX
   ========================================================== */
.kreasi-lang .dropdown-menu,
.kreasi-more .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    position: absolute !important;
    right: 0;
    top: 45px !important;
    min-width: 180px;
    transform: translateY(0);
    z-index: 999999 !important;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.kreasi-lang.show .dropdown-menu,
.kreasi-more.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.kreasi-lang .dropdown-item,
.kreasi-more .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}


/* ==========================================================
   MORE MENU (ELLIPSIS)
   ========================================================== */
.kreasi-more .dropdown-toggle {
    font-size: 22px;
    color: white;
    display: flex;
    align-items: center;
}

.kreasi-more .dropdown-toggle::after {
    display: none !important;
}


/* ==========================================================
   RESPONSIVE FIX
   ========================================================== */
@media (max-width: 992px) {
    .kreasi-header-inner {
        flex-wrap: wrap;
    }

    .kreasi-search-container {
        order: 3;
        width: 100%;
        margin-top: 10px;
        margin-bottom: 5px;
    }

    .kreasi-right {
        order: 2;
        width: 100%;
        justify-content: flex-end;
    }
}

/* Perbaikan posisi dropdown titik tiga */
.kreasi-more .dropdown-menu {
    margin-top: 20px !important;      /* naikkan sedikit */
    top: 100% !important;             /* pastikan tepat di bawah tombol */
    transform: translateY(-4px) !important;
}

/* Geser dropdown titik-tiga ke kiri */
.kreasi-more .dropdown-menu {
    right: 0 !important;         /* kunci posisinya ke kanan tombol */
    left: auto !important;       /* pastikan tidak pakai posisi kiri */
    transform: translateX(-10px) !important;  /* geser ke kiri */
}

/* Geser dropdown Bahasa ke kiri agar tidak tertutup */
.kreasi-lang .dropdown-menu {
    right: 0 !important;                  /* posisikan ke kanan tombol */
    left: auto !important;                /* jangan pakai posisi kiri */
    transform: translateX(-20px) !important;   /* geser ke kiri */
}

/* FIX hidden input agar tidak ikut hilang akibat flexbox */
.kreasi-search-form input[type="hidden"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


/* ========================
   HOME PAGE - KOLEKSI CARD
======================== */

.collection-wrapper {
    padding: 20px;
    margin-top: 10px;
}

.collection-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.collection-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.collection-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px 18px;
    border-left: 4px solid #4CAF50;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.collection-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.collection-title-text a {
    font-size: 17px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.collection-title-text a:hover {
    text-decoration: underline;
}

.collection-author,
.collection-year {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

/* ICON */
.collection-author i,
.collection-year i {
    margin-right: 5px;
}

/* Responsive */
@media (min-width: 768px) {
    .collection-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .collection-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =====================================
   HOME LAYOUT (3 COLUMN)
===================================== */

.home-container {
    display: grid;
    grid-template-columns: 240px 1fr 260px;
    gap: 25px;
    padding: 20px;
}

/* LEFT SIDEBAR */
.left-menu {
    background: #fafafa;
    border-radius: 8px;
    padding: 15px;
}

/* CENTER CONTENT */
.collection-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.collection-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.collection-card {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.collection-title-text a {
    font-size: 17px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.collection-title-text a:hover {
    text-decoration: underline;
}

.collection-author,
.collection-year {
    font-size: 14px;
    color: #555;
    margin-top: 4px;
}

.collection-author i,
.collection-year i {
    margin-right: 5px;
}

/* RIGHT JOURNAL */
.journal-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.journal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.journal-logo {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .home-container {
        grid-template-columns: 1fr;
    }

    .right-journal {
        order: 3;
    }
}

/* ================================
   SIDEBAR MODERN
   ================================ */

.sidebar-wrapper {
    width: 240px;
    background: #ffffff;
    padding: 20px 18px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 90px;
    height: fit-content;
}

.sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #2b7a2f;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 12px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    font-size: 15px;
    color: #3a3a3a;
    font-weight: 500;
    border-radius: 8px;
    transition: 0.25s ease-in-out;
}

.sidebar-menu li a i {
    font-size: 17px;
    color: #2b7a2f;
}

.sidebar-menu li a:hover {
    background: #e6f6e6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    color: #1e6b28;
    transform: translateX(4px);
}

.sidebar-menu li a:hover i {
    color: #1e6b28;
}


/* JUDUL */
.journal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

/* GRID 2 KOLOM */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

/* CARD WRAPPER */
.journal-grid a {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #f2f2f2;
    transition: all 0.25s ease;
}

/* ANIMASI HOVER */
.journal-grid a:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

/* GAMBAR LOGO */
.journal-logo {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

/* RESPONSIVE HP → 1 KOLOM */
@media (max-width: 600px) {
    .journal-grid {
        grid-template-columns: 1fr;
    }
}


/* =============================
   RESPONSIVE SIDEBAR (HP MODE)
   ============================= */

/* Tampilkan tombol menu hanya di HP */
.mobile-menu-toggle {
    display: none;
    background: #2b7a2f;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 12px;
    width: fit-content;
    cursor: pointer;
}

/* HP MODE */
@media (max-width: 768px) {

    /* Tombol menu muncul */
    .mobile-menu-toggle {
        display: block;
    }

    /* Sidebar berubah jadi offcanvas slide */
    .sidebar-wrapper {
        position: fixed;
        left: -260px;  
        top: 0;
        height: 100vh;
        width: 240px;
        padding: 20px;
        background: #fff;
        box-shadow: 3px 0 12px rgba(0,0,0,0.2);
        z-index: 999;
        transition: all 0.35s ease;
        border-radius: 0;
    }

    /* Jika aktif -> tampil */
    .sidebar-wrapper.active {
        left: 0;
    }

    /* Konten utama turun sedikit */
    .content-wrapper {
        margin-left: 0 !important;
    }
}

/* Sparkline grafik mini */
.visitor-graph {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
}


/* ============================
      FOOTER CUSTOM
============================= */

.custom-footer {
    background: #1aa53d;
    padding: 35px 20px;
    text-align: center;
    color: white;
    margin-top: 40px;
    border-top: 5px solid #145422;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;

    /* Animasi masuk */
    animation: fadeFooter .7s ease-out;
}

.footer-icon img {
    width: 60px;
    height: auto;
    display: block;
    margin-bottom: 8px;
    animation: fadeIcon .9s ease-out;
}

.visitor-graph {
    width: 100%;
    max-width: 250px;
    height: 50px;
    margin: 0 auto;
}

.footer-text {
    font-size: 15px;
    line-height: 1.6;
}

.footer-text small {
    opacity: 0.85;
    display: inline-block;
    margin-top: 5px;
}

/* Animasi */
@keyframes fadeFooter {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIcon {
    from { opacity: 0; transform: scale(.8); }
    to   { opacity: 1; transform: scale(1); }
}

/* MOBILE RESPONSIVE */
@media (max-width: 600px) {
    .custom-footer {
        padding: 30px 15px;
        gap: 12px;
    }

    .footer-icon img {
        width: 50px;
    }

    .footer-text {
        font-size: 14px;
    }
}

/* Hapus ruang kosong SLiMS default */
body, html {
    padding: 0;
    margin: 0;
}

/* Konten utama jangan memberikan jarak besar */
.main, #content, .main-content, .container, .home-container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Footer menempel rapat */
.custom-footer {
    margin: 0 !important;
    padding-top: 18px;
    padding-bottom: 18px;
}

/* Hilangkan ruang putih setelah footer jika ada */
footer, .footer {
    margin: 0 !important;
    padding: 0 !important;
    height: auto;
}

/* Pastikan footer berada di bagian paling bawah */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.custom-footer {
    margin-top: auto !important;
}

body {
    padding-top: 80px !important; /* sesuaikan jika header lebih tinggi */
}

.collection-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
}

.collection-year i,
.collection-gmd i {
    margin-right: 4px;
}

.collection-gmd {
    background: linear-gradient(90deg, #05c4a4, #04b2d1);
    color: rgb(255, 255, 255);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
}


/* Pagination style */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 15px;
}

.pagination a,
.pagination span {
  padding: 6px 14px;
  border-radius: 50px;
  background: #e5e9ee;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: 0.2s;
}

.pagination a:hover {
  background: #d1d9e1;
}

/* Active page */
.pagination .active {
  background: #007bff;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 10px #007bff88;
}

/* WRAPPER */
.modern-pagination {
    margin: 25px 0;
    padding: 10px 20px;
    background: #e9edf1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 999px;
}

/* LINK UMUM */
.modern-pagination a {
    text-decoration: none;
    font-size: 14px;
    color: #333;
}

/* TOMBOL (Berikutnya, Hal. Akhir, dll) */
.modern-pagination .page-btn {
    padding: 6px 10px;
    border-radius: 6px;
}

/* NOMOR HALAMAN */
.modern-pagination .page-number {
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: transparent;
    transition: 0.2s;
}

/* NOMOR HALAMAN — HOVER */
.modern-pagination .page-number:hover {
    background: #d0d7dd;
}

/* NOMOR HALAMAN — AKTIF */
.modern-pagination .page-number.active {
    background: #0d6efd;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.pagination-container-wrapper {
    text-align: center;
    width: 100%;
}


.has-sub .submenu {
    display: none;
    list-style: none;
    padding-left: 20px;
}

.has-sub:hover .submenu {
    display: block;
}

.submenu li a {
    padding: 5px 0;
    display: block;
    color: #444;
    text-decoration: none;
}

.submenu li a:hover {
    color: #007b5e; /* warna hover */
}


.lampiran-box {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid #e5e9ef;
    box-shadow: 0 2px 7px rgba(0,0,0,0.05);
}

.lampiran-box ul,
.lampiran-box div {
    margin: 0;
    padding: 0;
}

.lampiran-box li,
.lampiran-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.lampiran-box li:last-child,
.lampiran-item:last-child {
    border-bottom: none;
}

.lampiran-box i {
    font-size: 18px;
    margin-right: 10px;
    color: #4a90e2;
}

.lampiran-box .locked i {
    color: #ff6666;
}

.lampiran-box a {
    color: #0066cc;
    text-decoration: none;
    font-size: 15px;
}

.lampiran-box a:hover {
    opacity: 0.8;
}


.lampiran-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 15px;
}

.lampiran-card {
    border: 2px solid #0aaa4f;
    border-radius: 18px;
    padding: 20px 10px;
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
}

.lampiran-title {
    font-weight: 700;
    font-size: 16px;
    color: #0a4fa3;
    margin-bottom: 20px;
}

.lampiran-btn {
    background: #07b251;
    padding: 10px 22px;
    color: white;
    border-radius: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.lampiran-btn:hover {
    opacity: 0.85;
}

.lampiran-btn.locked {
    background: #777;
    cursor: not-allowed;
}

.lampiran-icon {
    font-size: 18px;
    margin-right: 6px;
}

/* RESPONSIVE HP */
@media(max-width: 768px){
    .lampiran-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 480px){
    .lampiran-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.sidebar-container {
    padding-left: 0 !important;
    margin-left: -150px; /* bisa disesuaikan */
}

/* ============================
   PROFILE MENU – MINIMALIST MODERN
============================ */
.nav-profile {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.nav-profile-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 0 6px rgba(0,0,0,0.15);
}

.nav-profile-img:hover {
    transform: scale(1.05);
}

/* Dropdown wrapper */
.nav-profile-menu {
    min-width: 210px !important;
    border-radius: 10px !important;
    padding: 0 !important;
    overflow: hidden;
}

/* Header bagian atas dropdown */
.nav-profile-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e6e6e6;
}

.nav-profile-header .greet {
    font-size: 12px;
    color: #888;
}

.nav-profile-header .name {
    font-size: 15px;
}

/* Item dropdown */
.nav-profile-menu .dropdown-item {
    padding: 10px 15px !important;
    font-size: 14px;
    color: #333;
    transition: 0.2s;
}

.nav-profile-menu .dropdown-item:hover {
    background: #f0f0f0;
}

/* Tombol login (jika belum login) */
.nav-login-btn {
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #333 !important;
    border: 1px solid #e0e0e0;
    transition: 0.3s;
}

.nav-login-btn:hover {
    background: #fafafa;
    border-color: #d0d0d0;
}


.nav-login-gradient {
    padding: 7px 16px;
    background: linear-gradient(135deg, #ffffff, #dddddd);
    border-radius: 10px;
    color: #00492b;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: 0.25s ease;
}

.nav-login-gradient:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

/* ===============================
   OPAC DETAIL – MODERN & RESPONSIVE
   =============================== */

.nav-pills {
  gap: 8px;
}

.nav-pills .nav-link {
  background-color: #f1f3f5;
  color: #333;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 500;
  transition: all .2s ease;
}

.nav-pills .nav-link:hover {
  background-color: #e9ecef;
}

.nav-pills .nav-link.active {
  background-color: #198754;
  color: #fff;
}

.card {
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.card-body {
  padding: 1.25rem;
}

/* Informasi label & value */
.small.text-muted {
  font-size: 0.78rem;
  letter-spacing: .3px;
}

.fw-semibold {
  font-weight: 600;
  font-size: 0.95rem;
  color: #212529;
}

/* Spacing antar item */
.row.g-3 > div {
  margin-bottom: 12px;
}

/* Mobile optimization */
@media (max-width: 576px) {

  .nav-pills .nav-link {
    width: 100%;
    text-align: center;
  }

  .fw-semibold {
    font-size: 0.9rem;
  }

  .card-body {
    padding: 1rem;
  }
}

/* ==================================================
   EKSEMPLAR – FINAL STABLE & CLEAN (READY TO USE)
   ================================================== */

/* =====================
   GRID CONFIG (DESKTOP)
   ===================== */

/* BARIS DATA */
.copy-grid-wrapper .w-100 {
  display: grid;
  grid-template-columns: 45% 20% 15% 20%;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid #e5e7eb;
}

.copy-grid-wrapper .w-100:last-child {
  border-bottom: none;
}

/* RESET BOOTSTRAP COLUMN DI DALAM GRID */
.copy-grid-wrapper [class^="col-"] {
  padding: 12px;
  margin: 0;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* =====================
   HEADER (DESKTOP) – FINAL FIX
   ===================== */

.copy-grid-header {
  display: grid;
  grid-template-columns: 45% 20% 15% 20%;
  height: 64px;
  background: #eef1f4;
  border-radius: 12px 12px 0 0;
}

/* semua judul kolom */
.copy-grid-header > div {
  display: flex;
  align-items: center;        /* center vertikal */
  justify-content: center;    /* center horizontal */
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  line-height: 1;
}

/* KHUSUS kolom pertama (Lokasi Koleksi) */
.copy-grid-header > div:nth-child(1) {
  justify-content: flex-start;
}

/* =====================
   KOLOM SPESIFIK (ROW)
   ===================== */

/* Lokasi Koleksi */
.copy-grid-wrapper .col-7 {
  display: flex;
  flex-direction: column;
  justify-content: left;
  line-height: 1.4;
}

/* Barcode */
.copy-grid-wrapper .col-2 {
  display: flex;
  justify-content: center;
  font-weight: 600;
  white-space: nowrap;
}

/* Status */
.copy-grid-wrapper .col-3 {
  display: flex;
  justify-content: center;
}

.copy-grid-wrapper .availability-item {
  min-width: 90px;
  text-align: center;
  background: #5bc0de;
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
}

/* Reservasi */
.copy-grid-wrapper .col-4 {
  display: flex;
  justify-content: center;
}

/* Tombol reservasi (guest & login) */
.copy-grid-wrapper .btn-reservasi,
.copy-grid-wrapper .add-to-chart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #198754;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: .2s;
}

.copy-grid-wrapper .btn-reservasi:hover,
.copy-grid-wrapper .add-to-chart-button:hover {
  background: #157347;
  transform: translateY(-1px);
}

/* =====================
   MOBILE MODE
   ===================== */
@media (max-width: 576px) {

  .copy-grid-header {
    display: none;
  }

  .copy-grid-wrapper .w-100 {
    grid-template-columns: 1fr;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
  }

  .copy-grid-wrapper [class^="col-"] {
    padding: 0;
  }

  /* Label per kolom (mobile) */
  .copy-grid-wrapper .col-7::before { content: "Lokasi Koleksi"; }
  .copy-grid-wrapper .col-2::before { content: "Barcode ID"; }
  .copy-grid-wrapper .col-3::before { content: "Status"; }
  .copy-grid-wrapper .col-4::before { content: "Reservasi"; }

  .copy-grid-wrapper [class^="col-"]::before {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
  }

  .copy-grid-wrapper .btn-reservasi,
  .copy-grid-wrapper .add-to-chart-button {
    width: 100%;
    height: 40px;
    border-radius: 999px;
  }
}

/* ===============================
   ICON LOCK (TIDAK TERSEDIA)
   =============================== */
.copy-grid-wrapper .lock-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #9ca3af; /* abu-abu */
  color: #fff;
  border-radius: 50%;
  cursor: not-allowed;
}

.copy-grid-wrapper .lock-button i {
  font-size: 14px;
}

/* ===============================
   RESERVASI – ANTRIAN
   =============================== */
.copy-grid-wrapper .queue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #facc15;      /* kuning */
  color: #1f2937;           /* teks gelap */
  border-radius: 50%;
  cursor: pointer;
  transition: .2s;
}

.copy-grid-wrapper .queue-button:hover {
  background: #eab308;
  transform: translateY(-1px);
}

.copy-grid-wrapper .queue-button i {
  font-size: 14px;
}

.queue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #facc15; /* kuning */
  color: #1f2937;
  border-radius: 50%;
  cursor: pointer;
}

.queue-button span {
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
}

.queue-button.disabled {
  background: #e5e7eb;
  color: #6b7280;
  cursor: not-allowed;
}