@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
  --dark: #34495E;
  --light: #ffffff;
  --success: #0ABF30;
  --error: #E24D4C;
  --warning: #FF6347; /* Tomato Red for warning */
  --info: #FF4500; /* Orange Red for info */
}

.notifications {
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  position: fixed;
  z-index: 10;
}
.notifications :where(.toastNotification, .column) {
  display: flex;
  align-items: center;
}
.notifications .toastNotification {
  width: 400px;
  position: relative;
  overflow: hidden;
  list-style: none;
  border-radius: 4px;
  padding: 16px 17px;
  margin-bottom: 10px;
  background-color: #ffcccc; /* Light red background */
  border: 1px solid #FF4500; /* Border matching info color */
  justify-content: space-between;
  animation: show_toastNotification 0.3s ease forwards;
}
@keyframes show_toastNotification {
  0% {
    transform: translateX(100%);
  }
  40% {
    transform: translateX(-5%);
  }
  80% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-10px);
  }
}
.notifications .toastNotification.hide {
  animation: hide_toastNotification 0.3s ease forwards;
}
@keyframes hide_toastNotification {
  0% {
    transform: translateX(-10px);
  }
  40% {
    transform: translateX(0%);
  }
  80% {
    transform: translateX(-5%);
  }
  100% {
    transform: translateX(calc(100% + 20px));
  }
}
.toastNotification::before {
  position: absolute;
  content: "";
  height: 3px;
  width: 100%;
  bottom: 0px;
  left: 0px;
  animation: progress 10s linear forwards;
}
@keyframes progress {
  100% {
    width: 0%;
  }
}
.toastNotification.success::before, .btn#success {
  background: var(--success);
}
.toastNotification.error::before, .btn#error {
  background: var(--error);
}
.toastNotification.warning::before, .btn#warning {
  background: var(--warning);
}
.toastNotification.info::before, .btn#info {
  background: var(--info);
}
.toastNotification .column i {
  font-size: 1.75rem;
}
.toastNotification.success .column i {
  color: var(--success);
}
.toastNotification.error .column i {
  color: var(--error);
}
.toastNotification.warning .column i {
  color: var(--warning);
}
.toastNotification.info .column i {
  color: var(--info);
}
.toastNotification .column span {
  color: black;
  font-size: 1.07rem;
  margin-left: 12px;
}
.toastNotification i:last-child {
  color: #aeb0d7;
  cursor: pointer;
}
.toastNotification i:last-child:hover {
  color: var(--dark);
}
.buttons .btn {
  border: none;
  outline: none;
  cursor: pointer;
  margin: 0 5px;
  color: var(--light);
  font-size: 1.2rem;
  padding: 10px 20px;
  border-radius: 4px;
}
@media screen and (max-width: 530px) {
  .notifications {
    width: 95%;
  }
  .notifications .toastNotification {
    width: 100%;
    font-size: 1rem;
    margin-left: 20px;
  }
  .buttons .btn {
    margin: 0 1px;
    font-size: 1.1rem;
    padding: 8px 15px;
  }
}
