/* styles.css */

/* Reset & Base */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #121212;
  color: #f1f1f1;
}

/* Header */
header {
  background: #1f1f1f;
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  border-bottom: 2px solid #333;
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

header img {
  height: 40px;
}

header a {
  color: #00ff99;
  text-decoration: none;
  font-weight: bold;
}

nav a {
  color: #f1f1f1;
  text-decoration: none;
  margin-top: 0.3rem;
}

/* Container */
.container {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  background-color: #1c1c1c;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.2);
  text-align: center;
}

/* Heading */
h1 {
  color: #00ff99;
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Input Group */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.input-group label {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

input[type="number"] {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #333;
  background-color: #2a2a2a;
  color: #fff;
  font-size: 1rem;
  width: 50%;
  box-sizing: border-box;
}

/* Max Button */
#maxBtn {
  align-self: flex;
  width: fit-content;
  margin-top: -0.5rem;
}

/* Buttons */
.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

button {
  padding: 0.7rem 1.2rem;
  background-color: #00ff99;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.2s;
  flex: 1 1 40%;
  max-width: 180px;
}

button:hover {
  background-color: #00cc7a;
}

/* Status Box */
#status {
  margin-top: 1rem;
  font-size: 1rem;
  color: #ffa500;
  white-space: pre-wrap;
  word-wrap: break-word;
}

#walletAddress {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 1rem;
  word-break: break-all;
}

/* Responsive Enhancements */
@media (max-width: 480px) {
  h1 {
    font-size: 1.3rem;
  }

  .button-group {
    flex-direction: column;
  }

  button {
    width: 50%;
    max-width: none;
  }

  .input-group {
    flex-direction: column;
  }
}
