/* ==========================================================================
   SIPUS ROYAL - VISITOR LANDING PAGE DESIGN SYSTEM (EQUAL SIZE & PAGINATION)
   ========================================================================== */

:root {
    --primary-blue: #0084ff;
    --primary-blue-dark: #0060fe;
    --primary-yellow: #ffc107;
    --primary-yellow-hover: #ffb300;
    --topbar-bg: #003366;
    --nav-text-color: #2b3674;
    --bg-canvas: #f8fafc;
    --card-radius: 14px;
    --text-primary: #1b2559;
    --text-secondary: #707eae;
    --text-muted: #8f9bba;
    --card-border: #f0f3fa;
}

[data-theme="dark"] {
    --topbar-bg: #070d24;
    --nav-text-color: #e2e8f0;
    --bg-canvas: #0b1437;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --card-border: #192550;
}

[data-theme="dark"] body {
    background-color: #0b1437 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .main-public-navbar {
    background: #111c44 !important;
    border-bottom-color: #192550 !important;
}

[data-theme="dark"] .section-card,
[data-theme="dark"] .book-item-card,
[data-theme="dark"] .public-stat-card,
[data-theme="dark"] .hero-search-card,
[data-theme="dark"] .cat-pill-item {
    background: #111c44 !important;
    border-color: #192550 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .hero-banner-container::before {
    background: linear-gradient(90deg, rgba(11, 20, 55, 0.75) 0%, rgba(11, 20, 55, 0.48) 55%, rgba(11, 20, 55, 0.15) 100%) !important;
}

[data-theme="dark"] .hero-content-left h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] .hero-content-left p {
    color: #e2e8f0 !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] .search-input-group {
    background: #0b1437 !important;
    border-color: #192550 !important;
}

[data-theme="dark"] .search-input-group input {
    color: #ffffff !important;
}

[data-theme="dark"] .hero-content-left h2,
[data-theme="dark"] .section-header-title,
[data-theme="dark"] .book-card-title,
[data-theme="dark"] .stat-number-val,
[data-theme="dark"] .stat-label-title,
[data-theme="dark"] .recent-text-details .recent-title {
    color: #ffffff !important;
}

