/* -------------------------------------------------------------
 * IslamOnline Book Reader Styling
 * ------------------------------------------------------------- */

/* Variables & Design Tokens */
#iol-reader-app {
    --primary-color: #0b806d;
    /* Classic elegant teal/emerald */
    --primary-hover: #086153;
    --primary-light: #e0f2f0;
    --accent-color: #f7a01a;
    /* Warm secondary orange/gold */

    /* Light Theme (Default) */
    --bg-app: #f4f6f8;
    --bg-panel: #ffffff;
    --bg-paper: #ffffff;
    --text-main: #2b3a4a;
    --text-muted: #5e6e7e;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-paper: rgba(0, 0, 0, 0.06);

    /* Typography */
    --font-ui: inherit;
    --font-book: inherit;

    /* Layout Sizes */
    --navbar-height: 70px;
    --sidebar-width: 320px;
    --footer-height: 80px;
}

/* Theme overrides */
#iol-reader-app.theme-sepia {
    --bg-app: #f5efe2;
    --bg-panel: #fdfaf2;
    --bg-paper: #faf4e8;
    --text-main: #4a3e2a;
    --text-muted: #7d6e5c;
    --border-color: #e5dcc7;
    --shadow-color: rgba(74, 62, 42, 0.06);
    --shadow-paper: rgba(74, 62, 42, 0.04);
    --primary-light: #eee5cf;
}

#iol-reader-app.theme-dark {
    --bg-app: #0f172a;
    --bg-panel: #1e293b;
    --bg-paper: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-paper: rgba(0, 0, 0, 0.2);
    --primary-light: #132d2a;
}

/* Reset / Container */
.iol-reader-container {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    font-family: var(--font-ui);
    background-color: var(--bg-app);
    color: var(--text-main);
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    position: relative;
    direction: rtl;
    text-align: right;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Transition Views */
.iol-view {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.iol-view.active {
    display: block;
    opacity: 1;
}

/* -------------------------------------------------------------
 * 1. LIBRARY / LANDING VIEW
 * ------------------------------------------------------------- */
.iol-library-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d9488 100%);
    color: #ffffff;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    border-bottom: 5px solid var(--accent-color);
}

.iol-library-title {
    font-family: var(--font-ui);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.iol-library-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

.iol-search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.iol-search-wrapper input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-ui);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #334155;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.iol-search-wrapper input:focus {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.iol-search-wrapper .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

/* Books Grid */
.iol-books-grid {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    min-height: 350px;
}

/* Loader */
.iol-loader {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    padding: 60px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Book Card Design (Visual Cover Mockup) */
.iol-book-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.iol-book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px var(--shadow-color);
    border-color: var(--primary-color);
}

