/* ==========================================================================
   LightFocus — estrelando Miss Minutos
   Estética: Yoga / Cloud Minimalist / Liquid Glass Light
   ========================================================================== */

:root {
  --bg-sky-top: #f4f8ff;
  --bg-sky-mid: #eef4fc;
  --bg-sky-bottom: #fdf8f4;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --surface-glass-strong: rgba(255, 255, 255, 0.93);
  --surface-border: rgba(255, 255, 255, 0.95);
  --surface-border-subtle: rgba(148, 163, 184, 0.18);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --mm-orange: #f97316;
  --mm-orange-soft: #ffedd5;
  --mm-orange-dark: #c2410c;
  --zen-blue: #38bdf8;
  --zen-blue-deep: #0284c7;
  --zen-blue-soft: #e0f2fe;
  --zen-yellow: #facc15;
  --zen-red: #f87171;
  --zen-green: #10b981;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 9999px;
  --shadow-cloud: 0 24px 60px -15px rgba(30, 64, 175, 0.07),
                  0 8px 24px -6px rgba(15, 23, 42, 0.04),
                  inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
  --shadow-float: 0 14px 34px -8px rgba(15, 23, 42, 0.08),
                  0 4px 12px -3px rgba(15, 23, 42, 0.04);
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: linear-gradient(160deg, var(--bg-sky-top) 0%, var(--bg-sky-mid) 52%, var(--bg-sky-bottom) 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Fundo Etéreo (Nuvens / Orbs de Respiração Yoga)
   ========================================================================== */
.ambient-clouds {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cloud-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0.55;
  animation: yogaBreathe 16s ease-in-out infinite alternate;
}

.cloud-orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.65) 0%, rgba(186, 230, 253, 0) 70%);
  top: -120px;
  left: -100px;
}

.cloud-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(254, 215, 170, 0.52) 0%, rgba(254, 215, 170, 0) 70%);
  bottom: -180px;
  right: -120px;
  animation-delay: -5s;
}

.cloud-orb-3 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(224, 242, 254, 0.7) 0%, rgba(224, 242, 254, 0) 70%);
  top: 35%;
  left: 42%;
  animation-delay: -9s;
}

@keyframes yogaBreathe {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(24px, -20px) scale(1.09);
  }
}

/* ==========================================================================
   Modo "Presta Atenção" — Pulso Luminoso Azul Suave (Full Screen)
   Ideal para gravação de vídeo sem som!
   ========================================================================== */
.attention-light-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.14) 0%, rgba(56, 189, 248, 0.34) 100%);
  box-shadow: inset 0 0 110px 38px rgba(56, 189, 248, 0.45);
  transition: opacity 0.6s ease;
}

.attention-light-overlay.pulsing {
  animation: gentleBluePulse 4.2s ease-in-out forwards;
}

@keyframes gentleBluePulse {
  0% {
    opacity: 0;
  }
  28% {
    opacity: 1;
  }
  52% {
    opacity: 0.35;
  }
  76% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
  }
}

.attention-toast-pill {
  position: fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  background: rgba(240, 249, 255, 0.95);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  color: #0369a1;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.18);
  z-index: 910;
  opacity: 0;
  pointer-events: none;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.attention-toast-pill.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Canvas de Partículas para Animação de Tarefa Subindo */
#particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 800;
}

/* ==========================================================================
   Splash Screen de Entrada ("LightFocus — estrelando Miss Minutos")
   ========================================================================== */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(155deg, rgba(244, 248, 255, 0.96) 0%, rgba(238, 246, 255, 0.96) 50%, rgba(255, 248, 241, 0.96) 100%);
  backdrop-filter: blur(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.7s;
}

.splash-screen.hidden {
  opacity: 0;
  transform: scale(1.04) translateY(-18px);
  visibility: hidden;
  pointer-events: none;
}

.splash-card {
  max-width: 560px;
  width: 100%;
  background: var(--surface-glass-strong);
  border: 1.5px solid var(--surface-border);
  border-radius: 40px;
  padding: 44px 40px 38px;
  text-align: center;
  box-shadow: var(--shadow-cloud);
  position: relative;
}

