/* PWA Install Button Styles */
#pwa-install-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#pwa-install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

#pwa-install-button:active {
    transform: translateY(0);
}

#pwa-install-button::before {
    content: "📱";
    font-size: 16px;
}

/* RTL support */
[dir="rtl"] #pwa-install-button {
    right: auto;
    left: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #pwa-install-button {
        bottom: 80px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    [dir="rtl"] #pwa-install-button {
        right: auto;
        left: 15px;
    }
}

/* Update notification styles */
.pwa-update-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    z-index: 1001;
    display: none;
    align-items: center;
    gap: 10px;
}

.pwa-update-notification button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pwa-update-notification button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Standalone mode styles */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* iOS specific styles */
@supports (-webkit-touch-callout: none) {
    @media (display-mode: standalone) {
        body {
            padding-top: 44px; /* Status bar height */
        }
    }
}
