:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    min-height: 100vh;
}

header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo-icon {
    margin-right: 0.5rem;
}

.logo a {
    text-decoration: none;
}

.logo .text {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: 1rem;
    transition: transform 0.2s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Toggle Menu Styles */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 1.5rem;
        background-color: rgb(152, 140, 140);
        box-shadow: var(--shadow);
        border-radius: 8px;
        padding: 1rem;
        z-index: 10;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

.hero {
    background: linear-gradient(to right, var(--primary-light), var(--primary));
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-bar {
    display: flex;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border-radius: 50px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-bar button {
    background-color: white;
    color: var(--primary);
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.search-bar button:hover {
    background-color: #f1f5f9;
}

.search-message {
    text-align: center;
    margin: 1rem 0;
    color: var(--primary);
    font-weight: 800;
    font-size: x-large;
}

.section-title {
    font-size: 1.75rem;
    padding-left: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding-left: 10px;
    padding-right: 10px;
}

.book-card {
    background-color: rgba(165, 187, 207, 0.285);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.book-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    background-size: cover;
    background-position: center;
}

.book-info {
    padding: 1.25rem;
}

.book-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.book-author {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Style for the buttons container */
.book-info .button-container {
    display: flex;
    gap: 0.5rem;
    /* Space between buttons */
    margin-top: 0.5rem;
    /* Space above the buttons */
    align-items: stretch;
    /* Ensure all buttons stretch to the same height */
}

/* Common styles for all buttons */
.book-info .button-container button {
    padding: 0.75rem;
    /* Same padding for all buttons */
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    /* Ensure buttons have the same height */
}

/* Specific styles for the Download button */
.book-info .button-container .download-btn {
    background-color: var(--primary);
    color: white;
    flex: 10;
    /* Larger flex value to make it bigger */
}

.book-info .button-container .download-btn:hover {
    background-color: var(--primary-light);
}

/* Container for all buttons */
.button-container {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping for the "Read online" button */
    gap: 0.5rem;
    /* Add spacing between buttons */
}

/* Container for Download and Share buttons */
.download-share-container {
    display: flex;
    gap: 0.5rem;
    /* Add spacing between Download and Share buttons */
}

/* Styles for the Download button */
.download-btn {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
}

.download-btn:hover {
    background-color: var(--primary-light);
}

/* Styles for the Share button */
.share-btn {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
}

.share-btn:hover {
    background-color: var(--primary-light);
}

/* Styles for the Read online button */
.read-online-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    width: 100%;
    /* Make the button full width */
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
    /* Add spacing above the Read online button */
}

.read-online-btn:hover {
    background-color: var(--primary-light);
}

@media (max-width: 600px) {
    .download-share-container {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .download-btn,
    .share-btn {
        flex: 1;
        min-width: 0;
    }
}

/* Categories */
.categories-wrapper {
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-bottom: 10px;
}

.categories {
    display: flex;
    gap: 1rem;
    padding-top: 10px;
    animation: scrollCategories 30s linear infinite;
    flex-shrink: 0;
    white-space: nowrap;
    /* Prevent wrapping */
    position: relative;
    z-index: 0;
    /* Lower z-index to stay under the "All Books" button */
}

.category {
    background-color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: var(--shadow);
    transition: background-color 0.2s, color 0.2s;
    flex-shrink: 0;
    /* Prevent categories from shrinking */
}

.category.active,
.category:hover {
    background-color: var(--primary);
    color: white;
}

.categories-wrapper #All-Books {
    text-align: center;
}

/* Keyframes for the scrolling animation */
@keyframes scrollCategories {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Keyframes for the scrolling animation */
@keyframes scrollCategories {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Scroll only half the width of the duplicated content */
    }
}


/* Download Cover Button */
.book-cover {
    position: relative;
}

.book-cover-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.download-cover-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffffffcc;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.download-cover-btn:hover {
    background-color: var(--gray);
    /* Change to a lighter shade for hover */
}

.download-cover-btn:hover::after {
    content: 'Download Cover';
    position: absolute;
    top: 35px;
    right: 0;
    background-color: var(--gray);
    /* Tooltip background color */
    color: rgb(46, 45, 45);
    /* Tooltip text color */
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pagination button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.pagination button:hover {
    background-color: var(--primary-light);
}

#page-numbers {
    display: flex;
    gap: 0.5rem;
}

#page-numbers button {
    background-color: white;
    color: var(--dark);
    border: 1px solid var(--primary);
    padding: 5px 7px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

#page-numbers button.active {
    background-color: var(--primary);
    color: white;
}

footer {
    background-color: white;
    padding: 3rem 0;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    font-size: 14px;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--gray);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    outline: none;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.contact-form button:hover {
    background-color: var(--primary-light);
}

.newsletter {
    display: flex;
    margin-top: 1rem;
}

.newsletter input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.newsletter button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    color: var(--gray);
    font-size: 0.875rem;
}

.ad-container {
    margin: 2rem auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.ad-container ins {
    display: block;
    margin: 0 auto;
}

/* Responsive Ads */
@media (max-width: 768px) {
    .ad-container {
        margin: 1rem auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.5rem;
    }

    .book-cover {
        height: 300px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .book-cover {
        height: 300px;
        width: 100%;
    }
}

@media (max-width: 360px) {
    .book-cover {
        height: 400px;
        width: 100%;
        ;
    }
}

/* ---------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------- */
/* --------------------------------------Download page------------------------------------------- */
/* ---------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------- */

.download-book {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background-color: #fff;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.download-book .title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.3;
    word-wrap: break-word;
}

.download-book .book-cover {
    width: 200px;
    height: 300px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.download-book .quote {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    word-wrap: break-word;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

.link-btn1 {
    background-color: #1abc9c;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    width: 100%;
    white-space: nowrap;
}

.link-btn2 {
    background-color: #283be3;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    width: 100%;
    white-space: nowrap;
}

.link-btn3 {
    background-color: #fe0000;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    width: 100%;
    white-space: nowrap;
}

.link-btn1:hover {
    background-color: #037f66;
}

.link-btn2:hover {
    background-color: #09388a;
}

.link-btn3:hover {
    background-color: #ba0000;
}

.note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.popup-content p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #333;
}

.popup-content a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.popup-content button {
    background-color: #6366f1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.popup-content button:hover {
    background-color: #818cf8;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 1.5rem;
        background-color: rgb(152, 140, 140);
        box-shadow: var(--shadow);
        border-radius: 8px;
        padding: 1rem;
        z-index: 10;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .download-book {
        padding: 30px 15px;
    }

    .download-book .title {
        font-size: 1.8rem;
    }

    .download-book .book-cover {
        height: 300px;
    }

    .download-book .quote {
        font-size: 0.9rem;
    }

    .buttons {
        gap: 10px;
    }

    .link-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .download-book {
        padding: 20px 10px;
    }

    .download-book .title {
        font-size: 1.5rem;
    }

    .download-book .book-cover {
        height: 300px;
    }

    .download-book .quote {
        font-size: 0.8rem;
    }

    .buttons {
        gap: 8px;
    }

    .link-btn {
        padding: 8px 15px;
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .download-book .title {
        font-size: 1.3rem;
    }

    .download-book .book-cover {
        height: 300px;
    }

    .download-book .quote {
        font-size: 0.75rem;
    }

    .link-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------about section---------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: var(--light);
    color: var(--dark);
}

.about-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary);
}

.about-section .subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gray);
}

.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 2;
}

.about-text h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.about-text ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-text ul li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .about-section h1 {
        font-size: 2rem;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }
}

