/**
 * Styles for PDF generation components
 * Used by pdf-generator.js for the loading indicator
 */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pdf-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.pdf-loading-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.pdf-loading-spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

/* PDF button styling */
.pdf-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background-color: #2B2B2B;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pdf-button:hover {
    background-color: #444;
}

.pdf-button svg {
    margin-right: 4px;
}

.pdf-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Make sure the button stays visible in all contexts */
@media screen and (max-width: 768px) {
    .pdf-container {
        justify-content: center;
    }
}

/* Don't show the button when printing */
@media print {
    .pdf-container {
        display: none;
    }
}