/* Umbra钱包界面样式 - 集成在Explorer中 */
.wallet-dashboard {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  margin-top: 20px;
}

/* 左侧面板样式 */
.wallet-left-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wallet-overview {
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.wallet-card {
  padding: 24px;
  position: relative;
}

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

.wallet-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-color);
}

.wallet-network {
  background: rgba(0, 255, 154, 0.1);
  color: var(--primary-color);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}

.wallet-balance {
  text-align: center;
  margin-bottom: 20px;
}

.balance-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.2;
}

.balance-currency {
  color: var(--text-secondary);
  font-size: 1rem;
}

.wallet-address-display {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 20px;
  word-break: break-all;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-button.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #051B11;
}

.action-button.secondary {
  background: rgba(0, 0, 0, 0.2);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 154, 0.2);
}

.action-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.wallet-setup {
  padding: 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wallet-setup p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.setup-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.setup-button {
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.setup-button.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #051B11;
}

.setup-button.secondary {
  background: rgba(0, 0, 0, 0.2);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

/* DApp快捷访问 */
.dapps-panel {
  background: var(--card-background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-color);
}

.dapps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
}

.dapp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dapp-item:hover {
  background: rgba(0, 255, 154, 0.1);
  transform: translateY(-2px);
}

.dapp-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.dapp-name {
  font-size: 0.85rem;
  font-weight: 500;
}

/* 右侧面板样式 */
.wallet-right-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.assets-panel, .transactions-panel {
  background: var(--card-background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.refresh-btn {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: rgba(0, 255, 154, 0.1);
  color: var(--primary-color);
}

.assets-list {
  padding: 16px;
}

.asset-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.asset-item:hover {
  background: rgba(0, 0, 0, 0.2);
}

.asset-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #051B11;
}

.usud-icon {
  background: linear-gradient(135deg, #00BFB2, #00FF9A);
}

.umb-icon {
  background: linear-gradient(135deg, #9945FF, #00FF9A);
}

.asset-info {
  flex: 1;
}

.asset-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.asset-ticker {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.asset-balance {
  text-align: right;
}

.balance-value {
  font-weight: 600;
  margin-bottom: 4px;
}

.balance-usd {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.tx-filter select {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

.transactions-list {
  padding: 16px;
  min-height: 300px;
}

.empty-transactions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* 模态窗口样式 - Default hidden */
.wallet-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.wallet-modal.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--card-background);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.wallet-modal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.close-modal {
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-modal:hover {
  color: var(--primary-color);
}

.modal-body {
  padding: 24px;
}

.modal-body p {
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 255, 154, 0.1);
  outline: none;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.amount-input-group {
  display: flex;
}

.amount-input-group .form-input {
  flex: 1;
  border-radius: 8px 0 0 8px;
}

.max-button {
  background: rgba(0, 0, 0, 0.3);
  color: var(--primary-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: none;
  padding: 0 12px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.max-button:hover {
  background: rgba(0, 255, 154, 0.1);
}

.balance-info {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: right;
}

.fee-info {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-button {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-button.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #051B11;
  border: none;
}

.modal-button.secondary {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-button.primary:hover {
  box-shadow: 0 4px 12px rgba(0, 255, 154, 0.2);
  transform: translateY(-2px);
}

.modal-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 密码强度指示器 */
.password-strength {
  margin-top: 12px;
}

.strength-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.strength-fill {
  height: 100%;
  width: 0%;
  background: var(--danger-color);
  transition: all 0.3s ease;
}

.strength-fill[data-strength="weak"] {
  width: 33%;
  background: var(--danger-color);
}

.strength-fill[data-strength="medium"] {
  width: 66%;
  background: var(--warning-color);
}

.strength-fill[data-strength="strong"] {
  width: 100%;
  background: var(--success-color);
}

.strength-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: right;
}

/* 接收模态窗口特定样式 */
.qr-section {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.qr-code {
  width: 200px;
  height: 200px;
  background: white;
  padding: 16px;
  border-radius: 8px;
}

.address-section {
  text-align: center;
}

.address-display {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 8px;
  margin: 12px 0;
  word-break: break-all;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.address-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.address-button {
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.address-button:hover {
  background: rgba(0, 255, 154, 0.1);
  color: var(--primary-color);
}

/* 备份种子短语相关样式 */
.warning-box {
  display: flex;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.warning-icon {
  font-size: 2rem;
  margin-right: 16px;
  color: #FFC107;
}

.warning-message p {
  margin: 0 0 8px;
  color: #FFC107;
}

.warning-message p:last-child {
  margin-bottom: 0;
}

.seed-phrase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.seed-word {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  position: relative;
}

.seed-word-number {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 0.65rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

.confirmation-check {
  margin-bottom: 16px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-container input {
  margin-right: 12px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .wallet-dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wallet-actions {
    grid-template-columns: 1fr 1fr;
  }
  
  .dapps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .seed-phrase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}