/* Easy PDF Viewer - front-end styles */
.epdfv-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #2b2b2b;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    color: #f4f4f4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.epdfv-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: #1f1f1f;
    border-bottom: 1px solid #111;
    flex-wrap: wrap;
}

.epdfv-toolbar-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.epdfv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: #3a3a3a;
    color: #f4f4f4;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease;
}
.epdfv-btn:hover { background: #4a4a4a; }
.epdfv-btn:active { background: #555; }
.epdfv-btn:focus { outline: 2px solid #4a90e2; outline-offset: 1px; }

.epdfv-pagenum {
    width: 48px;
    height: 28px;
    background: #2b2b2b;
    color: #f4f4f4;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
}
.epdfv-pagenum::-webkit-outer-spin-button,
.epdfv-pagenum::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.epdfv-pageinfo { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.epdfv-pageof { color: #cfcfcf; }
.epdfv-zoomlevel { min-width: 48px; text-align: center; font-size: 13px; color: #cfcfcf; }

.epdfv-canvas-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: #525659;
    padding: 12px;
    text-align: center;
    outline: none;
}

.epdfv-pages { display: inline-block; }

.epdfv-canvas {
    display: block;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    margin: 0 auto;
    max-width: 100%;
}

.epdfv-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f4f4f4;
    font-size: 14px;
    background: rgba(40, 40, 40, 0.85);
    pointer-events: none;
}
.epdfv-loading-error { color: #ff9a9a; }

.epdfv-error {
    padding: 12px 16px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    font-size: 14px;
}

/* Fullscreen tweaks */
.epdfv-wrap:fullscreen { width: 100vw !important; height: 100vh !important; border-radius: 0; }
.epdfv-wrap:-webkit-full-screen { width: 100vw !important; height: 100vh !important; border-radius: 0; }

@media (max-width: 600px) {
    .epdfv-toolbar { padding: 6px 8px; }
    .epdfv-btn { min-width: 30px; height: 30px; padding: 0 6px; font-size: 14px; }
    .epdfv-pagenum { width: 40px; }
}
