.epv-pdf-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    height: 100%;
}

.epv-pdf-viewer {
    width: 100%;
    border: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.epv-scroll-container {
    width: 100%;
    height: calc(100% - 70px);
    overflow: auto;
    padding: 20px;
    position: relative;
    cursor: grab;
}

.epv-scroll-container:active {
    cursor: grabbing;
}

.epv-page-container {
    margin: 0 auto 20px auto;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: white;
    border-radius: 4px;
    overflow: hidden;
    max-width: 100%;
}

.epv-page-canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.epv-page-number {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.epv-loading {
    padding: 40px;
    font-size: 16px;
    color: #666;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.epv-page-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.epv-error {
    padding: 20px;
    background-color: #ffebee;
    color: #c62828;
    border-radius: 4px;
    text-align: center;
    margin: 10px;
}

.epv-navigation {
    position: sticky;
    bottom: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    z-index: 10;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    gap: 15px;
}

.epv-page-info {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
    min-width: 120px;
}

.epv-current-page {
    font-weight: bold;
}

.epv-zoom-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.epv-zoom-btn {
    padding: 6px 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    min-width: 36px;
    transition: all 0.2s ease;
}

.epv-zoom-btn:hover {
    background-color: #2980b9;
}

.epv-zoom-level {
    margin: 0 8px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    min-width: 45px;
    text-align: center;
}

.epv-progress-container {
    width: 120px;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.epv-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

.epv-progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #2c3e50;
    font-weight: bold;
}

/* Page jump controls */
.epv-page-jump-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.epv-page-input {
    width: 50px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.epv-page-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.epv-page-total {
    font-size: 14px;
    color: #2c3e50;
}

.epv-page-jump-btn {
    padding: 6px 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.epv-page-jump-btn:hover {
    background-color: #2980b9;
}

/* Remove input number arrows */
.epv-page-input::-webkit-outer-spin-button,
.epv-page-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.epv-page-input {
    -moz-appearance: textfield;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .epv-navigation {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }
    
    .epv-page-jump-controls {
        order: 1;
        width: 100%;
        justify-content: center;
    }
    
    .epv-zoom-controls {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .epv-progress-container {
        order: 3;
        width: 100%;
        max-width: 120px;
        margin: 0 auto;
    }
    
    .epv-scroll-container {
        padding: 10px;
        height: calc(100% - 120px);
    }
    
    .epv-page-container {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .epv-page-jump-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .epv-zoom-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .epv-zoom-btn {
        padding: 5px 8px;
        font-size: 13px;
        min-width: 32px;
    }
}

/* Loading animation */
.epv-loading:after {
    content: '...';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Scrollbar styling */
.epv-scroll-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.epv-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.epv-scroll-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.epv-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}