    /* Base reset-ish */
    html, body {
        margin: 0;
        padding: 0;
        height: 100%;
    }

    body {
        font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
        background-color: #ffffff;
        color: #222;
    }

    .hidden {
        display: none !important;
    }

    /* Launcher page */
    .launcher-body {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f3f6fb;
    }

    .launcher-shell {
        background: #ffffff;
        padding: 24px 32px;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        text-align: center;
    }

    /* Popup overlay */
    .popup-overlay {
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.98);
        display: flex;
        align-items: stretch;
        justify-content: center;
        z-index: 9000;
    }

    .popup-overlay.visible {
        display: flex;
    }

    .popup-shell {
        flex: 1;
        display: flex;
        flex-direction: column;
        max-width: 100%;
        max-height: 100%;
    }

    /* Toolbar */
    .viewer-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
        border-bottom: 1px solid #dde3ec;
        background: #f7f9fc;
    }

    .viewer-title {
        font-weight: 600;
        font-size: 14px;
    }

    .viewer-btn-group {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        flex-wrap: wrap;
    }

    .viewer-btn {
        border: 1px solid #c5d0e0;
        background: #ffffff;
        padding: 5px 10px;
        border-radius: 8px;
        font-size: 12px;
        cursor: pointer;
        transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
    }

    .viewer-btn:hover {
        background: #e8f2ff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        transform: translateY(-1px);
    }

    .viewer-btn:active {
        transform: translateY(0);
        box-shadow: none;
    }

    .viewer-close {
        font-size: 14px;
        font-weight: 600;
        width: 30px;
        text-align: center;
    }

    .viewer-divider {
        width: 1px;
        height: 20px;
        background: #d0d8e5;
        margin: 0 4px;
    }

    /* Image scroll container */
    .image-scroll-container {
        flex: 1;
        overflow-y: auto;
        overflow-x: auto;
        background: #ffffff;
        padding: 12px;
    }

    .image-wrapper {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        min-height: 100%;
        transform-origin: center center;
    }

    .image-wrapper img {
        max-width: 100%;
        height: auto;
        display: block;
        transform-origin: center center;
    }

/* STATUS OVERLAY */
.status-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.status-relative {
    position: relative;
    inset: 0;
    width: 300px;
    height: 50px;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.status-box {
    background: #ffffff;
    padding: 18px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #222;
}

.status-center {
    position: absolute;
    top: e0%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.status-spinner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
    border-top-color: #0078d4;
    animation: status-spin 0.8s linear infinite;
}


    @keyframes status-spin {
        to {
            transform: rotate(360deg);
        }
    }

    /* ABOUT DIALOG */
    .about-dialog {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
    }

    .about-content {
        background: #ffffff;
        padding: 20px 26px;
        border-radius: 12px;
        max-width: 420px;
        width: 90%;
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
        font-size: 13px;
        color: #222;
    }

    .about-content h2 {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 18px;
    }

    .about-content p {
        margin: 4px 0;
        line-height: 1.4;
    }

    .about-content .viewer-btn {
        margin-top: 14px;
    }

    /* Small screen adjustments */
    @media (max-width: 640px) {
        .viewer-toolbar {
            flex-direction: column;
            align-items: flex-start;
            gap: 6px;
        }
        .viewer-btn-group {
            flex-wrap: wrap;
        }
    }

progress-bar-container {
    width: 100%;
    height: 20px;
    background-color: #f3f3f3;
    border-radius: 5px;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%; /* Start at 0 */
    background-color: #4CAF50;
    border-radius: 5px;
    animation: progress-animation 2s forwards; /* Apply animation */
}

.loader {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

    .loader img {
        width: 50px;
        height: 50px;
    }

@keyframes progress-animation {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }

}