/* PWA Install Button Styles */
.pwa-install-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.pwa-install-button.show {
    transform: translateY(0);
    opacity: 1;
}

.pwa-install-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.pwa-install-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.pwa-install-text {
    flex: 1;
    min-width: 0;
}

.pwa-install-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.pwa-install-subtitle {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.3;
}

.pwa-install-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pwa-install-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.pwa-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pwa-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* PWA Update Notification */
.pwa-update-notification {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.pwa-update-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.pwa-update-content {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
}

.pwa-update-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    color: #d63384;
}

.pwa-update-text {
    flex: 1;
    min-width: 0;
}

.pwa-update-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.pwa-update-subtitle {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.3;
}

.pwa-update-btn {
    background: #d63384;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pwa-update-btn:hover {
    background: #b02a37;
    transform: translateY(-1px);
}

/* PWA Success Notification */
.pwa-success-notification {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.pwa-success-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.pwa-success-content {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
}

.pwa-success-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    color: #198754;
}

.pwa-success-text {
    flex: 1;
    min-width: 0;
}

.pwa-success-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.pwa-success-subtitle {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pwa-install-button {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
    
    .pwa-install-content {
        padding: 12px;
        gap: 10px;
    }
    
    .pwa-install-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .pwa-install-title {
        font-size: 15px;
    }
    
    .pwa-install-subtitle {
        font-size: 13px;
    }
    
    .pwa-install-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .pwa-close-btn {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .pwa-install-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .pwa-install-text {
        order: 2;
    }
    
    .pwa-install-btn {
        order: 3;
        width: 100%;
        margin-top: 8px;
    }
    
    .pwa-close-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        order: 1;
    }
}

/* Animation for notifications */
@keyframes slideInFromBottom {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-install-button.show {
    animation: slideInFromBottom 0.3s ease;
}

.pwa-update-notification.show,
.pwa-success-notification.show {
    animation: slideInFromTop 0.3s ease;
} 