/* iNAVMO PWA Install Prompt Styles */
#pwa-install-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 420px;
    width: calc(100% - 32px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 18px 20px;
    z-index: 999999;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1e293b;
    animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pwaSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pwa-banner-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.pwa-banner-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px;
    flex-shrink: 0;
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
}

.pwa-banner-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 3px 0;
}

.pwa-banner-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

.pwa-banner-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    align-self: flex-start;
}

.pwa-banner-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.pwa-btn-dismiss {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.pwa-btn-dismiss:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.pwa-btn-install {
    background: #e77817;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(231, 120, 23, 0.35);
    transition: background 0.15s, transform 0.1s;
}

.pwa-btn-install:hover {
    background: #d46b0f;
}

.pwa-btn-install:active {
    transform: scale(0.97);
}

.pwa-ios-instructions {
    font-size: 12.5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    color: #334155;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 600px) {
    #pwa-install-banner {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        padding: 14px 16px;
    }
}

/* PWA Splash Screen */
#pwa-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#pwa-splash-screen.pwa-splash-fadeout {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pwa-splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: pwaSplashPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pwaSplashPop {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pwa-splash-logo {
    width: 130px;
    height: 130px;
    max-width: 45vw;
    max-height: 45vw;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    margin-bottom: 22px;
    background: #ffffff;
}

.pwa-splash-welcome {
    font-size: 26px;
    font-weight: 800;
    color: #e77817;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.pwa-splash-subtitle {
    font-size: 17px;
    font-weight: 700;
    color: #2ca6bf;
    margin: 0 0 20px 0;
    letter-spacing: 0.8px;
    line-height: 1.3;
}

.pwa-splash-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.pwa-splash-loader span {
    width: 9px;
    height: 9px;
    background: #e77817;
    border-radius: 50%;
    animation: pwaSplashPulse 1.2s infinite ease-in-out both;
}

.pwa-splash-loader span:nth-child(1) { animation-delay: -0.32s; }
.pwa-splash-loader span:nth-child(2) { animation-delay: -0.16s; background: #2ca6bf; }
.pwa-splash-loader span:nth-child(3) { animation-delay: 0s; }

@keyframes pwaSplashPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1.1);
        opacity: 1;
    }
}
