/* activity-widget.css — Real-submission activity toast.
   Load after the site's main stylesheet so these rules cascade on top. */

#syhfla-activity {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  max-width: 360px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 14px 16px 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #111827;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#syhfla-activity.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.syhfla-activity__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: syhfla-activity-pulse 2s infinite;
}

@keyframes syhfla-activity-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.syhfla-activity__body {
  flex: 1;
  min-width: 0;
}

.syhfla-activity__title {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2px;
}

.syhfla-activity__detail {
  color: #475569;
}

.syhfla-activity__detail strong {
  color: #0f172a;
  font-weight: 600;
}

.syhfla-activity__close {
  background: transparent;
  border: 0;
  font-size: 20px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
}

.syhfla-activity__close:hover {
  color: #334155;
}

@media (max-width: 480px) {
  #syhfla-activity {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #syhfla-activity { transition: opacity 0.2s ease; transform: none; }
  .syhfla-activity__pulse { animation: none; }
}
