/**
 * PDF Filler - Loader Styles
 * Professional loader and notification styles
 */

/* Loader Container */
.pdf-filler-loader {
    font-family: 'ABeeZee' !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay */
.pdf-filler-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

/* Loader Content */
.pdf-filler-loader-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner */
.pdf-filler-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #454444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loader Text */
.pdf-filler-loader-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.pdf-filler-loader-subtext {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

/* Download Notification */
.pdf-filler-notification {
    position: fixed;
    font-family: 'ABeeZee' !important;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border-left: 4px solid #46b450;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px 50px 20px 20px;
    max-width: 350px;
    z-index: 999998;
    animation: slideInRight 0.3s ease-out;
    display: none;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pdf-filler-notification-content strong {
    display: block;
    font-size: 16px;
    color: #46b450;
    margin-bottom: 8px;
}

.pdf-filler-notification-content p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #555;
}

.pdf-filler-download-btn {
    display: inline-block;
    background: #454444;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.pdf-filler-download-btn:hover {
    background: #626B71;
    color: #ffffff;
}

.pdf-filler-notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.pdf-filler-notification-close:hover {
    color: #333;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .pdf-filler-loader-content {
        padding: 30px 40px;
        max-width: 90%;
    }

    .pdf-filler-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .pdf-filler-loader-text {
        font-size: 16px;
    }

    .pdf-filler-loader-subtext {
        font-size: 13px;
    }
}

/* Success State */
.pdf-filler-loader-content.success .pdf-filler-spinner {
    border-top-color: #46b450;
    animation: none;
}

.pdf-filler-loader-content.success .pdf-filler-spinner::after {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #46b450;
    font-weight: bold;
}

/* Error State */
.pdf-filler-loader-content.error .pdf-filler-spinner {
    border-top-color: #dc3232;
    animation: none;
}

.pdf-filler-loader-content.error .pdf-filler-spinner::after {
    content: "✕";
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #dc3232;
    font-weight: bold;
}

.pdf-filler-loader-content.error .pdf-filler-loader-text {
    color: #dc3232;
}
