/* ===== Dashboard: light theme, rounded buttons, gradients ===== */
html.dashboard-page {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
.dashboard-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #f0f4f8;
  color: #222;
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

.dashboard-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 250, 252, 0.95) 100%
  );
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 100;
}

@media (max-height: 900px) {
  .dashboard-nav {
    height: 44px;
    padding: 0 16px;
  }

  .dashboard-sidebar {
    top: 44px;
  }

  .dashboard-main {
    top: 44px;
  }

  .dashboard-logout-btn {
    padding: 6px 14px;
    font-size: 0.875rem;
  }
}

.dashboard-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  color: #1a73e8;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.dashboard-logo:hover {
  color: #0d65d6;
}

.dashboard-logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.dashboard-logout-btn {
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  background: #c62828;
  color: #fff;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.dashboard-logout-btn:hover {
  background: #b71c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.35);
}

/* ===== Sidebar: user card first, then nav links ===== */
.dashboard-sidebar {
  position: fixed;
  top: 52px;
  left: 0;
  bottom: 0;
  width: 280px;
  padding: 20px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Hide scrollbars visually; scrolling still works with wheel/touch */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dashboard-sidebar::-webkit-scrollbar {
  display: none;
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  min-width: 0;
  overflow: visible; /* allow full card content (buttons) to show; sidebar scrolls */
}

.dashboard-sidebar .dashboard-card.glass-card {
  flex-shrink: 0; /* prevent card from being squished — keeps "Create a Ripple" and Settings visible */
}

.dashboard-card {
  padding: 20px;
  min-width: 0; /* allow shrinking so content doesn't force horizontal overflow */
}

.dashboard-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.dashboard-username {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  word-break: break-all;
}

.dashboard-mood-today {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #444;
}

.dashboard-mood-label {
  display: block;
  margin-bottom: 4px;
  color: #666;
}

.dashboard-mood-emoji {
  font-size: 1.8rem;
  vertical-align: middle;
  margin-right: 6px;
}
.dashboard-mood-emoji img {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  vertical-align: middle;
}

.dashboard-mood-score {
  font-weight: 600;
  color: #222;
}

.dashboard-section-title {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
}

.dashboard-mood-history {
  margin-bottom: 16px;
}

.dashboard-chart-wrap {
  width: 100%;
  max-width: 100%;
  height: 80px;
  position: relative;
  min-width: 0;
}

#mood-history-chart {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 80px;
  border-radius: 12px;
  box-sizing: border-box;
}

