/**
 * @Author: Waris Agung Widodo <user>
 * @Date:   2018-01-22T10:46:36+07:00
 * @Email:  ido.alit@gmail.com
 * @Filename: style.css
 * @Last modified by:   user
 * @Last modified time: 2018-01-26T11:08:52+07:00
 */

@import url('../../../../css/core.css');

html {
    scroll-behavior: smooth;
}

.search {
    margin-top: -1130px;
}

.search input {
    padding-right: 35px;
}

.search .input-transparent {
    border: none;
    outline: none;
    background: transparent;
    font-size: 16pt;
}

.search .input-transparent::placeholder {
    font-weight: 200;
    color: #ccc;
}

.search .card {
    background-image: url('../images/icon/ios7-search.png');
    background-repeat: no-repeat;
    background-position: 98% center;
    background-size: 30px;
}

.shadow {
    box-shadow: 0 0 4px rgba(0, 0, 0, .05), 0 6px 10px rgba(0, 0, 0, .08);
}

.topic {
    list-style: none;
}

.topic li {
    width: 160px;
    height: 160px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.topic li a {
    font-size: 12px;
    color: #666;
    text-align: center;
    text-decoration: none;
    opacity: 0.8;
}

.topic li a:hover {
    text-decoration: none;
    opacity: 1;
}

.text-thin {
    font-weight: 200 !important;
}

.subtitle-section {
    font-size: 12px;
}

.btn-rounded {
    border-radius: 20px 20px 20px 20px;
    padding-left: 32px;
    padding-right: 32px;
    font-weight: 200;
}

.card-text.title {
    font-size: 12px;
}

.link-see-more {
    font-style: italic;
    color: #999;
    text-decoration: none;
}

.link-see-more:hover {
    color: #666;
    text-decoration: none;
}

.advanced-wraper {
    background: #fff;
    padding: 16px;
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    border-radius: 4px;
    z-index: 999;
}

.card-image-rounded {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 50%;
    background: #ccc;
}

.card-image {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #f1f1f1;
}

.card-image img,
.card-image-rounded img {
    width: 102%;
    height: 102%;
    margin-top: -1%;
    margin-left: -1%;
}

.collection .card-text {
    font-size: 12px;
}

.result-search .c-header {
    min-height: 120px;
}

.member-area .c-header {
    min-height: 40px;
}

.item p {
    font-size: 10pt;
}

.authors a {
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    padding-left: 16px;
    padding-right: 16px;
}

.availability {
    text-align: center;
    overflow: hidden;
}

.availability .label {
    font-size: 7pt;
    color: #aaa;
}

.availability .value {
    font-size: 28pt;
    font-weight: 200;
}

.add-to-chart {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #606f7b;
    color: #f8fafc;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.add-to-chart .label {
    color: #f8fafc;
}

.availability:hover .add-to-chart {
    opacity: 1;
}

.availability:hover .availability-content {
    filter: blur(8px);
    -webkit-filter: blur(8px);
}

.biblioPaging {
    text-align: center;
    border-top: 1px solid #dae1e7;
    padding-top: 20px;
}

.biblioPaging:first-child {
    margin-bottom: 1rem;
    border-bottom: 1px solid #dae1e7;
    border-top: none;
    padding-bottom: 20px;
    padding-top: 0px;
}

.biblioPaging .pagingList {
    display: inline-flex;
    justify-content: center;
    background: #dae1e7;
    border-radius: 20px;
}

.biblioPaging .pagingList b,
.biblioPaging .pagingList a {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    text-decoration: none;
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
}

.biblioPaging .pagingList b {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 20px;
    min-width: 38px;
    box-shadow: 0px 0px 10px #007bff;
}

.biblioPaging .pagingList a {
    color: #3d4852;
    background-color: transparent;
}

.biblioPaging .pagingList a:hover {
    color: #007bff;
}

.biblioPaging .pagingList a.first_link {
    padding-left: 20px;
}

.biblioPaging .pagingList a.last_link {
    padding-right: 20px;
}

.sugestion {
    min-height: 80px;
    margin-top: 16px;
    padding-left: 60px;
}

.sugestion .title {
    font-weight: 600;
}

.sugestion .author {
    color: #839CB5;
}

.container-img {
    width: 60px;
    position: absolute;
    top: -10px;
    left: 10px;
    overflow: hidden;
    border-radius: 4px;
}

.sugestion .card-text {
    font-size: 12px;
}

.text-label {
    font-weight: bold !important;
}

/* Enter and leave animations can use different */
/* durations and timing functions.              */
.slide-fade-enter-active {
    transition: all .3s ease;
}

.slide-fade-leave-active {
    transition: all .5s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}

.slide-fade-enter,
.slide-fade-leave-to

/* .slide-fade-leave-active below version 2.1.8 */
    {
    transform: translateX(10px);
    opacity: 0;
}

/* Card elevation */

.elevation-1 {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.elevation-1:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.elevation-2 {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.elevation-3 {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.elevation-4 {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.elevation-5 {
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22);
}

.page-member-area .memberButton,
.jsonResultLink,
.xmlResultLink {
    font-weight: 400;
    color: #007bff;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.jsonResultLink:hover,
.xmlResultLink:hover {
    color: #0056b3;
    text-decoration: none;
}

.jsonResultLink:focus,
.xmlResultLink:focus {
    text-decoration: none;
    box-shadow: none;
}

.jsonResultLink:disabled,
.xmlResultLink:disabled {
    color: #6c757d;
    pointer-events: none;
}

.biblioMarkFormAction {
    display: none;
}

.memberInfoHead {
    font-size: 24px;
    font-weight: bold;
    border-left: 4px solid #848484;
    padding: 2px 4px 2px 16px;
    margin-bottom: 16px;
}

.page-member-area .tagline {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    padding-bottom: 1.5rem;
}

.page-member-area .memberButton {
    background-color: #0074e7;
    color: white;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 200ms ease-in-out;
}

.page-member-area .memberButton:hover {
    background-color: #0085ff;
    box-shadow: 0 0 4px rgba(0, 0, 0, .05), 0 6px 10px rgba(0, 0, 0, .08);
}

.page-member-area .errorBox {
    color: #fd423d;
    padding: 1rem;
    background-color: rgba(255, 67, 61, 0.22);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.page-member-area .loginInfo {
    padding: 0.5rem 0;
}

.page-member-area .fieldLabel {
    font-weight: bold;
    padding: 0.2rem 0;
}

.page-member-area .form-control {
    width: 320px;
}

.librarian {
    display: flex;
    margin-bottom: 1.5rem;
    flex: 0 50%;
}

.span2 {
    width: 12rem;
}

.span2 div:first-child {
    padding: 2rem;
    background: #dae1e7;
    border-radius: 4px;
}

.span2 img {
    border-radius: 4px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12),
        0 2px 4px 0 rgba(0, 0, 0, 0.08);
}

.span8 {
    flex: 1;
    padding: 0 1rem 0 1rem;
}

.span8 .row-fluid {
    display: flex;
}

.span8 .row-fluid .key {
    flex: 0 0 100px;
    font-weight: bold;
}

.span8 .row-fluid .value {
    flex: 1;
}

.span8 .librarian-social {
    list-style: none;
    padding: 0;
    margin: 0;
}

#loginForm form {
    width: 20rem;
}

#loginForm .heading1 {
    font-weight: bold;
}

#loginForm .login_input input {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin-bottom: 8px;
}

#loginForm .homeButton {
    display: none;
}

.loginButton {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#loginForm .loginButton {
    margin-top: 10px;
}

#loginForm .loginButton {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

#loginForm .loginButton:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

#adv-modal .modal-content,
#adv-modal .modal-footer {
    position: relative;
    z-index: 1;
}

