.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  pointer-events: none;
}

.notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  pointer-events: all;
  min-width: 300px;
}

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

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

.notification-success {
  border-left-color: #10b981;
}

.notification-error {
  border-left-color: #ef4444;
}

.notification-warning {
  border-left-color: #f59e0b;
}

.notification-info {
  border-left-color: #3b82f6;
}

.notification-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50%;
  color: white;
}

.notification-success .notification-icon {
  background: #10b981;
}

.notification-error .notification-icon {
  background: #ef4444;
}

.notification-warning .notification-icon {
  background: #f59e0b;
}

.notification-info .notification-icon {
  background: #3b82f6;
}

.notification-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notification-message {
  color: #1e293b;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.notification-action {
  align-self: flex-start;
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-action:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.notification-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  padding: 0;
}

.notification-close:hover {
  background: #f1f5f9;
  color: #64748b;
}

@media (max-width: 640px) {
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .notification {
    min-width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notification {
    transition: opacity 0.3s ease;
    transform: none !important;
  }
  
  .notification.show {
    opacity: 1;
  }
  
  .notification.hide {
    opacity: 0;
  }
}
