/* PDF viewer styles */
body {
    margin: 0;
    background-color: #000000;
    color: #ffffff;
}

.content-wrapper {
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    background-color: #000000;
}

#pdf-container {
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    overflow: auto;
    background-color: #000000;
    scroll-behavior: smooth;
    display: flex;
}

  
.nav-buttons {
    position: fixed;
    top: 50%;
    transform: translateY(-10%);
    z-index: 1000;
}

.nav-button {
    width: 50px;
    height: 50px;
    background-color: rgba(200, 165, 68, 0.8);
    color: #800000;
    font-size: 24px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-button:hover {
    transform: scale(1.1);
    background-color: rgba(200, 165, 68, 1);
}

.nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#prev-page {
    left: 20px;
}

#next-page {
    right: 20px;
}

.download-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.download-btn {
    background-color: rgba(200, 165, 68, 0.8);
    color: #800000;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.download-btn:hover {
    transform: scale(1.05);
    background-color: rgba(200, 165, 68, 1);
}

canvas {
    display: block;
    margin: 20px auto;
    max-width: none;
    height: auto;
    background-color: white;
}

@media (max-width: 768px) {
    .nav-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    #prev-page {
        left: 10px;
    }

    #next-page {
        right: 10px;
    }
}

        /* Loading spinner */
        .spinner {
            border: 4px solid rgba(200, 165, 68, 0.3);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border-left-color: rgba(200, 165, 68, 1);
            animation: spin 1s linear infinite;
            margin: 50px auto;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Page indicator */
        .page-indicator {
            display: none;
            text-align: center;
            margin: 10px 0;
            font-size: 16px;
            color: #c8a54473;
            position: fixed;
            bottom: 70px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            background-color: rgba(0, 0, 0, 0.2);
            padding: 5px 15px;
            border-radius: 15px;
        }