/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #e6f7ff, #f0f9ff);
  color: #333;
  line-height: 1.6;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  max-width: 600px;
  width: 100%;
  background: white;
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  border: 1px solid #e0f2ff;
}

header {
  background: linear-gradient(135deg, #6a994e, #4b7c5d);
  color: white;
  text-align: center;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "🧘";
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.6;
}

header h1 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  font-style: italic;
  margin-top: 10px;
}

main {
  padding: 36px;
  background: #fbfcfd;
}

.checkin h2 {
  text-align: center;
  margin-bottom: 28px;
  color: #4b7c5d;
  font-size: 1.4rem;
  font-weight: 500;
}

.mood-buttons {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  justify-content: center;
}

.mood-btn {
  font-size: 1.5rem;
  padding: 16px 24px;
  border: none;
  border-radius: 16px;
  background-color: #f0f7ff;
  color: #333;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 90px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.mood-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  background-color: #e0f2ff;
}

.mood-btn.selected {
  background-color: #6a994e;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(106, 153, 78, 0.3);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  background-color: #6a994e;
  color: white;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(106, 153, 78, 0.2);
}

.submit-btn:hover {
  background-color: #5a8840;
  transform: translateY(-2px);
}

.results, .trends {
  margin-top: 32px;
  padding: 28px;
  background-color: #f8fdf8;
  border-radius: 16px;
  border-left: 4px solid #6a994e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.hidden {
  display: none;
}

.mood-display {
  font-size: 2.5rem;
  text-align: center;
  margin: 20px 0;
  font-weight: 700;
  color: #4b7c5d;
  letter-spacing: -1px;
}

#tipText {
  font-style: italic;
  color: #555;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.btn {
  background-color: #6a994e;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #5a8840;
  transform: translateY(-1px);
}

.trend-chart {
  margin-top: 15px;
  border-radius: 12px;
  background: white;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

footer {
  text-align: center;
  padding: 24px;
  background-color: #f0f7ff;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #e0f2ff;
}

footer p {
  font-style: italic;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 500px) {
  .container {
    border-radius: 20px;
    margin: 10px;
  }

  header {
    padding: 40px 15px;
  }

  header h1 {
    font-size: 2.1rem;
  }

  .mood-buttons {
    gap: 10px;
  }

  .mood-btn {
    font-size: 1.3rem;
    padding: 14px 18px;
  }

  main {
    padding: 24px;
  }

  .submit-btn {
    padding: 14px;
  }
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 0.6s ease-out;
}