/* 交易状态模态框样式 */
.transaction-modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.transaction-modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.transaction-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.transaction-title {
  margin: 0;
  font-size: 1.25rem;
}

.close-transaction {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-transaction:hover,
.close-transaction:focus {
  color: black;
  text-decoration: none;
}

.transaction-body {
  margin-bottom: 20px;
}

.transaction-status {
  text-align: center;
  margin-bottom: 20px;
}

.status-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.status-processing .status-icon {
  color: #ffc107;
}

.status-success .status-icon {
  color: #28a745;
}

.status-error .status-icon {
  color: #dc3545;
}

.transaction-details {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.detail-label {
  font-weight: 500;
  color: #6c757d;
}

.detail-value {
  font-family: monospace;
  word-break: break-all;
}

.transaction-actions {
  display: flex;
  justify-content: center;
}

.btn-explorer {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
}

.btn-explorer:hover {
  background-color: #5a6268;
  color: white;
}

.btn-close-transaction {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
}

.btn-close-transaction:hover {
  background-color: #218838;
}

.transaction-spinner {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #ffc107;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-sub-message {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #dee2e6;
}