.splash-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(249, 115, 22, 0.1);
  color: var(--mm-orange-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.splash-avatar-stage {
  width: 156px;
  height: 156px;
  margin: 0 auto 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-avatar-glow {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.26) 0%, rgba(249, 115, 22, 0) 72%);
  animation: yogaBreathe 4s ease-in-out infinite alternate;
}

.splash-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 4px;
}

.splash-subtitle {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--mm-orange);
  margin-bottom: 18px;
}

.splash-welcome-bubble {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  padding: 16px 20px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 26px;
}

.splash-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 28px;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 55%, #38bdf8 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1.06rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px -6px rgba(249, 115, 22, 0.38);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.splash-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -6px rgba(249, 115, 22, 0.48);
}

.splash-meta-hint {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Layout Principal (Header + Centro Zen + Barra Lateral Miss Minutos)
   ========================================================================== */
.app-shell {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 28px 24px;
  max-width: 1440px;
  margin: 0 auto;
}

/* Top Bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  padding: 8px 18px 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-float);
}

.brand-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #fb923c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.brand-star {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mm-orange);
  padding-left: 8px;
  border-left: 1px solid rgba(148, 163, 184, 0.3);
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.glass-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-float);
  transition: all 0.2s ease;
}

.glass-pill-btn:hover {
  background: var(--surface-glass-strong);
  transform: translateY(-1px);
}

.glass-pill-btn.active-mode {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(240, 249, 255, 0.9);
  color: #0369a1;
}

.attention-countdown-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
}

/* ==========================================================================
   Palco Central + Barra Lateral Gamificada
   ========================================================================== */
.main-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: center;
  margin: 18px 0;
}

@media (max-width: 980px) {
  .main-workspace {
    grid-template-columns: 1fr;
  }
}

.zen-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Card de Tarefa Única */
.single-task-card {
  width: 100%;
  max-width: 740px;
  background: var(--surface-glass);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 38px 42px 34px;
  box-shadow: var(--shadow-cloud);
  position: relative;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s ease,
              box-shadow 0.4s ease;
}

.single-task-card.timer-running {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 26px 68px -12px rgba(14, 165, 233, 0.16),
              0 0 0 4px rgba(56, 189, 248, 0.1),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.95);
}

/* Animação da Tarefa se Desfazendo e Subindo Suavemente para Cima */
.single-task-card.task-completing-float-up {
  animation: taskDissolveFloatUp 0.92s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}

@keyframes taskDissolveFloatUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px) brightness(1);
  }
  30% {
    opacity: 0.92;
    transform: translateY(-22px) scale(1.015);
    filter: blur(1px) brightness(1.06);
    box-shadow: 0 30px 80px rgba(56, 189, 248, 0.32);
  }
  100% {
    opacity: 0;
    transform: translateY(-115px) scale(0.9);
    filter: blur(14px) brightness(1.15);
  }
}