/* Tighter sidebar and smaller central emoji when viewport is short or narrow (e.g. 150% Windows scale) */
@media (max-height: 900px), (max-width: 1400px) {
  .dashboard-sidebar {
    width: 240px;
    padding: clamp(10px, 2vh, 16px) 12px;
    gap: clamp(10px, 2vh, 16px);
  }

  .dashboard-main {
    left: 240px;
  }

  .dashboard-card {
    padding: clamp(12px, 2vh, 16px);
  }

  .dashboard-profile {
    gap: 8px;
    margin-bottom: clamp(8px, 1.5vh, 12px);
  }

  .dashboard-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .dashboard-username {
    font-size: 1rem;
  }

  .dashboard-mood-today {
    margin-bottom: clamp(8px, 1.5vh, 12px);
    font-size: 0.875rem;
  }

  .dashboard-mood-emoji {
    font-size: 1.4rem;
  }
  .dashboard-mood-emoji img {
    width: 1.5rem;
    height: 1.5rem;
  }

  .dashboard-section-title {
    margin: 0 0 4px;
    font-size: 0.8rem;
  }

  .dashboard-mood-history {
    margin-bottom: clamp(8px, 1.5vh, 12px);
  }

  .dashboard-chart-wrap,
  #mood-history-chart {
    height: 56px;
  }

  .dashboard-achievements {
    gap: 6px;
    margin-bottom: clamp(10px, 2vh, 14px);
  }

  .dashboard-droplet-badge {
    width: 24px;
    height: 24px;
  }

  .dashboard-badge {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .dashboard-actions {
    gap: 8px;
  }

  .dashboard-btn-primary {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .dashboard-btn-secondary {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .dashboard-btn-feedback {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .dashboard-nav-link {
    padding: 8px 12px;
    font-size: 0.875rem;
  }

  .dashboard-sidebar-nav {
    gap: 6px;
  }
}

.dashboard-chart-labels {
  margin: 4px 0 0;
  font-size: 0.7rem;
  color: #999;
  letter-spacing: 0.2em;
  text-align: center;
}

.dashboard-achievements {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.dashboard-droplet-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.dashboard-badge {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.9) 100%
  );
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
}

.dashboard-badge:hover {
  transform: scale(1.08);
}

.dashboard-badge-heart {
  color: #e53935;
}

.dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-btn-primary {
  width: 100%;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff6b4a 0%, #e53935 100%);
  color: #fff;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.dashboard-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.35);
}

.dashboard-btn-row {
  display: flex;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.dashboard-btn-secondary {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #444;
  text-decoration: none;
  text-align: center;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dashboard-btn-secondary:hover {
  background: linear-gradient(180deg, #f8f9fa 0%, #eef0f2 100%);
  border-color: rgba(0, 0, 0, 0.12);
  color: #222;
  transform: translateY(-1px);
}

.dashboard-btn-feedback {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a73e8 0%, #0d65d6 100%);
  color: #fff;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.25);
}

.dashboard-btn-feedback:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(26, 115, 232, 0.4);
}

/* Nav links below card: rounded button style */
.dashboard-ripple-copy {
  margin: 0;
  padding: 10px 0;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
  flex-shrink: 0;
}

.dashboard-social-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-shrink: 0;
}
.dashboard-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 36px;
  min-width: 48px;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  color: #555;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.9) 100%);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  box-sizing: border-box;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.dashboard-social-btn:hover {
  background: linear-gradient(180deg, #f0f4f8 0%, #e8eef4 100%);
  color: #1a73e8;
  transform: translateY(-1px);
}
.dashboard-social-btn:focus {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}
.dashboard-social-btn-icon {
  flex-shrink: 0;
  width: 48px;
  min-width: 48px;
  height: 36px;
}
.dashboard-social-btn-icon svg {
  display: block;
}

.dashboard-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.dashboard-nav-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  cursor: pointer;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(248, 250, 252, 0.9) 100%
  );
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.dashboard-nav-link:hover {
  background: linear-gradient(180deg, #f0f7ff 0%, #e8f0fe 100%);
  border-color: rgba(26, 115, 232, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.12);
  color: #1a73e8;
}

/* ===== Main: location bar + map (fills) + reasons ===== */
.dashboard-main {
  position: fixed;
  top: 52px;
  left: 280px;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 1;
  background: #f0f4f8;
}

.dashboard-location-bar {
  flex-shrink: 0;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.9) 100%
  );
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
  color: #444;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  box-sizing: border-box;
}
.dashboard-location-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  transform: translateX(-85px);
}

.dashboard-location-label {
  margin-right: 6px;
  color: #666;
}

.dashboard-location-value {
  font-weight: 600;
  color: #222;
}

.dashboard-location-change {
  margin-left: 12px;
}

.dashboard-location-change-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(26, 115, 232, 0.4);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
  color: #1a73e8;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.dashboard-location-change-btn:hover {
  background: linear-gradient(180deg, #e8f0fe 0%, #dae8fc 100%);
  border-color: #1a73e8;
  transform: translateY(-1px);
}

