/* Save Status Toast - Bottom Left Corner */
.save-status-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.7);
  cursor: help;
  z-index: 9000;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(-120%);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  white-space: nowrap;
  max-width: none;
}

.save-status-toast.visible {
  opacity: 1;
  transform: translateX(0);
}

.save-status-toast.has-save {
  border-color: rgba(255, 255, 255, 0.4);
}

.save-status-toast:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.save-status-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: transform 0.3s ease;
  color: currentColor;
}

.save-status-icon.pulse {
  animation: saveToastPulse 0.6s ease-out;
}

@keyframes saveToastPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

.save-status-text {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.9;
  line-height: 1;
}

/* Mobile adjustments */
@media (max-width: 1024px), (pointer: coarse) {
  .save-status-toast {
    bottom: 80px; /* Above mobile toolbar */
    left: 10px;
    padding: 5px 8px;
    font-size: 0.7rem;
    gap: 5px;
  }
  
  .save-status-icon {
    width: 12px;
    height: 12px;
  }
  
  .save-status-text {
    font-size: 0.7rem;
  }
}

/* Dark mode adjustments - make it visible on dark backgrounds */
body.dark-mode .save-status-toast {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .save-status-toast:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(0, 0, 0, 0.5);
}