/* Entrada Suave da Próxima Tarefa */
.single-task-card.task-entering-zen {
  animation: taskEnterZen 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes taskEnterZen {
  0% {
    opacity: 0;
    transform: translateY(38px) scale(0.96);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

/* Metadados no topo da tarefa */
.task-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.task-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-order {
  background: rgba(249, 115, 22, 0.12);
  color: var(--mm-orange-dark);
}

.badge-recurring {
  background: rgba(56, 189, 248, 0.13);
  color: #0369a1;
}

.badge-estimate {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.badge-avg {
  background: rgba(139, 92, 246, 0.12);
  color: #6d28d9;
}

/* Título da Tarefa */
.task-title {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-bottom: 16px;
  word-break: break-word;
}

.task-title a {
  color: var(--zen-blue-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Descrição / Notas da Tarefa */
.task-description-box {
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  padding: 16px 20px;
  margin-bottom: 20px;
  max-height: 210px;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.task-description-box a {
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(2, 132, 199, 0.45);
}

.task-description-box a:hover {
  border-bottom-style: solid;
}

/* Subtarefas */
.subtasks-box {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  padding: 14px 18px;
  margin-bottom: 22px;
}

.subtasks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.subtasks-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 165px;
  overflow-y: auto;
  padding-right: 4px;
}

.subtask-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: opacity 0.2s ease;
}

.subtask-item.done {
  opacity: 0.5;
  text-decoration: line-through;
}

/* ==========================================================================
   Cronômetro Zen & Controles de Ação da Tarefa
   ========================================================================== */
.timer-zen-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0 26px;
  padding: 20px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(248, 250, 252, 0.65) 100%);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.timer-display-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.timer-digits {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 4.5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  transition: color 0.3s ease;
}

.timer-digits.running {
  color: #0284c7;
}

.timer-status-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-secondary);
}

.timer-status-pill.running {
  background: rgba(56, 189, 248, 0.18);
  color: #0369a1;
  animation: pulseSoft 2s infinite;
}

@keyframes pulseSoft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.timer-progress-track {
  width: 100%;
  max-width: 340px;
  height: 6px;
  background: rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-pill);
  margin-top: 10px;
  overflow: hidden;
}

.timer-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #f97316);
  border-radius: var(--radius-pill);
  transition: width 0.5s ease;
}

/* Botões Principais (Play no Cronômetro + Concluir com ou sem tempo) */
.task-primary-actions {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 14px;
  width: 100%;
}

@media (max-width: 600px) {
  .task-primary-actions {
    grid-template-columns: 1fr;
  }
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 16px 22px;
  border-radius: 24px;
  border: none;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-btn-main {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.02rem;
  font-weight: 700;
}

.action-btn-sub {
  font-size: 0.73rem;
  font-weight: 500;
  opacity: 0.84;
}

.btn-play-timer {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid rgba(148, 163, 184, 0.32);
  box-shadow: var(--shadow-float);
}

.btn-play-timer:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.btn-play-timer.is-running {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0369a1;
  border-color: #38bdf8;
}

.btn-complete-task {
  background: linear-gradient(135deg, #10b981 0%, #059669 55%, #0ea5e9 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px -6px rgba(16, 185, 129, 0.36);
}

.btn-complete-task:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 36px -6px rgba(16, 185, 129, 0.46);
}

/* Navegação discreta no rodapé do card */
.task-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.nav-link-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link-btn:hover:not(:disabled) {
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-primary);
}

.nav-link-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ==========================================================================
   Barra Lateral Gamificada da Miss Minutos
   Vermelho (base, 0%) -> Amarelo (meio, 50%) -> Azul Suave (topo, 100%)
   ========================================================================== */
.miss-minutes-sidebar {
  background: var(--surface-glass);
  backdrop-filter: blur(24px);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  box-shadow: var(--shadow-cloud);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 540px;
  position: relative;
}

.mm-sidebar-header {
  text-align: center;
  margin-bottom: 12px;
}

.mm-sidebar-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mm-orange-dark);
}

.mm-sidebar-stats {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 3px;
}

/* Balão de Fala da Miss Minutos */
.mm-speech-bubble {
  background: #ffffff;
  border: 1.5px solid rgba(249, 115, 22, 0.28);
  border-radius: 20px;
  padding: 12px 14px;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.08);
  margin-bottom: 16px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.mm-speech-bubble.celebrating {
  transform: scale(1.04);
  border-color: #38bdf8;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

/* Container da Barra Vertical Gamificada */
.mm-progress-arena {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  padding: 28px 0 28px;
  position: relative;
  min-height: 310px;
}

.mm-zone-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
  padding: 4px 0;
}

