/* ===== Base Reset ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #eef4ff, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2933;
}

/* ===== Main Card ===== */

.container {
  width: 420px;
  background: white;
  padding: 40px;
  border-radius: 18px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
  animation: fadeIn 0.6s ease;
}

h2 {
  text-align: center;
  margin-bottom: 24px;
  font-weight: 600;
  color: #0f172a;
}

/* ===== Inputs ===== */

input {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #dbe2f0;
  font-size: 15px;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ===== Button ===== */

button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

button:active {
  transform: scale(0.98);
}

/* ===== Result Panel ===== */

pre {
  margin-top: 18px;
  padding: 16px;
  background: #f4f7ff;
  border-radius: 10px;
  font-size: 14px;
  overflow-x: auto;
  border: 1px solid #e0e7ff;
}

/* ===== Animation ===== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
