/* PWA Install Button and Components */

.pwa-install-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-primary, #3b82f6);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pwa-install-btn:hover {
    background: var(--color-primary-600, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.pwa-install-btn i {
    font-size: 16px;
}

.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary, #3b82f6);
    color: white;
    padding: 16px;
    text-align: center;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.pwa-install-banner.show {
    transform: translateY(0);
}

.pwa-install-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.pwa-install-banner button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 8px 16px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

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

.pwa-ios-instructions {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: var(--color-text, #333);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1003;
    max-width: 90vw;
    width: 400px;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: all 0.3s ease;
}

.pwa-ios-instructions.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.pwa-ios-instructions h3 {
    margin-top: 0;
    color: var(--color-primary, #3b82f6);
}

.pwa-ios-instructions ol {
    text-align: left;
    padding-left: 20px;
}

.pwa-ios-instructions li {
    margin-bottom: 8px;
}

.pwa-ios-instructions button {
    background: var(--color-primary, #3b82f6);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    margin-top: 16px;
    cursor: pointer;
    font-weight: 600;
}

.pwa-installed-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-success, #10b981);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 1002;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.pwa-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-primary, #3b82f6);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 300px;
}

.pwa-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .pwa-install-btn {
        bottom: 80px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }
}
