/* نظام الإشعارات المؤقتة */
.live-notifications-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.live-notification {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    padding: 16px 20px;
    border-right: 4px solid #007bff;
    transform: translateX(-450px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.live-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.live-notification.hide {
    transform: translateX(-450px);
    opacity: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    max-height: 0;
}

/* ألوان الإشعارات */
.live-notification.success {
    border-right-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

.live-notification.info {
    border-right-color: #17a2b8;
    background: linear-gradient(135deg, #f0fdff 0%, #e1f7fa 100%);
}

.live-notification.warning {
    border-right-color: #ffc107;
    background: linear-gradient(135deg, #fffdf0 0%, #fef9e1 100%);
}

.live-notification.danger {
    border-right-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #fde8e8 100%);
}

.live-notification.primary {
    border-right-color: #007bff;
    background: linear-gradient(135deg, #f0f8ff 0%, #e1f0ff 100%);
}

/* محتوى الإشعار */
.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.notification-icon {
    font-size: 20px;
    margin-right: 12px;
    opacity: 0.8;
}

.notification-title {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #495057;
}

.notification-message {
    color: #495057;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.notification-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
}

.notification-time {
    font-style: italic;
}

.notification-type {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 500;
}

/* تأثيرات الحركة */
@keyframes slideInLeft {
    from {
        transform: translateX(-450px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-450px);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    }
    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    }
}

.live-notification.new {
    animation: slideInLeft 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
               pulse 2s ease-in-out;
}

/* شريط التقدم */
.notification-progress {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
    animation: progress linear;
}

.notification-progress.success {
    background: #28a745;
}

.notification-progress.info {
    background: #17a2b8;
}

.notification-progress.warning {
    background: #ffc107;
}

.notification-progress.danger {
    background: #dc3545;
}

.notification-progress.primary {
    background: #007bff;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* مؤشر الإشعارات في الشريط العلوي */
.notification-indicator {
    position: relative;
    display: inline-block;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .live-notifications-container {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .live-notification {
        transform: translateY(100px);
    }
    
    .live-notification.show {
        transform: translateY(0);
    }
    
    .live-notification.hide {
        transform: translateY(100px);
    }
    
    @keyframes slideInLeft {
        from {
            transform: translateY(100px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes slideOutLeft {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(100px);
            opacity: 0;
        }
    }
}

/* تأثيرات إضافية */
.live-notification:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.live-notification:hover .notification-progress {
    animation-play-state: paused;
}

/* أيقونات الإشعارات */
.notification-icon.fa-user-plus {
    color: #28a745;
}

.notification-icon.fa-play-circle {
    color: #17a2b8;
}

.notification-icon.fa-check-circle {
    color: #28a745;
}

.notification-icon.fa-shopping-cart {
    color: #ffc107;
}

/* تأثير الوميض للإشعارات الجديدة */
.live-notification.flash {
    animation: flash 0.5s ease-in-out 3;
}

@keyframes flash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}