/* PDF Loading Indicator Styles */
.pdf-watermarking-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    color: white;
    font-family: var(--body-font);
    transition: opacity 0.3s ease;
}

.pdf-watermarking-loading.fade-out {
    opacity: 0;
}

.pdf-watermarking-loading p {
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
}

/* Spinner animation for loading state */
.pdf-watermarking-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: pdf-watermarking-spin 1s linear infinite;
    margin-bottom: 0.5rem;
}

@keyframes pdf-watermarking-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Success icon */
.pdf-watermarking-success {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4CAF50;
    position: relative;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-watermarking-success::before {
    content: '';
    width: 20px;
    height: 10px;
    border-left: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(-45deg);
    position: relative;
    top: -2px;
}

/* Error icon */
.pdf-watermarking-error {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f44336;
    position: relative;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-watermarking-error::before,
.pdf-watermarking-error::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background-color: white;
}

.pdf-watermarking-error::before {
    transform: rotate(45deg);
}

.pdf-watermarking-error::after {
    transform: rotate(-45deg);
}

/* Download notification for mobile PDF viewer */
.download-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 90%;
}

.download-notification.show {
    opacity: 1;
}

.download-notification i {
    font-size: 18px;
}

.download-notification.success i {
    color: #4CAF50;
}

.download-notification.error i {
    color: #f44336;
}