/* MUMOLAS 2.0 OPAC — Powered by Erasoft Solution Pvt. Ltd. */
:root { --op-primary: #1f4e79; --op-accent: #f0ad4e; --op-radius: 14px; --bs-font-sans-serif: "Inter", "Mukta", system-ui, sans-serif; --bs-link-color-rgb: 31, 78, 121; }
[data-bs-theme=dark] { --bs-body-bg: #0f1419; --bs-body-color: #e3e7eb; --bs-tertiary-bg: #161c23; --bs-border-color: #273140; }
body { display: flex; flex-direction: column; min-height: 100vh; }
.op-header { background: linear-gradient(120deg, var(--op-primary), color-mix(in srgb, var(--op-primary) 70%, #000)); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.op-header .navbar { padding: .55rem 0; }
.op-header .nav-link, .op-header .navbar-brand, .op-header .op-icon { color: rgba(255,255,255,.9); }
.op-header .nav-link:hover, .op-header .nav-link.active { color: #fff; }
.op-header .navbar-toggler { color: #fff; border-color: rgba(255,255,255,.4); font-size: 1.4rem; }
.op-logo { height: 40px; width: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.op-brand { font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.op-sub { font-size: .72rem; opacity: .85; letter-spacing: .5px; text-transform: uppercase; }
.op-user { color: #fff; display: flex; align-items: center; gap: .5rem; }
.op-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--op-accent); color: #222; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; object-fit: cover; }
.btn-accent { background: var(--op-accent); border-color: var(--op-accent); color: #1b1b1b; font-weight: 600; }
.btn-accent:hover { filter: brightness(.95); color: #000; }
.btn-primary { --bs-btn-bg: var(--op-primary); --bs-btn-border-color: var(--op-primary); --bs-btn-hover-bg: color-mix(in srgb, var(--op-primary) 85%, #000); --bs-btn-hover-border-color: var(--op-primary); }
.btn-outline-primary { --bs-btn-color: var(--op-primary); --bs-btn-border-color: var(--op-primary); --bs-btn-hover-bg: var(--op-primary); --bs-btn-hover-border-color: var(--op-primary); }
.text-primary { color: var(--op-primary) !important; }
.op-announce { background: color-mix(in srgb, var(--op-accent) 20%, var(--bs-body-bg)); border-bottom: 1px solid var(--bs-border-color); padding: .5rem 0; font-size: .92rem; }
.op-main { flex: 1; padding: 1.5rem 0 3rem; }
.op-footer { background: var(--bs-tertiary-bg); border-top: 1px solid var(--bs-border-color); padding: 2rem 0 1rem; margin-top: auto; }
.op-footer a { color: inherit; text-decoration: none; } .op-footer a:hover { text-decoration: underline; }
.op-powered { text-align: center; font-size: .8rem; color: var(--bs-secondary-color); margin-top: 1.5rem; border-top: 1px dashed var(--bs-border-color); padding-top: .8rem; }
/* hero */
.op-hero { background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--op-primary) 25%, transparent), transparent 60%), var(--bs-tertiary-bg); border-radius: var(--op-radius); padding: 2.6rem 1.5rem; text-align: center; margin-bottom: 2rem; border: 1px solid var(--bs-border-color); }
.op-hero h1 { font-weight: 800; letter-spacing: -.5px; }
.op-search { max-width: 760px; margin: 1.3rem auto 0; position: relative; }
.op-search .form-control { height: 56px; border-radius: 28px; padding-left: 3rem; padding-right: 9rem; font-size: 1.05rem; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.op-search .bi-search { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--bs-secondary-color); font-size: 1.15rem; }
.op-search .btn { position: absolute; right: 6px; top: 6px; height: 44px; border-radius: 22px; padding: 0 1.4rem; }
.op-search .scope { position: absolute; right: 130px; top: 10px; width: auto; border: 0; background: transparent; font-size: .85rem; color: var(--bs-secondary-color); }
.op-suggest { position: absolute; left: 0; right: 0; top: 60px; z-index: 20; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); text-align: left; overflow: hidden; display: none; }
.op-suggest div { padding: .5rem .9rem; cursor: pointer; } .op-suggest div:hover { background: var(--bs-tertiary-bg); }
.op-stats { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 1.4rem; font-size: .9rem; color: var(--bs-secondary-color); }
.op-stats b { display: block; font-size: 1.3rem; color: var(--bs-body-color); }
/* book cards */
.op-section-title { display: flex; align-items: center; justify-content: space-between; margin: 1.6rem 0 .8rem; }
.op-section-title h2 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.op-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.op-book { text-decoration: none; color: inherit; display: block; transition: transform .15s; }
.op-book:hover { transform: translateY(-3px); }
.op-cover { aspect-ratio: 2/3; width: 100%; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.18); background: var(--bs-tertiary-bg); }
.op-book .t { font-weight: 600; font-size: .88rem; margin-top: .5rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.op-book .a { font-size: .78rem; color: var(--bs-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-avail { font-size: .72rem; font-weight: 600; } .op-avail.ok { color: #198754; } .op-avail.no { color: #dc3545; }
.op-cat { display: block; padding: .7rem .9rem; border: 1px solid var(--bs-border-color); border-radius: 10px; text-decoration: none; color: inherit; background: var(--bs-body-bg); font-size: .9rem; }
.op-cat:hover { border-color: var(--op-primary); color: var(--op-primary); }
/* results */
.op-result { display: flex; gap: 1rem; padding: 1rem; border: 1px solid var(--bs-border-color); border-radius: 12px; margin-bottom: .8rem; background: var(--bs-body-bg); }
.op-result .op-cover { width: 84px; flex: 0 0 84px; }
.op-result h5 { font-size: 1.02rem; margin-bottom: .2rem; } .op-result h5 a { text-decoration: none; color: inherit; } .op-result h5 a:hover { color: var(--op-primary); }
.op-meta { font-size: .85rem; color: var(--bs-secondary-color); }
.op-facets .card { margin-bottom: 1rem; } .op-facets .list-group-item { font-size: .88rem; padding: .4rem .8rem; display: flex; justify-content: space-between; border: 0; }
.op-facets .list-group-item.active { background: var(--op-primary); border-color: var(--op-primary); }
.op-chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: 20px; padding: .15rem .7rem; font-size: .82rem; text-decoration: none; color: inherit; }
/* record */
.op-record-cover { width: 100%; max-width: 240px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.op-kv dt { font-weight: 500; color: var(--bs-secondary-color); font-size: .85rem; } .op-kv dd { margin-bottom: .6rem; }
.op-stars { color: #f5b301; letter-spacing: 1px; }
.op-status { font-size: .8rem; font-weight: 600; padding: .2rem .55rem; border-radius: 6px; }
.op-status.Available { background: #d1e7dd; color: #0f5132; } .op-status.Issued, .op-status.Overdue { background: #f8d7da; color: #842029; } .op-status.OnHold, .op-status.InTransit { background: #fff3cd; color: #664d03; } .op-status.ReferenceOnly, .op-status.NotForLoan { background: #cfe2ff; color: #084298; }
[data-bs-theme=dark] .op-status { filter: brightness(.85); }
/* account */
.op-acct-nav .list-group-item { border: 0; border-radius: 10px !important; margin-bottom: 2px; } .op-acct-nav .list-group-item.active { background: var(--op-primary); }
.op-stat { border-radius: 12px; padding: 1rem 1.2rem; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); } .op-stat b { font-size: 1.6rem; display: block; line-height: 1; }
/* digital card */
.op-card { width: 340px; height: 214px; border-radius: 16px; position: relative; overflow: hidden; color: #fff; padding: 14px 16px; background: linear-gradient(135deg, var(--card-color, var(--op-primary)), color-mix(in srgb, var(--card-color, var(--op-primary)) 55%, #000)); box-shadow: 0 16px 40px rgba(0,0,0,.35); font-size: .78rem; }
.op-card.classic { background: #fff; color: #222; border: 2px solid var(--card-color, var(--op-primary)); }
.op-card.minimal { background: #f8f9fa; color: #222; border: 1px solid #ddd; }
.op-card .lib { font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; } .op-card .lib img { height: 26px; width: 26px; background: #fff; border-radius: 6px; padding: 2px; }
.op-card .photo { width: 64px; height: 78px; object-fit: cover; border-radius: 6px; border: 2px solid rgba(255,255,255,.7); background: #fff; }
.op-card .name { font-size: 1rem; font-weight: 700; } .op-card .num { font-family: ui-monospace, monospace; letter-spacing: 1px; }
.op-card .qr { position: absolute; right: 14px; top: 44px; background: #fff; padding: 3px; border-radius: 6px; } .op-card .qr img, .op-card .qr canvas { width: 64px !important; height: 64px !important; }
.op-card .bc { position: absolute; left: 16px; right: 16px; bottom: 8px; background: #fff; border-radius: 6px; padding: 2px 6px; text-align: center; } .op-card .bc svg { max-width: 100%; height: 38px; }
.op-card .exp { position: absolute; right: 16px; bottom: 54px; text-align: right; }
@media print { .op-header, .op-footer, .op-announce, .no-print { display: none !important; } .op-main { padding: 0; } }
.op-empty { text-align: center; padding: 3rem 1rem; color: var(--bs-secondary-color); } .op-empty i { font-size: 2.6rem; display: block; margin-bottom: .6rem; opacity: .5; }
.op-page-title { font-weight: 800; letter-spacing: -.3px; }
