.dfm-flipbook-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    border-radius: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.dfm-flipbook-wrapper.dfm-is-fullscreen {
    width: 100vw;
    height: 100vh;
    padding: 20px;
}

.dfm-flipbook-stage {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    transition: transform 0.2s ease;
    transform-origin: center center;
}

.dfm-flipbook {
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.dfm-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(4px);
    z-index: 5;
}

.dfm-toolbar-spacer {
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.15);
    margin: 0 6px;
}

.dfm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #1f3864;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: background 0.15s ease, transform 0.1s ease;
}

.dfm-btn:hover {
    background: #1f3864;
    color: #ffffff;
    transform: translateY(-1px);
}

.dfm-page-indicator {
    font-size: 13px;
    color: #333;
    padding: 0 6px;
    white-space: nowrap;
}

.dfm-author-caption {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    font-style: italic;
}

.dfm-side-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #1f3864;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    transition: background 0.15s ease, transform 0.15s ease;
    z-index: 6;
}

.dfm-side-nav:hover {
    background: #1f3864;
    color: #ffffff;
    transform: translateY(-50%) scale(1.06);
}

.dfm-side-nav:disabled {
    cursor: default;
    pointer-events: none;
}
.dfm-side-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.85);
    color: #1f3864;
    transform: translateY(-50%);
}

.dfm-side-prev {
    left: 16px;
}

.dfm-side-next {
    right: 16px;
}

@media (max-width: 700px) {
    .dfm-side-nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .dfm-side-prev {
        left: 6px;
    }
    .dfm-side-next {
        right: 6px;
    }
}

@media (max-width: 600px) {
    .dfm-flipbook-wrapper {
        padding: 20px 8px;
    }
    .dfm-toolbar {
        flex-wrap: wrap;
        justify-content: center;
    }
}
