/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, #a78bfa, #38bdf8);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding: 2rem;
  transition: background 0.5s ease;
}

.container {
  max-width: 500px;
  width: 100%;
  padding: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Breathing Animation */
.breath-circle {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin: 2rem auto;
  transition: transform 4s ease-in-out;
}

.message {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Buttons */
button, .nav-link {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  background: white;
  color: #4f46e5;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  margin: 0.5rem 0;
  transition: background 0.3s;
  text-decoration: none;
  display: inline-block;
}

button:hover, .nav-link:hover {
  background: #f0f0ff;
}

textarea {
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  resize: vertical;
  margin-bottom: 1rem;
}

textarea::placeholder {
  color: #999;
}

/* Navigation Buttons */
.nav-buttons {
  display: flex;
  justify-content: space-around;
  margin: 2rem 0 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-link {
  font-weight: bold;
  background: rgba(255, 255, 255, 0.2);
}

/* Streak Tracker */
.streak {
  margin: 1rem 0;
  font-size: 1rem;
}

/* Theme Selector */
.themes {
  margin: 1rem 0;
}

select {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 25px;
  border: none;
  margin-top: 0.5rem;
}

/* Group Reset Section */
.group-reset {
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* Affirmations */
.affirmation, #voiceStatus {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}

#savedMessage {
  font-size: 0.9rem;
  color: #bbf7d0;
  margin-bottom: 1rem;
}

/* Floating Widget */
.floating-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4f46e5;
  color: white;
  padding: 10px 16px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 999;
  transition: transform 0.3s ease;
}

.floating-widget:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .nav-buttons {
    flex-direction: column;
    align-items: center;
  }

  .floating-widget {
    font-size: 0.85rem;
    padding: 8px 14px;
  }
}
