/* Cuandeoro P2P — Estilos Adicionales */

/* ═══ Swap Pipeline Visualizer ═══ */
.swap-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.swap-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 4px 0;
}

.swap-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all 0.4s ease;
}

.swap-step-indicator.pending {
  background: rgba(100, 100, 130, 0.2);
  border: 2px solid rgba(100, 100, 130, 0.4);
}

.swap-step-indicator.active {
  background: rgba(212, 175, 55, 0.15);
  border: 2px solid #D4AF37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.swap-step-indicator.active .swap-step-dot {
  background: #D4AF37;
  animation: pulse-gold 2s infinite;
}

.swap-step-indicator.completed {
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10b981;
}

.swap-step-indicator.completed .swap-step-dot {
  background: #10b981;
}

.swap-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(100, 100, 130, 0.5);
  transition: all 0.4s ease;
}

.swap-connector {
  width: 2px;
  height: 20px;
  background: rgba(100, 100, 130, 0.3);
  margin-left: 17px;
  transition: background 0.4s ease;
}

.swap-connector.active {
  background: linear-gradient(to bottom, #10b981, #D4AF37);
}

.swap-connector.completed {
  background: #10b981;
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
}

/* ═══ Section Panel Transitions ═══ */
.section-panel {
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ Trade Filter Buttons ═══ */
.trade-filter.active {
  background: rgba(212, 175, 55, 0.1);
  color: #D4AF37;
  border-color: rgba(212, 175, 55, 0.3);
}

/* ═══ Badge Styles ═══ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-pending { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.badge-active { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.badge-signing { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.badge-completed { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.badge-cancelled { background: rgba(107, 114, 128, 0.2); color: #6b7280; }
.badge-disputed { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* ═══ TX Hash Link ═══ */
.tx-hash {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #D4AF37;
  text-decoration: none;
  background: rgba(212, 175, 55, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}

.tx-hash:hover {
  background: rgba(212, 175, 55, 0.15);
  text-decoration: underline;
}

/* ═══ Scrollbar ═══ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f0f1a; }
::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.5); }

/* ═══ Toast Notification ═══ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #16213e;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  z-index: 200;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: slideInRight 0.3s ease;
  max-width: 360px;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success { border-left: 3px solid #10b981; }
.toast-error { border-left: 3px solid #ef4444; }
.toast-info { border-left: 3px solid #3b82f6; }

/* ═══ Responsive ═══ */
@media (max-width: 640px) {
  .swap-step-content h4 { font-size: 13px; }
  .swap-step-content p { font-size: 11px; }
}