/* -------------------------------------------Reading page-------------------------------- */
.pdf-viewer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    margin: 20px 0;
}

#pdf-viewer {
    width: 90%;
    height: 100%;
    max-width: 800px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#fullscreen-button {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
}

#fullscreen-button:hover {
    background-color: var(--primary-light);
}

/*-------------------------------------------- Slider styling--------------------------------------- */

.slider-container {
    width: 99%;
    overflow: hidden;
    position: relative;
}

.slider {
    margin: 10px;
    margin-bottom: 40px;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 200px;
    /* Fixed width for each slide */
    height: 300px;
    /* Fixed height for each slide */
    margin: 0 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ddd;
    ;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image covers the container */
    display: block;
}

/* Back to Top Button */
#back-to-top, #back-to-bottom {
    position: fixed;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 30%;
    background: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 30px;
    z-index: 99;
    display: none;
    transition: all 0.3s;
}

#back-to-top {
    bottom: 80px;
}

#back-to-bottom {
    bottom: 20px;
}

#back-to-top:hover, #back-to-bottom:hover {
    background: #45a049;
    transform: scale(1.1);
}


    /* Dark Theme */
    body.dark-theme {
        --primary: #e2bc40;
        --primary-light: #9e8227;
        --dark: white;
        --light: #333232;
        --gray: #efebd6;
        --black: #000000;
        --shadow: 0 4px 6px -1px rgba(247, 13, 13, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
        background-color: var(--light);
        color: var(--dark);
    }

    body.dark-theme header {
        background-color: var(--black);
    }

    body.dark-theme footer,
    body.dark-theme .book-card,
    body.dark-theme .sidebar {
        background-color: var(--black);
        color: var(--dark);
    }

    body.dark-theme .nav-links a,
    body.dark-theme .footer-links a {
        color: var(--dark);
    }

    body.dark-theme .nav-links a:hover,
    body.dark-theme .footer-links a:hover {
        color: var(--primary);
    }

    body.dark-theme .search-bar input {
        background-color: var(--black);
        color: var(--dark);
        border-color: var(--primary-light);
    }

    body.dark-theme .search-bar button {
        background-color: var(--black);
        color: var(--gray);
    }

    body.dark-theme .search-bar button:hover {
        background-color: grey;
        color: var(--gray);
    }

    body.dark-theme .book-info .button-container .download-btn,
    body.dark-theme .share-btn {
        background-color: var(--primary);
        color: var(--black);
    }

    body.dark-theme .download-btn:hover,
    body.dark-theme .share-btn:hover {
        background-color: var(--primary-light);
    }

    body.dark-theme .pagination button,
    body.dark-theme #page-numbers button {
        color: var(--black);
    }

    body.dark-theme .category.active,
    .category {
        background-color: var(--black);
        box-shadow: var(--shadow);
        transition: background-color 0.2s, color 0.2s;
    }

    body.dark-theme .category.active,
    .category:hover {
        background-color: var(--primary);
        color: var(--black);
    }

    body.dark-theme .download-book {
        background-color: var(--light);
        color: var(--dark);
    }

    body.dark-theme .title {
        color: var(--dark);
    }

    body.dark-theme .quote {
        color: var(--gray);
    }

    body.dark-theme .ad-space {
        background-color: var(--black);
        color: var(--gray);
        border-color: var(--primary);
    }

    body.dark-theme footer {
        background-color: var(--black);
        color: var(--gray);
    }

    body.dark-theme .footer-title {
        color: var(--primary);
    }

    body.dark-theme .footer-links a {
        color: var(--gray);
    }

    body.dark-theme .footer-links a:hover {
        color: var(--primary);
    }

    body.dark-theme .contact-form input,
    body.dark-theme .contact-form textarea {
        background-color: var(--light);
        color: var(--dark);
        border: 1px solid var(--primary);
    }

    body.dark-theme .contact-form button {
        background-color: var(--primary);
        color: var(--black);
    }

    body.dark-theme .contact-form button:hover {
        background-color: var(--primary-light);
    }

    body.dark-theme .newsletter input {
        background-color: var(--light);
        color: var(--dark);
        border: 1px solid var(--primary);
    }

    body.dark-theme .newsletter button {
        background-color: var(--primary);
        color: var(--black);
    }

    body.dark-theme .newsletter button:hover {
        background-color: var(--primary-light);
    }

    body.dark-theme .note {
        color: var(--dark);
    }

    body.dark-theme .book-info .button-container .share-btn {
        color: var(--black);
    }

    body.dark-theme .book-info .button-container .read-online-btn {
        color: var(--black);
    }

    body.dark-theme #back-to-top,
    body.dark-theme #back-to-bottom {
        color: var(--black);
        background-color: var(--primary-light);
    }

/* --- ADMIN PANEL STYLES --- */
.admin-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.auth-container {
    max-width: 400px;
    margin: 100px auto;
    text-align: center;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.admin-form-group {
    margin-bottom: 1rem;
}

.admin-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.admin-form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.admin-btn {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.admin-btn.delete {
    background-color: #ef4444;
}

.book-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.book-list-item img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    margin-right: 1rem;
}

body.dark-theme .admin-container {
    background-color: var(--light);
    color: var(--dark);
}

body.dark-theme .checkbox-item {
    background-color: var(--black);
    color: var(--gray);
}

/* Pause animation on hover so users can click easily */
.categories:hover {
    animation-play-state: paused;
}