[data-theme="dark"] .public-brand-text h1 {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .public-brand-text span {
    color: #ffc107 !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .public-brand-logo {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

[data-theme="dark"] .public-brand-logo img,
[data-theme="dark"] .brand-logo-icon img,
[data-theme="dark"] .recent-thumb-img,
[data-theme="dark"] .book-cover-img {
    mix-blend-mode: multiply !important;
    background-color: transparent !important;
    filter: brightness(1.2) contrast(1.1);
}

[data-theme="dark"] footer {
    background: #111c44 !important;
    border-top-color: #192550 !important;
    color: #a0aec0 !important;
}

/* Dark Mode Overrides for AdminLTE Containers & Tables */
[data-theme="dark"] .box,
[data-theme="dark"] .box-solid,
[data-theme="dark"] .box-solid>.box-body,
[data-theme="dark"] .box-body,
[data-theme="dark"] .box-header,
[data-theme="dark"] .box-footer,
[data-theme="dark"] .well,
[data-theme="dark"] .list-group-item,
[data-theme="dark"] .nav-tabs-custom,
[data-theme="dark"] .nav-tabs-custom>.tab-content,
[data-theme="dark"] .table {
    background-color: #111c44 !important;
    color: #ffffff !important;
    border-color: #192550 !important;
}

[data-theme="dark"] .box-body p,
[data-theme="dark"] .box-body li,
[data-theme="dark"] .box-body span,
[data-theme="dark"] .box-body div,
[data-theme="dark"] .box-body td,
[data-theme="dark"] .box-body th,
[data-theme="dark"] .box-body font,
[data-theme="dark"] .box-body legend {
    color: #ffffff !important;
}

[data-theme="dark"] .box.box-solid.box-primary>.box-header,
[data-theme="dark"] .box.box-solid.box-success>.box-header,
[data-theme="dark"] .box.box-solid.box-warning>.box-header,
[data-theme="dark"] .box.box-solid.box-danger>.box-header,
[data-theme="dark"] .box.box-solid.box-info>.box-header {
    background: linear-gradient(135deg, #0084ff 0%, #0052cc 100%) !important;
    color: #ffffff !important;
    border-bottom: 1px solid #192550 !important;
}

[data-theme="dark"] .box-title,
[data-theme="dark"] .box-title font {
    color: #ffffff !important;
    font-weight: 700 !important;
}

[data-theme="dark"] .nav-tabs-custom>.nav-tabs>li.active>a {
    background-color: #111c44 !important;
    color: #0084ff !important;
    border-bottom-color: transparent !important;
}

[data-theme="dark"] .nav-tabs-custom>.nav-tabs>li>a {
    color: #a0aec0 !important;
}

[data-theme="dark"] .box-header {
    border-bottom-color: #192550 !important;
}

[data-theme="dark"] .table-striped>tbody>tr:nth-of-type(odd),
[data-theme="dark"] .table-striped>tbody>tr:nth-of-type(even),
[data-theme="dark"] .table>tbody>tr>td,
[data-theme="dark"] .table>tbody>tr>th,
[data-theme="dark"] .table>tfoot>tr>td,
[data-theme="dark"] .table>tfoot>tr>th,
[data-theme="dark"] .table>thead>tr>td,
[data-theme="dark"] .table>thead>tr>th {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .table-bordered {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .media-body,
[data-theme="dark"] .media-body p,
[data-theme="dark"] .media-body font,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #ffffff !important;
}

/* Glassmorphism Pagination in Dark Mode */
[data-theme="dark"] .custom-smart-pagination>li>a,
[data-theme="dark"] .custom-smart-pagination>li>span {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

[data-theme="dark"] .custom-smart-pagination>li>a:hover {
    background: rgba(0, 132, 255, 0.3) !important;
    border-color: var(--primary-blue) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .custom-smart-pagination>li.active>a,
[data-theme="dark"] .custom-smart-pagination>li.active>span {
    background: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 132, 255, 0.5) !important;
}

/* ==========================================================================
   2026-STANDARD DETAIL CARD & PROFESSIONAL SPEC TABLE
   ========================================================================== */

/* ==========================================================================
   2026-STANDARD COLLECTION DETAIL PAGE SYSTEM (MATCHING REFERENCE UI)
   ========================================================================== */

/* Main Wrapper Card */
.detail-main-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

[data-theme="dark"] .detail-main-wrapper {
    background: #111c44 !important;
    border-color: #192550 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

/* Top Action Bar */
.detail-top-actionbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.btn-back-link:hover {
    color: #0084ff;
}

[data-theme="dark"] .btn-back-link {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .btn-back-link:hover {
    color: #38bdf8 !important;
}

.btn-edit-data {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #0084ff;
    color: #0084ff;
    background: transparent;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-edit-data:hover {
    background: rgba(0, 132, 255, 0.1);
    color: #0060fe;
}

[data-theme="dark"] .btn-edit-data {
    border-color: #ffc107 !important;
    color: #ffc107 !important;
}

[data-theme="dark"] .btn-edit-data:hover {
    background: rgba(255, 193, 7, 0.15) !important;
}

/* Hero Section */
.hero-detail-container {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .hero-detail-container {
        flex-direction: column;
        align-items: center;
    }
}

.hero-cover-box {
    flex-shrink: 0;
}

.hero-cover-img {
    width: 200px;
    height: 275px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .hero-cover-img {
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}

.hero-content-box {
    flex-grow: 1;
}

.category-tag-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(0, 132, 255, 0.12);
    color: #0084ff;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

[data-theme="dark"] .category-tag-pill {
    background: rgba(56, 189, 248, 0.18) !important;
    color: #38bdf8 !important;
}

.hero-detail-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: 10px;
    color: #0f172a;
}

[data-theme="dark"] .hero-detail-title {
    color: #ffffff !important;
}

.hero-author-text {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .hero-author-text {
    color: #cbd5e1 !important;
}

.status-pill-available {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}

[data-theme="dark"] .status-pill-available {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #4ade80 !important;
}

/* Stat Cards Grid (3 Cards) */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}

@media (max-width: 600px) {
    .hero-stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

[data-theme="dark"] .stat-card-item {
    background: #0b1437 !important;
    border-color: #192550 !important;
}

.stat-card-icon {
    font-size: 22px;
    color: #0084ff;
    flex-shrink: 0;
}

[data-theme="dark"] .stat-card-icon {
    color: #38bdf8 !important;
}

.stat-card-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
}

[data-theme="dark"] .stat-card-label {
    color: #94a3b8 !important;
}

.stat-card-val {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

[data-theme="dark"] .stat-card-val {
    color: #ffffff !important;
}

/* Nav Tabs 2026 */
.nav-tabs-2026 {
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    list-style: none;
    padding: 0;
}

[data-theme="dark"] .nav-tabs-2026 {
    border-bottom-color: #192550 !important;
}

.nav-tabs-2026 li a {
    display: block;
    padding: 12px 4px;
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-tabs-2026 li.active a,
.nav-tabs-2026 li a:hover {
    color: #0084ff;
    border-bottom-color: #0084ff;
}

[data-theme="dark"] .nav-tabs-2026 li a {
    color: #94a3b8 !important;
}

[data-theme="dark"] .nav-tabs-2026 li.active a,
[data-theme="dark"] .nav-tabs-2026 li a:hover {
    color: #38bdf8 !important;
    border-bottom-color: #38bdf8 !important;
}

/* Card Section Boxes */
.card-section-2026 {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

[data-theme="dark"] .card-section-2026 {
    background: #0b1437 !important;
    border-color: #192550 !important;
}

.card-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .card-section-title {
    color: #ffffff !important;
}

/* Clean Spec Table v2 (Brighter Horizontal Lines Matching Reference UI) */
.spec-table-v2 {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

[data-theme="dark"] .spec-table-v2 {
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.spec-table-v2 tr {
    border-bottom: 1px solid #e2e8f0 !important;
}

.spec-table-v2 tr:last-child {
    border-bottom: none !important;
}

.spec-table-v2 tr:nth-child(even) {
    background-color: #f8fafc !important;
}

[data-theme="dark"] .spec-table-v2 tr {
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .spec-table-v2 tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.spec-table-v2 td {
    padding: 12px 18px !important;
    font-size: 13.5px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-right: none !important;
}

.spec-table-v2 tr:last-child td {
    border-bottom: none !important;
}

[data-theme="dark"] .spec-table-v2 td {
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
    border-right: none !important;
}

.spec-table-v2 td.spec-lbl {
    font-weight: 600 !important;
    color: #64748b !important;
    width: 210px !important;
    border-right: none !important;
}

[data-theme="dark"] .spec-table-v2 td.spec-lbl {
    color: #94a3b8 !important;
    border-right: none !important;
}

.spec-table-v2 td.spec-val {
    font-weight: 600 !important;
    color: #0f172a !important;
}

[data-theme="dark"] .spec-table-v2 td.spec-val {
    color: #ffffff !important;
}

/* Action Buttons */
.btn-action-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: #0084ff;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    border: none;
    text-decoration: none !important;
    margin-bottom: 10px;
    transition: background 0.2s ease;
}

.btn-action-primary:hover {
    background: #0060fe;
}

.btn-action-outline-gold {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 193, 7, 0.08);
    color: #b78103 !important;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid #ffc107;
    text-decoration: none !important;
    margin-bottom: 10px;
}

[data-theme="dark"] .btn-action-outline-gold {
    background: rgba(255, 193, 7, 0.12) !important;
    color: #ffc107 !important;
    border-color: #ffc107 !important;
}

.btn-action-outline-blue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0, 132, 255, 0.06);
    color: #0084ff !important;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid #0084ff;
    text-decoration: none !important;
}

[data-theme="dark"] .btn-action-outline-blue {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #38bdf8 !important;
    border-color: #38bdf8 !important;
}

/* Rak Location Card Grid */
.rak-grid-2026 {
    display: flex !important;
    flex-direction: row !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    margin-top: 12px !important;
}

[data-theme="dark"] .rak-grid-2026 {
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.rak-item-box {
    flex: 1 !important;
    padding: 12px 16px !important;
    border-right: 1px solid #e2e8f0 !important;
}

.rak-item-box:last-child {
    border-right: none !important;
}

[data-theme="dark"] .rak-item-box {
    border-right-color: rgba(255, 255, 255, 0.14) !important;
}

.rak-item-label {
    font-size: 11px !important;
    color: #64748b !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
}

[data-theme="dark"] .rak-item-label {
    color: #94a3b8 !important;
}

.rak-item-val {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

[data-theme="dark"] .rak-item-val {
    color: #ffffff !important;
}

.rak-item-val {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}

[data-theme="dark"] .rak-item-val {
    color: #ffffff !important;
}

[data-theme="dark"] .detail-card-2026 {
    background: #111c44 !important;
    border-color: #192550 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
}

/* Card Header Banner */
.detail-card-header {
    background: linear-gradient(135deg, #0084ff 0%, #0052cc 100%) !important;
    padding: 18px 24px !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.detail-card-header h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Card Body */
.detail-card-body {
    padding: 28px !important;
    background: #ffffff !important;
    color: #1e293b !important;
}

[data-theme="dark"] .detail-card-body {
    background: #111c44 !important;
    color: #f1f5f9 !important;
}

/* Hero Book Header Section */
.detail-hero-flex {
    display: flex !important;
    gap: 28px !important;
    margin-bottom: 32px !important;
    align-items: flex-start !important;
}

@media (max-width: 768px) {
    .detail-hero-flex {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
}

.detail-cover-wrapper {
    flex-shrink: 0 !important;
    position: relative !important;
}

.detail-cover-img {
    width: 190px !important;
    height: 260px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.3s ease !important;
}

[data-theme="dark"] .detail-cover-img {
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

.detail-info-main {
    flex-grow: 1 !important;
}

.detail-book-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
}

[data-theme="dark"] .detail-book-title {
    color: #ffffff !important;
}

.detail-badges-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
}

.badge-pill-2026 {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    border-radius: 30px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
}

.badge-pill-primary {
    background: rgba(0, 132, 255, 0.1) !important;
    color: #0084ff !important;
    border: 1px solid rgba(0, 132, 255, 0.2) !important;
}

[data-theme="dark"] .badge-pill-primary {
    background: rgba(0, 132, 255, 0.2) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
}

.badge-pill-success {
    background: rgba(34, 197, 94, 0.1) !important;
    color: #16a34a !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
}

[data-theme="dark"] .badge-pill-success {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #4ade80 !important;
    border-color: rgba(74, 222, 128, 0.3) !important;
}

.detail-synopsis-text {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #475569 !important;
    margin: 0 !important;
    background: #f8fafc !important;
    padding: 16px !important;
    border-radius: 12px !important;
    border: 1px solid #f1f5f9 !important;
}

[data-theme="dark"] .detail-synopsis-text {
    background: #0b1437 !important;
    color: #cbd5e1 !important;
    border-color: #1e293b !important;
}

/* 2026 PROFESSIONAL SPECIFICATION TABLE */
.spec-container-2026 {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

[data-theme="dark"] .spec-container-2026 {
    background: #0b1437 !important;
    border-color: #192550 !important;
}

.spec-table-2026 {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    font-size: 13.5px !important;
}

.spec-table-2026 tr {
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background-color 0.2s ease !important;
}

.spec-table-2026 tr:last-child {
    border-bottom: none !important;
}

.spec-table-2026 tr:nth-child(even) {
    background-color: #fafafa !important;
}

[data-theme="dark"] .spec-table-2026 tr {
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .spec-table-2026 tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.spec-table-2026 tr:hover {
    background-color: rgba(0, 132, 255, 0.04) !important;
}

[data-theme="dark"] .spec-table-2026 tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.spec-label {
    padding: 13px 20px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    width: 200px !important;
    vertical-align: middle !important;
    display: table-cell !important;
}

[data-theme="dark"] .spec-label {
    color: #94a3b8 !important;
}

.spec-value {
    padding: 13px 20px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    vertical-align: middle !important;
    display: table-cell !important;
}

[data-theme="dark"] .spec-value {
    color: #ffffff !important;
}

.table-pro>tbody>tr:last-child>td,
.box-body .table>tbody>tr:last-child>td {
    border-bottom: none !important;
}

/* Left column (Labels) */
.table-pro>tbody>tr>td:first-child,
.box-body .table>tbody>tr>td:first-child {
    font-weight: 600;
    color: #707eae;
    width: 180px;
    background: transparent !important;
}

/* Right column (Values) */
.table-pro>tbody>tr>td:last-child,
.box-body .table>tbody>tr>td:last-child {
    font-weight: 500;
    color: #1b2559;
    background: transparent !important;
}

/* Subtle Row Hover */
.table-pro>tbody>tr:hover,
.box-body .table>tbody>tr:hover {
    background-color: rgba(0, 132, 255, 0.03) !important;
}

/* Dark Mode Table Adjustment */
[data-theme="dark"] .table-pro>tbody>tr>td,
[data-theme="dark"] .box-body .table>tbody>tr>td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .table-pro>tbody>tr>td:first-child,
[data-theme="dark"] .box-body .table>tbody>tr>td:first-child {
    color: #a0aec0 !important;
}

[data-theme="dark"] .table-pro>tbody>tr>td:last-child,
[data-theme="dark"] .box-body .table>tbody>tr>td:last-child {
    color: #ffffff !important;
}

[data-theme="dark"] .table-pro>tbody>tr:hover,
[data-theme="dark"] .box-body .table>tbody>tr:hover {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

/* --------------------------------------------------------------------------
   1. Base & Global Styles
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background-color: var(--bg-canvas) !important;
    color: var(--nav-text-color);
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
}

.main-public-wrapper {
    padding-top: 20px;
    padding-bottom: 36px;
}

/* --------------------------------------------------------------------------
   2. Top Utility Contact Bar
   -------------------------------------------------------------------------- */
.top-utility-bar {
    background-color: var(--topbar-bg);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-utility-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.utility-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.utility-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.utility-right-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none !important;
}

.utility-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 6px;
}

.utility-social-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    transition: color 0.2s ease;
}

.utility-social-links a:hover {
    color: var(--primary-yellow);
}

/* --------------------------------------------------------------------------
   3. Main Header Navigation Bar (HORIZONTAL SIDE-BY-SIDE)
   -------------------------------------------------------------------------- */
.main-public-navbar {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.navbar-flex-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
}

.public-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    flex-shrink: 0;
}

.public-brand-logo {
    width: 38px;
    height: 38px;
    background: #f4f7fe;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-blue);
    box-shadow: 0 3px 10px rgba(0, 132, 255, 0.15);
}

.public-brand-text {
    line-height: 1.15;
}

.public-brand-text h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--topbar-bg);
    letter-spacing: 0.4px;
}

.public-brand-text span {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Wide Horizontal Navigation Links Bar */
.public-desktop-nav-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 32px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.public-nav-item {
    position: relative;
    display: inline-block !important;
    white-space: nowrap !important;
}

.public-nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--nav-text-color);
    text-decoration: none !important;
    padding: 6px 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.public-nav-link:hover,
.public-nav-item.active .public-nav-link {
    color: var(--primary-blue);
}

.public-nav-item.active .public-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: var(--primary-blue);
    border-radius: 2px;
}

/* Header Auth Buttons */
.public-auth-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0;
}

.btn-pill-register {
    background: var(--primary-yellow);
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 12px;
    border-radius: 20px;
    padding: 8px 20px;
    border: none;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-pill-register:hover {
    background: var(--primary-yellow-hover);
    transform: translateY(-1px);
}

.btn-pill-login {
    background: var(--primary-blue);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 12px;
    border-radius: 20px;
    padding: 8px 22px;
    border: none;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(0, 132, 255, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-pill-login:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
}

.mobile-nav-toggle {
    display: none;
    background: #f4f7fe;
    border: 1px solid #e9edf7;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 16px;
    color: #2b3674;
    cursor: pointer;
}

.public-mobile-nav-menu {
    display: none;
}

/* --------------------------------------------------------------------------
   4. Hero Banner & Floating Search Card
   -------------------------------------------------------------------------- */
.hero-banner-container {
    position: relative;
    border-radius: 16px;
    min-height: 260px;
    padding: 32px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-banner-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.50) 55%, rgba(255, 255, 255, 0.15) 100%);
    z-index: 1;
}

.hero-content-left {
    position: relative;
    z-index: 2;
    max-width: 460px;
}

.hero-content-left h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    margin: 0 0 10px 0;
}

.hero-content-left h2 span {
    color: var(--primary-blue);
}

.hero-content-left p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 18px;
}

.btn-hero-explore {
    background: var(--primary-yellow);
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 12px;
    padding: 9px 22px;
    border-radius: 22px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    transition: all 0.2s ease;
}

.btn-hero-explore:hover {
    background: var(--primary-yellow-hover);
    transform: translateY(-1px);
}

.hero-search-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    width: 340px;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #f4f7fe;
    border-radius: 10px;
    padding: 3px 4px 3px 12px;
    border: 1px solid #e9edf7;
}

.search-input-group input {
    border: none;
    background: transparent;
    font-size: 12px;
    color: var(--nav-text-color);
    width: 100%;
    outline: none;
}

.btn-search-submit {
    background: var(--primary-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    border-radius: 8px;
    padding: 6px 16px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-search-submit:hover {
    background: var(--primary-blue-dark);
}

/* --------------------------------------------------------------------------
   5. 4 KPI Statistics Cards Grid
   -------------------------------------------------------------------------- */
.public-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.public-stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--card-border);
    transition: transform 0.2s ease;
}

.public-stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-icon-blue {
    background: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 132, 255, 0.2);
}

.stat-icon-yellow {
    background: var(--primary-yellow);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.25);
}

.stat-text-info {
    display: flex;
    flex-direction: column;
}

.stat-number-val {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-label-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2px 0 1px 0;
}

.stat-subdesc {
    font-size: 10px;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   6. Main Content Grid Layout
   -------------------------------------------------------------------------- */
.public-main-grid {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 20px;
}

.section-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--card-border);
    margin-bottom: 20px;
}

.section-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.section-header-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --------------------------------------------------------------------------
   7. Book Catalog Grid (100% UNIFORM EQUAL SIZE & ALIGNMENT)
   -------------------------------------------------------------------------- */
.books-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
    align-items: stretch !important;
}

.book-item-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid var(--card-border);
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    box-sizing: border-box !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

.book-cover-wrapper {
    width: 100% !important;
    height: 150px !important;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f7fe;
    margin-bottom: 8px;
    flex-shrink: 0;
    position: relative;
}

.book-cover-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.book-card-info-box {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.book-card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 32px;
}

.book-card-author {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-cat-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
    background: rgba(0, 132, 255, 0.08);
    color: var(--primary-blue);
    align-self: flex-start;
}

/* Custom Smart Pagination Bar */
.custom-smart-pagination {
    margin: 0 !important;
    display: inline-flex !important;
    gap: 4px !important;
}

.custom-smart-pagination>li>a,
.custom-smart-pagination>li>span {
    border-radius: 8px !important;
    border: 1px solid var(--card-border) !important;
    background: #ffffff !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
    transition: all 0.2s ease !important;
}

.custom-smart-pagination>li.active>a,
.custom-smart-pagination>li.active>span {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(0, 132, 255, 0.3) !important;
}

.custom-smart-pagination>li>a:hover {
    background-color: #f4f7fe !important;
    color: var(--primary-blue) !important;
}

/* --------------------------------------------------------------------------
   8. Member Callout Banner
   -------------------------------------------------------------------------- */
.member-banner-box {
    background: linear-gradient(135deg, #0084ff 0%, #005ce6 100%);
    border-radius: 14px;
    padding: 16px 22px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 18px rgba(0, 132, 255, 0.2);
}

.member-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.member-banner-text h3 {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.member-banner-text p {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   9. Right Column Items: Recent Books & Category Grid
   -------------------------------------------------------------------------- */
.recent-ebook-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-ebook-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #f4f7fe;
}

.recent-ebook-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-thumb-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.recent-thumb-img {
    width: 36px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    background: #f4f7fe;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.recent-text-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.recent-text-details .recent-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-text-details .recent-author {
    font-size: 10px;
    color: var(--text-secondary);
}

.recent-badges-flex {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.badge-ebook {
    background: #e3f2fd;
    color: var(--primary-blue);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}

.badge-new {
    background: #fff8e1;
    color: #ff9800;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}

/* Category Grid Pills */
.category-pills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.cat-pill-item {
    background: #f8fafc;
    border: 1px solid #f0f3fa;
    border-radius: 10px;
    padding: 8px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cat-pill-item:hover {
    background: #ffffff;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 132, 255, 0.1);
}

.cat-pill-item i {
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   10. Responsive Media Queries (Laptops, Tablets, Android, iPhone)
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
    .books-cards-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .public-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .books-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .public-main-grid {
        grid-template-columns: 1fr;
    }

    .category-pills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .top-utility-bar {
        display: none;
    }

    .public-desktop-nav-menu {
        display: none !important;
    }

    .public-mobile-nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 12px;
        padding: 16px 0 8px 0;
        border-top: 1px solid #f0f3fa;
        margin-top: 12px;
        list-style: none;
    }

    .public-mobile-nav-menu.mobile-open {
        display: flex !important;
    }

    .navbar-flex-container {
        flex-wrap: wrap;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .public-auth-actions {
        margin-left: auto;
        margin-right: 12px;
    }

    .hero-banner-container {
        flex-direction: column;
        padding: 24px 20px;
        min-height: auto;
        gap: 20px;
        align-items: flex-start;
    }

    .hero-content-left h2 {
        font-size: 22px;
    }

    .hero-content-left p {
        font-size: 12px;
    }

    .hero-search-card {
        width: 100%;
    }

    .books-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .category-pills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .member-banner-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .modal-dialog {
        width: 92% !important;
        margin: 20px auto !important;
    }
}

@media (max-width: 480px) {
    .public-brand-text h1 {
        font-size: 14px !important;
    }

    .public-brand-text span {
        font-size: 9px !important;
    }

    .public-brand-logo {
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
    }

    .btn-pill-login,
    .btn-pill-register {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }

    .public-stats-grid {
        grid-template-columns: 1fr;
    }

    .books-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .book-cover-wrapper {
        height: 130px !important;
    }

    .stat-number-val {
        font-size: 15px;
    }
}