/* Custom styles for PDF viewing */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Base styles for the viewer */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

/* Styles for error messages */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f9f9f9;
}

.error-container h1 {
    font-size: 24px;
    margin-bottom: 12px;
}

.error-container p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.error-container a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.error-container a:hover {
    color: #004499;
    text-decoration: underline;
}

/* Loading indicator */
.pdf-viewer-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.pdf-viewer-loading::after {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border-radius: 50%;
    border: 6px solid #ddd;
    border-top-color: #0066cc;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}