/* Top-left toast notifications for background task completions. */

.stu-toasts {
  position: fixed;
  top: 88px;
  left: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  pointer-events: none;       /* let clicks fall through container itself */
}

.stu-toast {
  pointer-events: auto;        /* but toast itself is clickable */
  background: #fff;
  border: 1px solid var(--border, rgba(0, 61, 106, 0.18));
  border-left: 4px solid var(--cyan, #00A1CA);
  border-radius: 12px;
  padding: 14px 38px 14px 16px;
  box-shadow: 0 8px 32px rgba(0, 30, 60, 0.18);
  font-family: 'Geologica', sans-serif;
  color: var(--text, #1B2A4A);
  position: relative;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .22s ease, transform .22s ease;
  cursor: default;
}
.stu-toast-in  { opacity: 1; transform: translateX(0); }
.stu-toast-out { opacity: 0; transform: translateX(-12px); }
.stu-toast-clickable { cursor: pointer; }
.stu-toast-clickable:hover {
  border-left-color: var(--navy, #003D6A);
  box-shadow: 0 12px 40px rgba(0, 30, 60, 0.26);
}

.stu-toast-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy, #003D6A);
  line-height: 1.3;
  margin-bottom: 3px;
}
.stu-toast-body {
  font-size: 13px;
  color: var(--text-muted, #5A6E8A);
  line-height: 1.4;
}

.stu-toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: var(--text-muted, #5A6E8A);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s, color .15s;
}
.stu-toast-close:hover { background: rgba(0, 30, 60, 0.08); color: var(--navy, #003D6A); }

.stu-toast-success { border-left-color: #16a34a; }
.stu-toast-success .stu-toast-title { color: #15803d; }

.stu-toast-error { border-left-color: #dc2626; }
.stu-toast-error .stu-toast-title { color: #b91c1c; }

@media (max-width: 640px) {
  .stu-toasts { top: 76px; left: 8px; right: 8px; max-width: none; }
}
