@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
    --navy:#102a43;
    --blue:#1769aa;
    --sky:#eaf4ff;
    --gold:#e7b75a;
    --ink:#243b53;
    --muted:#627d98;
    --line:#d9e2ec;
    --surface:#f5f8fc;
}
* {
    box-sizing:border-box;
}
body {
    font-family:'DM Sans',Arial,sans-serif;
    color:var(--ink);
    background:#f8fafc;
    line-height:1.65;
}
h1,h2,h3,h4,.navbar-brand {
    font-family:'Manrope',sans-serif;
    font-weight:800;
    letter-spacing:-.025em;
}
.navbar {
    background:rgba(79, 114, 147, 0.98);
    box-shadow:0 8px 30px #102a431c;
}
.navbar-brand {
    font-size:1.25rem;
    color:white!important;
}
.brand-mark {
    display:inline-grid;
    place-items:center;
    width:38px;
    height:38px;
    margin-right:9px;
    border-radius:12px;
    background:var(--gold);
    color:var(--navy);
}
.navbar .nav-link {
    color:#eaf2f8!important;
    font-size:.92rem;
}
.navbar .nav-link:hover,.navbar .nav-link.active {
    color:var(--gold)!important;
}
.dropdown-menu {
    border:0;
    box-shadow:0 15px 35px #102a4324;
    border-radius:14px;
    padding:.6rem;
    max-height:70vh;
    overflow:auto;
}
.dropdown-item {
    border-radius:8px;
    padding:.55rem .8rem;
}
.dropdown-item:hover {
    background:var(--sky);
    color:var(--blue);
}
.hero {
    position:relative;
    overflow:hidden;
    color:#fff;
    background:linear-gradient(110deg,#a41e1ef5 0%,#1c6164d9 68%,#aa371799 100%),url('../images/library-hero.jpg') center/cover;
    min-height:420px;
    display:flex;
    align-items:center;
}
.hero:after {
    content:'';
    position:absolute;
    width:370px;
    height:370px;
    border:1px solid #ffffff30;
    border-radius:50%;
    right:-100px;
    top:-90px;
    box-shadow:0 0 0 45px #ffffff0b,0 0 0 90px #ffffff08;
}
.hero-content {
    position:relative;
    z-index:1;
}
.eyebrow {
    display:inline-flex;
    gap:.5rem;
    align-items:center;
    color:var(--gold);
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.13em;
    text-transform:uppercase;
}
.hero h1 {
    font-size:clamp(2.35rem,5vw,4.3rem);
    line-height:1.08;
    max-width:760px;
}
.hero p {
    max-width:620px;
    color:#e4eef7;
    font-size:1.08rem;
}
.search-panel {
    background:white;
    border:1px solid var(--line);
    border-radius:18px;
    box-shadow:0 18px 45px #102a4312;
    padding:1rem;
}
.page-head {
    background:linear-gradient(120deg,#eaf4ff,#f8fafc);
    border-bottom:1px solid var(--line);
    padding:2.7rem 0 2.4rem;
}
.page-head h1 {
    color:var(--navy);
    font-size:clamp(2rem,4vw,3rem);
}
.breadcrumb {
    font-size:.88rem;
}
.breadcrumb a {
    color:var(--blue);
    text-decoration:none;
}
.section-space {
    padding:4rem 0;
}
.section-kicker {
    color:var(--blue);
    font-size:.78rem;
    text-transform:uppercase;
    letter-spacing:.14em;
    font-weight:800;
}
.section-title {
    color:var(--navy);
    font-size:clamp(1.7rem,3vw,2.4rem);
}
.muted {
    color:var(--muted);
}
.feature-card,.book-card,.info-card,.stat-card,.content-card {
    border:1px solid #e1eaf2;
    border-radius:18px;
    background:white;
    box-shadow:0 8px 28px #102a4308;
    transition:transform .2s,box-shadow .2s;
    height:100%;
}
.feature-card:hover,.book-card:hover,.info-card:hover {
    transform:translateY(-4px);
    box-shadow:0 16px 34px #102a4316;
}
.feature-icon {
    width:48px;
    height:48px;
    border-radius:14px;
    background:var(--sky);
    color:var(--blue);
    display:grid;
    place-items:center;
    font-size:1.35rem;
}
.book-cover {
    height:210px;
    border-radius:13px;
    background:linear-gradient(145deg,#1769aa,#102a43);
    color:#fff;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:1.1rem;
    overflow:hidden;
    position:relative;
}
.book-cover:after {
    content:'✦';
    position:absolute;
    right:15px;
    bottom:0;
    font-size:6rem;
    color:#ffffff18;
}
.book-cover .cover-label {
    font-size:.7rem;
    letter-spacing:.15em;
    text-transform:uppercase;
    color:#e7b75a;
}
.book-cover strong {
    font-size:1.2rem;
    line-height:1.2;
    max-width:85%;
    position:relative;
    z-index:1;
}
.book-cover small {
    position:relative;
    z-index:1;
    color:#d9eaf8;
}
.book-card .card-body {
    padding:1rem;
}
.badge-soft {
    background:#eaf4ff;
    color:#1769aa;
}
.status-available {
    background:#e5f8ef;
    color:#16794b;
}
.status-borrowed {
    background:#fff2d9;
    color:#946200;
}
.btn-primary {
    background:var(--blue);
    border-color:var(--blue);
}
.btn-primary:hover {
    background:#10568d;
    border-color:#10568d;
}
.btn-gold {
    background:var(--gold);
    color:var(--navy);
    border:0;
    font-weight:700;
}
.btn-gold:hover {
    background:#f0c979;
    color:var(--navy);
}
.btn-outline-light:hover {
    color:var(--navy);
}
.stat-card {
    padding:1.2rem;
}
.stat-number {
    font-size:2rem;
    font-weight:800;
    color:var(--navy);
    font-family:'Manrope',sans-serif;
}
.stat-label {
    font-size:.88rem;
    color:var(--muted);
}
.form-control,.form-select {
    border-color:#cbd7e3;
    border-radius:10px;
    padding:.7rem .85rem;
}
.form-control:focus,.form-select:focus {
    border-color:#6ba9dc;
    box-shadow:0 0 0 .2rem #1769aa20;
}
.table {
    --bs-table-bg:transparent;
}
.table thead th {
    background:#edf4fa;
    color:var(--navy);
    font-size:.83rem;
    white-space:nowrap;
}
.table>:not(caption)>*>* {
    padding:.85rem;
}
.site-footer {
    background:#0b2035;
    color:#c5d3e0;
    padding:3rem 0 1.2rem;
}
.site-footer h5 {
    color:white;
}
.site-footer a {
    color:#c5d3e0;
    text-decoration:none;
}
.site-footer a:hover {
    color:var(--gold);
}
.footer-bottom {
    border-top:1px solid #ffffff20;
    margin-top:2rem;
    padding-top:1rem;
    font-size:.85rem;
}
.notice {
    background:#fff8e7;
    border:1px solid #f1d99c;
    border-radius:12px;
    padding:1rem;
    color:#6d5315;
}
.empty-state {
    padding:3rem 1rem;
    text-align:center;
    border:1px dashed #b8c9d9;
    border-radius:16px;
    background:white;
}
.gallery-img {
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:16px;
}
.reading-area {
    max-width:760px;
    margin:auto;
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    padding:clamp(1.5rem,4vw,3rem);
    font-family:Georgia,serif;
    font-size:1.1rem;
    line-height:1.9;
}
.admin-sidebar {
    background:var(--navy);
    border-radius:16px;
    padding:1rem;
}
.admin-sidebar a {
    display:block;
    color:#dce8f2;
    padding:.6rem .7rem;
    border-radius:8px;
    text-decoration:none;
}
.admin-sidebar a:hover {
    background:#ffffff15;
    color:var(--gold);
}
.toast-container {
    z-index:1090;
}
.back-top {
    position:fixed;
    right:18px;
    bottom:18px;
    z-index:10;
}
.small-link {
    font-size:.9rem;
    text-decoration:none;
}
.avatar {
    width:64px;
    height:64px;
    border-radius:50%;
    background:var(--sky);
    color:var(--blue);
    display:grid;
    place-items:center;
    font-size:1.5rem;
    font-weight:800;
}
@media(max-width:767px) {
    .hero {
        min-height:440px;
    }
    .section-space {
        padding:2.8rem 0;
    }
    .book-cover {
        height:185px;
    }
    .navbar-brand {
        font-size:1.05rem;
    }
}
/* Foto layanan perpustakaan */
.service-photo-card {
    overflow:hidden;
    border:1px solid #dfe8f1;
    border-radius:14px;
    background:#fff;
    box-shadow:0 8px 22px #102a430d;
    transition:transform .2s,box-shadow .2s;
}
.service-photo-card:hover {
    transform:translateY(-4px);
    box-shadow:0 14px 30px #102a4318;
}
.service-photo-card img {
    display:block;
    width:100%;
    height:125px;
    object-fit:cover;
}
.service-photo-card h3 {
    color:var(--navy);
    font-weight:800;
}
.service-photo-card p {
    min-height:3.6em;
    margin-bottom:.6rem;
}
.library-services {
    background:linear-gradient(180deg,#f2f7fc,#fff);
}

/* ===== PERBAIKAN FOOTER SELURUH HALAMAN ===== */

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Konten utama mendorong footer ke bawah */
main {
    flex: 1 0 auto;
    min-width: 0;
}

/* Footer mengikuti akhir konten */
.site-footer {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    clear: both;
}

/* Bagian halaman tidak memaksakan tinggi berlebihan */
.section-space {
    height: auto;
}
