:root {
    --ToastDark: #171a20;
    --ToastLight: #ffffff;
    --ToastSmoke: #ffffff;
    --ToastSuccess: #0fa53d;
    --ToastError: #dc2626;
    --ToastWarning: #d97706;
    --ToastInfo: #2563eb;
  }
  .notifications {
    position: fixed;
    top: 30px;
    right: 20px;
    z-index: 100;
  }
  .notifications :where(.toast, .column) {
    display: flex;
    align-items: center;
  }
  .notifications .toast {
    max-width: 400px;
    position: relative;
    overflow: hidden;
    list-style: none;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 10px;
    background: var(--ToastSmoke);
    justify-content: space-between;
    animation: show_toast 0.3s ease forwards;
    box-shadow: 0 4px 12px rgba(23, 26, 32, 0.08);
    border: 1px solid rgba(23, 26, 32, 0.08);
  }
  
  .notifications span{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ToastDark);
    font-weight: 500;
  }
  @keyframes show_toast {
    0% {
      transform: translateX(100%);
    }
    40% {
      transform: translateX(-5%);
    }
    80% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-10px);
    }
  }
  .notifications .toast.hide {
    animation: hide_toast 0.3s ease forwards;
  }
  @keyframes hide_toast {
    0% {
      transform: translateX(-10px);
    }
    40% {
      transform: translateX(0%);
    }
    80% {
      transform: translateX(-5%);
    }
    100% {
      transform: translateX(calc(100% + 20px));
    }
  }
  .toast::before {
    position: absolute;
    content: "";
    height: 2px;
    width: 100%;
    bottom: 0px;
    left: 0px;
    animation: progress 10s linear forwards;
  }
  @keyframes progress {
    100% {
      width: 0%;
    }
  }
  .toast.success::before, .btn#success {
    background: var(--ToastSuccess);
  }
  .toast.error::before, .btn#error {
    background: var(--ToastError);
  }
  .toast.warning::before, .btn#warning {
    background: var(--ToastWarning);
  }
  .toast.info::before, .btn#info {
    background: var(--ToastInfo);
  }
  .toast .column i {
    font-size: 1.75rem;
  }
  .toast.success .column i {
    color: var(--ToastSuccess);
  }
  .toast.error .column i {
    color: var(--ToastError);
  }
  .toast.warning .column i {
    color: var(--ToastWarning);
  }
  .toast.info .column i {
    color: var(--ToastInfo);
  }
  .toast .column span {
    font-size: 0.95rem;
    margin-left: 12px;
  }
  .toast i:last-child {
    border-radius: 50%;
    padding: 4px;
    margin-left: 20px;
    color: rgba(23, 26, 32, 0.4);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .toast i:last-child:hover {
    background-color: rgba(23, 26, 32, 0.08);
    color: var(--ToastDark);
  }
    
  @media (width < 500px) {
    .notifications {
      width: 90%;
      right: 0px;
      left: auto;
    }
    .notifications .toast {
      width: 100%;
      font-size: 1rem;
      margin-right: 10px;
      margin-left: 0;
    }
    
  }