/**
 * @Author: Waris Agung Widodo <user>
 * @Filename: style.css (CLEAN v2.0 — Pustaka Ceria)
 *
 * Hanya mempertahankan style legacy yang masih dibutuhkan:
 * - core import
 * - chat widget (s-chat)
 * - colorbox modal
 * - violation bar
 * - biblio paging
 * - grid-item masonry
 * - availability status
 *
 * Style yang sudah di-override sempurna oleh kd.css DIHAPUS
 * untuk menghindari konflik & mempercepat render.
 */

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

html {
    scroll-behavior: smooth;
}

/* ---- Shadow utility (legacy, masih dipakai beberapa tempat) ---- */
.shadow {
    box-shadow: 0 0 4px rgba(0, 0, 0, .05), 0 6px 10px rgba(0, 0, 0, .08);
}

/* ---- Pagination ---- */
.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: 0;
}
.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;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    text-decoration: none;
    position: relative;
}
.biblioPaging .pagingList b {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 20px;
    min-width: 38px;
    box-shadow: 0 0 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; }
.biblioPagingTop { display: none; }

/* ---- Grid item (masonry) ---- */
.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: hidden;
    text-align: left;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.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;
}
.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; }

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

/* ---- Availability status (legacy) ---- */
.availability-item {
    color: white;
    padding: 10px;
    border-radius: 5px;
}
.item-onloan, .item-notforloan {
    background-color: #f00;
    width: 100%;
    display: block;
}
.item-available { background-color: #5bc0de; }
.item-onreserve { background-color: orange; }

/* ---- Highlight text (search result) ---- */
.highlight { color: red; }

/* ---- Violation bar (#vio) ---- */
#vio {
    position: relative;
    width: 100%;
    text-align: center;
    z-index: 99999999999;
    background: #f56565;
    padding: 8px 0;
    color: #fff5f5;
}
#vio a { color: #2d3748; }

/* ---- Colorbox modal ---- */
#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: #000;
    bottom: 0;
    color: #fff;
}
#cboxTopLeft, #cboxTopRight,
#cboxBottomLeft, #cboxBottomRight { width: 0; height: 0; }
#cboxMiddleLeft, #cboxMiddleRight { width: 0; }
#cboxBottomCenter, #cboxTopCenter { height: 0; }

/* ---- Language menu button ---- */
#languageMenuButton::after { display: none; }

/* ---- Chat widget ---- */
.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;
    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 .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; }

/* ---- Login form legacy ---- */
.remember_forgot { display: flex; justify-content: space-between; }
.forgotButton {
    float: right;
    text-decoration: none;
    padding-top: 16px;
    color: #718096;
}
.forgotButton:hover {
    text-decoration: none;
    color: #4299E1;
}

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