/* Emotional stream viz — main feature, large glassy area */
.dashboard-stream-viz {
  flex: 1;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 48px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 28px;
  margin: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.dashboard-stream-viz .stream-with-notes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 800px;
}
.dashboard-stream-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
  min-height: 450px;
}
.dashboard-stream-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  /* Center stream-top over stream only: add right padding = ticker width so content centers above stream */
  .dashboard-stream-top {
    padding-right: 196px; /* 180px ticker + 16px gap */
    box-sizing: border-box;
  }
}
.dashboard-stream-viz .dashboard-stream-label {
  text-align: center;
  width: 100%;
}
.dashboard-stream-viz .stream-stats {
  width: 100%;
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 10px;
  min-height: 1.4em;
  text-align: center;
}
.dashboard-stream-viz .muude-barometer {
  width: 100%;
  max-width: 520px;
}
.dashboard-stream-ticker-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
  min-height: 450px;
}
@media (min-width: 600px) {
  /* stream-column: label on top, then stream | ticker row (same height) */
  .dashboard-stream-viz .stream-with-notes {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .dashboard-stream-ticker-row {
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
  }
  .dashboard-stream-column {
    flex: 1;
    min-width: 200px;
  }
  .dashboard-stream-viz .dashboard-stream-container {
    flex: 1;
    min-height: 450px;
  }
  .dashboard-stream-viz .notes-ticker-container {
    width: 180px;
    flex-shrink: 0;
    flex-grow: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .dashboard-stream-viz .notes-ticker-container .notes-ticker-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
}
@media (max-width: 599px) {
  .dashboard-stream-viz .dashboard-stream-container {
    min-height: 320px;
    min-width: 0;
    max-width: 100%;
  }
  .dashboard-stream-viz .notes-ticker-container {
    max-height: 220px;
    min-width: 0;
  }
}
.dashboard-modal-solidarity {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 8px;
  min-height: 1.3em;
  font-style: italic;
}
.dashboard-stream-label {
  font-size: 1.05rem;
  color: #444;
  margin: 0 0 24px;
  font-weight: 600;
}
/* Static Muude barometer: green (Good) → red (Not so good) */
.muude-barometer {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 20px;
}
.muude-barometer-bar {
  flex: 1;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(to right, #2DD4A0 0%, #F5B800 35%, #E53935 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.muude-barometer-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}
.muude-barometer-label-left { color: #1a7a5c; }
.muude-barometer-label-right { color: #b71c1c; }
.dashboard-stream-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-height: 380px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 28px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.65);
  transition: box-shadow 0.4s ease, filter 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-stream-container.stream-ripple-active {
  animation: dashboardStreamPulse 1.6s ease-out;
}
@keyframes dashboardStreamPulse {
  0%, 100% { filter: brightness(1); box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 28px rgba(0, 0, 0, 0.06); }
  15% { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 10px 36px rgba(0, 0, 0, 0.08); }
  40% { filter: brightness(1.04); }
  70% { filter: brightness(1.02); }
}
.dashboard-stream-aurora-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}
.dashboard-stream-aurora-wrap #dashboard-stream-aurora {
  width: 100%;
  height: 220px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.dashboard-stream-aurora-wrap .aurora-canvas {
  border-radius: inherit;
}
.dashboard-stream-wave-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 220px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
}
.dashboard-stream-waves {
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity 0.4s ease;
}
.dashboard-stream-wave-fill {
  transition: fill 0.4s ease;
}
.dashboard-stream-wave-fill.wave-pulse {
  animation: dashboardWaveFillPulse 1.5s ease-out;
}
@keyframes dashboardWaveFillPulse {
  0%, 100% { opacity: 1; }
  20% { opacity: 0.92; }
  35% { opacity: 1.05; }
  60% { opacity: 1; }
}
.dashboard-stream-wave-overlay {
  pointer-events: none;
}
/* Continuous left-to-right flow over the wave */
.dashboard-stream-flow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 15%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.1) 85%, transparent 100%);
  background-size: 60% 100%;
  background-repeat: no-repeat;
  animation: dashboardStreamFlow 4s linear infinite;
}
@keyframes dashboardStreamFlow {
  from { background-position: -60% 0; }
  to { background-position: 160% 0; }
}
.dashboard-stream-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.4) 45%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.4) 55%, transparent 100%);
  background-size: 200% 100%;
  animation: dashboardStreamShimmer 1.8s ease-out forwards;
  border-radius: inherit;
}
@keyframes dashboardStreamShimmer {
  0% { background-position: 200% 0; opacity: 1; }
  100% { background-position: -100% 0; opacity: 0; }
}
.dashboard-droplet-splash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 140px;
  margin-left: -70px;
  margin-top: -70px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-droplet-splash-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: dashboardSplashRing 700ms ease-out forwards;
}
.dashboard-droplet-splash-ring.ring-2 { animation-delay: 80ms; animation-duration: 800ms; }
.dashboard-droplet-splash-ring.ring-3 { animation-delay: 160ms; animation-duration: 900ms; }
@keyframes dashboardSplashRing {
  from { transform: scale(0.2); opacity: 0.9; }
  to { transform: scale(4.2); opacity: 0; }
}

