/* حاوية الإشعارات */
.notifications-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999 !important;
    max-width: 600px;
    width: 90%;
    pointer-events: none;
}

.notifications-container > * {
    pointer-events: auto;
}

/* الإشعار */
.order-notification {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    margin-bottom: 0;
    overflow: hidden;
    transform: scale(0.8) translateY(-20px);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    border-right: 5px solid #28a745;
    min-width: 500px;
}

.order-notification.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* تنبيه الطلبات المعلقة */
.order-notification.pending-alert {
    border-right: 4px solid #ff6b6b;
    animation: pulse-alert 2s infinite;
}

@keyframes pulse-alert {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 107, 107, 0.5);
    }
}

.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 30px;
    gap: 20px;
    position: relative;
}

.notification-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 32px;
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-title {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    color: #212529;
}

.notification-text {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #6c757d;
    line-height: 1.6;
}

.notification-text strong {
    color: #495057;
    font-weight: 600;
}

.notification-time {
    display: block;
    font-size: 14px;
    color: #adb5bd;
    margin-top: 8px;
}

.notification-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 8px;
    font-size: 20px;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.notification-close:hover {
    color: #dc3545;
    background: #f8f9fa;
    transform: scale(1.1);
}

/* Overlay للإغلاق عند الضغط في أي مكان */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    backdrop-filter: blur(2px);
}

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-120%);
        opacity: 0;
    }
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .notifications-container {
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        max-width: 95%;
    }
    
    .order-notification {
        margin-bottom: 0;
        min-width: auto;
        width: 100%;
    }
    
    .notification-content {
        padding: 20px;
        gap: 15px;
    }
    
    .notification-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .notification-title {
        font-size: 20px;
    }
    
    .notification-text {
        font-size: 16px;
    }
    
    .notification-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* RTL Support */
[dir="rtl"] .notifications-container {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
}

[dir="rtl"] .order-notification {
    transform: scale(0.8) translateY(-20px);
    border-right: none;
    border-left: 5px solid #28a745;
}

[dir="rtl"] .order-notification.show {
    transform: scale(1) translateY(0);
}

[dir="rtl"] .notification-close {
    left: auto;
    right: 15px;
}

@media (max-width: 768px) {
    [dir="rtl"] .notifications-container {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
    }
}

