/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #512da8;
  --secondary-color: #7e57c2;
  --accent-color: #d1c4e9;
  --error-color: #f44336;
  --success-color: #4caf50;
  --text-color: #333;
  --light-bg: #f5f5f5;
  --white: #ffffff;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  background-color: var(--light-bg);
  line-height: 1.6;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

main {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

footer {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

/* Form styles */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.2);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.primary:hover:not(:disabled) {
  background-color: #4527a0;
}

.secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.secondary:hover:not(:disabled) {
  background-color: var(--accent-color);
}

.logout {
  background-color: #f5f5f5;
  color: #757575;
  margin-top: 2rem;
}

.logout:hover {
  background-color: #e0e0e0;
}

.link-button {
  background: none;
  border: none;
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
  font-size: 1rem;
}

.link-button:hover {
  color: var(--secondary-color);
}

/* Authentication containers */
.auth-container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.auth-container h2 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary-color);
}

.auth-container form {
  margin-bottom: 1.5rem;
}

.auth-container button[type="submit"] {
  width: 100%;
  margin-top: 1rem;
}

.auth-container p {
  text-align: center;
}

/* Dashboard styles */
.dashboard-container {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
}

.dashboard-container h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.wallet-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .wallet-info {
    grid-template-columns: 1fr;
  }
}

.info-card {
  padding: 1.5rem;
  background-color: var(--light-bg);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.info-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.address {
  word-break: break-all;
  font-family: monospace;
  background-color: #f0f0f0;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.balance {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.transaction-form {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--light-bg);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.transaction-form h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.error {
  background-color: #ffebee;
  color: var(--error-color);
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.success {
  background-color: #e8f5e9;
  color: var(--success-color);
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

#root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}
