/* ─── Habits / Water Tracker Specific Styles ────────────────────────── */

/* ─── Animated Water Glass ────────────────────────────────────────────── */

.glass-visual {
  position: relative;
  width: 180px;
  height: 240px;
  margin: 2rem auto;
}

.glass-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

/* Add a glass "lip" or reflection */
.glass-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 2px;
  height: 80%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
  z-index: 5;
}

.water-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%; /* Dynamic */
  background: #38bdf8;
  transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.waves {
  position: absolute;
  top: -38px;
  left: 0;
  width: 100%;
  height: 40px;
  min-height: 40px;
}

/* Animation */
.parallax > use {
  animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}

.count-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  font-size: 1.6rem; /* Slightly smaller to fit width */
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  white-space: nowrap; /* Prevent breaking into multiple lines */
  pointer-events: none; /* Don't interfere with clicks on the glass if any */
}

.notif-hint {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(200, 240, 96, 0.05);
  padding: 8px 16px;
  border-radius: 100px;
  display: inline-block;
  border: 1px solid rgba(200, 240, 96, 0.1);
}

.btn-water-add {
  background: linear-gradient(135deg, #38bdf8 0%, #1d4ed8 100%);
  color: white;
  border: none;
  padding: 1.1rem 2rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease;
  font-family: var(--font-mono);
}

.btn-water-add:active {
  transform: scale(0.95);
  filter: brightness(1.1);
}

.btn-water-add.splash {
  animation: splash 0.5s ease-out;
}

@keyframes splash {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6); }
  100% { box-shadow: 0 0 0 30px rgba(56, 189, 248, 0); }
}

/* ─── Water Actions (Add/Subtract) ────────────────────────────────────── */

.water-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.btn-water-action.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  min-width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 18px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-water-action.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-water-add {
  flex: 1;
}