/* Cover Styling using pure css for rich aesthetic */
.iol-book-cover-mock {
    height: 220px;
    background: linear-gradient(135deg, #0e1e38 0%, #1e293b 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--primary-color);
    transition: background 0.3s ease;
}

/* Elegant design elements on book cover */
.iol-book-cover-mock::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 15px;
    background: rgba(255, 255, 255, 0.08);
    /* Book Spine Highlight */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.iol-book-cover-mock::after {
    content: "";
    position: absolute;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    z-index: 1;
}

/* Dynamic Gradients based on book card index */
.iol-book-card:nth-child(2n) .iol-book-cover-mock {
    background: linear-gradient(135deg, #0f2b23 0%, #0d9488 100%);
}

.iol-book-card:nth-child(3n) .iol-book-cover-mock {
    background: linear-gradient(135deg, #4c1d95 0%, #1e1b4b 100%);
}

.iol-book-card:nth-child(4n) .iol-book-cover-mock {
    background: linear-gradient(135deg, #7c2d12 0%, #431407 100%);
}

.cover-badge {
    background-color: var(--accent-color);
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.cover-title {
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 15px 0;
    z-index: 2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cover-logo {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 1px;
    z-index: 2;
    font-weight: 600;
}

/* Card Details */
.iol-book-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.iol-book-meta-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iol-book-meta-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.iol-book-btn-read {
    background-color: var(--primary-color);
    color: #ffffff !important;
    text-align: center;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(11, 128, 109, 0.15);
}

.iol-book-card:hover .iol-book-btn-read {
    background-color: var(--primary-hover);
    transform: scale(1.02);
}

/* -------------------------------------------------------------
 * 2. READER VIEW LAYOUT
 * ------------------------------------------------------------- */
#iol-reader-view {
    height: 90vh;
    height: calc(100vh - 36px);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

/* Top Navbar */
.iol-reader-navbar {
    height: var(--navbar-height);
    background-color: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.navbar-right,
.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reader-book-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-right: 2px solid var(--border-color);
    padding-right: 15px;
}

/* Controls */
.iol-btn {
    border: 1px solid var(--border-color);
    background-color: var(--bg-panel);
    color: var(--text-main);
    border-radius: 8px;
    padding: 8px 16px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    outline: none;
}

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

.iol-btn.btn-nav {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
}

.iol-btn.btn-nav:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

.btn-icon.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.control-group {
    display: flex;
    align-items: center;
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
}

/* Theme buttons */
.theme-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: transparent;
    transition: all 0.2s ease;
}

.theme-btn[data-theme="light"]:hover,
.theme-btn[data-theme="light"].active {
    background-color: #ffffff;
    color: #eab308;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.theme-btn[data-theme="sepia"]:hover,
.theme-btn[data-theme="sepia"].active {
    background-color: #faf4e8;
    color: #a16207;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.theme-btn[data-theme="dark"]:hover,
.theme-btn[data-theme="dark"].active {
    background-color: #334155;
    color: #f1f5f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Font Adjuster */
.font-controls {
    padding: 3px 10px;
}

.font-btn {
    border: none;
    background: transparent;
    padding: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    justify-content: center;
}

.font-btn:hover {
    background-color: var(--border-color);
}

.font-label {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 5px;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
 * 3. SIDEBAR (TOC & SEARCH)
 * ------------------------------------------------------------- */
.reader-main-layout {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

.reader-sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-panel);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, margin-right 0.3s ease;
    z-index: 8;
    overflow: hidden;
}

/* Collapsed Sidebar State */
.reader-sidebar.collapsed {
    margin-right: calc(-1 * var(--sidebar-width));
    transform: translateX(var(--sidebar-width));
}

.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-app);
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: var(--bg-panel);
}

.sidebar-panel {
    display: none;
    flex: 1;
    overflow: hidden;
}

.sidebar-panel.active {
    display: flex;
    flex-direction: column;
}

.toc-scroll,
.search-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
}

/* Custom Scrollbars */
.toc-scroll::-webkit-scrollbar,
.search-scroll::-webkit-scrollbar,
.book-content-container::-webkit-scrollbar {
    width: 6px;
}

.toc-scroll::-webkit-scrollbar-thumb,
.search-scroll::-webkit-scrollbar-thumb,
.book-content-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
}

.toc-scroll::-webkit-scrollbar-thumb:hover,
.search-scroll::-webkit-scrollbar-thumb:hover,
.book-content-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}

/* TOC List */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 4px;
}

.toc-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
    border-right: 3px solid transparent;
}

.toc-link:hover {
    background-color: var(--bg-app);
    color: var(--primary-color);
}

.toc-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-right-color: var(--primary-color);
    font-weight: 700;
}

/* Indent levels */
.toc-level-1 {
    font-size: 0.95rem;
    font-weight: 700;
}

.toc-level-2 {
    padding-right: 25px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.toc-level-3 {
    padding-right: 35px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.toc-page {
    font-size: 0.8rem;
    color: var(--text-muted);
    background-color: var(--bg-app);
    padding: 2px 8px;
    border-radius: 12px;
    font-family: sans-serif;
}

.toc-link.active .toc-page {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Search inside Book Panel */
.book-search-input-wrapper {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.book-search-input-wrapper input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-app);
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    outline: none;
}

.book-search-input-wrapper input:focus {
    border-color: var(--primary-color);
}

.btn-search {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    justify-content: center;
    border-radius: 8px;
}

.btn-search:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.search-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 40px 10px;
    line-height: 1.6;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-item {
    padding: 12px;
    border-radius: 8px;
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-item:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.search-item-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 6px;
}

.search-item-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-main);
}

.search-item-text mark {
    background-color: #fde047;
    color: #000000;
    padding: 0 2px;
    font-weight: 700;
    border-radius: 2px;
}

/* -------------------------------------------------------------
 * 4. BOOK CONTENT AREA
 * ------------------------------------------------------------- */
.book-content-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: var(--bg-app);
    transition: background-color 0.3s ease;
}

