/* GLOBAL */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #0f172a;
  color: white;
}

/* Header */
header {
  text-align: center;
  padding: 20px;
  background: #1e293b;
}

/* Nav */
nav a {
  color: #38bdf8;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

nav a:hover {
  color: #7dd3fc;
}

/* Layout */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Card */
.card {
  position: relative;
  background: #1e293b;
  padding: 20px;
  padding-bottom: 60px;
  border-radius: 10px;
}

/* Inputs */
input {
  width: 30%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 6px;
  border: none;
}

input:focus {
  outline: none;
  box-shadow: 0 0 5px #38bdf8;
}

/* Clear Button */
.clear-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: #ef4444;
  color: white;
  padding: 8px 12px;
  font-size: 12px;
}

.clear-btn:hover {
  background: #dc2626;
}

/* Result */
.result {
  margin: 15px auto 0;
  padding: 8px 12px;
  font-size: 14px;
  width: fit-content;
  min-width: 150px;
  max-width: 80%;

  font-weight: 600;
  color: #22c55e;
  background: #022c22;
  border: 1px solid #22c55e;
  border-radius: 6px;
  text-align: center;

  opacity: 0;
  transform: translateY(10px);
  transition: 0.4s;
}

.result.show {
  opacity: 1;
  transform: translateY(0);
}

.result.error {
  color: #ef4444;
  border-color: #ef4444;
  background: #2b0b0b;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background: #1e293b;
}

/* Mobile */
@media (max-width: 600px) {
  input {
    width: 100%;
  }
}