/* styles.css */
.status-container {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.status-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

.online {
  background-color: #28a745;
}

.offline {
  background-color: #dc3545;
}

.btn:disabled {
  background-color: #6c757d !important;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.coin-btn.active {
  background-color: #007bff !important;
  color: white !important;
  border-color: #007bff !important;
  box-shadow: none !important;
}

.gap-2 > * {
  margin: 0.2rem;
}

.coin-btn:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* Toast样式 */
.toast-container {
  z-index: 9999;
  position: fixed;
  transform: translateX(-50%);
}

.toast {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid transparent;
  backdrop-filter: blur(10px);
  min-width: 280px;
  padding: 12px;
  animation: toastSlide 0.3s ease-out;
}

@keyframes toastSlide {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.toast-success {
  border-color: #28a745;
  background: linear-gradient(90deg, #f8fff9 0%, #ffffff 100%);
}

.toast-error {
  border-color: #dc3545;
  background: linear-gradient(90deg, #fff6f6 0%, #ffffff 100%);
}

.toast-body {
  display: flex;
  align-items: center;
  padding: 8px;
  color: #333;
  font-size: 14px;
}

.toast-icon {
  width: 24px;
  height: 24px;
  background-size: contain;
}

.icon-success {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2328a745"><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>');
}

.icon-error {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23dc3545"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>');
}

.btn-close {
  filter: invert(0.4);
  opacity: 0.8;
  width: 16px;
  height: 16px;
  transition: opacity 0.2s ease;
}

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