/* ==========================================================================
   E-LEARNING ACADEMY - NOTEBOOK PDF VIEWER
   Professional Blue & White theme, clean book-style reader with FontAwesome icons
   ========================================================================== */

.notebook-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 650px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    position: relative;
    user-select: none;
}

/* Reader Toolbar */
.notebook-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-glass);
    z-index: 10;
    gap: 1rem;
    flex-wrap: wrap;
}

.notebook-tools-left,
.notebook-tools-center,
.notebook-tools-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notebook-page-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-card);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
}

.notebook-page-input {
    width: 45px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 4px;
    color: var(--text-main);
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 2px 4px;
}

.notebook-page-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Reading Progress Bar at top of reader */
.notebook-reading-progress {
    height: 4px;
    width: 100%;
    background: var(--border-glass);
    position: relative;
}

.notebook-reading-progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* Book Stage / Canvas Area */
.notebook-viewport {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    background: var(--bg-main);
}

.notebook-book-wrapper {
    position: relative;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12), 0 0 0 1px #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    transition: transform 0.2s ease;
    overflow: hidden;
    max-width: 100%;
}

/* Book Spine / Spiral Effect (Notebook feel) */
.notebook-book-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 16px;
    background: linear-gradient(to right, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.02) 70%, transparent 100%);
    pointer-events: none;
    z-index: 5;
}

/* Canvas element rendering the PDF page */
.notebook-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Floating Navigation Arrows */
.notebook-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.notebook-nav-arrow:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.notebook-nav-arrow:hover .fa,
.notebook-nav-arrow:hover .fa-solid {
    color: #ffffff;
}

.notebook-nav-prev {
    left: 20px;
}

.notebook-nav-next {
    right: 20px;
}

/* Fullscreen mode */
.notebook-container:fullscreen {
    border-radius: 0;
    border: none;
    width: 100vw;
    height: 100vh;
}

/* Mobile Responsiveness for Notebook Reader */
@media (max-width: 768px) {
    .notebook-container {
        min-height: 460px;
        border-radius: var(--radius-md);
    }

    .notebook-toolbar {
        padding: 0.45rem 0.65rem;
        gap: 0.5rem;
    }

    .notebook-page-indicator {
        font-size: 0.78rem;
        padding: 0.25rem 0.55rem;
    }

    .notebook-nav-arrow {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .notebook-nav-prev {
        left: 8px;
    }

    .notebook-nav-next {
        right: 8px;
    }

    .notebook-viewport {
        padding: 0.5rem;
    }
}
