/* Perpustakaan Digital Flipbook v1 — SB Admin 2 enhanced */
:root{--brand:#234ba5;--brand-dark:#102d68;--paper:#f5f7fc;--ink:#172b4d;--muted:#65738b}
html{scroll-behavior:smooth}body{font-family:Nunito,"Segoe UI",Arial,sans-serif}button,input,select,textarea{font-size:inherit}.container-xl{max-width:1350px}.admin-wide{max-width:1700px;margin:auto}.admin-table{font-size:.84rem;line-height:1.35}.admin-table th{background:#f5f7fc;white-space:nowrap;font-weight:800;color:#4a5676}.admin-table td,.admin-table th{vertical-align:middle!important;padding:.52rem .6rem!important}.card-header{background:#fdfdff}.sidebar .nav-link{padding:.83rem 1rem!important}.sidebar .nav-item.active .nav-link{background:rgba(255,255,255,.13)}.custom-file-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.form-control:focus,.custom-select:focus{box-shadow:0 0 0 .15rem rgba(35,75,165,.18)}.min-vh-100{min-height:100vh}.login-card{max-width:490px}.login-icon{width:70px;height:70px;border-radius:22px;display:inline-flex;align-items:center;justify-content:center;background:#eef3ff;color:#315bc7}
.site-public{display:flex;flex-direction:column;min-height:100vh;background:var(--paper);color:var(--ink)}.site-public main{flex:1}.public-nav{background:#fff;border-bottom:1px solid #e8ecf6;box-shadow:0 3px 14px rgba(30,52,100,.04);min-height:75px}.public-nav .nav-link{font-weight:700;color:#4d5c72!important;padding:.75rem 1rem!important}.public-nav .nav-link:hover{color:var(--brand)!important}.public-nav .navbar-brand{font-size:1.06rem;max-width:68vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand-symbol{height:37px;width:37px;display:inline-flex;align-items:center;justify-content:center;background:#e9efff;color:#345bc4;border-radius:11px;margin-right:6px}
.hero-public{position:relative;overflow:hidden;background:linear-gradient(119deg,#102b62 2%,#1e4a9f 65%,#325cc1);color:#fff;padding:78px 0 84px}.hero-public:before{content:"";position:absolute;width:650px;height:650px;border-radius:50%;right:-200px;top:-390px;background:rgba(255,255,255,.06)}.hero-public:after{content:"";position:absolute;width:440px;height:440px;border-radius:50%;right:4%;bottom:-380px;background:rgba(255,255,255,.05)}.hero-content{position:relative;z-index:1}.hero-public .display-4{max-width:740px;font-size:clamp(2.1rem,4.5vw,3.5rem);line-height:1.13;letter-spacing:-.035em}.hero-public h1 span{color:#b8d7ff}.hero-public .lead{font-size:1.1rem;color:#e2edff;max-width:640px;line-height:1.7}.eyebrow,.section-kicker{letter-spacing:.15em;font-size:.72rem;font-weight:800}.eyebrow{color:#c9deff}.section-kicker{color:#4669c4}.hero-search{max-width:655px}.hero-search .input-group{background:#fff;box-shadow:0 16px 30px rgba(0,0,0,.15);border-radius:10px;padding:5px}.hero-search .form-control{border:0;box-shadow:none!important;padding:16px 18px}.hero-search .btn{border-radius:8px}.hero-art{align-items:center}.floating-book{height:238px;width:204px;border-radius:9px 18px 18px 9px;background:linear-gradient(145deg,#3c76de,#18367d);border:7px solid #96b8fc;box-shadow:28px 27px 0 -14px #e6eaf6,30px 30px 0 -9px #98baf1,0 24px 45px #0a2553;transform:rotate(-11deg);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px}.floating-book i{font-size:5.5rem;color:#e0eeff}.floating-book small{font-size:.56rem;letter-spacing:.18em;color:#d8e6ff}
.filter-bar{padding:22px 22px 12px;border-radius:12px}.pub-card{background:#fff;border-radius:13px;overflow:hidden;box-shadow:0 3px 18px rgba(20,45,93,.075);transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column}.pub-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(20,45,93,.12)}.cover-link{height:270px;background:#e7edfa;display:block;overflow:hidden}.pub-cover-img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}.pub-cover-placeholder{position:relative;background:linear-gradient(150deg,#173570 0%,#2456ad 68%,#3d75cd 100%);color:#fff;height:100%;width:100%;display:flex;flex-direction:column;padding:25px;overflow:hidden;justify-content:space-between}.pub-cover-placeholder:before{content:"";position:absolute;border:2px solid rgba(255,255,255,.12);inset:13px;border-radius:2px}.pub-cover-placeholder:after{content:"";position:absolute;bottom:-95px;right:-70px;width:200px;height:200px;border:40px solid rgba(255,255,255,.07);border-radius:50%}.cover-topline{letter-spacing:.15em;font-size:.54rem;font-weight:800;color:#d9eaff;z-index:1}.cover-mark{margin-top:0;text-align:center;color:#bed7ff;font-size:3.4rem;z-index:1}.cover-title{text-align:center;font-size:1.25rem;font-weight:800;line-height:1.3;max-height:5.25em;overflow:hidden;z-index:1}.cover-bottom{text-align:center;letter-spacing:.18em;font-size:.62rem;font-weight:800;color:#d9eaff;z-index:1}.pub-card-body{padding:19px;display:flex;flex-direction:column;flex:1}.pub-card-title{font-size:.98rem;line-height:1.44}.pub-card-title a{color:#202c46}.pub-card-title a:hover{color:#1b53b9;text-decoration:none}.pub-card-body .text-muted:last-child{margin-top:auto}.clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.empty-state{background:#fff;border:1px dashed #d5dff2;border-radius:13px;padding:65px 24px}.public-footer{background:#fff;border-top:1px solid #e8ecf5}.detail-cover{background:#fff;padding:10px;border-radius:13px;max-width:370px;margin:auto;aspect-ratio:3 / 4.2}.detail-cover img{width:100%;height:100%;object-fit:contain}.detail-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.detail-meta>div{background:#fff;border:1px solid #e9edf5;padding:14px;border-radius:9px;display:grid;grid-template-columns:25px 1fr;column-gap:7px}.detail-meta i{grid-row:1/3;color:#3766c6;padding-top:3px}.detail-meta span{font-size:.75rem;color:#677791}.detail-meta strong{font-size:.87rem;overflow-wrap:anywhere}.gap-actions{gap:10px}
.reader-root{flex:1;background:#202e49;display:flex;flex-direction:column;min-height:calc(100vh - 150px);color:#fff}.reader-topline{display:flex;align-items:center;justify-content:space-between;background:#1b2943;padding:13px 24px;gap:12px}.reader-title{display:flex;flex-direction:column;overflow:hidden}.reader-title strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:70vw;font-size:.95rem}.reader-subtitle{font-size:.7rem;color:#b5c6e8}.reader-nav-actions{display:flex;gap:6px}.reader-toolbar{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;background:#263856;padding:10px 15px}.reader-toolbar button{border:1px solid #59729d;background:#344c74;color:#fff;border-radius:7px;min-height:33px;min-width:34px;padding:4px 10px}.reader-toolbar button:hover{background:#4166a0}.reader-toolbar button:focus{outline:2px solid #a4c6ff}.reader-toolbar span{white-space:nowrap}.toolbar-divider{height:25px;border-left:1px solid #54709c;margin:0 3px}.reader-search{display:flex;align-items:center}.reader-search input{background:#f5f7fc;color:#2d3a53;width:180px;border-radius:6px 0 0 6px;padding:7px 9px;border:0;height:33px}.reader-search button{border-radius:0 6px 6px 0!important}.reader-status{padding:12px;text-align:center;color:#dce7fc}.reader-status:empty{display:none}.flip-viewport{flex:1;min-height:560px;overflow:auto;display:flex;justify-content:center;align-items:flex-start;padding:28px 15px 38px;background:radial-gradient(ellipse at center,#354b70,#1d2940)}#bookWrap{max-width:100%;width:max-content;position:relative;margin:0 auto}#book{margin:0 auto}.doc-page{background:#fff;color:#26334e;overflow:hidden;box-shadow:inset 0 0 4px #ccc;position:relative}.doc-page .page-placeholder{width:100%;height:100%;display:flex;justify-content:center;align-items:center;color:#a1b0c6;background:#fefefe}.doc-page .page-placeholder:after{content:attr(data-label);font-size:13px}.doc-page canvas{display:block;width:100%;height:100%;object-fit:contain}.reader-bottomline{color:#a3b5d8;text-align:center;padding:10px;background:#1b2943}.reader-fallback{height:min(80vh,900px);background:#eef2fb}.reader-fallback iframe{height:100%;width:100%;border:0}.reader-results{position:fixed;right:20px;top:215px;max-height:54vh;overflow-y:auto;width:min(400px,calc(100vw - 40px));background:#fff;color:#2d3952;z-index:50;border-radius:12px;padding:16px;box-shadow:0 20px 50px rgba(0,0,0,.3)}.reader-results .result-item{width:100%;text-align:left;background:#f6f8fd;color:#263551;border:1px solid #e4eaf6;padding:8px 10px;border-radius:7px;margin:3px 0}.reader-results .result-item:hover{background:#eaf1ff}.reader-results .result-item strong{display:block;color:#2459bb}.reader-results .result-item small{color:#61708b;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:991.98px){.hero-public{padding:54px 0 60px}.hero-search .form-control{min-width:0}.cover-link{height:235px}.admin-wide{padding-left:15px!important;padding-right:15px!important}}
@media (max-width:767.98px){.public-nav{min-height:64px}.public-nav .navbar-brand{font-size:.92rem}.hero-public{padding:43px 0}.hero-public .display-4{font-size:2.1rem}.hero-public .lead{font-size:1rem}.cover-link{height:235px}.detail-meta{gap:10px}.reader-root{min-height:calc(100vh - 115px)}.reader-title strong{max-width:50vw}.reader-toolbar{gap:6px;padding:8px}.reader-search{order:2;width:100%;justify-content:center}.reader-search input{width:min(80%,360px)}.reader-toolbar button{padding:4px 8px}.reader-results{top:180px}.flip-viewport{padding:12px 2px 18px;min-height:480px}.reader-bottomline{font-size:.75rem}.sidebar.toggled{width:0!important;overflow:hidden}.sidebar.toggled .nav-item .nav-link span{display:none}}
@media (max-width:575.98px){.pub-card-body{padding:13px}.cover-link{height:210px}.pub-cover-placeholder{padding:15px}.cover-mark{font-size:2rem}.cover-title{font-size:1.07rem}.detail-meta{grid-template-columns:1fr}.reader-toolbar #zoomLabel{display:none}.reader-toolbar .toolbar-divider{margin:0}.reader-topline{padding:10px 11px}}
@media print{.sidebar,.topbar,.btn,.public-nav,.public-footer,.card-header .btn{display:none!important}#content-wrapper{width:100%!important}.card{box-shadow:none!important;border:1px solid #ddd}#wrapper{display:block!important}.admin-wide{padding:0!important}.container-fluid{width:100%!important}}

.brand-logo{display:block;width:37px;height:37px;object-fit:contain;border-radius:10px}
.site-public .btn-primary{background:var(--brand);border-color:var(--brand)}
.site-public .btn-primary:hover{filter:brightness(.88)}
.site-public .text-primary,.site-public a:not(.btn):hover{color:var(--brand)!important}
.site-public .bg-primary{background:var(--brand)!important}