#adv-modal .modal-content:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-image: url("../images/logo-big.png");
    background-repeat: no-repeat;
    background-size: 50%;
    background-position-x: 500px;
    background-position-y: 250px;
    z-index: 0;
    opacity: 0.5;
}

.attachList {
    padding: 4px 24px;
}

.attachList li {
    padding: 4px 0;
}

.comment-found {
    display: inline-block;
    margin-bottom: 8px;
}

.comments {
    padding: 8px 0;
    border-top: 1px dotted #cbd5e0;
}

.comments .comment-member {
    font-size: 10pt;
    font-weight: bold;
}

.comments .comment-content {
    color: #4a5568;
}

#vio {
    position: relative;
    width: 100%;
    text-align: center;
    z-index: 99999999999;
    background: #f56565;
    padding: 8px 0;
    color: #fff5f5;
}

#vio a {
    color: #2d3748;
}

#colorbox {
    border-radius: 5px;
}

#cboxLoadedContent {
    padding: 10px;
}

#cboxOverlay {
    background: #404040;
}

#cboxTitle {
    font: 10pt/1.8 'Quicksand', sans-serif;
    font-weight: bold;
    padding: 15px 0;
    background: #000000;
    bottom: 0;
    color: #ffffff;
}

#cboxTopLeft,
#cboxTopRight,
#cboxBottomLeft,
#cboxBottomRight {
    width: 0;
    height: 0;
}

#cboxMiddleLeft,
#cboxMiddleRight {
    width: 0;
}

#cboxBottomCenter,
#cboxTopCenter {
    height: 0;
}

#languageMenuButton::after {
    display: none;
}

.s-chat {
    display: none;
    flex-direction: column;
    width: 320px;
    height: 480px;
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 16px;
    overflow: hidden;
    z-index: 99;
}

.s-chat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: #EF6C00;
    z-index: 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.s-chat div,
.s-chat a,
.s-chat footer {
    position: relative;
    z-index: 10;
}

#show-pchat {
    display: block;
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: 20;
    top: 0;
    right: 0;
    background-color: white;
    border-bottom-left-radius: 4px;
    cursor: pointer;
}

#show-pchat i {
    display: none;
}

#show-pchat:hover {
    opacity: .9;
}

#show-pchat:before {
    font-family: Font Awesome\ 5 Free;
    content: "\f2d1";
    text-align: center;
    position: absolute;
    left: 0;
    right: 0;
}

