/* From Uiverse.io by Cybercom682
   Edited to be compatible with CSS by Gamer1 */

.alerts {
  padding: 1rem;

  display: flex;
  flex-direction: column;

  gap: 0.5rem;
}

.alert {
  padding: 0.5rem;

  border-left: 4px solid;
  border-radius: 0.5rem;

  display: flex;
  align-items: center;

  transition: 0.3s ease-in-out;

  font-size: 0.75rem;
  font-weight: 600;
}

.alert:hover {
  transform: scale(1.05);
}

.alert.success {
  background: #dcfce7;
  color: #14532d;
  border-color: #22c55e;
}

.alert.success:hover {
  background: #bbf7d0;
}

.alert.info {
  background: #dbeafe;
  color: #1e3a8a;
  border-color: #3b82f6;
}

.alert.info:hover {
  background: #bfdbfe;
}

.alert.warning {
  background: #fef9c3;
  color: #713f12;
  border-color: #eab308;
}

.alert.warning:hover {
  background: #fef08a;
}

.alert.error {
  background: #fee2e2;
  color: #7f1d1d;
  border-color: #ef4444;
}

.alert.error:hover {
  background: #fecaca;
}

.alert svg {
  width: 1.25rem;
  height: 1.25rem;

  flex-shrink: 0;

  margin-right: 0.5rem;
}

.alert.success svg {
  color: #16a34a;
}

.alert.info svg {
  color: #2563eb;
}

.alert.warning svg {
  color: #ca8a04;
}

.alert.error svg {
  color: #dc2626;
}