/* Service Worker Error Overlay */
* {
    box-sizing: border-box;
}

.sw-error-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

.sw-error-overlay.visible {
    display: flex;
}

.sw-error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 350px;
    padding: 1rem 0;
}

.sw-error-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.sw-error-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    padding: 0 0.5rem;
}

.sw-error-message {
    color: #a8b2c1;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    padding: 0 0.5rem;
    width: 100%;
}

.sw-error-hint-image {
    max-width: 100%;
    width: 240px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sw-error-steps {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    width: 100%;
    text-align: left;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sw-error-steps-title {
    color: #e94560;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.sw-error-step {
    color: #d1d5db;
    font-size: 0.85rem;
    padding: 0.35rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.sw-error-step-number {
    background: #e94560;
    color: #fff;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sw-error-step-text {
    padding-top: 1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sw-error-browser-hint {
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 1rem;
    font-style: italic;
}
