* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #0f172a; /* dark background */
  color: #e5e7eb;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

/* MAIN LAYOUT */
#main {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* left input | right output */
  gap: 20px;
  max-width: 900px;
  margin: auto;
  align-items: start; 
}

/* LEFT SIDE */
#first {
  background: #020617;
  padding: 20px;
  border-radius: 10px;
  height: 320px;  
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
   
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: none;
  outline: none;
}

button {
  padding: 10px 16px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

/* RIGHT SIDE (OUTPUT) */
#second {
  background: #020617;
  padding: 20px;
  border-radius: 10px;

  max-height: 320px;   
  overflow-y: auto;  
}

/* TASK CARD */
#second div {
  background: #020617;
  border: 1px solid #1e293b;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 12px;
  
}

#second h3 {
  margin-bottom: 6px;
  color: #38bdf8;
}

#second p {
  margin-bottom: 10px;
  color: #cbd5f5;
}

#second button {
  background: #dc2626;
}

#second button:hover {
  background: #b91c1c;
}

/* RESPONSIVE (mobile) */
@media (max-width: 768px) {
  #main {
    grid-template-columns: 1fr;
  }
}
