/* Base styles */
.save-body {
  background: #0E0F1E;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.dashboard {
  background: #1C1F2E;
  color: white;
  border-radius: 1.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 42rem;
  margin: 2rem auto;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 2.25rem;
  font-weight: bold;
  padding-right: 3rem;
}

.logo {
  width: 2rem;
  height: 2rem;
}

.brand-fx {
  color: #3B82F6;
}

.brand-save {
  color: #EF4444;
}

.description {
  color: #9CA3AF;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  text-align: left;
}

.balance-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

.balance-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.balance-amount {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 2rem;
  line-height: 1;
}

.currency {
  font-size: 3rem;
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid #374151;
  margin-bottom: 2rem;
}

.tab-button {
  flex: 1;
  padding: 12px 8px;
  font-weight: 600;
  border: none;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-align: center;
}

.tab-button.active {
  color: #6366F1;
  border-bottom: 2px solid #6366F1;
}

.tab-button:hover:not(.active) {
  color: #e5e7eb;
}

/* Swap box styles from swap.css */
.swap-box {
  background: rgba(28, 31, 46, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 2rem;
}

.token-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-container {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 16px;
  padding: 0;
}

.token-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  background-color: #1f2937;
  min-width: 140px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 8px;
}

.dropdown-content a {
  color: #d1d5db;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: #374151;
}

.dropdown-content img {
  width: 20px;
  height: 20px;
}

.show {
  display: block;
}

.down-arrow {
  border: solid #9ca3af;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  margin-left: 12px;
}

.swap-input {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  text-align: right;
  width: 100%;
  outline: none;
}

.swap-input::placeholder {
  color: #4B5563;
}

.balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9CA3AF;
  font-size: 0.875rem;
}

.token-price {
  color: #9CA3AF;
  font-size: 0.875rem;
}

.max-button {
  color: #3B82F6;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 500;
  margin-left: 0.5rem;
}

.button-group {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.button {
  width: 200px;
  background-color: #2563EB;
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.button:hover {
  background-color: #1D4ED8;
  transform: translateY(-1px);
}

.stats {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.stats-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat-item {
  flex: 1 1 auto;
  min-width: 150px;
}

.stat-item h2 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  color: #9CA3AF;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
}

.stat-currency {
  font-size: 1.25rem;
}

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

.stat-item.text-right h2 {
  text-align: right;
}

@media (max-width: 640px) {
  .dashboard {
    padding: 1.5rem;
    margin: 1rem auto;
  }

  .header {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .logo {
    width: 1.75rem;
    height: 1.75rem;
  }

  .balance-title {
    font-size: 1.25rem;
  }

  .balance-amount {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .currency {
    font-size: 2.5rem;
  }

  .button {
    width: 100%;
    max-width: 300px;
  }

  .description {
    font-size: 1rem;
  }

  .stats-container {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-item {
    width: 100%;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-currency {
    font-size: 1rem;
  }

  .text-right, .stat-item.text-right h2 {
    text-align: left;
  }
}