.notifications-container {
    position: fixed;
    top: 90px; /* Below navbar */
    left: 20px; /* Default LTR */
    /* transform: translate(-50%, -50%); Removed centering */
    z-index: 99999 !important;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.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: 15px;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    border-right: 5px solid #28a745;
    min-width: 300px;
}

.order-notification.show {
    transform: translateX(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 Header */
.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.notification-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333;
}

.notification-icon {
    font-size: 18px;
}

/* Notification Body */
.notification-body {
    padding: 15px;
}

.notification-details p {
    margin: 0 0 5px;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.notification-details strong {
    color: #333;
}

.notification-time {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    text-align: left;
}

[dir="rtl"] .notification-time {
    text-align: right;
}

.delivery-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #17a2b8;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    margin-top: 5px;
}

/* Close Button */
.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #dc3545;
    transform: none;
    background: transparent;
}

/* تأثيرات الحركة */
@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: 20px;
    right: auto;
    transform: none;
}

[dir="rtl"] .order-notification {
    transform: translateX(-100%);
    border-right: none;
    border-left: 5px solid #28a745;
}

[dir="rtl"] .order-notification.show {
    transform: translateX(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%);
    }
}

