/**
 * Tailwind-Front Template — style.css
 * Material CSS diambil dari sekolah.anstudio.my.id
 * Digabung dengan legacy SLiMS-specific styles
 */

/* =========================================================
   GOOGLE FONT — Inter
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* =========================================================
   TAILWIND V4 RESPONSIVE NAVBAR FIX
   max-md:hidden = visible on md+, hidden on mobile
   ========================================================= */
@media (max-width: 47.9375rem) {
  .max-md\:hidden { display: none !important; }
}
/* On desktop (≥768px): these are NOT hidden (default flex) */
/* md:hidden = hide on desktop (hamburger button) */
@media (min-width: 48rem) {
  .md\:hidden { display: none !important; }
}


/* =========================================================
   BASE
   ========================================================= */
html, body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #f9fafb;
  color: #1f2937;
  scroll-behavior: smooth;
}

/* =========================================================
   NAVBAR
   ========================================================= */
#main-navbar a,
#main-navbar button { outline: none; }

/* =========================================================
   BOOTSTRAP JS COMPONENTS — Override Bootstrap visual styles
   so modal / dropdown work functionally without Bootstrap CSS
   ========================================================= */

/* --- Modal backdrop --- */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0,0,0,0.45);
  z-index: 1040;
}
.modal-backdrop.fade { opacity: 0; transition: opacity 0.15s linear; }
.modal-backdrop.show { opacity: 1; }

/* --- Modal container --- */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1050;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  display: none;
}
.modal.show { display: block; }
.modal-dialog {
  margin: 1.75rem auto;
  position: relative;
  width: auto;
  max-width: 90vw;
  pointer-events: none;
}
.modal.fade .modal-dialog { transform: translateY(-30px); opacity: 0; transition: transform 0.22s ease-out, opacity 0.22s ease-out; }
.modal.show .modal-dialog { transform: none; opacity: 1; }
.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}
.modal-dialog.modal-lg { max-width: min(800px, 92vw); }


/* --- Custom Tailwind-styled modal content --- */
.tw-modal-content {
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 25px 60px rgba(0,0,0,0.10);
  pointer-events: all;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.tw-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}
.tw-modal-body { padding: 1.5rem; flex: 1; }
.tw-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #f3f4f6;
}

