/* public/css/pwa.css */

/* ============================================================
   BANNER ANDROID — aparece na parte inferior
   ============================================================ */
.pwa-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 99999;

    display: flex;
    align-items: center;
    gap: 12px;

    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    padding: 12px 14px;

    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.pwa-banner.visivel {
    transform: translateY(0);
    opacity: 1;
}

.pwa-banner-icon img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: block;
}

.pwa-banner-texto {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.pwa-banner-texto strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.pwa-banner-texto span {
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}

.pwa-banner-acoes {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pwa-btn-instalar {
    background: #0d9488;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.pwa-btn-instalar:hover {
    background: #0f766e;
}

.pwa-btn-fechar {
    background: transparent;
    border: 0;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
}

.pwa-btn-fechar:hover {
    background: #f1f5f9;
    color: #475569;
}

/* ============================================================
   BANNER iOS — tutorial passo a passo
   ============================================================ */
.pwa-banner-ios {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 99999;

    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
    padding: 16px;

    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.pwa-banner-ios.visivel {
    transform: translateY(0);
    opacity: 1;
}

.pwa-ios-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
}

.pwa-ios-header img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.pwa-ios-header strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.pwa-ios-header span {
    color: #64748b;
    font-size: 12px;
}

.pwa-ios-fechar {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: 0;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

.pwa-ios-passos {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pwa-ios-passos li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #334155;
}

.pwa-ios-passos li strong {
    color: #0f172a;
    font-weight: 600;
}

.pwa-ios-passos li i {
    font-size: 15px;
}

.pwa-ios-seta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #0d9488;
    font-size: 12px;
    text-align: center;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

.pwa-ios-seta i {
    font-size: 18px;
    animation: pwaSetaBounce 1.5s ease-in-out infinite;
}

@keyframes pwaSetaBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}