/* Wellness button in stream (appears after ripple submission only) */
.dashboard-stream-wellness-btn[hidden] {
  display: none !important;
}
.dashboard-stream-wellness-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a73e8 0%, #0d65d6 100%);
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: streamWellnessFadeIn 0.4s ease-out;
}
.dashboard-stream-wellness-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.45);
  color: #fff;
}
@keyframes streamWellnessFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Sidebar: Muude Today droplet dot */
.dashboard-mood-droplet {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 6px;
}
.dashboard-droplet-dot {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Mood viz: full width and height (legacy container, kept for layout) */
.dashboard-mood-viz {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Mood radiance container – mockup: dark cosmic base, full spread, no clipping ===== */
.mood-radiance-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  border-radius: 32px;
  overflow: visible;
  background: radial-gradient(
    circle at 50% 50%,
    #0f001f 0%,
    #1a0033 55%,
    #0a0018 100%
  );
  will-change: auto;
}

/* Soft ambient glow only (no large solid blocks); heavy blur for dreamy blend */
.radiance-soft {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 380%;
  height: 380%;
  margin-left: -190%;
  margin-top: -190%;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.32;
  filter: blur(100px);
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

#radiance-conic {
  /* Muude palette: Emerald → Gold → Pearl → Periwinkle → Mauve (JS overwrites with city data) */
  background: conic-gradient(
    from 0deg at 50% 50%,
    #9FE3C5 0deg 72deg,
    #F4D06F 72deg 144deg,
    #EDE6DA 144deg 216deg,
    #AFC6E9 216deg 288deg,
    #C58DB3 288deg 360deg
  );
  animation: streamRotate 150s linear infinite;
}

#radiance-radial {
  width: 280%;
  height: 280%;
  margin-left: -140%;
  margin-top: -140%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 235, 200, 0.1) 0%,
    transparent 50%
  );
  animation: streamRotate 180s linear infinite reverse;
}

@keyframes streamRotate {
  from { transform: translateZ(0) rotate(0deg); }
  to { transform: translateZ(0) rotate(360deg); }
}

/* Orbiting emojis around the central smiley (max 3 per mood, built by JS) */
.mood-orbit-particles {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

.mood-orbit-particles .particle {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: clamp(1.2rem, 2.5vw, 2.5rem);
  opacity: 0.7;
  transform: translate(-50%, -50%) rotate(var(--offset))
    translateY(calc(-1 * var(--distance))) rotate(calc(-1 * var(--offset)));
  animation: orbitDrift 28s linear infinite;
  animation-delay: var(--delay);
}

@keyframes orbitDrift {
  0% {
    transform: translate(-50%, -50%) rotate(var(--offset))
      translateY(calc(-1 * var(--distance))) rotate(calc(-1 * var(--offset)))
      scale(0.9);
  }
  100% {
    transform: translate(-50%, -50%) rotate(calc(var(--offset) + 360deg))
      translateY(calc(-1 * var(--distance)))
      rotate(calc(-1 * var(--offset) - 360deg)) scale(0.9);
  }
}

/* Soft glowing orbs – semi-transparent, slow drift, gentle pulse, colored by mood */
.mood-light-balls {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.mood-light-ball {
  position: absolute;
  border-radius: 50%;
  background: var(--ball-color, rgba(255, 255, 255, 0.82));
  box-shadow:
    0 0 10px var(--ball-color, rgba(255, 255, 255, 0.65)),
    0 0 22px var(--ball-color, rgba(255, 255, 255, 0.38)),
    0 0 38px var(--ball-color, rgba(255, 255, 255, 0.18));
  opacity: 0.78;
  animation: ballFloatPulse 17s ease-in-out infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

@keyframes ballFloatPulse {
  0%, 100% {
    transform: translateZ(0) translate(0, 0) scale(1);
    opacity: 0.62;
  }
  33% {
    transform: translateZ(0) translate(2%, -1.5%) scale(1.04);
    opacity: 0.88;
  }
  66% {
    transform: translateZ(0) translate(-1.5%, 2%) scale(0.98);
    opacity: 0.72;
  }
}

/* Central closed-eye smiling sun – breathing glow 15–18s */
.sun-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  transform: translateZ(0);
}

.sun-emoji {
  font-size: clamp(3.5rem, 12vmin, 8rem);
  line-height: 1;
  filter:
    drop-shadow(0 0 38px rgba(255, 218, 145, 0.78))
    drop-shadow(0 0 76px rgba(255, 198, 98, 0.48))
    drop-shadow(0 0 130px rgba(255, 178, 78, 0.28));
  animation: sunBreathing 16s ease-in-out infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, filter;
}

@keyframes sunBreathing {
  0%, 100% {
    transform: translateZ(0) scale(1);
    filter:
      drop-shadow(0 0 34px rgba(255, 218, 145, 0.7))
      drop-shadow(0 0 68px rgba(255, 198, 98, 0.42))
      drop-shadow(0 0 115px rgba(255, 178, 78, 0.22));
  }
  50% {
    transform: translateZ(0) scale(1.07);
    filter:
      drop-shadow(0 0 48px rgba(255, 228, 158, 0.88))
      drop-shadow(0 0 95px rgba(255, 208, 118, 0.55))
      drop-shadow(0 0 150px rgba(255, 188, 88, 0.32));
  }
}

#dashboard-center-mood {
  display: inline-block;
}
#dashboard-center-mood img {
  display: block;
  width: clamp(3.5rem, 12vmin, 8rem);
  height: clamp(3.5rem, 12vmin, 8rem);
  object-fit: contain;
}

