/* PWA Installation Styles for SmartMaids */

/* Install Button Styles */
.pwa-install-btn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background: linear-gradient(135deg, #66ea68 0%, #2acf56 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 1000 !important;
    transition: all 0.3s ease !important;
}

.pwa-install-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
}

.pwa-install-btn:active {
    transform: translateY(0) !important;
}

/* Success Message Animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Network Status */
.network-status {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 999;
    animation: fadeInUp 0.3s ease;
}

.network-status.online {
    background: #10b981;
}

/* iOS Specific Instructions */
.ios-install-instructions {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    font-size: 14px;
}

.ios-install-instructions h4 {
    color: #374151;
    margin-top: 0;
    margin-bottom: 10px;
}

.ios-install-instructions ol {
    margin: 0;
    padding-left: 20px;
    color: #6b7280;
}

.ios-install-instructions li {
    margin-bottom: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pwa-install-btn {
        bottom: 70px !important; /* Above mobile navigation */
        right: 10px !important;
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .pwa-install-btn {
        width: auto;
        bottom: 80px !important;
        right: 50% !important;
        transform: translateX(50%) !important;
        white-space: nowrap;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ios-install-instructions {
        background: #374151;
        border-color: #4b5563;
        color: #e5e7eb;
    }
    
    .ios-install-instructions h4 {
        color: #f3f4f6;
    }
    
    .ios-install-instructions li {
        color: #d1d5db;
    }
}