.s-chat-header {
    font-size: 24px;
    font-weight: 300;
    color: #ebf8ff;
    line-height: 1.2;
}

.s-chat-content.text-center {
    position: relative;
}

.s-chat-content.text-center form {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 0 16px;
    margin-top: 4px;
}

.s-chat-content.text-center p:first-of-type {
    text-align: left;
    font-size: 14px;
    color: #FFE0B2;
    font-weight: 300;
    margin: 0 -16px;
    line-height: 1;
}

.s-chat-content.text-center hr {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 378px;
    z-index: 1;
}

.s-chat-content.text-center label {
    z-index: 10;
    position: relative;
    margin-top: 20px;
    font-size: 14px;
}

.s-chat-content.text-center input#message {
    z-index: 10;
    position: relative;
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    margin-bottom: 16px;
}

.s-chat-content input#message:focus,
.s-chat-content.text-center input#message:focus {
    color: #495057;
    background-color: #fff;
    border-color: #FFCC80;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 204, 128, .25);
}

.s-chat-content label {
    z-index: 10;
    position: relative;
}

.s-chat-content input#message {
    z-index: 10;
    position: relative;
    display: inline-block;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    margin-bottom: 8px;
}

.s-chat-content .btn.btn-block {
    border: 1px solid #E65100;
    position: relative;
    z-index: 10;
    font-size: 14px;
    background-color: #EF6C00;
    color: #FFF3E0;
}

.s-chat-content .btn.btn-block:hover {
    background-color: #F57C00;
}

.s-chat-content:not(.text-center) {
    border-radius: 8px;
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    height: 370px;
    margin: 8px 0;
    padding: 16px;
    font-size: 14px;
}

.s-chat-content #log {
    height: 270px;
    background-color: white;
    margin: -16px -16px 8px -16px;
    border-radius: 8px 8px 0 0;
    padding: 16px;
    border-bottom: 1px solid #e3e3e3;
    overflow-y: scroll;
}

.s-chat footer {
    font-size: 11px;
    padding: 16px;
    display: none;
}

.s-chat footer:not(.text-center) {
    font-size: 11px;
    padding: 0;
    display: block;
}

.remember_forgot {
    display: flex;
    justify-content: space-between;
}

.expand {
    margin: 0 -1.25rem -1.25rem -1.25rem;
}

.navbar-collapse.collapsing,
.navbar-collapse.collapse.show {
    background-color: #2d3748;
    padding: 16px;
    z-index: 99;
    border-radius: 4px;
    margin-top: 8px;
}

.forgotButton {
    float: right;
    text-decoration: none;
    padding-top: 16px;
    color: #718096;
}

.forgotButton:hover {
    text-decoration: none;
    color: #4299E1;
}

.highlight {
    color: red;
}

.biblioPagingTop {
    display: none;
}

.grid-item {
    font-size: 12.04px;
    font-family: "Open Sauce One", sans-serif;
}

.grid-item--title {
    box-sizing: border-box;
    color: rgb(33, 33, 33);
    cursor: pointer;
    display: -webkit-box;
    line-height: 18.0667px;
    margin-bottom: 4px;
    max-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: pre-wrap;
    word-break: keep-all;
    -moz-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.grid-item .list-group-item {
    padding: .25rem .5rem;
    display: flex;
    justify-content: space-between;
}

.grid-item .list-group-item label {
    color: #6D7588;
    padding: 0;
    margin: 0;
}

img.not-available {
    filter: grayscale(.9);
}

.grid-item--menu {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 10;
}

.grid-item--menu .dropdown-toggle {
    text-decoration: none;
    color: inherit;
}

.grid-item--menu .dropdown-toggle::after {
    display: none;
}

pre.sf-dump,
pre.sf-dump .sf-dump-default {
    z-index: 888 !important;
}

.availability-item {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    display: inline-block;
}

.item-onloan {
    background-color: #f00;
    color: white;
}

.item-available {
    background-color: #f3f4f6;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
}

.item-notforloan {
    background-color: #6b7280;
    color: white;
}

/* Sidebar Availability Table Styling */
.avail-list-compact {
    font-size: 0.85rem;
}
.avail-list-compact .row-avail {
    border-bottom: 1px solid #edf2f7;
    margin: 0;
    padding: 10px 0;
}
.avail-list-compact .row-avail:last-child {
    border-bottom: none;
}
.avail-list-compact .loc-name {
    font-weight: 600;
    color: #4a5568;
    display: block;
}
.avail-list-compact .call-num {
    color: #a0aec0;
    font-size: 0.75rem;
}

/* Tambahkan ini untuk memperbaiki masalah Parent Collapsing karena Float */
.clearfix::after,
.container::after,
.row::after {
    content: "";
    clear: both;
    display: table;
}

/* CSS BARU UNTUK PESAN SELAMAT DATANG (VUE.JS) */
.visitor-welcome-message {
    text-align: center;
}

.visitor-image-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto 1rem auto;
    overflow: hidden;
}

.visitor-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visitor-welcome-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    /* Sesuaikan warna dengan tema Anda jika perlu */
    color: #004d40;
    margin-bottom: 0.5rem;
}

