/* Stacked Notification System */

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

#notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    #notification-container {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
}

/* Enhanced Notification Styles */

.notification {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  overflow: hidden;
  max-width: 400px;
}

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

.notification.hide {
  opacity: 0;
  transform: translateX(400px);
}

.notification-content {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  gap: 12px;
}

.notification-icon {
  font-size: 24px;
  flex-shrink: 0;
}

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

.notification-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.notification-message {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s;
}

.notification-close:hover {
  color: #333;
}

/* Priority Styles */
.notification.priority-urgent .notification-content {
  border-left: 4px solid #dc3545;
}

.notification.priority-high .notification-content {
  border-left: 4px solid #ff6b35;
}

.notification.priority-normal .notification-content {
  border-left: 4px solid #4a90e2;
}

.notification.priority-low .notification-content {
  border-left: 4px solid #95a5a6;
}

/* Type-specific styles */
.notification[data-type="menu_update"] .notification-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.notification[data-type="menu_update"] .notification-title,
.notification[data-type="menu_update"] .notification-message {
  color: white;
}

.notification[data-type="promotion"] .notification-content {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.notification[data-type="promotion"] .notification-title,
.notification[data-type="promotion"] .notification-message {
  color: white;
}

.notification[data-type="order"] .notification-content {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.notification[data-type="order"] .notification-title,
.notification[data-type="order"] .notification-message {
  color: white;
}

.notification[data-type="system"] .notification-content {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
}

.notification[data-type="system"] .notification-title,
.notification[data-type="system"] .notification-message {
  color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .notification {
    max-width: calc(100% - 20px);
  }

  .notification-content {
    padding: 12px;
  }

  .notification-title {
    font-size: 13px;
  }

  .notification-message {
    font-size: 12px;
  }
}