/* --- Dropdown (Bootstrap JS) --- */
.dropdown-menu {
  display: none;
  position: absolute;
  z-index: 1000;
  min-width: 10rem;
  padding: 0.5rem;
  background-color: #fff;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  right: 0;
  left: auto;
  margin-top: 0.5rem;
}
.dropdown-menu.show { display: block; }
.tw-dropdown-menu { min-width: 12rem; }
.tw-dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  border-radius: 0.5rem;
  transition: background-color 0.15s;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.tw-dropdown-item:hover { background-color: #f9fafb; color: #111827; }
.tw-dropdown-divider { height: 1px; background-color: #f3f4f6; margin: 0.25rem 0; }
.tw-dropdown-header {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  padding: 0.5rem 0.75rem 0.25rem;
}

/* =========================================================
   FORM ELEMENTS (used in modals, search, filters)
   ========================================================= */
.tw-form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.tw-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tw-input {
  width: 100%;
  padding: 0.55rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  background-color: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.tw-input:focus {
  background-color: #fff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

/* =========================================================
   SHARED BUTTONS
   ========================================================= */
.tw-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background-color: #4f46e5;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
  text-decoration: none;
}
.tw-btn-primary:hover { background-color: #4338ca; color: #fff; }
.tw-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  background-color: #f9fafb;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.15s;
}
.tw-btn-ghost:hover { background-color: #f3f4f6; color: #374151; }

/* =========================================================
   SEARCH PILL
   ========================================================= */
.search { width: 100%; }
.search-pill {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 9999px;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  padding: 0.3rem 0.3rem 0.3rem 0.75rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.search-pill:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12), 0 8px 30px rgba(0,0,0,0.06);
}
#search-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #111827;
  flex: 1;
  min-width: 0;
  height: 2.5rem;
}
#search-input::placeholder { color: #9ca3af; }

/* =========================================================
   CATEGORY PANEL
   ========================================================= */
.category-panel {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 1.5rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 28px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.category-panel::-webkit-scrollbar { display: none; }
.section-title { font-size: 1.125rem; font-weight: 800; color: #111827; white-space: nowrap; }
.section-subtitle { font-size: 0.8rem; color: #9ca3af; font-weight: 500; margin-top: 0.125rem; white-space: nowrap; }
.category-list { display: flex; flex: 1; flex-wrap: nowrap; list-style: none; padding: 0; margin: 0; justify-content: space-evenly; align-items: center; }

.category-item a {
  display: flex; flex-direction: column; align-items: center;
  font-size: 0.7rem; font-weight: 700; color: #6b7280;
  text-align: center; text-decoration: none;
  transition: color 0.15s;
  gap: 0.5rem;
  width: 100%;
}
.category-item a:hover { color: #4f46e5; }
.category-item .icon-box {
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.category-item .icon-box img {
  width: 2rem !important;
  height: 2rem !important;
  max-width: 2rem !important;
  object-fit: contain;
  display: block;
}
.category-item a:hover .icon-box {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}


/* =========================================================
   BOOK CARDS
   ========================================================= */
.book-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(79,70,229,0.10);
}
.book-cover {
  position: relative;
  width: 100%;
  padding-top: 140%;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  overflow: hidden;
}
.book-cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.book-card:hover .book-cover img { transform: scale(1.05); }
.book-badge {
  font-size: 0.6rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Line clamp utilities */
.line-clamp-1 { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.line-clamp-2 {
  overflow: hidden; display: -webkit-box;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}

/* =========================================================
   LEADERBOARD PANELS
   ========================================================= */
.leaderboard-panel {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 1.5rem;
  padding: 1.75rem;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s;
}
.leaderboard-panel:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.06); }

/* =========================================================
   FILTER PANEL (search results)
   ========================================================= */
.filter-panel {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  position: sticky;
  top: 5rem;
}

/* =========================================================
   TOPIC MODAL ICONS (Lainnya / kategori popup)
   ========================================================= */
.topic-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background-color: #f9fafb;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color 0.15s;
}
.topic-icon-img {
  width: 2rem !important;
  height: 2rem !important;
  max-width: 2rem !important;
  object-fit: contain;
  display: block;
}
a:hover .topic-icon-box {
  background-color: #eef2ff;
}

/* Advanced Search Modal — select element arrow fix */
.tw-input select,
select.tw-input {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.625rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  padding-right: 2.25rem;
  cursor: pointer;
}



/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: linear-gradient(180deg, #111827 0%, #030712 100%);
  color: #9ca3af;
}
.site-footer a { color: #6b7280; transition: color 0.15s; text-decoration: none; }
.site-footer a:hover { color: #e5e7eb; }

/* =========================================================
   SCROLLBAR HIDE UTILITY
   ========================================================= */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* =========================================================
   SECTION GAP: consistent vertical spacing
   ========================================================= */
.section-gap { padding-top: 3.5rem; padding-bottom: 3.5rem; }

/* =========================================================
   LEGACY COMPAT: Bootstrap-like utility classes
   ========================================================= */
.container { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.row { display: flex; flex-wrap: wrap; margin-left: -0.5rem; margin-right: -0.5rem; }
[class*="col-"] { padding-left: 0.5rem; padding-right: 0.5rem; flex: 1; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-9 { flex: 0 0 75%; max-width: 75%; }
@media (max-width: 767px) {
  [class*="col-md-"] { flex: 0 0 100%; max-width: 100%; }
}
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 3rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }
.p-0 { padding: 0; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: #6b7280; }
.font-weight-bold { font-weight: 700; }
.w-100 { width: 100%; }
.w-full { width: 100%; }
.list-reset { list-style: none; padding: 0; margin: 0; }
.img-fluid { max-width: 100%; height: auto; }
.embed-responsive { width: 100%; }
.float-right { float: right; }
.clearfix::after { content: ''; display: table; clear: both; }
.border-top { border-top: 1px solid #e5e7eb; }
.border-t { border-top: 1px solid #e5e7eb; }
.hidden { display: none; }

/* =========================================================
   SLIMS LEGACY: Pagination
   ========================================================= */
.biblioPaging {
  text-align: center;
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}
.biblioPaging:first-child {
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
  border-top: none;
  padding-bottom: 20px;
  padding-top: 0;
}
.biblioPaging .pagingList {
  display: inline-flex;
  justify-content: center;
  background: #e5e7eb;
  border-radius: 9999px;
}
.biblioPaging .pagingList b,
.biblioPaging .pagingList a {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  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;
  text-decoration: none;
  position: relative;
  flex: 0 1 auto;
}
.biblioPaging .pagingList b {
  color: #fff;
  background-color: #4f46e5;
  border-color: #4f46e5;
  border-radius: 9999px;
  min-width: 38px;
  box-shadow: 0 0 10px rgba(79,70,229,0.4);
}
.biblioPaging .pagingList a {
  color: #374151;
  background-color: transparent;
}
.biblioPaging .pagingList a:hover { color: #4f46e5; }
.biblioPaging .pagingList a.first_link { padding-left: 20px; }
.biblioPaging .pagingList a.last_link { padding-right: 20px; }
.biblioPagingTop { display: none; }

/* =========================================================
   SLIMS LEGACY: Item availability
   ========================================================= */
.availability-item {
  color: white;
  padding: 10px;
  border-radius: 5px;
}
.item-onloan, .item-notforloan {
  background-color: #ef4444;
  width: 100%;
  display: block;
}
.item-available { background-color: #6366f1; }
.item-onreserve { background-color: #f59e0b; }

/* =========================================================
   SLIMS LEGACY: Grid item (book list)
   ========================================================= */
.grid-item {
  font-size: 12px;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}
.grid-item--title {
  box-sizing: border-box;
  color: #111827;
  cursor: pointer;
  display: -webkit-box;
  line-height: 1.5;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  -moz-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.grid-item .list-group-item {
  padding: 0.25rem 0.5rem;
  display: flex;
  justify-content: space-between;
}
.grid-item .list-group-item label {
  color: #6b7280;
  padding: 0;
  margin: 0;
}
img.not-available { filter: grayscale(0.9); }
.grid-item--menu {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
}
.grid-item--menu .dropdown-toggle { text-decoration: none; color: inherit; }
.grid-item--menu .dropdown-toggle::after { display: none; }

/* =========================================================
   SLIMS LEGACY: Suggestion / autocomplete
   ========================================================= */
.sugestion {
  min-height: 80px;
  margin-top: 16px;
  padding-left: 60px;
}
.sugestion .title { font-weight: 600; }
.sugestion .author { color: #6b7280; }
.sugestion .card-text { font-size: 12px; }
.container-img {
  width: 60px;
  position: absolute;
  top: -10px;
  left: 10px;
  overflow: hidden;
  border-radius: 4px;
}

/* =========================================================
   SLIMS LEGACY: Member area
   ========================================================= */
.memberInfoHead {
  font-size: 24px;
  font-weight: bold;
  border-left: 4px solid #6366f1;
  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,
.jsonResultLink,
.xmlResultLink {
  font-weight: 400;
  color: #4f46e5;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  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.5rem;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.jsonResultLink:hover, .xmlResultLink:hover { color: #4338ca; text-decoration: none; }
.page-member-area .memberButton {
  background-color: #4f46e5;
  color: white;
  margin-top: 1rem;
  cursor: pointer;
  transition: all 200ms ease-in-out;
}
.page-member-area .memberButton:hover {
  background-color: #4338ca;
  box-shadow: 0 4px 20px rgba(79,70,229,0.2);
}
.page-member-area .errorBox {
  color: #ef4444;
  padding: 1rem;
  background-color: rgba(239,68,68,0.1);
  border-radius: 0.75rem;
  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: 100%; }
#loginForm form { width: 100%; }
#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: #111827;
  background-color: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 8px;
}
#loginForm .login_input input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  outline: none;
  background-color: #fff;
}
#loginForm .homeButton { display: none; }
#loginForm .loginButton {
  margin-top: 10px;
  color: #fff;
  background-color: #4f46e5;
  border-color: #4f46e5;
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  padding: 0.375rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.75rem;
  transition: all 0.15s;
}
#loginForm .loginButton:hover {
  background-color: #4338ca;
  border-color: #4338ca;
  color: #fff;
}
.remember_forgot { display: flex; justify-content: space-between; }
.forgotButton { float: right; text-decoration: none; padding-top: 16px; color: #6b7280; }
.forgotButton:hover { text-decoration: none; color: #4f46e5; }
.loginButton {
  display: inline-block;
  font-weight: 600;
  color: #111827;
  text-align: center;
  vertical-align: middle;
  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.5rem;
  transition: all 0.15s;
}
.biblioMarkFormAction { display: none; }

/* =========================================================
   SLIMS LEGACY: Advanced search modal
   ========================================================= */
#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.05;
}

/* =========================================================
   SLIMS LEGACY: Attachment list
   ========================================================= */
.attachList { padding: 4px 24px; }
.attachList li { padding: 4px 0; }

/* =========================================================
   SLIMS LEGACY: Comments
   ========================================================= */
.comments { padding: 8px 0; border-top: 1px dotted #e5e7eb; }
.comments .comment-member { font-size: 10pt; font-weight: bold; }
.comments .comment-content { color: #4b5563; }

/* =========================================================
   SLIMS LEGACY: Colorbox overrides
   ========================================================= */
#colorbox { border-radius: 1rem; }
#cboxLoadedContent { padding: 10px; }
#cboxOverlay { background: rgba(0,0,0,0.7); }
#cboxTitle {
  font: 10pt/1.8 'Inter', sans-serif;
  font-weight: bold;
  padding: 15px 0;
  background: #111827;
  bottom: 0;
  color: #fff;
}
#cboxTopLeft, #cboxTopRight, #cboxBottomLeft, #cboxBottomRight { width: 0; height: 0; }
#cboxMiddleLeft, #cboxMiddleRight { width: 0; }
#cboxBottomCenter, #cboxTopCenter { height: 0; }

/* =========================================================
   SLIMS LEGACY: Live 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 40px rgba(0,0,0,0.12);
  border-radius: 1rem;
  padding: 16px;
  overflow: hidden;
  z-index: 99;
}
.s-chat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 150px;
  background: #4f46e5;
  z-index: 0;
}
.s-chat div, .s-chat a, .s-chat footer { position: relative; z-index: 10; }
.s-chat-header { font-size: 24px; font-weight: 300; color: #e0e7ff; line-height: 1.2; }

/* =========================================================
   SLIMS LEGACY: Librarian profile
   ========================================================= */
.librarian { display: flex; margin-bottom: 1.5rem; flex: 0 50%; }
.span2 { width: 12rem; }
.span2 div:first-child { padding: 2rem; background: #e5e7eb; border-radius: 0.75rem; }
.span2 img { border-radius: 0.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.span8 { flex: 1; padding: 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; }

/* =========================================================
   SLIMS LEGACY: Violation notice
   ========================================================= */
#vio {
  position: relative;
  width: 100%;
  text-align: center;
  z-index: 99999999999;
  background: #ef4444;
  padding: 8px 0;
  color: #fef2f2;
}
#vio a { color: #1f2937; }

/* =========================================================
   SLIMS LEGACY: Misc
   ========================================================= */
#languageMenuButton::after { display: none; }
.highlight { color: #ef4444; }
.text-thin { font-weight: 200 !important; }
.subtitle-section { font-size: 12px; }
.text-label { font-weight: bold !important; }

/* Navbar collapse mobile */
.navbar-collapse.collapsing,
.navbar-collapse.collapse.show {
  background-color: #1f2937;
  padding: 16px;
  z-index: 99;
  border-radius: 0.75rem;
  margin-top: 8px;
}

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

/* Vue.js transitions */
.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 { transform: translateX(10px); opacity: 0; }

/* Elevation utilities (Material Design style shadows) */
.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); }