body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1e1e2f, #2a2a40);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#connect {
  margin: 20px;
  background-color: #5c6bc0;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#connect:hover {
  background-color: #7986cb;
}

#swap-box {
  background-color: #2e2e44;
  border-radius: 16px;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

#swap-menu {
  text-align: center;
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 10px;
  color: #cfcfea;
}

#swap-title-box {
  text-align: center;
  margin-bottom: 20px;
}

#swap-title {
  font-size: 26px;
  font-weight: bold;
}

#swap-subtitle {
  font-size: 14px;
  color: #a0a0c0;
}

.token {
  font-weight: 500;
  font-size: 15px;
  margin-left: 8px;
}

.swap-balance {
  font-size: 12px;
  color: #ccc;
  margin-top: 4px;
}

input {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 20px;
  background-color: #444;
  color: #fff;
}

input:focus {
  outline: none;
  background-color: #555;
}

#swap-submit {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background-color: #00b894;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#swap-submit:hover {
  background-color: #00a37d;
}

.logo {
  width: 24px;
  vertical-align: middle;
}

#swap-price-label {
  text-align: right;
  font-size: 14px;
  margin-top: -10px;
  margin-bottom: 10px;
  color: #b0b0d0;
}

#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #444;
  padding: 10px 20px;
  border-radius: 8px;
  display: none;
  font-size: 14px;
  color: white;
}

.spinner-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  border: 6px solid rgba(255, 255, 255, 0.1);
  border-top: 6px solid #00cec9;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

@media screen and (max-width: 480px) {
  #swap-box {
    padding: 20px;
    margin: 10px;
  }

  input {
    font-size: 14px;
  }
}
