@import url("/media/css/font-awesome.min.css");
/* Basic */

:root {
    --bg-color: #fdfbf7;
    --main-color: #000000;
    --text-color: #555555;
    --logo-color: #1a1a1a;
    --primary-color: #8b2635;
    --sub-text-color: #666666;
    --border-color: #e5e7eb;
    --white-color: #ffffff;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

html {
    font-size: 14px;
    line-height: 20px;
}

body {
    background-color: var(--bg-color);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
}

.pr-4 {
    padding-right: 16px;
}

.pl-12 {
    padding-left: 48px;
}

.py-3 {
    padding-top: 12px;
    padding-bottom: 12px;
}

.bg-white {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(
--tw-bg-opacity));
}

.italic {
    font-style: italic;
}

#header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    gap: 4px;
}

.text-description {
    font-size: 14px;
    color: var(--sub-text-color);
    line-height: 20px;
    font-weight: 300;
}

.heading-logo {
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -0.9px;
    font-weight: bold;
    color: var(--logo-color);
}



.heading-sub-logo {
    color: var(--primary-color);
}

.search-box-container {
    width: 100%;
    max-width: 580px;
    margin-top: 8px;
}

.search-box {
    position: relative;
    height: 44px;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

.icon-search-svg {
    position: absolute;
    width: 20px;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--sub-text-color);
}

.input-search {
    width: 100%;
    height: 100%;
    border-color: var(--border-color);
    border-width: 1px;
    border-radius: 50px;
}

.input-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgb(139 38 53 / 0.3);
}


/* Footer */

#footer {
    background-color: var(--logo-color);
    color: var(--white-color);
    padding: 80px 0;
}

.footer-logo {
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -0.9px;
    font-weight: bold;
    color: var(--white-color);
    margin-bottom: 24px;
}

.sub-footer-heading {
    font-size: 18px;
    line-height: 28px;
    font-weight: bold;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
}

.footer-links > li > a {
    color: #9ca3af;
    font-size: 14px;
}

.copyright-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding-top: 14px;
    margin-top: 80px;
    line-height: 16px;
    border-top: 1px solid #1f2937;
}

.footer-left {
    display: flex;
    align-items: start;
    flex-direction: column;

}

.book-outstands {
    background-color: var(--white-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.book-outstands > h2 {
    color: var(--logo-color);
    font-size: 24px;
    line-height: 32px;
    font-weight: bold;
    margin-bottom: 24px;
}

.banner-category-list {
    display: grid;
    gap: 12px;
}

.category-item {
    padding: 4px 0;
}

.category-item > a > span {
	color: var(--main-color);
}

.category-item > a{
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 1024px) {
    .banner-category-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .banner-category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.nav-categories {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-radius: 0;
    padding: 16px 0;
    background-color: #fdfbf7f2;
    --tw-backdrop-blur: blur(12px);
    backdrop-filter: var(--tw-backdrop-blur);
    border-bottom-width: 1px;
    border-top-width: 1px;
    border-style: solid;
    border-color: var(--border-color);
}

.nav-categories-wrapper {
    display: flex;
    align-items: center;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    overflow-x: auto;
}

button.nav-category-button {
    border: none;
    outline: none;
    background-color: transparent;
    border: 1px solid transparent;
    font-size: 14px;
    color: var(--main-color);
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 20px;
    padding: 8px 24px;
    white-space: nowrap;
    border-radius: 50px;
}

button.nav-category-button:hover {
    color: var(--text-color);
    border-color: var(--border-color);
    background-color: rgba(229, 229, 229, 0.5);
}

button.nav-category-button.active {
    background-color: var(--primary-color);
    color: var(--white-color);
        --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}


.books-grid {
    padding: 30px 0;
}

.book-card-wrapper {
    margin-bottom: 30px;
}

.book-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.book-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.book-cover {
    width: 100%;
    padding-top: 130%;
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
}

.book-cover a .book-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .book-cover > a .book-image {
    transform: scale(1.05);
}

.book-read-now-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 
        opacity 0.5s ease,
        transform 0.5s ease,
        visibility 0.5s ease;
}

.book-read-now-overlay > button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255,255,255,0.9);
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.5s ease;
}

