#toast-container {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  font-family: "Manrope", sans-serif;
}

.t-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e2eaf4;
  border-radius: 14px;
  padding: 13px 16px;
  min-width: 280px;
  max-width: 340px;
  box-shadow: 0 8px 32px rgba(13, 27, 42, 0.14);
  pointer-events: auto;
  cursor: default;
  animation: toastIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.t-toast.hiding {
  animation: toastOut 0.22s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(60px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0) scale(1); max-height: 80px; margin-bottom: 0; }
  to { opacity: 0; transform: translateX(60px) scale(0.95); max-height: 0; margin-bottom: -10px; padding: 0; }
}

.t-toast::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 0 0 14px 14px;
  animation-name: toastProgress;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-duration: var(--toast-duration, 5000ms);
}

.t-toast.t-error::after { background: #f87171; }
.t-toast.t-success::after { background: #4ade80; }
.t-toast.t-warning::after { background: #fbbf24; }
.t-toast.t-info::after { background: #00a2fb; }

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

.t-toast-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.t-toast.t-error .t-toast-ico { background: #fff1f1; }
.t-toast.t-success .t-toast-ico { background: #f0fdf4; }
.t-toast.t-warning .t-toast-ico { background: #fffbeb; }
.t-toast.t-info .t-toast-ico { background: #e6f6ff; }

.t-toast-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t-toast.t-error .t-toast-ico svg { stroke: #f87171; }
.t-toast.t-success .t-toast-ico svg { stroke: #4ade80; }
.t-toast.t-warning .t-toast-ico svg { stroke: #fbbf24; }
.t-toast.t-info .t-toast-ico svg { stroke: #00a2fb; }

.t-toast-body {
  flex: 1;
  min-width: 0;
}

.t-toast-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 2px;
  line-height: 1.3;
}

.t-toast.t-error .t-toast-title { color: #dc2626; }
.t-toast.t-success .t-toast-title { color: #16a34a; }
.t-toast.t-warning .t-toast-title { color: #d97706; }
.t-toast.t-info .t-toast-title { color: #0082cc; }

.t-toast-text {
  font-size: 12px;
  color: #5a6478;
  margin: 0;
  line-height: 1.5;
}

.t-toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #9aa3b0;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.15s;
  align-self: flex-start;
}

.t-toast-close:hover {
  color: #1a2332;
}

#adres_info.tratatur-field-error,
#adres_info1.tratatur-field-error,
#tab-2 .data-input.tratatur-field-error,
#tab-2 .data-time.tratatur-field-error {
  background: #fff8f8 !important;
  box-shadow: 0 0 0 2px rgb(247 61 61 / 59%) !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  transition: all 0.3s ease;
  padding: 5px;
  outline: none;
}

@media (max-width: 480px) {
  #toast-container {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .t-toast {
    min-width: 0;
    max-width: 100%;
  }
}