.visitor-welcome-message p {
    font-size: 1rem;
    color: #495057;
}

/* AKHIR CSS BARU */
< !--==================================

/* Kontainer utama untuk menengahkan kartu */
.visitor-layout-container {
    display: flex;
    align-items: center;
    /* Vertikal tengah */
    justify-content: center;
    /* Horizontal tengah */
    min-height: 100vh;
    /* Penuh tinggi layar */
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Kartu putih yang mengambang di tengah */
.visitor-center-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem 2.5rem;
    width: 100%;
    max-width: 500px;
    /* Lebar form ideal */
}

/* Judul "Buku Tamu" */
.visitor-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #212529;
    text-align: center;
}

.visitor-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Style untuk Form (dari desain Anda) */
.visitor-form .form-group {
    margin-bottom: 1rem;
}

.visitor-form label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.visitor-form .form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    width: 100%;
    box-sizing: border-box;
    /* Menambahkan ini agar padding tidak merusak lebar */
}

.visitor-form .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
}

.visitor-form .form-text {
    font-size: 0.85rem;
}

/* Style untuk Pesan Selamat Datang (Setelah check-in) */
.visitor-welcome-message {
    text-align: center;
    padding: 2rem 0;
}

.visitor-image-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto 1rem auto;
    overflow: hidden;
}

.visitor-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visitor-welcome-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #004d40;
    /* Warna teal tema Anda */
    margin-bottom: 0.5rem;
}

.visitor-welcome-message p {
    font-size: 1rem;
    color: #495057;
}

/* Style untuk Statistik (Horizontal) */
.stat-item-horizontal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.stat-item-horizontal .stat-item {
    text-align: center;
    padding: 0.25rem 0.5rem;
}

.stat-item-horizontal .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #004d40;
}

.stat-item-horizontal .stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
}

/* Style untuk Kutipan/Testimoni */
.testimonials-list {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.testimonial-item {
    font-style: italic;
    color: #495057;
    font-size: 0.9rem;
}

.testimonial-item p {
    margin-bottom: 0.5rem;
}

.testimonial-item span {
    font-style: normal;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.85rem;
    float: right;
}

/* Tombol Kembali ke Beranda */
.visitor-home-link {
    text-align: center;
    margin-top: 1.5rem;
}

.visitor-home-link a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.visitor-home-link a:hover {
    color: #eee;
    text-decoration: underline;
}

/* GRID SYSTEM 3 KOLOM */
.news-item-wrapper {
    width: 33.33%;
    float: left;
    padding: 15px;
    box-sizing: border-box;
}

/* CARD DESIGN */
.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    height: 520px;
    /* Tinggi Fix agar sejajar */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

/* GAMBAR HEADER */
.news-cover-link {
    display: block;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
}

.news-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-cover-link:hover .news-cover-img {
    transform: scale(1.05);
}

/* PLACEHOLDER ICON */
.news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0ea5e9;
}

/* TYPOGRAPHY */
.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
}

.news-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.4;
    height: 3.0em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a {
    text-decoration: none;
    color: #1e293b;
    transition: color 0.2s;
}

.news-title a:hover {
    color: #3b82f6;
}

