/**
 * CSS para Notificações PWA - ECB Sistema
 */

/* Notificação de Instalação */
.install-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 350px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.5s ease-out;
}

.install-notification-content {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    position: relative;
}

.install-notification-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.install-notification-text {
    flex: 1;
}

.install-notification-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #ffd700;
}

.install-notification-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.install-notification-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.install-notification-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.install-notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.install-notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Indicador de App Instalado */
.pwa-installed-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: linear-gradient(135deg, #28a745, #34ce57);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
    animation: slideInDown 0.5s ease-out;
}

.pwa-installed-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.pwa-installed-icon {
    font-size: 1.2rem;
}

/* Animações */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Animação de Pulso para Botão de Instalação */
.pulse-animation {
    animation: pulseInstall 1s ease-in-out infinite;
}

@keyframes pulseInstall {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }
}

/* Melhorias no Botão PWA Existente */
.install-pwa-btn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    color: #1a1a1a !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 20px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    display: none !important;
}

.install-pwa-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4) !important;
}

.install-pwa-btn i {
    margin-right: 8px !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .install-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .install-notification-content {
        padding: 15px;
        gap: 12px;
    }
    
    .install-notification-icon {
        font-size: 1.5rem;
    }
    
    .install-notification-text strong {
        font-size: 1rem;
    }
    
    .install-notification-text p {
        font-size: 0.8rem;
    }
    
    .install-notification-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .install-pwa-btn {
        bottom: 10px !important;
        right: 10px !important;
        padding: 12px 16px !important;
        font-size: 0.8rem !important;
    }
}

/* Notificação de Atualização */
.update-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(23, 162, 184, 0.3);
    z-index: 10000;
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Indicadores de Status */
.pwa-status-online {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pwa-status-offline {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #dc3545;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}
