.nanet-pdf-container {
    position: relative;
    width: 100%;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 10px 10px 16px 10px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
}

/* Viewport - Completely hide page flip scrollbars */
.nanet-viewport {
    width: 100%;
    position: relative;
    overflow: hidden !important;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.nanet-viewport.is-panning {
    cursor: grab;
}

.nanet-flipbook {
    transition: transform 0.15s ease-out;
    margin: auto;
}

.nanet-page {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.nanet-page canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Bottom Toolbar (Issuu Style Bar) */
.nanet-toolbar-bottom {
    background: #2b2b2b;
    border-radius: 6px;
    margin-top: 10px;
    padding: 0 12px 8px 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.nanet-scrubber-wrapper {
    width: 100%;
    padding: 20px 0 10px 0;
	max-height: 24px;
}

.nanet-page-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background: #555;
    outline: none;
    border-radius: 2px;
    cursor: pointer;
    margin: 0;
}

.nanet-page-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.1s;
}

.nanet-page-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.nanet-bar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ccc;
    font-size: 13px;
    padding-top: 4px;
}

.nanet-page-info {
    font-size: 12px;
    font-weight: 500;
    color: #ddd;
}

.nanet-controls-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nanet-tb-btn {
    background: transparent;
    color: #ddd;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nanet-tb-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.nanet-tb-divider {
    width: 1px;
    height: 16px;
    background: #444;
    margin: 0 2px;
}

.nanet-loading {
    color: #eee;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* Clean SVG rendering */
.nanet-tb-btn svg {
    display: block;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Fullscreen Mode Overrides */
.nanet-pdf-container:fullscreen,
.nanet-pdf-container:-webkit-full-screen {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100vw !important;
    height: 100vh !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    background: #111111 !important;
    border-radius: 0 !important;
}

.nanet-pdf-container:fullscreen .nanet-viewport,
.nanet-pdf-container:-webkit-full-screen .nanet-viewport {
    height: calc(100vh - 70px) !important;
    max-height: none !important;
    flex: 1 1 auto !important;
}

.nanet-pdf-container:fullscreen .nanet-toolbar-bottom,
.nanet-pdf-container:-webkit-full-screen .nanet-toolbar-bottom {
    margin-top: auto;
}

/* Body lock when zoomed/fullscreen on mobile */
body.nanet-body-noscroll {
    overflow: hidden !important;
}

/* CSS Fallback Fullscreen for iPhone */
.nanet-pdf-container.is-css-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: #111 !important;
    padding: 12px !important;
}

.nanet-pdf-container.is-css-fullscreen .nanet-viewport {
    height: calc(100vh - 70px) !important;
    flex: 1 1 auto !important;
}

.nanet-pdf-header p {
    margin-bottom: 20px !important;
}

.nanet-pdf-footer {
    margin-top: 20px !important;
}