.book-card:hover .book-read-now-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover */
.book-read-now-overlay:hover > button {
    background: var(--primary-color);
    color: var(--white-color);
}

.book-read-now-overlay > button > svg {
    color: var(--primary-color);
    transition: color 0.5s ease;
}

.book-read-now-overlay:hover > button > svg {
    color: var(--white-color);
}

.no-image-placeholder {
    color: rgba(255,255,255,0.3);
}

.no-image-placeholder > img{
    width: 64px;
    height: 64px;
}

.book-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    min-height: 44px;
}

.book-title a {
    color: #2c3e50;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-title a:hover {
    color: #8b4513;
}

.book-author {
    font-size: 13px;
    margin: 0 0 12px 0;
    color: #666;
}

.book-author a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
}

.book-author a:hover {
    color: #8b4513;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 16px;
    line-height: 1;
}

.star.filled {
    color: #ffc107;
}

.star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-count {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}


.nav-category-button:hover {
    background: #f5f5f5;
}

.nav-category-button.active {
    background: #8b4513;
    color: #fff;
}

.nav-categories {
    background: #f9f9f9;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .book-card-wrapper {
        margin-bottom: 20px;
    }
    
    .book-title {
        font-size: 14px;
        min-height: 40px;
    }
    
    .book-author {
        font-size: 12px;
    }
    
    .nav-category-button {
        padding: 8px 16px;
        font-size: 12px;
        margin: 3px;
    }
}

/* Page Header Section */
.page-header-section {
    padding-top: 30px;
}

.page-header-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 16px;
}

.page-header-text {
    flex: 1;
}

.page-header-title {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--heading-font);
    color: #1A1A1A;
    margin: 0;
    line-height: 1.2;
}

.page-header-subtitle {
    color: #666666;
    margin: 8px 0 0 0;
    font-size: 16px;
    font-weight: 300;
}

.page-header-count {
    font-size: 14px;
    font-family: monospace;
    color: #8B2635;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 20px;
}

@media (max-width: 767px) {
    
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    
    .page-header-title {
        font-size: 24px;
    }
    
    .page-header-subtitle {
        font-size: 14px;
    }
    
    .page-header-count {
        display: none;
    }
}

.page-header-section {
    padding: 30px 0 20px;
}

.page-header-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 16px;
}

.page-header-text {
    flex: 1;
}

.page-header-title {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--heading-font);
    color: #1A1A1A;
    margin: 0;
    line-height: 1.2;
}

.page-header-subtitle {
    color: #666666;
    margin: 8px 0 0 0;
    font-size: 16px;
    font-weight: 300;
}

.page-header-count {
    font-size: 14px;
    font-family: monospace;
    color: #8B2635;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 20px;
}

/* Books Grid */
.books-grid {
    padding: 30px 0;
}

.book-card-wrapper {
    margin-bottom: 30px;
}

.book-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.book-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.book-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--white-color);
    color:var(--text-color);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px;
}

.no-image-placeholder svg {
    width: 100%;
    height: auto;
    max-width: 140px;
    max-height: 140px;
}

.book-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    min-height: 44px;
}

.book-title a {
    color: #2c3e50;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-title a:hover {
    color: #8b4513;
}

.book-author {
    font-size: 13px;
    margin: 0 0 12px 0;
    color: #666;
}

.book-author a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.book-author a:hover {
    color: #8b4513;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 16px;
    line-height: 1;
}

.star.filled {
    color: #ffc107;
}

.star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-count {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}
.nav-category-button:hover {
    background: #f5f5f5;
}

.nav-category-button.active {
    background: #8b4513;
    color: #fff;
}

