/* Hydration Output Display */
.water-outputs {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 550px) {
  .water-outputs {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.water-vis-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Beaker / Glass Container */
.beaker {
  position: relative;
  width: 90px;
  height: 140px;
  border: 4px solid rgba(0, 0, 0, 0.15);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: rgba(0, 0, 0, 0.01);
  overflow: hidden;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.05);
}

.beaker::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.15);
}

.water {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%; /* Dynamic fill */
  background: linear-gradient(180deg, #06b6d4 0%, #3b82f6 100%);
  transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Wave Animation overlay */
.water::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 200%;
  height: 20px;
  background: radial-gradient(circle at 50% 100%, transparent 8px, #06b6d4 9px);
  background-size: 20px 20px;
  animation: wave 2s linear infinite;
}

@keyframes wave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-20px); }
}

/* Floating Bubbles */
.bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  bottom: 0;
  animation: floatUp 3s infinite ease-in;
}

.bubble1 { width: 6px; height: 6px; left: 20%; animation-duration: 2.5s; }
.bubble2 { width: 8px; height: 8px; left: 50%; animation-duration: 3.5s; animation-delay: 1s; }
.bubble3 { width: 5px; height: 5px; left: 75%; animation-duration: 2s; animation-delay: 0.5s; }

@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-100px) scale(0.3); opacity: 0; }
}

.water-text-display {
  display: flex;
  flex-direction: column;
}

.water-val {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.water-unit {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.glasses-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.glasses-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Split Bars */
.split-display {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.split-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
}

.split-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.split-value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
}

/* Schedule Table */
.schedule-section {
  border-top: 1px dashed var(--surface-border);
  padding-top: 1.5rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.schedule-table th, .schedule-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.schedule-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.015);
}

.schedule-table td {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.schedule-table tr:hover td {
  background: rgba(0, 0, 0, 0.015);
}

.drink-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.drink-check input {
  cursor: pointer;
  accent-color: var(--accent);
}
