body {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #121212;
  color: #e0e0e0;
}

.section {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #333;
  border-radius: 5px;
  background-color: #1e1e1e;
}

button {
  padding: 8px 12px;
  margin-right: 10px;
  margin-bottom: 10px;
  cursor: pointer;
    background-color: #3700b3;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  transition: background-color 0.2s;
}

button:hover {
    background-color: #6200ee;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #555;
}

.status {
  margin: 10px 0;
  padding: 10px;
  background-color: #2d2d2d;
  border-radius: 5px;
    border-left: 4px solid #6200ee;
}

.input-group {
  margin-bottom: 10px;
}

input {
  padding: 8px;
  width: 100%;
  margin-top: 5px;
  box-sizing: border-box;
  background-color: #333;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 4px;
}

input:focus {
  outline: none;
    border-color: #6200ee;
}

h1, h2 {
    color: #bb86fc;
}

::placeholder {
  color: #888;
}

pre {
  background-color: #2a2a2a;
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
  font-size: 14px;
  max-height: 300px;
  overflow-y: auto;
}

.logo {
  height: 30px;
  vertical-align: middle;
  margin-right: 10px;
}

/* Debug message styling */
#debugOutput div {
  padding: 5px 0;
  border-bottom: 1px solid #333;
}

#debugOutput div:first-child {
  border-top: 1px solid #333;
}

/* Success and error message styling */
.success {
  color: #4BB543;
}

.error {
  color: #ff6b6b;
}

.note {
  background-color: #2a2a2a;
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  border-left: 4px solid #ffcc00;
}

ol {
  margin-left: 20px;
  line-height: 1.6;
}

/* Button styling for disconnect and forget buttons */
.disconnect-btn {
  background-color: #ff6b6b;
}

.disconnect-btn:hover {
  background-color: #e84c4c;
}

.forget-btn {
  background-color: #ff9800;
}

.forget-btn:hover {
  background-color: #e68a00;
}

/* Wallet groups styling */
.wallet-group {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #333;
}

.wallet-group:last-child {
  border-bottom: none;
}

/* Transaction History Styling */
.transaction-container {
  margin-top: 10px;
}

.view-details-btn {
  margin-top: 8px;
  background-color: #444;
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.view-details-btn:hover {
  background-color: #555;
}

#transactionList {
  margin-top: 15px; 
  max-height: 500px; 
  overflow-y: auto;
}

.transaction-card {
  margin-bottom: 10px; 
  padding: 10px;
}

.transaction-details {
  display: none; 
  margin-top: 10px; 
  background-color: #2a2a2a; 
  padding: 10px; 
  border-radius: 5px; 
  overflow-x: auto;
}

.tx-link {
  color: #bb86fc;
  text-decoration: none;
}

.tx-link:hover {
  text-decoration: underline;
}

.helper-note {
  margin-top: 20px; 
  padding: 10px; 
  background-color: #2a2a2a; 
  border-left: 4px solid #ffcc00; 
  border-radius: 4px;
}

.helper-note ul {
  margin-left: 20px;
}

/* Transaction type badges */
.tx-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 5px;
}

.tx-badge-native {
  background-color: #3700b3;
  color: white;
}

.tx-badge-token {
  background-color: #00897b;
  color: white;
}

.tx-badge-nft {
  background-color: #7b1fa2;
  color: white;
}

.tx-badge-swap {
  background-color: #ff6d00;
  color: white;
}

.tx-badge-stake {
  background-color: #2e7d32;
  color: white;
}
/* Add to your existing styles.css file */

/* Transaction History Styling */
.transaction-container {
  margin-top: 10px;
}

.view-details-btn {
  margin-top: 8px;
  background-color: #444;
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.view-details-btn:hover {
  background-color: #555;
}

.transaction-details {
  display: none; 
  margin-top: 10px; 
  background-color: #2a2a2a; 
  padding: 10px; 
  border-radius: 5px; 
  overflow-x: auto;
}

.tx-link {
  color: #bb86fc;
  text-decoration: none;
}

.tx-link:hover {
  text-decoration: underline;
}

.helper-note {
  margin-top: 20px; 
  padding: 10px; 
  background-color: #2a2a2a; 
  border-left: 4px solid #ffcc00; 
  border-radius: 4px;
}

.helper-note ul {
  margin-left: 20px;
}

/* Transaction type badges */
.tx-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 5px;
}

.tx-badge-native {
  background-color: #3700b3;
  color: white;
}

.tx-badge-token {
  background-color: #00897b;
  color: white;
}

.tx-badge-nft {
  background-color: #7b1fa2;
  color: white;
}

.tx-badge-swap {
  background-color: #ff6d00;
  color: white;
}

.tx-badge-stake {
  background-color: #2e7d32;
  color: white;
}

.tx-badge-stepn {
  background-color: #00d6af;
  color: black;
}

.tx-badge-game {
  background-color: #ffb800;
  color: black;
}

/* Token styling */
.token-info {
  display: flex;
  align-items: center;
  margin: 5px 0;
}

.token-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 8px;
}

.nft-image {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  margin-right: 8px;
}

.nft-info {
  display: flex;
  align-items: center;
  margin: 5px 0;
}

.swap-info {
  margin: 5px 0;
}

.token-pair {
  display: flex;
  align-items: center;
}

.swap-arrow {
  margin: 0 8px;
  font-weight: bold;
}

.stepn-activity {
  background-color: #222222;
  padding: 8px;
  border-radius: 4px;
  margin: 5px 0;
}

/* Button group for history types */
.history-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #bb86fc;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

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

/* History tabs */
.history-tabs {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 1px solid #333;
}

.history-tab {
  padding: 8px 16px;
  background-color: #222;
  border: none;
  color: #e0e0e0;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  margin-right: 2px;
}

.history-tab.active {
  background-color: #3700b3;
  color: white;
}