.news-summary {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

.news-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #3b82f6;
    font-weight: 700;
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .news-item-wrapper {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .news-item-wrapper {
        width: 100%;
        float: none;
    }

    .news-card {
        height: auto;
    }
}

/* Custom CSS untuk nuansa Toko Online ini detail */
.product-image-container {
    position: sticky;
    top: 20px;
    z-index: 10;
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.product-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s;
}

.product-image-container img:hover {
    transform: scale(1.02);
}

.product-title {
    font-weight: 700;
    font-size: 2rem;
    color: #333;
    line-height: 1.2;
}

.product-author {
    font-size: 1.1rem;
    color: #007bff;
    font-weight: 500;
}

.badge-gmd {
    background: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid #28a745;
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    color: #555;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    border-bottom: 3px solid #007bff;
    background: none;
}

.tab-content {
    padding: 20px 0;
}

.availability-list table {
    width: 100%;
    font-size: 0.9rem;
}

dt {
    color: #888;
    font-weight: 500;
}

dd {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.badge-callnumber {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #e5e7eb;
}

/* Reference-Based Design Styles */
:root {
    --primary-purple: #7c69d4;
    --primary-purple-hover: #6a56c2;
    --status-green-bg: #e8f7f0;
    --status-green-text: #10b981;
}

.btn-purple {
    background-color: var(--primary-purple);
    color: white;
    border: none;
    transition: 0.3s;
}
.btn-purple:hover {
    background-color: var(--primary-purple-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 105, 212, 0.3);
}

.btn-outline-purple {
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    background: transparent;
    transition: 0.3s;
}
.btn-outline-purple:hover {
    background-color: var(--primary-purple);
    color: white;
}

.ref-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* Sticky Sidebar Detail */
@media (min-width: 768px) {
    .sticky-sidebar-detail {
        position: -webkit-sticky;
        position: sticky;
        top: 110px; /* Offset to clear the fixed navbar */
        z-index: 10;
        transition: top 0.3s ease;
    }
}

.status-box-header {
    background-color: var(--status-green-bg);
    color: var(--status-green-text);
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-list {
    list-style: none;
    padding: 0;
}
.meta-list li {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}
.meta-list i {
    width: 25px;
    color: #9ca3af;
    margin-top: 4px;
    font-size: 0.9rem;
}
.meta-label-ref {
    width: 140px;
    color: #6b7280;
    font-size: 0.9rem;
}
.meta-value-ref {
    flex: 1;
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 500;
}

.share-icon-square {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.share-icon-square:hover {
    background: #f9fafb;
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: translateY(-2px);
}

.info-box-ref {
    background-color: #f8f7ff;
    border-radius: 15px;
    padding: 20px;
}

#copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9999;
    display: none;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    animation: slideUpToast 0.3s ease;
}

@keyframes slideUpToast {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.badge-callnumber-green {
    background-color: #059928; /* Hijau Terang */
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Plus Jakarta Sans', 'Consolas', monospace;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(5, 153, 40, 0.25);
    letter-spacing: 0.5px;
}

.item-code-tag {
    background-color: #f3f4f6;
    color: #374151;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    margin-bottom: 5px;
    display: inline-block;
}

.tab-deskripsi {
    color: #6b7280;
    font-weight: 500;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

/* Premium Availability List */
.avail-list-full {
    border: 1px solid #f1f5f9;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 15px;
}
.avail-list-full .row {
    margin: 0 !important;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}
.avail-list-full .row:last-child {
    border-bottom: none;
}
.avail-list-full .row > div {
    padding: 15px 20px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-right: 1px solid #f1f5f9;
    min-height: 80px;
}
.avail-list-full .row > div:last-child {
    border-right: none;
    align-items: center;
}
.avail-list-full .row > div:nth-child(2) {
    align-items: center;
    font-weight: 600;
    color: #4b5563;
}
.avail-list-full .item-available, .avail-list-full .item-on-loan {
    font-weight: 600;
}

.tab-deskripsi.active {
    border-bottom: 3px solid var(--primary-purple);
    color: var(--primary-purple);
    font-weight: 700;
}

/* Style Khusus Halaman Login*/
/* 1. Background Animation */
.login-wrapper {
    position: relative;
    min-height: 100vh;
    background-color: #f8fafc;
    /* Latar sedikit abu agar blob terlihat jelas */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Bola-bola warna warni blur */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blob-bounce 10s infinite ease-in-out alternate;
    /* Animasi gerakan */
    z-index: 0;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #a78bfa;
    /* Ungu Muda */
    animation-duration: 12s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: #60a5fa;
    /* Biru Muda */
    animation-delay: -5s;
    animation-duration: 15s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: #f472b6;
    /* Pink */
    animation-delay: -8s;
    animation-duration: 18s;
}

/* Keyframes Animasi Gerak */
@keyframes blob-bounce {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* 2. Login Card */
.login-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    /* Transparan */
    backdrop-filter: blur(20px);
    /* Efek Blur Kaca */
    width: 100%;
    max-width: 420px;
    /* Lebar maksimal kartu */
    padding: 50px 40px;
    border-radius: 24px;
    /* Rounded Corner Besar */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-align: center;
    margin: 20px;
}

/* 3. Form Elements (Reset SLiMS Style & Centering) */
.slims-login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Pusatkan elemen form */
}

.slims-login-form h1,
.slims-login-form h2,
.slims-login-form h3 {
    display: none !important;
}

.slims-login-form form {
    width: 100%;
    /* Pastikan form selebar container */
}

.slims-login-form .form-group {
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
    /* Label rata kiri */
}

/* Input Field Styling */
.slims-login-form input[type="text"],
.slims-login-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    /* Mencegah padding menambah lebar */
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    /* Rounded Input */
    background: #ffffff;
    color: #334155;
    font-size: 0.95rem;
    transition: all 0.3s;
    margin-top: 5px;
}

.slims-login-form input[type="text"]:focus,
.slims-login-form input[type="password"]:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.slims-login-form label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
    display: block;
}

/* Submit Button */
.slims-login-form input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    border: none;
    border-radius: 12px;
    /* Rounded Button */
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.slims-login-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

/* Checkbox (Ingat Saya) */
.slims-login-form .form-check {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 20px;
}

.slims-login-form .form-check input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.slims-login-form .form-check label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
}

/* home page CSS Grid Layout Books */
.grid-books {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .grid-books {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .grid-books {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .grid-books {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Layout Komunitas (Top Reader & Visitor) */
.grid-community {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 900px) {
    .grid-community {
        grid-template-columns: 1fr 1fr;
    }
}

/* Layout Berita & Widget (New) */
.grid-news-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 1024px) {
    .grid-news-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
}

.cover-container {
    height: 210px !important;
    width: 100% !important;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #f8fafc;
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-icon-fallback {
    font-size: 3rem;
}

/* Hero Background */
.hero-soft-bg {
    background: linear-gradient(-45deg, #fbc2eb, #a6c1ee, #fdcbf1, #e6dee9);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    padding-top: 100px;
    padding-bottom: 120px;
    /* Ditambah lagi agar card kategori benar-benar berada di dalam area pastel */
    text-align: center;
    overflow: hidden;
    /* Mencegah blob keluar dari header */
    width: 100%;
    min-height: 450px;
    /* Memastikan area pastel cukup luas */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body {
    overflow-x: hidden;
    /* Mencegah scroll horizontal karena blob */
    width: 100%;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 0;
}

/* CSS Khusus Bagian Subjek (NEW - FLOATING CARD HORIZONTAL) */

/* Container Flex untuk layout horizontal di desktop */
.floating-card-inner {
    display: flex;
    flex-direction: column;
    /* Default Mobile: Stack */
    gap: 20px;
}

/* Bagian Judul */
.floating-card-title-section {
    width: 100%;
    text-align: left;
    border-left: 5px solid #3b82f6;
    padding-left: 15px;
}

/* Bagian Grid */
.subject-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Mobile: 3 Kolom */
    gap: 15px;
    width: 100%;
}

/* Responsif untuk Tablet/Desktop: Side-by-Side */
@media (min-width: 1024px) {
    .floating-card-inner {
        flex-direction: row;
        /* Horizontal */
        align-items: center;
        justify-content: space-between;
    }

    .floating-card-title-section {
        width: 250px;
        /* Fixed width agar judul tidak kegencet */
        flex-shrink: 0;
        margin-bottom: 0;
        border-left: 5px solid #3b82f6;
        /* Pastikan border tetap ada */
    }

    .subject-grid-wrapper {
        flex-grow: 1;
        /* Ambil sisa space */
        grid-template-columns: repeat(6, 1fr);
        /* 6 kolom pas (5 subjek + 1 tombol) */
        gap: 20px;
        padding-bottom: 0;
    }
}

.subject-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.subject-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.subject-card:hover .subject-icon-box {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.subject-info {
    text-align: center;
}

.subject-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4b5563;
    line-height: 1.2;
}

/* Toggle Button Style */
.btn-toggle-card .subject-icon-box {
    background-color: #ffffff;
    /* Putih */
    border: 2px dashed #cbd5e1;
    /* Garis putus-putus */
    color: #64748b;
}

.btn-toggle-card:hover .subject-icon-box {
    border-color: #3b82f6;
    color: #3b82f6;
    background-color: #eff6ff;
    transform: scale(1.05);
    box-shadow: none;
}

/* Typewriter & Animations */
.typewriter-cursor::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    color: #f43f5e;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.fade-text {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-text-container {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 30px;
}

/* Resource Section */
.resource-section {
    background-color: #f9fafb;
    padding-top: 4rem;
    padding-bottom: 4rem;
    border-top: 1px solid #f3f4f6;
    margin-top: 60px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 640px) {
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .resource-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.resource-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    height: 110px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
}

.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: #dbeafe;
}

.resource-item img {
    max-width: 160px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* search forms */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    background: white;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-weight: 500;
}

.filter-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.filter-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

a.filter-btn[data-target="#adv-modal"]:hover {
    background-color: #2563eb !important;
    color: white !important;
    border-color: #2563eb !important;
}

.history-item {
    display: flex;
    align-items: center;
    color: #64748b;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.history-item:hover {
    background: #f8fafc;
    color: #2563eb;
}

.history-item i.fa-clock {
    margin-right: 12px;
    color: #cbd5e1;
}

/* --- SUPER PENTING: MODAL Z-INDEX FIX --- */
/* Kita menarget ID spesifik dengan z-index sangat tinggi */
#adv-modal {
    z-index: 100010 !important;
}

/* Backdrop bawaan bootstrap juga kita naikkan agar menutupi search overlay kita */
.modal-backdrop {
    z-index: 100005 !important;
}

/* Pastikan konten modal terlihat jelas */
.modal-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border: none !important;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* Ini member Wrapper Utama - UPDATED BACKGROUND */
.panda-login-body {
    /* Warna Dasar (Background Putih/Abu Sangat Muda) */
    background-color: #f8fafc;

    /* DOT GRID PATTERN */
    /* Membuat pola titik menggunakan radial-gradient */
    background-image: radial-gradient(#cbd5e1 2px, transparent 2px);

    /* Mengatur jarak antar titik (Grid Size) */
    background-size: 30px 30px;

    /* Properti Layout Tetap Sama */
    min-height: 100vh;
    width: 100%;
    font-family: "Poppins", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 60px;
    /* Space untuk Navbar SLiMS */
    overflow-x: hidden;
}


.panda-wrapper-box {
    position: relative;
    /* Hapus fixed size agar fleksibel */
    width: 100%;
    max-width: 500px;
    padding: 20px;
    display: flex;
    justify-content: center;
    /* Scaling font-size untuk responsif (Panda digambar pakai em) */
    font-size: 14px;
}

@media (min-width: 768px) {
    .panda-wrapper-box {
        font-size: 16px;
    }
}

/* --- FORM CONTAINER UTAMA --- */
.panda-form-container {
    width: 23.75em;
    min-height: 18.75em;
    background-color: #ffffff;
    padding: 2.5em 3.1em;
    border-radius: 0.5em;
    position: relative;
    /* Anchor point untuk panda parts */
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    z-index: 5;
    /* Stacking context */
}

/* Reset style form SLiMS */
.slims-content-wrapper form {
    width: 100%;
    margin: 0;
}

/* Sembunyikan judul Heading bawaan */
.slims-content-wrapper h1,
.slims-content-wrapper h2,
.slims-content-wrapper h3 {
    display: none;
}

/* Styling Teks Pengganti (Paragraph) */
.slims-content-wrapper p {
    text-align: justify;
    /* UPDATE: Rata Kanan-Kiri */
    color: #64748b;
    font-size: 0.9em;
    margin-bottom: 40px;
    /* UPDATE: Jarak ke input diperlebar */
    line-height: 1.6;
}

.slims-content-wrapper label {
    display: block;
    margin-bottom: 0.3em;
    font-weight: 600;
    color: #2e0d30;
}

/* --- STYLING KHUSUS WRAPPER PASSWORD --- */
.password-input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1.2em;
    /* Sesuai margin bottom input asli */
}

/* Icon Toggle Mata */
.toggle-password-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    /* Center vertikal */
    cursor: pointer;
    font-size: 1.2em;
    z-index: 10;
    opacity: 0.6;
    user-select: none;
    transition: opacity 0.2s;
}

.toggle-password-icon:hover {
    opacity: 1;
}

/* Update styling input agar sesuai */
.slims-content-wrapper input[type="text"],
.slims-content-wrapper input[type="password"] {
    font-size: 1em;
    font-weight: 400;
    color: #3f3554;
    padding: 0.5em 0.3em;
    padding-right: 40px;
    /* Tambahkan padding kanan agar teks tidak tertutup icon */
    border: none;
    border-bottom: 0.12em solid #3f3554;
    outline: none;
    width: 100%;
    background: transparent;
    margin-bottom: 1.2em;
    /* Default margin */
    border-radius: 0;
}

/* Hilangkan margin bottom pada input jika di dalam wrapper, karena wrapper yg handle margin */
.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    margin-bottom: 0;
}

.slims-content-wrapper input:focus {
    border-color: #f4c531;
}

.slims-content-wrapper input[type="submit"],
.slims-content-wrapper button {
    font-size: 1em;
    padding: 0.8em 0;
    border-radius: 2em;
    border: none;
    outline: none;
    background-color: #2563eb;
    color: #fdf9fdff;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-top: 1em;
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
}

.slims-content-wrapper input[type="submit"]:hover {
    background-color: #eebb00;
}

/* --- PANDA PARTS (POSISI RELATIF TERHADAP FORM) --- */

/* 1. WAJAH: Posisi Absolute di atas Form */
.panda-face {
    height: 7.5em;
    width: 8.4em;
    background-color: #ffffff;
    border: 0.18em solid #2e0d30;
    border-bottom: none;
    /* Hilangkan border bawah agar menyatu */
    border-radius: 7.5em 7.5em 5.62em 5.62em;
    position: absolute;
    top: -6.6em;
    /* Naik ke atas border */
    left: 0;
    right: 0;
    margin: auto;
    /* Center horizontal */
    z-index: -1;
    /* Di belakang form (agar dagu tertutup background form) */
}

/* Trik: Tambahkan kotak putih penutup di bawah wajah untuk memastikan dagu tertutup */
.panda-face::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -2px;
    width: 105%;
    height: 20px;
    background: #ffffff;
}

