/* PDF Viewer Styles */

.pdf-viewer-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    max-width: 1000px;
    margin: 0 auto;
}

.pdf-controls {
    background: linear-gradient(135deg, #005b63 0%, #006871 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-info {
    color: white;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-input {
    width: 55px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
}

.page-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.zoom-level {
    color: white;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.pdf-controls .btn {
    padding: 6px 12px;
    font-size: 13px;
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transition: all 0.3s ease;
}

.pdf-controls .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.pdf-controls .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

.pdf-controls .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.pdf-controls .btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.pdf-canvas-wrapper {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 700px;
    max-height: 800px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

.pdf-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    padding: 30px 20px;
}

.pdf-canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    background: white;
    display: block;
}

/* Customizar scrollbar */
.pdf-canvas-wrapper::-webkit-scrollbar {
    width: 10px;
}

.pdf-canvas-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.pdf-canvas-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #005b63 0%, #00838f 100%);
    border-radius: 10px;
}

.pdf-canvas-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #003d45 0%, #006270 100%);
}

.pdf-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Responsivo */
@media (max-width: 768px) {
    .pdf-viewer-container {
        max-width: 100%;
    }

    .pdf-canvas-wrapper {
        min-height: 500px;
        max-height: 600px;
    }

    .pdf-controls {
        flex-direction: column;
        gap: 10px;
    }

    .controls-left,
    .controls-right {
        width: 100%;
        justify-content: center;
    }

    .pdf-controls .btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .pdf-content {
        padding: 15px;
        gap: 20px;
    }
}

