/* css/pdf-button.css */

.hide-for-pdf {
    display: none !important;
}

#pdf-button-container {
    margin: 15px 0 25px 0;
    text-align: left;
    clear: both;
}

#download-pdf-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    line-height: 1.5;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    opacity: 1;
}

#download-pdf-button:hover {
    background-color: #005a87;
}

#download-pdf-button:disabled {
    background-color: #a0a5aa;
    color: #f0f0f1;
    cursor: not-allowed;
    opacity: 0.7;
}

/* --- PDF Progress Popup Styles --- */
#pdf-progress-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

#pdf-progress-popup.pdf-popup-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.pdf-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
}

.pdf-popup-container {
    position: relative;
    background-color: #fff;
    padding: 35px 45px;
    border-radius: 10px;
    text-align: center;
    min-width: 200px;
    max-width: 90%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.pdf-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
    display: block;
}

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

.pdf-checkmark {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none;
    stroke-width: 3;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 0 auto 15px auto;
    box-shadow: inset 0px 0px 0px #7ac142;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.pdf-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #7ac142;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.pdf-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}
@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}
@keyframes fill {
    100% { box-shadow: inset 0px 0px 0px 30px #7ac142; }
}

.pdf-popup-message {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
    min-height: 24px;
    line-height: 1.4;
    word-wrap: break-word;
}

.pdf-popup-message.error {
    color: #d9534f;
    font-weight: bold;
}


/* --- iframe Capture Notice Overlay --- */
.iframe-capture-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(200, 200, 200, 0.9);
    border: 1px dashed #888;
    box-sizing: border-box;
    overflow: hidden;
}

.iframe-capture-notice div {
    padding: 15px;
    font-size: 13px;
    font-weight: bold;
    color: #222;
    text-align: center;
    line-height: 1.4;
}