.reader-body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #1a1a1a;
}

.reader-container {
    display: flex;
    height: 100vh;
    position: relative;
}

.reader-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #732916 0%, #8b3a1f 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.reader-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.reader-back-link {
    color: #fbb041;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reader-back-link:hover {
    color: white;
}

.reader-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0;
}

.reader-controls {
    display: flex;
    gap: 10px;
}

.reader-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.reader-btn:hover {
    background: rgba(251,176,65,0.2);
    border-color: #fbb041;
    transform: translateY(-1px);
}

.reader-content {
    flex: 1;
    margin-top: 60px;
    background: #2a2a2a;
    position: relative;
    overflow: hidden;
}

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid #fbb041;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    transition: transform 0.3s ease;
    transform-origin: center center;
}


/* Fullscreen styles */
.reader-content:fullscreen {
    margin: 0;
    background: #000;
}

.reader-content:fullscreen .pdf-viewer {
    width: 100vw;
    height: 100vh;
}

/* Mobile responsive */
@media (max-width: 768px) {
    
    .reader-header {
        padding: 0 10px;
    }
    
    .reader-title {
        font-size: 1rem;
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .reader-btn {
        padding: 6px 10px;
    }
    
    .reader-btn svg {
        width: 18px;
        height: 18px;
    }
}