/**
 * Hardware Wallet Signer Modal Styles
 */

.hardware-wallet-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-in;
}

.hardware-wallet-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.hardware-wallet-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

.hardware-wallet-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border-radius: 12px 12px 0 0;
}

.hardware-wallet-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.hardware-wallet-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: white;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s;
}

.hardware-wallet-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hardware-wallet-modal-body {
  padding: 28px;
}

.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  align-items: start;
  gap: 8px;
}

.alert-warning {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
}

.alert strong {
  display: block;
  margin-bottom: 4px;
}

.signing-steps {
  margin: 24px 0;
}

.signing-steps h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.signing-steps ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  transition: all 0.3s;
}

.step-icon {
  font-size: 20px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  flex: 1;
  color: #4b5563;
  font-size: 14px;
}

.step.active {
  background: #dbeafe;
  border-color: #3b82f6;
}

.step.active .step-text {
  color: #1e40af;
  font-weight: 500;
}

.step.active .step-icon {
  color: #3b82f6;
  animation: pulse 1.5s ease-in-out infinite;
}

.step.complete {
  background: #d1fae5;
  border-color: #059669;
}

.step.complete .step-text {
  color: #065f46;
}

.step.complete .step-icon {
  color: #059669;
}

.step.error {
  background: #fee2e2;
  border-color: #dc2626;
}

.step.error .step-text {
  color: #991b1b;
}

.step.error .step-icon {
  color: #dc2626;
}

.info-message {
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.info-message::before {
  content: "ℹ️";
  margin-right: 8px;
}

.hardware-wallet-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0 0 12px 12px;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

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

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

/* Responsive */
@media (max-width: 640px) {
  .hardware-wallet-modal-content {
    width: 95%;
    margin: 20px;
  }

  .hardware-wallet-modal-header,
  .hardware-wallet-modal-body,
  .hardware-wallet-modal-footer {
    padding: 20px;
  }

  .step {
    padding: 10px 12px;
  }

  .step-text {
    font-size: 13px;
  }
}
