/* Django xabarlari (messages) — o'ng yuqori burchakdagi qatlam.
   Kadrdan tashqarida turadi, shuning uchun `zoom` ta'sir qilmaydi. */
.msg-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(420px, calc(100vw - 48px));
  pointer-events: none;
}

.msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border-left: 4px solid #a3a3a3;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
  pointer-events: auto;
  animation: msg-in .18s ease-out;
}

.msg-text {
  margin: 0;
  font-family: "Manrope", "HelveticaNeue", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: #171717;
}

.msg-close {
  flex: none;
  margin-left: auto;
  padding: 0 2px;
  border: 0;
  background: none;
  color: #a3a3a3;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.msg-close:hover { color: #171717; }

.msg-success { border-left-color: #1fc16b; }
.msg-info    { border-left-color: #335cff; }
.msg-warning { border-left-color: #ff800a; }
.msg-error   { border-left-color: #fb3748; }

@keyframes msg-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* Harakatni kamaytirish rejimi — animatsiyasiz. */
@media (prefers-reduced-motion: reduce) {
  .msg { animation: none; }
}

@media (max-width: 768px) {
  .msg-stack { top: 12px; right: 12px; left: 12px; max-width: none; }
}
