/* ============================================ */
/* PWA Bottom Install Banner Styles             */
/* ============================================ */

/* Bottom Install Banner */
#pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideUp 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
}

.pwa-banner-content {
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #E2E8F0;
}

.pwa-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-banner-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0A1E2F, #00A86B);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwa-banner-icon span {
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.pwa-banner-text {
    flex: 1;
}

.pwa-banner-title {
    font-weight: 700;
    color: #0A1E2F;
    margin-bottom: 2px;
    font-size: 15px;
}

.pwa-banner-subtitle {
    font-size: 13px;
    color: #475569;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwa-banner-install-btn {
    background: linear-gradient(135deg, #1B3A4B, #00A86B);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.pwa-banner-install-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 168, 107, 0.2);
}

.pwa-banner-dismiss-btn {
    background: transparent;
    border: none;
    color: #94A3B8;
    padding: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.pwa-banner-dismiss-btn:hover {
    color: #475569;
}

/* Toast Notification */
.pwa-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #0A1E2F;
    color: white;
    padding: 12px 20px;
    border-radius: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    max-width: 90%;
}

.pwa-toast button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.2s;
}

.pwa-toast button:hover {
    color: white;
}

/* Update Notification */
.pwa-update-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00A86B;
    color: white;
    padding: 12px 20px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
    animation: slideUp 0.3s ease;
    font-size: 14px;
}

.pwa-update-notification:hover {
    background: #008554;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .pwa-banner-content {
        background: #1E293B;
        border-color: #334155;
    }
    
    .pwa-banner-title {
        color: #E2E8F0;
    }
    
    .pwa-banner-subtitle {
        color: #94A3B8;
    }
    
    .pwa-banner-dismiss-btn {
        color: #64748B;
    }
    
    .pwa-banner-dismiss-btn:hover {
        color: #94A3B8;
    }
    
    .pwa-toast {
        background: #1E293B;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #pwa-install-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    
    .pwa-banner-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pwa-banner-left {
        flex-direction: column;
        text-align: center;
    }
    
    .pwa-banner-actions {
        width: 100%;
        justify-content: center;
    }
    
    .pwa-banner-install-btn {
        flex: 1;
    }
}

/* Hide banner when app is installed */
body.pwa-installed #pwa-install-banner {
    display: none !important;
}