.dashboard-reasons {
  flex-shrink: 0;
  padding: 16px 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(248, 250, 252, 0.85) 100%
  );
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
}

.dashboard-reasons-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

.dashboard-reasons-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.dashboard-reason-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.75);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ===== Share Mood modal: light, rounded ===== */
.dashboard-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.dashboard-modal[hidden] {
  display: none;
}

.dashboard-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.dashboard-modal-content {
  position: relative;
  width: 100%;
  max-width: min(380px, 92vw);
  padding: clamp(16px, 4vw, 24px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  animation: dashboard-modal-in 0.25s ease-out;
}

@keyframes dashboard-modal-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dashboard-modal-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
}

.dashboard-droplet-label {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 8px;
  text-align: center;
}

.dashboard-mood-picker.dashboard-droplet-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.dashboard-mood-picker .droplet-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: var(--droplet-color, #ccc);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.dashboard-mood-picker .droplet-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.dashboard-mood-picker .droplet-btn.selected {
  border-color: #1a73e8;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.25);
}

.dashboard-modal-content textarea {
  width: 100%;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #222;
  font-size: 0.95rem;
  resize: none;
  box-sizing: border-box;
}

.dashboard-modal-content textarea::placeholder {
  color: #999;
}

.dashboard-modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.dashboard-modal-buttons .dashboard-btn-primary,
.dashboard-modal-buttons .dashboard-btn-secondary {
  flex: 1;
}

.dashboard-modal-message {
  margin: 12px 0 0;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.4em;
  color: #555;
}

.dashboard-invite-copy {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  text-align: center;
}
.dashboard-invite-field {
  margin-bottom: 16px;
}
.dashboard-invite-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
}
.dashboard-invite-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 1rem;
  box-sizing: border-box;
}

/* ===== Ripple feedback overlay (after creating a ripple) ===== */
.dashboard-ripple-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  z-index: 250;
  padding: 24px;
  text-align: center;
  transition: opacity 0.4s ease;
}
.dashboard-ripple-overlay[hidden] {
  display: none;
}
.dashboard-ripple-overlay-line {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #222;
}
.dashboard-ripple-overlay-line:last-child {
  margin-bottom: 0;
}

/* ===== Onboarding (first login) ===== */
.dashboard-onboarding-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}
.dashboard-onboarding-content {
  position: relative;
  max-width: min(400px, 92vw);
  padding: 28px 24px;
  text-align: center;
}
.dashboard-onboarding-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}
.dashboard-onboarding-body {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}
.dashboard-onboarding-actions {
  margin-bottom: 16px;
}
.dashboard-onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.dashboard-onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.2s;
}
.dashboard-onboarding-dot.active {
  background: #1a73e8;
}

