/* ═══════════════════════════════════════════
   PWA Install Banner & Toast Styles
   ═══════════════════════════════════════════ */

/* Banner de instalação (bottom) */
#pwa-install-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 0 12px 12px;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
#pwa-install-banner.pwa-banner-visible {
    bottom: 0;
    pointer-events: auto;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(246, 133, 27, 0.3);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    margin: 0 auto;
}

.pwa-banner-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
}
.pwa-banner-text strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.pwa-banner-text span {
    color: #aab;
    font-size: 0.75rem;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-btn-install {
    background: #f6851b;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}
.pwa-btn-install:hover {
    background: #e0760f;
}
.pwa-btn-install:active {
    transform: scale(0.96);
}

.pwa-btn-close {
    background: none;
    border: none;
    color: #667;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s;
}
.pwa-btn-close:hover {
    color: #fff;
}

/* Toast notification */
.pwa-toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #1db954;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 100000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.pwa-toast-visible {
    bottom: 30px;
}

/* Botão "Baixar App" na navbar (sidebar) */
.pwa-nav-install {
    color: #f6851b !important;
    font-weight: 600;
    animation: pwa-pulse 2s ease-in-out infinite;
}
.pwa-nav-install i {
    color: #f6851b;
}

@keyframes pwa-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive */
@media (max-width: 400px) {
    .pwa-banner-content {
        padding: 12px;
        gap: 10px;
    }
    .pwa-banner-icon {
        font-size: 28px;
    }
    .pwa-btn-install {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}