.nav-categories {
    background: #f9f9f9;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 767px) {
    
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    
    .page-header-title {
        font-size: 24px;
    }
    
    .page-header-subtitle {
        font-size: 14px;
    }
    
    .page-header-count {
        display: none;
    }
    
    .book-card-wrapper {
        margin-bottom: 20px;
    }
    
    .book-title {
        font-size: 14px;
        min-height: 40px;
    }
    
    .book-author {
        font-size: 12px;
    }
    
    .nav-category-button {
        padding: 8px 16px;
        font-size: 12px;
        margin: 3px;
    }
}

/* Book Grid Layout */

.books-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.page-show-category .books-container {
    gap: 10px;
}
.book-card-wrapper {
    width: 100%;
}

.book-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.book-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

/* View More Button */
.view-more-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.view-more-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #fff;
    border: 2px solid #333;
    border-radius: 50px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-more-button:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.view-more-button svg {
    transition: transform 0.3s ease;
}

.view-more-button:hover svg {
    transform: translateX(4px);
}

.page-header-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 16px;
}

.page-header-text {
    flex: 1;
}

.page-header-title {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--heading-font);
    color: #1A1A1A;
    margin: 0;
    line-height: 1.2;
}

.page-header-subtitle {
    color: #666666;
    margin: 8px 0 0 0;
    font-size: 16px;
    font-weight: 300;
}

.page-header-count {
    font-size: 14px;
    font-family: monospace;
    color: #8B2635;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 20px;
}

.book-cover a .book-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.book-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f3f0;
}

.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px;
}

.no-image-placeholder svg {
    width: 100%;
    height: auto;
    max-width: 140px;
    max-height: 140px;
}

.book-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    min-height: 44px;
}

.book-title a {
    color: #2c3e50;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-title a:hover {
    color: #8b4513;
}

.book-author {
    font-size: 13px;
    margin: 0 0 12px 0;
    color: #666;
}

.book-author a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.book-author a:hover {
    color: #8b4513;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 16px;
    line-height: 1;
}

.star.filled {
    color: #ffc107;
}