/* 2. TELINGA: Di belakang wajah */
.ear-l,
.ear-r {
    background-color: #3f3554;
    height: 2.5em;
    width: 2.81em;
    border: 0.18em solid #2e0d30;
    border-radius: 2.5em 2.5em 0 0;
    position: absolute;
    top: -7.5em;
    /* Lebih tinggi dari wajah */
    z-index: -2;
    /* Paling belakang */
}

.ear-l {
    left: 50%;
    margin-left: -4.5em;
    transform: rotate(-38deg);
}

.ear-r {
    right: 50%;
    margin-right: -4.5em;
    transform: rotate(38deg);
}

/* Elemen Dalam Wajah */
.blush-l,
.blush-r {
    background-color: #ff8bb1;
    height: 1em;
    width: 1.37em;
    border-radius: 50%;
    position: absolute;
    top: 4em;
}

.blush-l {
    transform: rotate(25deg);
    left: 1em;
}

.blush-r {
    transform: rotate(-25deg);
    right: 1em;
}

.eye-l,
.eye-r {
    background-color: #3f3554;
    height: 2.18em;
    width: 2em;
    border-radius: 2em;
    position: absolute;
    top: 2.18em;
}

.eye-l {
    left: 1.37em;
    transform: rotate(-20deg);
}

