.floating-toast-container {
  display: flex;
  position: fixed;
  z-index: 1000;
  bottom: 20px;
  right: 20px;
  gap: 8px;
  flex-direction: column-reverse;
  pointer-events: none;
}

.message-alert {
  display: flex;
  align-items: flex-start;
  background: var(--page-bg);
  color: var(--text-color);
  padding: var(--one);
  gap: var(--half);
  word-break: break-word;
  border-left: 4px solid var(--primary-color);
}

.message-alert .material-symbols-outlined {
  font-size: 20px;
}

.message-alert .message-snippet, .message-alert .message-timestamp {
  color: var(--muted-text);
  font-size: 0.9em;
}

.message-alert .message-timestamp {
  font-size: 0.8em;
}

.message-alert.success {
  border-left-color: #2e7d32;
}

.message-alert.success .material-symbols-outlined {
  color: #2e7d32;
}

.message-alert.warning {
  border-left-color: #ed6c02;
}

.message-alert.warning .material-symbols-outlined {
  color: #ed6c02;
}

.message-alert.error {
  border-left-color: #d32f2f;
}

.message-alert.error .material-symbols-outlined {
  color: #d32f2f;
}

.toast {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

.toast.info, .toast.success {
  animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 2.7s;
}

.toast.warning, .toast.error {
  animation: slideIn 0.3s ease-out;
}

.toast .toast-close {
  cursor: pointer;
  font-size: 18px;
  margin-left: var(--half);
  opacity: 0.7;
}

.toast .toast-close:hover {
  opacity: 1;
}

.fade-out {
  animation: fadeOut 0.3s ease-in forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.connection-status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: light-dark(#fff3cd, #4a3f00);
  color: light-dark(#664d03, #ffc107);
  padding: var(--half) var(--one);
  text-align: center;
  font-size: 0.9em;
  z-index: 10000;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.connection-status-bar.visible {
  transform: translateY(0);
}
