/* نظام الإشعارات المؤقتة */
.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;
    }
}

/* Fake purchase notifications */
.fake-purchase-notifications-container {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 10000;
    width: min(380px, calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.fake-notification-disable-btn {
    pointer-events: auto;
    align-self: flex-start;
    border: 1px solid rgba(137, 157, 198, 0.5);
    background: rgba(8, 16, 33, 0.94);
    color: #d7e3ff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.fake-notification-disable-btn:hover {
    background: rgba(14, 25, 46, 0.98);
    border-color: rgba(161, 186, 236, 0.75);
    color: #ffffff;
}

.fake-purchase-notification {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid transparent;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
    transform: translateX(-110%);
    opacity: 0;
    transition: transform 0.38s ease, opacity 0.3s ease;
    backdrop-filter: blur(6px);
}

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

.fake-purchase-notification.hide {
    transform: translateX(-110%);
    opacity: 0;
}

.fake-notification-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.fake-notification-body {
    min-width: 0;
}

.fake-notification-title {
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 2px;
    white-space: nowrap;
}

.fake-notification-text {
    font-size: 13px;
    line-height: 1.45;
    color: #e7ebf2;
}

.fake-notification-booking {
    background: linear-gradient(135deg, rgba(8, 16, 33, 0.95), rgba(30, 42, 74, 0.95));
    border-color: rgba(84, 130, 255, 0.45);
}

.fake-notification-booking .fake-notification-icon {
    background: rgba(84, 130, 255, 0.2);
    color: #9ec2ff;
}

.fake-notification-booking .fake-notification-title {
    color: #cfe0ff;
}

.fake-notification-simulator {
    background: linear-gradient(135deg, rgba(20, 31, 22, 0.95), rgba(29, 52, 37, 0.95));
    border-color: rgba(76, 194, 122, 0.42);
}

.fake-notification-simulator .fake-notification-icon {
    background: rgba(76, 194, 122, 0.2);
    color: #9ce1b6;
}

.fake-notification-simulator .fake-notification-title {
    color: #c6f3d6;
}

@media (max-width: 768px) {
    .fake-purchase-notifications-container {
        left: 10px;
        right: 10px;
        top: 76px;
        bottom: auto;
        width: calc(100vw - 20px);
        z-index: 10002;
    }

    .fake-purchase-notification {
        padding: 11px 12px;
        border-radius: 11px;
    }

    .fake-notification-title,
    .fake-notification-text {
        font-size: 12px;
    }
}
