#pdf-container{
    max-width: 1000px;
    margin-inline: auto;
}

#pdf-viewer{
    overflow: auto;
    display: flex;
    background: gray;
    margin: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/*===Controles del Viewer====*/

.pdf-controls {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #404040;
    border-radius: 3px 3px 0 0;
    padding: 12px 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: #e0e0e0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

#btn-ctrl-container,
#zoom-ctrl-container,
#download-ctrl-container{
    display: flex;
    align-items: center;
    justify-content: center;
}

#btn-ctrl-container{
    width: 100%;
}

.pdf-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #646464, transparent);
}

.pdf-controls button,
#download-btn{
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border: 1px solid #4a4a4a;
    border-radius: 3px;
    color: #ffffff;
    margin: 0 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pdf-controls button:hover {
    background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
    border-color: #646464;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pdf-controls button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pdf-controls button:disabled {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pdf-controls .square{
    aspect-ratio: 1;
    line-height: 1;
    min-width: 30px;
}

.pdf-controls .rectangle{
    line-height: 1;
    padding: 8px 12px;
}

.pdf-controls button i {
    filter: brightness(0.9);
    font-size: 14px;
}

#page-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0 4px;
    padding: 5px 8px;
    background-color: #4a4a4a;
    border: 1px solid #5f5f5f;
}

#current-page, #total-pages {
    color: #64b5f6;
    font-weight: 700;
}

.pdf-controls span.zoom-txt {
    color: #b0b0b0;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

/* Estilos específicos para botones de zoom */
#zoom-out, #zoom-in {
    line-height: 1;
    & i {
        font-size: 11px;
    }
}

#zoom-fit,
#download-btn {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    border-color: #1e88e5;
}
#download-btn{
    display: flex;
    gap: 3px;
    justify-content: center;
    align-items: center;
}

#zoom-fit:hover {
    background: linear-gradient(135deg, #1e88e5 0%, #1976d2 100%);
    border-color: #42a5f5;
}



/* Responsive */
@media (min-width: 425px) {
    
    .pdf-controls span.zoom-txt {
        display: inline-block;
    }

}

@media (min-width: 768px) {
    .pdf-controls {
        justify-content: space-around;
    }
    
    /* Efecto de brillo al pasar el ratón */
    .pdf-controls button::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .pdf-controls button:hover::after {
        left: 100%;
    }

    #btn-ctrl-container{
        width: auto;
    }

    
}