/* Push Notification Styles */

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.notification-toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideIn 0.3s ease-out forwards;
    pointer-events: auto;
    border-left: 4px solid #667eea;
    max-width: 100%;
}

.notification-toast.notification-type-order {
    border-left-color: #3b82f6;
}

.notification-toast.notification-type-promotion {
    border-left-color: #10b981;
}

.notification-toast.notification-type-system {
    border-left-color: #f59e0b;
}

.notification-toast.notification-type-alert {
    border-left-color: #ef4444;
}

.notification-toast.notification-toast-exit {
    animation: slideOut 0.3s ease-in forwards;
}

.notification-toast-content {
    padding: 16px;
}

.notification-toast-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.notification-toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin: 0;
    flex: 1;
}

.notification-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 16px;
    padding: 0;
    margin-left: 10px;
    transition: color 0.2s;
}

.notification-toast-close:hover {
    color: #4b5563;
}

.notification-toast-body {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-toast-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.notification-toast-action {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.notification-toast-action:hover {
    color: #764ba2;
}

.notification-toast-time {
    font-size: 11px;
    color: #d1d5db;
    margin-top: 8px;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Mobile responsive */
@media (max-width: 640px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification-toast {
        margin: 0;
    }
}

/* Pulsing animation for online indicator */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Notification badge */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}
