* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px 20px;
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #1a1a2e, #0f0f1a 70%);
    background-color: #0f0f1a;
  color: #eee;

  display: flex;
  flex-direction: column;
  align-items: center; /* centers everything */

}

/* Shared width container feel */
h2,
.form-container,
.results {
  width: 100%;
  max-width: 500px;
}

/* Title */
h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 25px;
  color: #c9a9ff;
  text-shadow: 0 0 10px rgba(201, 169, 255, 0.6);
}

/* Form */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Inputs (bigger + cleaner) */
input {
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
  font-size: 1rem;
}

input[type="date"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.form-container input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border-radius: 10px;
}



/* Button */
button {
  margin-top: 10px;
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #7f5af0, #2cb67d);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(127, 90, 240, 0.5);
}

/* Results */
.results {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr; /* single column on mobile */
  gap: 15px;
}

/* Cards */
.box {
  text-align: center;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 15px rgba(127, 90, 240, 0.15);
}

/* Result numbers */
.box span {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
  color: #2cb67d;
}

/* Slightly wider layout on bigger screens */
@media (min-width: 600px) {
  h2,
  .form-container,
  .results {
    max-width: 700px;
  }

  .results {
    grid-template-columns: repeat(2, 1fr);
  }
}


html {
  background: radial-gradient(circle at top, #1a1a2e, #0f0f1a 70%);
}
