/* Modern, clean styles for the Crypto demo */
:root {
  --bg: #0f1724;
  --card: #0b1220;
  --glass: rgba(255, 255, 255, 0.03);
  --accent: #6ee7b7;
  --muted: #9aa4b2;
  --text: #e6eef6;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    Inter,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background: linear-gradient(180deg, var(--bg), #071025 60%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.card {
  width: 100%;
  max-width: 920px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border-radius: var(--radius);
  padding: 24px;
  box-shadow:
    0 8px 30px rgba(2, 6, 23, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

header {
  margin-bottom: 14px;
}
header h1 {
  margin: 0;
  font-size: 1.6rem;
}
.muted {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 0.95rem;
}

.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
label {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
}
textarea,
input[type="text"] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--glass);
  color: var(--text);
  resize: vertical;
  min-height: 48px;
  font-size: 0.95rem;
}
textarea#textinput {
  min-height: 120px;
}
textarea#output {
  min-height: 100px;
  background: rgba(0, 0, 0, 0.15);
}

.keys {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.key-field {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
}
.key-field input {
  flex: 1;
}
.small {
  padding: 8px 10px;
  border-radius: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
}
.small:hover {
  background: rgba(255, 255, 255, 0.04);
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.actions .small-row {
  justify-content: flex-end;
}

button {
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent), #3ee1c4);
  color: #05322a;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.actions .small {
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 8px;
}

@media (max-width: 640px) {
  .keys {
    flex-direction: column;
  }
  .actions {
    flex-direction: column;
  }
}
