/* scan-progress.css — shared "operation in progress" overlay.
   Driven by /static/js/common/scan-progress.js. Theme-var driven so it
   follows the active admin/user theme. Loaded globally via Header.tt. */

.comserv-scan-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;            /* toggled to flex by JS */
    align-items: center;
    justify-content: center;
    background: var(--overlay-bg, rgba(0, 0, 0, 0.45));
}

.comserv-scan-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #ccc);
    border-radius: var(--radius, 8px);
    padding: 24px 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    max-width: 90vw;
}

.comserv-scan-text {
    color: var(--text-color, #222);
    line-height: 1.4;
}

.comserv-scan-sub {
    color: var(--text-muted-color, #666);
    font-size: 0.9em;
}

.comserv-scan-spinner {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border: 4px solid var(--border-color, #ccc);
    border-top-color: var(--primary-color, #06c);
    border-radius: 50%;
    animation: comserv-scan-spin 0.8s linear infinite;
}

@keyframes comserv-scan-spin {
    to { transform: rotate(360deg); }
}