.eye-r {
    right: 1.37em;
    transform: rotate(20deg);
}

.eyeball-l,
.eyeball-r {
    height: 0.6em;
    width: 0.6em;
    background-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    left: 0.6em;
    top: 0.6em;
    transition: 0.3s all;
    /* Tambah transisi */
}

.nose {
    height: 1em;
    width: 1em;
    background-color: #3f3554;
    position: absolute;
    top: 4.37em;
    margin: auto;
    left: 0;
    right: 0;
    border-radius: 1.2em 0 0 0.25em;
    transform: rotate(45deg);
}

.nose:before {
    content: "";
    position: absolute;
    background-color: #3f3554;
    height: 0.6em;
    width: 0.1em;
    transform: rotate(-45deg);
    top: 0.75em;
    left: 1em;
}

.mouth,
.mouth:before {
    height: 0.75em;
    width: 0.93em;
    background-color: transparent;
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0.18em #3f3554;
}

.mouth {
    top: 5.31em;
    left: 3.12em;
}

.mouth:before {
    content: "";
    position: absolute;
    left: 0.87em;
}

/* 3. TANGAN: Menempel di Border ATAS */
.hand-l,
.hand-r {
    background-color: #3f3554;
    height: 2.81em;
    width: 2.5em;
    border: 0.18em solid #2e0d30;
    border-radius: 0.6em 0.6em 2.18em 2.18em;
    transition: 0.5s all;
    position: absolute;
    top: -1.2em;
    /* Overlap sedikit dengan border atas */
    z-index: 10;
    /* Di depan form */
}

