/* PWA Install Button Styles */
.pwa-install-btn {
    background: linear-gradient(135deg, #a535cb 0%, #8f2db5 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* Hidden by default, shown by JS when appropriate */
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(165, 53, 203, 0.3);
    color: white;
    text-decoration: none;
}

.pwa-install-btn.show {
    display: inline-flex;
}

.pwa-install-btn i {
    font-size: 14px;
}

/* PWA status indicators */
.pwa-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 1000;
    display: none;
}

.pwa-status.show {
    display: block;
    animation: slideInLeft 0.3s ease;
}

.pwa-status.success {
    background: rgba(40, 167, 69, 0.9);
}

.pwa-status.error {
    background: rgba(220, 53, 69, 0.9);
}

.pwa-status.info {
    background: rgba(23, 162, 184, 0.9);
}

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

/* PWA offline indicator */
.pwa-offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #dc3545;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    z-index: 10002;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.pwa-offline-banner.show {
    transform: translateY(0);
}

/* PWA update banner */
.pwa-update-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #17a2b8;
    color: white;
    text-align: center;
    padding: 12px;
    z-index: 10002;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.pwa-update-banner.show {
    transform: translateY(0);
}

.pwa-update-banner button {
    background: white;
    color: #17a2b8;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: 500;
}

.pwa-update-banner button:hover {
    background: #f8f9fa;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .pwa-install-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .pwa-status {
        bottom: 80px; /* Above mobile nav if present */
        left: 10px;
        right: 10px;
        text-align: center;
    }
}