.star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-count {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

/* Category Navigation */
.nav-category-button {
    background: #fff;
    border: 2px solid #8b4513;
    color: #8b4513;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-category-button:hover {
    background: #f5f5f5;
}

.nav-category-button.active {
    background: #8b4513;
    color: #fff;
}

.nav-categories {
    background: #f9f9f9;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 1199px) {
    .books-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 991px) {
    .books-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    
    .page-header-title {
        font-size: 24px;
    }
    
    .page-header-subtitle {
        font-size: 14px;
    }
    
    .page-header-count {
        display: none;
    }
    
    .books-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .book-title {
        font-size: 14px;
        min-height: 40px;
    }
    
    .book-author {
        font-size: 12px;
    }
    
    .nav-category-button {
        padding: 8px 16px;
        font-size: 12px;
        margin: 3px;
    }
    
    .view-more-button {
        padding: 12px 24px;
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .books-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.no-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    gap: 16px;
}

.no-image-placeholder svg {
    width: auto;
    height: auto;
    max-width: 80px;
    max-height: 100px;
    flex-shrink: 0;
}

.placeholder-text {
    text-align: center;
    width: 100%;
}

.placeholder-title {
    font-size: 15px;
    font-weight: 600;
    color: #666;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.placeholder-author {
    font-size: 13px;
    font-weight: 400;
    color: #999;
    margin: 0;
    font-style: italic;
}

.sidebar-categories {
    position: sticky;
    top: 20px;
}

.sidebar-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #8b4513;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
}

.category-item a {
    padding: 10px 12px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.category-item a:hover {
    background: #f5f5f5;
    color: #8b4513;
    padding-left: 16px;
}

.category-item.active a {
    background: #8b4513;
    color: #fff;
    font-weight: 600;
}

.pagination-wrapper {
    margin-top: 40px;
}

/* View Toggle Buttons */
.view-toggle-buttons {
    display: flex;
    gap: 5px;
    background: #fff;
    padding: 4px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.view-toggle-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.view-toggle-btn.active {
    background: #8b4513;
    color: #fff;
}

/* List View Styles */
.books-list-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.book-list-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.book-list-item:last-child {
    border-bottom: none;
}

.book-list-link {
    color: #2c3e50;
    text-decoration: none;
    display: block;
    font-size: 15px;
    line-height: 1.6;
    transition: color 0.2s ease;
}

.book-list-link:hover {
    color: #8b4513;
}

.book-list-link:hover .book-list-title {
    color: #8b4513;
}

.book-list-title {
    font-weight: 500;
    color: #2c3e50;
    transition: color 0.2s ease;
}

.book-list-meta {
    color: #666;
    font-size: 14px;
    margin-left: 4px;
}

.book-list-author {
    color: #8b4513;
    font-weight: 500;
}

@media (max-width: 991px) {
    .sidebar-categories {
        margin-top: 40px;
        position: static;
    }
    
    .view-toggle-buttons {
        display: none;
    }
}

@media (max-width: 767px) {
    .page-header-count {
        display: none;
    }
    
    .book-list-link {
        font-size: 14px;
    }
    
    .book-list-meta {
        font-size: 13px;
    }
}

/* Category Show Page Styles */
.category-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
}

.category-content-wrapper {
    padding: 20px 0 40px;
}

.category-books-section {
    background: #fff;
    padding: 20px;
    background-color: var(--white-color);
}


.category-books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.category-book-card {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 30px 20px 20px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-book-card:hover {
    background: #ececec;
    transform: translateY(-2px);
}

.category-book-link {
    text-decoration: none;
    display: block;
}

.category-book-cover {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.category-book-cover img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.category-book-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.category-book-name {
    display: none;
}

.category-book-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-books-list {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.category-list-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-list-item:last-child {
    border-bottom: none;
}

.category-list-link {
    color: #2c3e50;
    text-decoration: none;
    display: block;
    font-size: 15px;
    line-height: 1.6;
    transition: color 0.2s ease;
}

.category-list-link:hover {
    color: #4a7fc5;
}

.category-list-title {
    font-weight: 500;
    color: #4a7fc5;
}

.category-list-meta {
    color: #666;
    font-size: 14px;
    margin-left: 4px;
}

.category-list-author {
    color: #4a7fc5;
}

.category-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state p {
    font-size: 16px;
    color: #666;
    margin: 15px 0 0;
}

@media (max-width: 1199px) {
    .category-books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 767px) {
    .category-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .category-books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-book-card {
        padding: 20px 15px 15px;
    }
    
    .category-book-title {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .category-books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* View Toggle Buttons */
.view-toggle-buttons {
    display: flex;
    gap: 8px;
}

.view-toggle-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle-btn:hover {
    border-color: #4a7fc5;
    background: #f8f9fa;
}

.view-toggle-btn.active {
    background: #4a7fc5;
    border-color: #4a7fc5;
    color: #fff;
}

.view-toggle-btn svg {
    width: 18px;
    height: 18px;
}

/* Category Sidebar */
.category-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4a7fc5;
}

.sidebar-category-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-category-item:last-child {
    border-bottom: none;
}

.sidebar-category-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 15px;
    display: block;
    transition: color 0.2s ease;
}

.sidebar-category-link:hover {
    color: #4a7fc5;
}

.sidebar-category-link.active {
    color: #4a7fc5;
    font-weight: 600;
}


/* Book Detail Page Styles */
.book-detail-page {
    padding: 30px 0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: #4a7fc5;
}

.breadcrumb-separator {
    color: #999;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* Book Header */
.book-detail-header {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.book-cover-wrapper {
    flex-shrink: 0;
    width: 180px;
}

.book-cover-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.book-info-wrapper {
    flex: 1;
    min-width: 0;
}

.book-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.book-author-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.author-label {
    color: #666;
    font-size: 14px;
}

.author-name {
    color: #4a7fc5;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.author-name:hover {
    color: #2c5a9c;
}

.book-rating-line {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.stars-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stars-rating .star {
    font-size: 18px;
    color: #ddd;
}

.stars-rating .star.filled {
    color: #ff9800;
}

.stars-rating .star.half {
    color: #ff9800;
    position: relative;
}

.rating-number {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-left: 4px;
}

.rating-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.rating-stats svg {
    flex-shrink: 0;
}

.book-category-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #e3f2fd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.book-category-badge-inline .category-link {
    color: #4a7fc5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.book-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.book-action-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #dc3545;
    color: #fff;
}

.btn-primary:hover {
    background: #c82333;
}

.btn-secondary {
    background: #4a7fc5;
    color: #fff;
}

.btn-secondary:hover {
    background: #3a5fa5;
}

.btn-outline {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #999;
}

/* Book Sections */
.book-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.book-description-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

/* Chapters List */
.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    transition: background 0.2s;
}

.chapter-item:hover {
    background: #3b59980d;
}

.chapter-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #3b59981a;
    color: #3b5998;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.chapter-link {
    flex: 1;
    color: #3b5998;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.chapter-link:hover {
    color: #4a7fc5;
}

/* Related Books Grid */
.related-books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-book-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.related-book-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.related-book-link {
    text-decoration: none;
}

.related-book-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    min-height: 120px;
}

.related-book-cover img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    border-radius: 4px;
}

.related-book-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-book-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar Styles */
.book-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #4a7fc5;
}

.sidebar-categories-list {
    max-height: 500px;
    overflow-y: auto;
}

.sidebar-category-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-category-item:last-child {
    border-bottom: none;
}

.sidebar-category-link {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    display: block;
    transition: color 0.2s;
}

.sidebar-category-link:hover {
    color: #4a7fc5;
}

.sidebar-category-link.active {
    color: #4a7fc5;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991px) {
    .book-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .book-cover-wrapper {
        width: 200px;
    }
    
    .book-action-buttons {
        justify-content: center;
    }
    
    .related-books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .book-detail-title {
        font-size: 22px;
    }
    
    .book-action-buttons .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .related-books-grid {
        grid-template-columns: 1fr;
    }
    
    .book-section {
        padding: 20px 15px;
    }
}

/* Chapters Show More Button */
.chapters-show-more {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.btn-show-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #4a7fc5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-show-more:hover {
    background: #3a5fa5;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 127, 197, 0.3);
}

.btn-show-more:active {
    transform: translateY(0);
}

/* Chapter Reading Page Styles */
.chapter-reading-page {
    padding: 30px 0;
}

.chapter-reading-header {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.chapter-reading-title {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.4;
}

.chapter-reading-content {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.chapter-reading-content p {
    margin-bottom: 1.5em;
    text-align: justify;
}

.chapter-reading-content h1,
.chapter-reading-content h2,
.chapter-reading-content h3 {
    margin-bottom: 1em;
    color: #1A1A1A;
    text-align: center;
}

.chapter-next-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.btn-next-chapter {
    display: inline-block;
    padding: 14px 32px;
    background: #9c2743;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-next-chapter:hover {
    background: #7d1f35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 39, 67, 0.3);
}

.chapter-end-notice {
    color: #999;
    font-size: 15px;
    font-style: italic;
}

/* Suggested Chapters */
.suggested-chapters {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.suggested-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #4a7fc5;
}

.suggested-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.suggested-item {
    display: block;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
}

.suggested-item:hover {
    background: #e9ecef;
    color: #4a7fc5;
    transform: translateX(5px);
}

.suggested-item.active {
    background: #4a7fc5;
    color: #fff;
}

/* Chapter Sidebar */
.chapter-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-book-info {
    text-align: center;
}

.sidebar-book-cover {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 15px;
}

.sidebar-book-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.sidebar-book-title a {
    color: #1A1A1A;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-book-title a:hover {
    color: #4a7fc5;
}

.sidebar-book-author {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.sidebar-chapters-list {
    max-height: 500px;
    overflow-y: auto;
}

.sidebar-chapter-link {
    display: block;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
	line-height: 22px;
}

.sidebar-chapter-link:last-child {
    border-bottom: none;
}

.sidebar-chapter-link:hover {
    background: #f8f9fa;
    color: #4a7fc5;
    padding-left: 18px;
}

.sidebar-chapter-link.active {
    background: #e3f2fd;
    color: #4a7fc5;
    font-weight: 600;
    padding-left: 18px;
    border-left: 3px solid #4a7fc5;
}

/* Responsive */
@media (max-width: 991px) {
    .chapter-reading-content {
        padding: 30px 20px;
    }
}

@media (max-width: 767px) {
    .chapter-reading-title {
        font-size: 20px;
    }
    
    .chapter-reading-content {
        padding: 20px 15px;
        font-size: 15px;
    }
    
    .btn-next-chapter {
        padding: 12px 24px;
        font-size: 14px;
    }
}

.sidebar-chapters-top {
    position: sticky;
    top: 40px;
    z-index: 100;
    margin-top: 10px;
}

/* ================================================
   AUTHOR DETAIL PAGE STYLES
   ================================================ */

/* Author Page Container */
.author-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Breadcrumb Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--sub-text-color);
    margin-bottom: 24px;
}

.nav img {
    opacity: 0.6;
}

.nav a {
    color: #4a7fc5;
    text-decoration: none;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Author Info Layout */
.author-info-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 992px) {
    .author-info-wrapper {
        grid-template-columns: 2fr 1fr;
    }
}

/* Main Author Content */
.author-main-content {
    background: var(--white-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.author-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 30px;
}

.author-image-wrapper {
    flex-shrink: 0;
}

.author-image {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.author-header-info {
    flex: 1;
}

.author-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--logo-color);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.author-years {
    font-size: 18px;
    color: var(--sub-text-color);
    margin: 0 0 16px 0;
    font-weight: 400;
}

.author-bio {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Author Description */
.author-description {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 30px;
}

.author-description p {
    margin-bottom: 16px;
}

.author-description p:last-child {
    margin-bottom: 0;
}

/* Author Works Section */
.author-works-section {
    margin-top: 40px;
}

.author-works-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--logo-color);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.author-books-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.author-book-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: padding-left 0.2s;
}

.author-book-item:last-child {
    border-bottom: none;
}

.author-book-item:hover {
    padding-left: 8px;
    background: #f9fafb;
}

.author-book-item a {
    color: #4a7fc5;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
}

.author-book-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.author-book-year {
    color: var(--sub-text-color);
    font-size: 14px;
    margin-left: 8px;
}

/* Sidebar - Category List */
.author-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.category-sidebar-box {
    background: var(--white-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.category-sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--logo-color);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.category-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-sidebar-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.category-sidebar-item:hover {
    background: #f9fafb;
    transform: translateX(4px);
}

.category-sidebar-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    width: 100%;
    transition: color 0.2s;
}

.category-sidebar-item:hover a {
    color: var(--primary-color);
}

.category-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.category-icon-book {
    color: var(--primary-color);
}

/* Pagination */
.author-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .author-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-image {
        width: 180px;
        height: 180px;
    }
    
    .author-name {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .author-main-content {
        padding: 20px;
    }
    
    .author-image {
        width: 150px;
        height: 150px;
    }
    
    .author-name {
        font-size: 24px;
    }
    
    .author-years {
        font-size: 16px;
    }
    
    .category-sidebar-box {
        padding: 20px;
    }
}

/* ================================================
   PDF VIEWER PAGE STYLES
   ================================================ */

.pdf-viewer-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: #2c3e50;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
}

/* PDF Header */
.pdf-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white-color);
    padding: 16px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.pdf-header-left {
    flex: 1;
    min-width: 250px;
}

.pdf-book-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--white-color);
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-book-icon {
    font-size: 24px;
}