.zone-tag-blue { color: #0284c7; }
.zone-tag-yellow { color: #d97706; }
.zone-tag-red { color: #dc2626; }

/* Trilho Vertical (Vermelho na base -> Amarelo no meio -> Azul suave no topo) */
.mm-vertical-track {
  width: 26px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    to top,
    #ef4444 0%,
    #fb923c 25%,
    #facc15 52%,
    #7dd3fc 82%,
    #38bdf8 100%
  );
  position: relative;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.18),
              0 0 20px rgba(56, 189, 248, 0.18);
  border: 3px solid #ffffff;
}

/* Marcador da Miss Minutos que sobe pela barra */
.mm-climber-marker {
  position: absolute;
  left: 50%;
  bottom: 0%;
  transform: translate(-50%, 50%);
  width: 96px;
  height: 96px;
  transition: bottom 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 20;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.16));
  cursor: pointer;
}

.mm-climber-marker.celebrate-jump {
  animation: missMinutesCelebrate 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes missMinutesCelebrate {
  0% { transform: translate(-50%, 50%) scale(1) rotate(0deg); }
  25% { transform: translate(-50%, 34%) scale(1.18) rotate(-8deg); }
  55% { transform: translate(-50%, 38%) scale(1.15) rotate(8deg); }
  80% { transform: translate(-50%, 46%) scale(1.06) rotate(-3deg); }
  100% { transform: translate(-50%, 50%) scale(1) rotate(0deg); }
}

.mm-mood-pill {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  margin-top: 8px;
}

.mm-mood-pill.mood-red {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.mm-mood-pill.mood-yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.mm-mood-pill.mood-blue {
  background: rgba(56, 189, 248, 0.18);
  color: #0369a1;
}

/* ==========================================================================
   Rodapé: Player Lo-Fi no Cantinho + Resumo Rápido
   ========================================================================== */
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lofi-corner-player {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border: 1.5px solid var(--surface-border);
  border-radius: 26px;
  padding: 10px 18px 10px 12px;
  box-shadow: var(--shadow-float);
}

.lofi-disc-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.lofi-disc-btn.playing {
  background: linear-gradient(135deg, #f97316 0%, #0ea5e9 100%);
}

.lofi-disc-btn:hover {
  transform: scale(1.06);
}

.lofi-info {
  display: flex;
  flex-direction: column;
  min-width: 170px;
}

.lofi-station-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lofi-station-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.lofi-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lofi-mini-btn {
  background: rgba(148, 163, 184, 0.14);
  border: none;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.lofi-mini-btn:hover {
  background: rgba(148, 163, 184, 0.25);
  color: var(--text-primary);
}

.lofi-volume-slider {
  width: 72px;
  accent-color: var(--mm-orange);
  cursor: pointer;
}

/* Equalizador Animado Lo-Fi */
.lofi-eq {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.lofi-eq span {
  width: 3px;
  height: 4px;
  background: var(--mm-orange);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.lofi-eq.playing span:nth-child(1) { animation: eqBounce 0.7s infinite ease-in-out; }
.lofi-eq.playing span:nth-child(2) { animation: eqBounce 0.55s infinite ease-in-out 0.15s; }
.lofi-eq.playing span:nth-child(3) { animation: eqBounce 0.8s infinite ease-in-out 0.3s; }

@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* ==========================================================================
   Popovers & Modais Discretos (Presta Atenção, Fila Todoist, Tempos)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background: #ffffff;
  border-radius: 32px;
  max-width: 640px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 30px 32px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f172a;
}

.modal-close-btn {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.attention-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

@media (max-width: 540px) {
  .attention-mode-grid {
    grid-template-columns: 1fr;
  }
}

.mode-option-card {
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 15px 16px;
  cursor: pointer;
  text-align: left;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.mode-option-card:hover {
  border-color: #94a3b8;
}

.mode-option-card.selected {
  border-color: #0ea5e9;
  background: #f0f9ff;
}

.mode-option-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.mode-option-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Lista de Fila do Hoje */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  margin: 14px 0;
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 15px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.queue-item:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.queue-item.current {
  border-color: var(--mm-orange);
  background: #fff7ed;
}

.queue-item.completed {
  opacity: 0.55;
  text-decoration: line-through;
  background: #f0fdf4;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1.5px solid #cbd5e1;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  margin-top: 6px;
}

.small-primary-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.small-secondary-btn {
  background: #e0f2fe;
  color: #0369a1;
  border: none;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}
