.pdfflipbook-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    outline: none;
}

.pdfflipbook-container.pdfflipbook-fullscreen-active {
    background: #1b1b1b;
    padding: 20px;
    height: 100vh;
    justify-content: center;
}

.pdfflipbook-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #555;
    font-size: 14px;
}

.pdfflipbook-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #ddd;
    border-top-color: #666;
    border-radius: 50%;
    margin-bottom: 12px;
    animation: pdfflipbook-spin 0.9s linear infinite;
}

@keyframes pdfflipbook-spin {
    to { transform: rotate(360deg); }
}

.pdfflipbook-empty {
    padding: 20px;
    color: #888;
    text-align: center;
}

.pdfflipbook-book {
    width: 100%;
    max-width: 100%;
}

.pdfflipbook-book canvas {
    max-width: 100%;
}

.pdfflipbook-simple {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.pdfflipbook-simple-img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.15s ease;
    box-shadow: none;
}

.pdfflipbook-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.pdfflipbook-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pdfflipbook-btn:hover {
    background: #333;
    color: #fff;
}

.pdfflipbook-pagenum {
    font-size: 13px;
    color: #555;
    min-width: 60px;
    text-align: center;
}

@media (max-width: 480px) {
    .pdfflipbook-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}