.pdf-meta-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.pdf-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdf-meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

.pdf-meta-item a {
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.2s;
}

.pdf-meta-item a:hover {
    color: #6bb3ff;
    text-decoration: underline;
}

/* PDF Toolbar */
.pdf-toolbar {
    background: #1a1a2e;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

.pdf-toolbar-left,
.pdf-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    color: var(--white-color);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.pdf-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.pdf-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: var(--white-color);
}

.pdf-btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.pdf-btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-color: transparent;
}

.pdf-btn-success:hover {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
    box-shadow: 0 4px 16px rgba(17, 153, 142, 0.4);
}

.pdf-btn-danger {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    border-color: transparent;
}

.pdf-btn-danger:hover {
    background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
    box-shadow: 0 4px 16px rgba(238, 9, 121, 0.4);
}

.pdf-btn svg {
    width: 18px;
    height: 18px;
}

.pdf-btn-icon-only {
    padding: 10px 12px;
}

/* PDF Viewer Frame */
.pdf-viewer-wrapper {
    flex: 1;
    position: relative;
    background: #34495e;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

.pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white-color);
}

.pdf-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Close Button */
.pdf-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: var(--white-color);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.pdf-close-btn:hover {
    background: rgba(238, 9, 121, 0.8);
    border-color: #ee0979;
    transform: rotate(90deg);
}

