.pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    max-width: 350px;
    animation: slideInUp 0.3s ease-out;
    border: 1px solid #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pwa-prompt-content {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 12px;
}

.pwa-prompt-icon {
    flex-shrink: 0;
}

.pwa-prompt-icon img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
}

.pwa-prompt-text {
    flex: 1;
    text-align: right;
}

.pwa-prompt-text h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.pwa-prompt-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.pwa-prompt-text ol {
    margin: 8px 0;
    padding-right: 15px;
}

.pwa-prompt-text li {
    margin-bottom: 4px;
    font-size: 13px;
}

.pwa-prompt-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.pwa-install-btn, .pwa-cancel-btn, .pwa-update-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
}

.pwa-install-btn, .pwa-update-btn {
    background: #2196f3;
    color: white;
}

.pwa-install-btn:hover, .pwa-update-btn:hover {
    background: #1976d2;
    transform: translateY(-1px);
}

.pwa-cancel-btn {
    background: #f5f5f5;
    color: #666;
}

.pwa-cancel-btn:hover {
    background: #e0e0e0;
}

.pwa-update-prompt {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    z-index: 9999;
    max-width: 300px;
    animation: slideInDown 0.3s ease-out;
}

.pwa-update-prompt p {
    margin: 0 0 10px 0;
    color: #856404;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@media (max-width: 768px) {
    .pwa-install-prompt {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .pwa-prompt-content {
        flex-direction: row;
        text-align: right;
    }
    
    .pwa-prompt-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* استایل برای حالت تاریک */
@media (prefers-color-scheme: dark) {
    .pwa-install-prompt {
       background: #000000c9;
    color: white;
    border-color: #343434;
    backdrop-filter: blur(5px);
    }
    
    .pwa-prompt-text h4 {
        color: white;
    }
    
    .pwa-prompt-text p {
        color: #e0e0e0;
    }
    
    .pwa-cancel-btn {
        background: #616161;
        color: #e0e0e0;
    }
    
    .pwa-cancel-btn:hover {
        background: #757575;
    }
}