.hand-l {
    left: 1.5em;
}

.hand-r {
    right: 1.5em;
}

/* 4. KAKI (PAWS): Menempel di Border BAWAH */
.paw-l,
.paw-r {
    background-color: #3f3554;
    height: 3.12em;
    width: 3.12em;
    border: 0.18em solid #2e0d30;
    border-radius: 2.5em 2.5em 1.2em 1.2em;
    position: absolute;
    bottom: -1.4em;
    /* Overlap sedikit dengan border bawah */
    z-index: 10;
    /* Di depan form */
}

.paw-l {
    left: 3em;
}

.paw-r {
    right: 3em;
}

.paw-l:before,
.paw-r:before {
    position: absolute;
    content: "";
    background-color: #ffffff;
    height: 1.37em;
    width: 1.75em;
    top: 1.12em;
    left: 0.55em;
    border-radius: 1.56em 1.56em 0.6em 0.6em;
}

.paw-l:after,
.paw-r:after {
    position: absolute;
    content: "";
    background-color: #ffffff;
    height: 0.5em;
    width: 0.5em;
    border-radius: 50%;
    top: 0.31em;
    left: 1.12em;
    box-shadow: 0.87em 0.37em #ffffff, -0.87em 0.37em #ffffff;
}

/* Styling Khusus Modal ini */
#adv-modal .custom-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#adv-modal .custom-input {
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    padding: 12px 15px;
    height: auto;
    font-size: 0.95rem;
    transition: all 0.2s;
    background-color: #fff;
}

#adv-modal .custom-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background-color: #fff;
}

/* Fix untuk Select Option agar tingginya sama */
#adv-modal select.custom-input {
    height: 48px !important;
}

#adv-modal .custom-submit-btn {
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

#adv-modal .custom-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white;
}

/* Fix Close Button Hover */
#adv-modal .close:hover {
    opacity: 1 !important;
    color: #ef4444;
}
/* Style Badge Ketersediaan */
.item-available {
    display: inline-block !important;
    padding: 6px 16px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    background-color: #f0fdf4 !important;
    color: #16a34a !important;
    border: 1.5px solid #16a34a !important;
    text-align: center;
}

.item-on-loan {
    display: inline-block !important;
    padding: 6px 16px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    background-color: #ff0000 !important;
    color: #ffffff !important;
    text-align: center;
    line-height: 1.3 !important;
    border: 1.5px solid #ff0000 !important;
}

/* MODERN LIST VIEW ALIGNMENT FIX */
.biblioResult .item.biblioRecord {
    display: flex !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
    gap: 30px !important;
    align-items: flex-start !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.biblioResult .item.biblioRecord:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06) !important;
    border-color: #3b82f6 !important;
}

.biblioResult .item.biblioRecord .item-img {
    flex: 0 0 140px !important;
    max-width: 140px !important;
    width: 140px !important;
    padding: 0 !important;
}

.biblioResult .item.biblioRecord .item-img img {
    width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.biblioResult .item.biblioRecord .item-detail {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    text-align: left !important;
}

.biblioResult .item.biblioRecord .item-detail h4, 
.biblioResult .item.biblioRecord .item-detail .title {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #1e2937 !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
    margin-top: 0 !important;
}

.biblioResult .item.biblioRecord .item-detail .author {
    font-size: 1rem !important;
    color: #3b82f6 !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}

/* Ensure secondary info is aligned */
.biblioResult .item.biblioRecord .item-detail .abstract,
.biblioResult .item.biblioRecord .item-detail .notes {
    color: #64748b !important;
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CUSTOM PAGINATION PILL */
.pagination-pill {
    gap: 8px;
}
.pagination-pill .page-item .page-link {
    border-radius: 50% !important;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    background: white;
}
.pagination-pill .page-item.active .page-link {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.pagination-pill .page-item .page-link:hover {
    background-color: #f8fafc !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}
