.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #fff;
  overflow-x: hidden;
  padding: 0.25rem;
  z-index: 9999;
}

.notification__message {
  display: grid;
  grid-gap: 0.2rem;
  grid-template-columns: 1fr auto;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  background: #0E1C3A;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1), 0 2px 3px rgba(0, 0, 0, 0.1);
  border-left: 0.5rem solid #0E1C3A;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.7s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.notification__message h1 {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: capitalize;
  color: #fff;
}

.notification__message p {
  max-width: 320px;
  font-size: 0.9rem;
  grid-column: 1/-1;
  color: #fff;
}

.notification__message button {
  background: none;
  border: none;
  color: #fff;
  width: 20px;
  height: 20px;
  grid-column: 2/3;
  grid-row: 1/2;
  align-self: center;
  cursor: pointer;
}

.notification.received .notification__message {
  transform: translateX(0%);
  opacity: 1;
  visibility: visible;
}

.message--info {
  border-left-color: #90dee9;
}

.message--success {
  border-left-color: #90e990;
}

.message--warning {
  border-left-color: #e9e090;
}

.message--danger {
  border-left-color: #e99090;
} 