/* PWA Push Notification Styles */

/* Install Banner */
#pwa-install-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #222D62;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    max-width: 380px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
}

#pwa-install-banner.show {
    display: flex;
}

#pwa-install-banner.show.visible {
    transform: translateY(0);
    opacity: 1;
}

#pwa-install-banner:not(.visible) {
    transform: translateY(20px);
    opacity: 0;
}

.pwa-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.pwa-content {
    flex: 1;
}

.pwa-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.pwa-description {
    font-size: 12px;
    opacity: 0.8;
}

.pwa-actions {
    display: flex;
    gap: 8px;
}

.pwa-btn-install {
    background: #fff;
    color: #222D62;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pwa-btn-install:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pwa-btn-close {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pwa-instructions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    max-width: 380px;
    background: #fff;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 10001;
    padding: 16px;
    font-family: 'Inter', sans-serif;
}

.pwa-instructions.show {
    display: block;
}

.close-instructions {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}

#install-instructions-text {
    font-size: 13px;
    line-height: 1.6;
}

/* Notification Toast */
.toast-notification {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border-left: 3px solid #4F46E5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    max-width: 360px;
    animation: toastSlideIn 0.3s ease;
    cursor: pointer;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-icon {
    font-size: 20px;
}

.toast-content strong {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.toast-content p {
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* Notification badge */
#notification-badge {
    background: #EF4444;
    color: #fff;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Offline styles */
@media (max-width: 768px) {
    #pwa-install-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast-notification {
        max-width: calc(100vw - 32px);
    }
}
