* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #f8fafc;
  color: #333;
  text-align: center;
  padding: 20px;
  line-height: 1.5;
}

/* Title styling */
.title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Main container */
main {
  max-width: 900px;
  margin: auto;
}

/* Input field */
input {
  width: 100%;
  margin-bottom: 2rem;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  border: 1px solid #d0d7e2;
  border-radius: 10px;
  outline: none;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}

input:focus {
  border-color: #4f46e5;
  box-shadow: 0 4px 15px rgba(79,70,229,0.15);
}

input::placeholder {
  color: #888;
}

/* Output grid */
.outputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Output card */
.transformed-output {
  padding: 1.3rem;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  position: relative;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.transformed-output:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Label styling */
.transformed-output label {
  font-size: 0.75rem;
  position: absolute;
  top: -0.6rem;
  left: 1rem;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  color: white;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Text inside output */
.transformed-output span {
  display: block;
  margin-top: 8px;
  font-weight: 500;
  font-size: 1.05rem;
  color: #2b2d42;
  word-break: break-word;
}
