/* Toast notifications */
.notification-toast {
  position: fixed;
  z-index: 10000;
  top: 20px;
  right: 20px;
  background-color: var(--accent-color);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  max-width: 350px;
  animation: slideInRight 0.3s ease;
}

.notification-toast.success {
  background-color: var(--success-color);
}

.notification-toast.error {
  background-color: var(--danger-color);
}

.notification-toast.warning {
  background-color: var(--warning-color);
}

/* Trade error popup */
.trade-error-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  border-left: 4px solid var(--danger-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  padding: 0;
  width: 320px;
  max-width: 100%;
  z-index: 9999;
  animation: slideInBottom 0.3s ease;
  overflow: hidden;
}

.trade-error-popup.dark-mode {
  background-color: var(--bg-dark);
  border-color: var(--danger-color);
}

.trade-error-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: rgba(255, 0, 0, 0.08);
  border-bottom: 1px solid rgba(255, 0, 0, 0.12);
}

.trade-error-title {
  font-weight: 600;
  margin: 0;
  color: var(--danger-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trade-error-title svg {
  width: 18px;
  height: 18px;
}

.trade-error-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  opacity: 0.7;
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.trade-error-close:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.05);
}

.trade-error-content {
  padding: 15px;
}

.trade-error-message {
  margin-bottom: 12px;
  word-break: break-word;
}

.trade-error-details {
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.trade-error-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.trade-error-actions button {
  padding: 8px 12px;
  border-radius: 4px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trade-error-dismiss {
  background-color: transparent;
  color: var(--text-color);
}

.trade-error-dismiss:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.trade-error-retry {
  background-color: var(--accent-color);
  color: white;
}

.trade-error-retry:hover {
  background-color: var(--accent-hover-color);
}

/* Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

@keyframes slideInBottom {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutBottom {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(30px);
    opacity: 0;
  }
}

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

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

/* NEW badge styling */
.new-badge {
  background-color: #e74c3c;
  color: white;
  font-size: 9px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Auto-copy modal positioning - bottom right notification style */
#auto-copy-modal {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  width: 350px !important;
  max-width: 90vw !important;
  background: none !important;
  z-index: 10000 !important;
  pointer-events: none !important;
}

#auto-copy-modal .modal-content {
  background: white !important;
  border-radius: 12px !important;
  padding: 20px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid var(--border-color) !important;
  pointer-events: auto !important;
  animation: slideInFromBottom 0.3s ease-out !important;
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
