.pdf-viewer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    width: 95%;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px;
    position: relative;
    overflow: auto;
}

#pdf-scroll-wrapper {
    height: 80vh;
    overflow-y: auto;
    padding: 20px;
    background: transparent;
    scrollbar-width: thin;
    scrollbar-color: #9272eb #18181B;
}

#pdf-scroll-wrapper::-webkit-scrollbar {
    width: 10px;
    background: #18181B;
    border-radius: 8px;
}

#pdf-scroll-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #235881 40%, #3c2381 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px #0d0c13;
    border: 2px solid #18181B;
}

#pdf-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3c2381 60%, #7B61FF 100%);
}

#pdf-scroll-wrapper::-webkit-scrollbar-track {
    background: #18181B;
    border-radius: 8px;
}

#pdf-loader {
    font-size: 1.2em;
    color: #fff;
    text-align: center;
    padding: 50px;
}

#pdf-canvas {
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: none;
    margin: 0 auto;
}
#pdf-controls {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 12px 28px;
    background: rgba(30, 30, 36, 0.85);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    z-index: 10;
    flex-wrap: wrap;
}

#pdf-controls button {
    background: linear-gradient(145deg, #4b3ca7 0%, #7B61FF 100%);
    color: #f8f8ff;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    font-family: 'Josefin Sans', 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.25s ease;
    min-width: 90px;
    box-shadow: 0 3px 10px rgba(123, 97, 255, 0.25);
}

#pdf-controls button:hover {
    background: linear-gradient(145deg, #5d4fcc 0%, #8e7dff 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(123, 97, 255, 0.35);
}

#pdf-controls button:active {
    transform: translateY(0) scale(0.98);
}

#page-info {
    font-size: 1.1em;
    color: #f0f0ff;
    font-weight: 500;
    font-family: 'Josefin Sans', 'Montserrat', sans-serif;
    letter-spacing: 0.6px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    min-width: 100px;
}

#pdf-controls a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(145deg, #43b477, #28d89a);
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-family: 'Josefin Sans', 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(40, 216, 154, 0.25);
}

#pdf-controls a:hover {
    background: linear-gradient(145deg, #28d89a, #1cbf88);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(40, 216, 154, 0.35);
}

#pdf-controls a ion-icon {
    font-size: 1.2em;
    color: #f0fff7;
}


@media (max-width: 768px) {
    .pdf-viewer-container {
        margin: 20px auto;
        padding: 15px;
        width: 95%;
    }

    #pdf-controls {
        flex-direction: row;
        justify-content: space-around;
        gap: 10px;
        padding: 10px;
        font-size: 0.9em;
    }

    #pdf-controls button,
    #pdf-controls a {
        padding: 8px 15px;
        font-size: 0.9em;
        min-width: unset;
    }

    #page-info {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    #pdf-controls {
        flex-direction: column;
        gap: 8px;
    }

    #pdf-controls button,
    #pdf-controls a,
    #page-info {
        width: 100%;
        text-align: center;
    }
}
