.unit-converter {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--glow);
  max-width: 500px;
  width: 90%;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  transition: transform 0.3s ease;
}

.unit-converter h2 {
  font-size: 1.8rem;
  color: var(--accent);
  text-shadow: var(--glow);
}

.unit-converter input,
.unit-converter select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: #1c1c1c;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  box-shadow: inset 0 0 5px rgba(0, 188, 212, 0.2);
}

.unit-converter button {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.unit-converter button:hover {
  background: var(--hover);
}

.unit-converter p {
  font-size: 1.2rem;
  color: var(--text);
  margin-top: 0.5rem;
  word-break: break-word;
}

.back-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: var(--accent);
  color: #000;
  box-shadow: var(--glow);
}

.unit-converter {
  max-width: 400px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.unit-converter input,
.unit-converter select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: #1c1c1c;
  color: var(--text, #fff);
  font-size: 1rem;
  outline: none;
  box-shadow: inset 0 0 5px rgba(0, 188, 212, 0.2);
}

.result {
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
}

.result {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  line-height: 1.4;
  min-height: 3.5em;
}

