/* استایل بنر نصب PWA */
.pwa-install-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 15px;
    display: flex;
    justify-content: center;
    animation: slideUp 0.3s ease-out;
}

.pwa-install-banner {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}

.pwa-install-banner p {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #2d3748;
    line-height: 1.4;
}

.pwa-install-actions {
    display: flex;
    gap: 10px;
}

.pwa-install-btn, .pwa-dismiss-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s;
    border: none;
}

.pwa-install-btn {
    background-color: #0c2c22;
    color: white;
}

.pwa-install-btn:hover {
    background-color: #0c2c22;
}

.pwa-dismiss-btn {
    background-color: #edf2f7;
    color: #4a5568;
}

.pwa-dismiss-btn:hover {
    background-color: #e2e8f0;
}

/* استایل صفحه نمایش اولیه (Splash Screen) */
/* استایل صفحه نمایش اولیه (Splash Screen) */
.pwa-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease;
}

/* حذف استایل‌های مربوط به محتوای داخلی */
.pwa-splash-content,
.pwa-splash-image,
.pwa-loading-spinner {
    display: none !important;
}

.pwa-splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    max-width: 100%;
    width: 100%;
}

.pwa-splash-image {
    max-width: 80%;
    max-height: 60vh;
    object-fit: contain;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
}

.pwa-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #4299e1;
    animation: spin 1s ease-in-out infinite;
}

/* انیمیشن‌ها */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .pwa-install-container {
        padding: 10px;
    }
    
    .pwa-install-banner {
        padding: 12px 15px;
    }
    
    .pwa-install-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .pwa-splash-image {
        max-width: 90%;
        max-height: 50vh;
    }
}
/* مخفی کردن عناصر پیشفرض کروم */
@media all and (display-mode: standalone) {

    
    /* مخفی کردن عنوان برنامه */
    header[role="banner"] {
        display: none !important;
    }
    
    /* مخفی کردن لوگو */
    .app-icon {
        display: none !important;
    }
}