/* الكونتينر الأساسي */
#notification-container {
  position: fixed;
  top: 10px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* عند العربية (RTL) */
 [dir="rtl"] #notification-container {
  left: 10px;
}

/* عند غير العربية (LTR) */
 [dir="ltr"] #notification-container {
  right: 10px;
}

/* الشكل العام للإشعارات */
.notification {
  min-width: 250px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  opacity: 0;

  animation: slideIn 0.4s forwards;
}

/* عند العربية (RTL) */
 [dir="rtl"] .notification {
    transform: translateX(-100%);
}

/* عند غير العربية (LTR) */
 [dir="ltr"] .notification {
    transform: translateX(100%);
}

/* أيقونات */
.notification i {
  font-size: 18px;
}

/* ألوان حسب النوع */
.notification.success { background-color: #28a745; }   /* أخضر */
.notification.error { background-color: #dc3545; }     /* أحمر */
.notification.info { background-color: #007bff; }      /* أزرق */
.notification.warning { background-color: #ffc107; color: #000; } /* أصفر مع نص أسود */

/* أنيميشن الدخول */
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* أنيميشن الخروج */
.fade-out {
  animation: slideOut 0.5s forwards;
}

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}
