/* PDF Viewer Styles */
#pdf-viewer-container {
    width: 100%;
    height: 500px;
    overflow: auto;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#pdf-viewer-container canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: white;
}

.preview-placeholder {
    text-align: center;
    color: #666;
    padding: 40px 20px;
}

.preview-placeholder i {
    font-size: 48px;
    color: #00d4ff;
    margin-bottom: 20px;
    display: block;
}

.preview-placeholder p {
    margin: 10px 0;
    font-size: 16px;
}

.preview-placeholder .btn {
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(45deg, #00d4ff, #8b5cf6);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.preview-placeholder .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

/* Modal styles for PDF viewer */
.modal-content {
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
}

.modal-body {
    padding: 20px;
}

/* Loading animation for PDF */
.pdf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.pdf-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* PDF viewer controls */
.pdf-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pdf-controls button {
    padding: 8px 16px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.pdf-controls button:hover {
    background: #555;
}

.pdf-controls button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
    #pdf-viewer-container {
        height: 400px;
        padding: 10px;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 20px auto;
    }
    
    .preview-placeholder i {
        font-size: 36px;
    }
    
    .preview-placeholder p {
        font-size: 14px;
    }
} 