body {
  font-family: sans-serif;
  text-align: center;
  padding: 20px;
  background: #f9f9f9;
  margin: 0;
}

input {
  padding: 8px;
  font-size: 16px;
}

button {
  padding: 8px 16px;
  font-size: 16px;
  background-color: #6c6fcb;
  color: white;
  border: none;
  border-radius: 4px;
  margin-left: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

button:hover {
  background-color: #6c6fcb;
  color: white;
}

#inputContainer {
  margin-top: 10px;
}

.stats {
  font-size: 20px;
  margin-top: 30px;
}

.stats small {
  display: block;
  font-size: 14px;
  color: #555;
  margin: 10px 0;
}

.stats em {
  font-size: 20px;
  font-style: italic;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #4b4b4b;
  line-height: 1.4;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


.legend {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
  font-style: italic;
}

/* Contenedor de la cuadrícula */
.square-grid {
  display: grid;
  justify-content: center;
  margin: 20px auto;
  gap: 1px;
  width: 90vw;
  max-width: 800px;
}

/* Semanas: 52 columnas */
.square-grid.weeks {
  grid-template-columns: repeat(52, 1fr);
}

/* Meses: 24 columnas */
.square-grid.months {
  grid-template-columns: repeat(36, 1fr);
}

/* Cada cuadrado mantiene forma y se adapta al ancho */
.square {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #aaa;
  box-sizing: border-box;
}

.filled {
  background-color: #6c6fcb;
}

#actionButtons button {
  padding: 8px 16px;
  font-size: 14px;
  background-color: #ccc;
  color: #333;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

footer {
  margin-top: 40px;
  font-size: 14px;
  color: #888;
}

#viewMode {
  padding: 6px;
  font-size: 14px;
}

#lifespan-note {
  margin-top: 15px;
  font-size: 12px;
  color: #888;
  font-style: italic;
}

#reflectionText {
  transition: opacity 0.5s ease;
  opacity: 1;
}