/**
 * PWA install banner (employee portal)
 */

.pwa-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
    pointer-events: none;
}

.pwa-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.pwa-banner-inner {
    background: linear-gradient(145deg, #1e3a5f 0%, #2d5a87 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.pwa-banner-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pwa-banner-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.pwa-banner-icon,
.pwa-banner-icon-fallback {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    flex-shrink: 0;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.2);
}

.pwa-banner-icon-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.pwa-banner-icon-fallback.is-visible {
    display: flex;
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
}

.pwa-banner-text strong {
    display: block;
    font-size: 17px;
    margin-bottom: 4px;
}

.pwa-banner-text span {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.4;
}

.pwa-banner-step {
    display: none;
    flex-direction: column;
    gap: 6px;
}

.pwa-banner-step.is-visible {
    display: flex;
}

.pwa-banner-cta {
    font-size: 14px;
    font-weight: 600;
    color: #93c5fd;
}

.pwa-banner-hint {
    font-size: 12px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pwa-banner-btn {
    display: none;
    background: #fff;
    color: #1e3a5f;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
}

.pwa-banner-btn.is-visible {
    display: block;
}

.pwa-banner-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
