/* Mahalle Mektebi — sağ üst toast bildirimleri */
.mm-toast-root {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  width: min(22rem, calc(100vw - 1.5rem));
  pointer-events: none;
}

.mm-toast {
  pointer-events: auto;
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.85rem 0.75rem 0.85rem 0.85rem;
  border-radius: 12px;
  background: #fff;
  color: #1f2937;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.14),
    0 2px 8px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transform: translateX(112%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.mm-toast.is-in {
  transform: translateX(0);
  opacity: 1;
}

.mm-toast.is-out {
  transform: translateX(112%);
  opacity: 0;
}

.mm-toast-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.mm-toast-body {
  min-width: 0;
  padding-top: 0.15rem;
}

.mm-toast-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
  opacity: 0.75;
}

.mm-toast-msg {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.mm-toast-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6b7280;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.mm-toast-close:hover,
.mm-toast-close:focus-visible {
  background: rgba(15, 23, 42, 0.06);
  color: #111827;
  outline: none;
}

.mm-toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(1);
  opacity: 0.85;
}

.mm-toast-progress.is-running {
  animation-name: mm-toast-shrink;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes mm-toast-shrink {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.mm-toast--success .mm-toast-icon { background: #16a34a; }
.mm-toast--success .mm-toast-title { color: #15803d; }
.mm-toast--success .mm-toast-progress { background: #16a34a; }

.mm-toast--error .mm-toast-icon { background: #dc2626; }
.mm-toast--error .mm-toast-title { color: #b91c1c; }
.mm-toast--error .mm-toast-progress { background: #dc2626; }

.mm-toast--info .mm-toast-icon { background: #2563eb; }
.mm-toast--info .mm-toast-title { color: #1d4ed8; }
.mm-toast--info .mm-toast-progress { background: #2563eb; }

.mm-toast--warning .mm-toast-icon { background: #d97706; }
.mm-toast--warning .mm-toast-title { color: #b45309; }
.mm-toast--warning .mm-toast-progress { background: #d97706; }

@media (max-width: 575.98px) {
  .mm-toast-root {
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    align-items: stretch;
  }
}
