/* Offline Warning Overlay */
#offline-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    /* White background like the example */
    z-index: 999999;
    /* Extremely high z-index */
    display: none;
    /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

#offline-warning-overlay.visible {
    display: flex;
}

.offline-content {
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.offline-brand {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000;
}

.offline-message-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.offline-message-body {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.offline-auto-reload {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

/* Spinner Animation */
.offline-spinner {
    width: 40px;
    height: 40px;
    margin-top: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6000;
    /* Orange like Trendyol or theme color */
    border-radius: 50%;
    animation: offline-spin 1s linear infinite;
}

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

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

/* Dark Mode Support (Optional but good) */
@media (prefers-color-scheme: dark) {
    #offline-warning-overlay {
        background-color: #1a1a1a;
        color: #fff;
    }

    .offline-brand {
        color: #fff;
    }

    .offline-message-body {
        color: #aaa;
    }

    .offline-auto-reload {
        color: #777;
    }

    .offline-spinner {
        border-color: #333;
        border-top-color: #ff6000;
    }
}