.book-paper {
    width: 800px;
    max-width: 100%;
    min-height: 480px;
    background-color: var(--bg-paper);
    border-radius: 12px;
    padding: 10px 15px;
    box-shadow: 0 4px 15px var(--shadow-paper);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.paper-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 30px;
    font-weight: 600;
}

.chapter-indicator {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.book-page-body {
    flex: 1;
    line-height: 1.95;
    color: var(--text-main);
    text-align: justify;
}

/* Page body custom styling based on font sizes */
.font-size-small {
    font-size: 1.05rem;
}

.font-size-medium {
    font-size: 1.25rem;
    /* Large standard for readability */
}

.font-size-large {
    font-size: 1.45rem;
}

/* Typography styles */
.typography-serif {
    font-family: var(--font-book);
}

/* Standard HTML structure within book content */
.book-page-body h1,
.book-page-body h2,
.book-page-body h3 {
    font-family: var(--font-ui);
    color: var(--primary-color);
    line-height: 1.4;
    margin-top: 10px;
    margin-bottom: 20px;
}

.book-page-body h1 {
    font-size: 1.7rem;
    font-weight: 800;
    border-right: 4px solid var(--accent-color);
    padding-right: 12px;
}

.book-page-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    border-right: 3px solid var(--primary-color);
    padding-right: 10px;
}

.book-page-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.book-page-body p {
    margin-bottom: 10px;
}

.book-page-body strong {
    color: var(--primary-color);
    font-weight: 700;
}

.book-page-body ul,
.book-page-body ol {
    margin-bottom: 14px;
    padding-right: 25px;
}

.book-page-body li {
    margin-bottom: 8px;
}

.book-page-body a {
    color: var(--primary-color);
    text-decoration: underline;
    pointer-events: none;
    /* Disable links inside the converted content since they were Word TOC links */
}

/* -------------------------------------------------------------
 * 5. READER FOOTER CONTROLS
 * ------------------------------------------------------------- */
.iol-reader-footer {
    height: var(--footer-height);
    background-color: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.footer-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.nav-arrow {
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: 700;
}

.nav-arrow i {
    font-size: 0.8rem;
}

.page-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.page-selector-wrapper input {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-ui);
    font-weight: 700;
    background-color: var(--bg-app);
    color: var(--text-main);
    outline: none;
    -moz-appearance: textfield;
}

.page-selector-wrapper input::-webkit-outer-spin-button,
.page-selector-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Progress bar */
.progress-bar-container {
    width: 100%;
    width: calc(100% - 25px);
    height: 6px;
    background-color: var(--bg-app);
    border-radius: 10px;
    position: relative;
    overflow: visible;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-percentage {
    position: absolute;
    left: -40px;
    bottom: -4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
 * 6. RESPONSIVE DESIGN (MOBILE & TABLET)
 * ------------------------------------------------------------- */
@media (max-width: 900px) {
    .reader-book-title {
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .iol-library-header {
        padding: 35px 20px;
    }

    .iol-library-title {
        font-size: 1.7rem;
    }

    .iol-books-grid {
        padding: 20px;
        grid-template-columns: 1fr;
    }

    .reader-book-title {
        display: none;
        /* Hide on small mobile to save space */
    }

    /* Sidebar slide-out on Mobile */
    .reader-sidebar {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.15);
        transform: translateX(0);
        transition: transform 0.3s ease;
    }

    .reader-sidebar.collapsed {
        transform: translateX(100%);
        margin-right: 0;
    }

    .book-content-container {
        padding: 15px;
    }

    .book-paper {
        padding: 10px 15px;
    }

    .paper-header {
        margin-bottom: 20px;
    }

    .iol-reader-footer {
        padding: 0 15px;
    }

    .nav-arrow {
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .navbar-left {
        gap: 8px;
    }

    .font-controls {
        display: none;
        /* Hide font resize inside reader on extremely small mobile to fit theme toggle */
    }
}

.iol-reader-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #a12121;
    font-size: 28px;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000002;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    line-height: 0;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.iol-reader-modal-close-btn:hover {
    color: #ef4444;
    background-color: rgba(255, 255, 255, 0.2);
    transform: none;
}

/* Inline SVG Icon Helper Styles */
.iol-svg-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    overflow: hidden;
}

.iol-svg-icon:not([fill="none"]) {
    fill: currentColor;
}