.pdf-close-btn svg {
    width: 20px;
    height: 20px;
}

/* PDF Info Badge */
.pdf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    color: #a6c1ff;
    font-size: 13px;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .pdf-header {
        padding: 14px 20px;
    }
    
    .pdf-book-title {
        font-size: 18px;
    }
    
    .pdf-toolbar {
        padding: 10px 16px;
    }
    
    .pdf-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .pdf-header {
        padding: 12px 16px;
    }
    
    .pdf-book-title {
        font-size: 16px;
    }
    
    .pdf-meta-info {
        font-size: 13px;
        gap: 12px;
    }
    
    .pdf-toolbar {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }
    
    .pdf-toolbar-left,
    .pdf-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .pdf-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .pdf-btn span {
        display: none;
    }
    
    .pdf-btn-icon-only span {
        display: inline;
    }
    
    .pdf-close-btn {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
    }
}

/* ================================================
   SEARCH AUTOCOMPLETE STYLES
   ================================================ */

/* Search Box Position */
.search-box {
    position: relative;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Loading */
.search-loading {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white-color);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    white-space: nowrap;
}

.search-loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(139, 38, 53, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Search Section */
.search-section {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.search-section:last-child {
    border-bottom: none;
}

.search-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    background: rgba(139, 38, 53, 0.05);
    margin-bottom: 4px;
}

/* Search Result Item */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
    position: relative;
}

