/* PWA Install Button Styles */
#installBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    z-index: 1000;
    display: none;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    cursor: pointer;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#installBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #2d2d2d, #3d3d3d);
}

#installBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#installBtn i {
    margin-right: 8px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #installBtn {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Hide install button in standalone mode */
@media (display-mode: standalone) {
    #installBtn {
        display: none !important;
    }
}

/* iOS standalone mode detection */
@media (display-mode: standalone) and (-webkit-touch-callout: none) {
    #installBtn {
        display: none !important;
    }
}

/* PWA-specific adjustments */
.pwa-running {
    padding-bottom: 0 !important;
}

.pwa-running .footer {
    margin-bottom: 0 !important;
}

/* Toast notifications for PWA events */
.pwa-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.pwa-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.pwa-toast.success {
    background: #28a745;
}

.pwa-toast.error {
    background: #dc3545;
}

.pwa-toast.info {
    background: #17a2b8;
}