/* ===== Chart: light-theme friendly ===== */
.dashboard-body .dashboard-chart-wrap canvas {
  background: transparent;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .dashboard-sidebar {
    width: 260px;
  }

  .dashboard-main {
    left: 260px;
  }
}

@media (max-width: 700px) {
  .dashboard-sidebar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    top: 52px;
    padding: 12px 12px 20px;
    max-height: 45vh;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
  }

  .dashboard-main {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 55vh;
    padding-top: 0;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .dashboard-nav {
    padding: 0 12px;
  }

  .dashboard-logout-btn {
    padding: 6px 12px;
    font-size: 0.875rem;
  }

  .dashboard-body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
  }

  .dashboard-sidebar .dashboard-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 20px 12px;
  }

  .dashboard-sidebar .dashboard-card > * {
    max-width: 100%;
    min-width: 0;
  }

  .dashboard-ripple-copy {
    display: none;
  }

  .dashboard-mood-viz {
    min-height: 280px;
  }

  /* Mobile: fix cramped/overlapping elements */
  .dashboard-achievements {
    gap: 6px;
    margin-bottom: 14px;
  }

  .dashboard-badge {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .dashboard-btn-row {
    flex-direction: row;
    gap: 8px;
  }

  .dashboard-btn-secondary {
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .dashboard-btn-feedback {
    margin-top: 12px;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .dashboard-social-links {
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
    margin-top: 10px;
  }

  .dashboard-social-btn {
    width: 44px;
    min-width: 44px;
    height: 32px;
    padding: 0;
    font-size: 0.65rem;
  }

  .dashboard-social-btn-icon {
    width: 44px;
    min-width: 44px;
    height: 32px;
  }

  .dashboard-location-inner {
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
  }

  .dashboard-location-bar {
    padding: 10px 12px;
    font-size: 0.9rem;
    min-width: 0;
    overflow-x: hidden;
  }

  .muude-barometer {
    gap: 6px;
    max-width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
  }

  .muude-barometer-label {
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .muude-barometer-label-left {
    flex-shrink: 0;
  }

  .muude-barometer-label-right {
    flex-shrink: 0;
  }

  .dashboard-stream-viz {
    padding: 16px 0 24px;
    margin: 0 12px;
    min-width: 0;
    overflow-x: hidden;
  }

  .dashboard-stream-viz .stream-with-notes {
    min-width: 0;
  }

  .dashboard-stream-viz .dashboard-stream-column {
    min-width: 0;
  }

  .dashboard-stream-viz .dashboard-stream-ticker-row {
    min-width: 0;
  }

  .dashboard-stream-viz .dashboard-stream-container {
    margin-left: auto;
    margin-right: auto;
  }

  .dashboard-stream-viz .dashboard-stream-label {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .dashboard-stream-viz .stream-stats {
    font-size: 0.85rem;
  }

  .dashboard-reasons {
    padding: 12px 12px;
  }

  .dashboard-reasons-title {
    font-size: 0.9rem;
  }

  .dashboard-reason-pill {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

/* Very narrow screens: barometer labels */
@media (max-width: 380px) {
  .muude-barometer-label {
    font-size: 0.65rem;
  }
}
/* ===== Main area: contain content so it doesn't bleed into sidebar ===== */
.dashboard-main {
  overflow-y: auto;
  overflow-x: hidden;
}

.dashboard-mood-viz {
  padding: 0;
  margin: 0;
}

/* Mood radiance – full spread; scale with viewport, not fixed huge size */
.mood-radiance-container {
  min-height: min(400px, 50vh);
}

.sun-core {
  z-index: 10 !important;
}

.sun-emoji {
  font-size: clamp(3.5rem, 12vmin, 8rem) !important;
}
/* === Final balanced fix for full horizontal spread + centered gradients === */

/* Allow main area and viz to grow fully without clipping */
.dashboard-main,
.dashboard-mood-viz {
  width: 100% !important;
  max-width: none !important;
  min-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