.search-result-item:hover {
    background: rgba(139, 38, 53, 0.05);
    padding-left: 20px;
}

.search-result-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.search-result-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-name mark {
    background: rgba(255, 235, 59, 0.5);
    color: var(--main-color);
    font-weight: 700;
    padding: 2px 0;
}

.search-result-meta {
    font-size: 13px;
    color: var(--sub-text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Search Result Badge */
.search-result-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.author-badge {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.book-badge {
    background: rgba(139, 38, 53, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(139, 38, 53, 0.3);
}

/* No Results */
.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: var(--sub-text-color);
}

.search-no-results svg {
    width: 60px;
    height: 60px;
    color: #ddd;
    margin: 0 auto 16px;
}

.search-no-results p {
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

.search-no-results strong {
    color: var(--main-color);
    font-weight: 600;
}

/* Scrollbar Styling */
.search-results-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 12px 12px 0;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Responsive */
@media (max-width: 767px) {
    .search-results-dropdown {
        max-height: 400px;
        border-radius: 8px;
    }
    
    .search-result-item {
        padding: 10px 12px;
    }
    
    .search-result-item:hover {
        padding-left: 16px;
    }
    
    .search-result-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .search-result-name {
        font-size: 14px;
    }
    
    .search-result-meta {
        font-size: 12px;
    }
    
    .search-section-title {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .search-no-results {
        padding: 30px 16px;
    }
    
    .search-no-results svg {
        width: 50px;
        height: 50px;
    }
}

.doc-online-action {
	padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}