/* ============================================================
   CINEMATIC LP — Sistema 3D: Floating Cards, Perspective
   ============================================================ */

/* --- CENA 3D --- */
.scene-3d {
  perspective: 1400px;
  perspective-origin: 50% 45%;
  width: 100%;
  height: 100%;
  position: relative;
}

/* --- CARD FLUTUANTE PRINCIPAL --- */
.floating-main {
  width: 340px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  animation: float-main 10s ease-in-out infinite;
  will-change: transform;
  z-index: 2;
  transition: box-shadow 0.4s ease;
}

.floating-main.is-tilting {
  animation-play-state: paused;
}

@keyframes float-main {
  0%   { transform: translate(-50%, -50%) rotateX(4deg) rotateY(-6deg) translateY(0px); }
  25%  { transform: translate(-50%, -50%) rotateX(2deg) rotateY(-9deg) translateY(-14px); }
  50%  { transform: translate(-50%, -50%) rotateX(6deg) rotateY(-4deg) translateY(-8px); }
  75%  { transform: translate(-50%, -50%) rotateX(3deg) rotateY(-7deg) translateY(-18px); }
  100% { transform: translate(-50%, -50%) rotateX(4deg) rotateY(-6deg) translateY(0px); }
}

/* --- MINI CARDS FLUTUANTES --- */

/* Card de foco — topo direito */
.floating-mini-1 {
  position: absolute;
  top: 8%;
  right: 2%;
  z-index: 3;
  animation: float-m1 7s ease-in-out infinite;
  animation-delay: -2s;
}

/* Pill de abas — baixo esquerdo */
.floating-mini-2 {
  position: absolute;
  bottom: 16%;
  left: 0%;
  z-index: 3;
  animation: float-m2 8s ease-in-out infinite;
  animation-delay: -5s;
}

/* Card de stat — baixo direito */
.floating-mini-3 {
  position: absolute;
  bottom: 5%;
  right: 4%;
  z-index: 3;
  animation: float-m3 6s ease-in-out infinite;
  animation-delay: -1s;
}

@keyframes float-m1 {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-10px) rotate(1deg); }
}

@keyframes float-m2 {
  0%, 100% { transform: translateY(0px) rotate(2deg); }
  50%       { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes float-m3 {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-12px) rotate(2deg); }
}

/* --- CONTEÚDO DO DASHBOARD --- */
.dash-window {
  padding: 0;
  width: 100%;
}

/* Titlebar estilo macOS */
.dash-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.dash-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dash-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dash-dots span:nth-child(1) { background: #ff5f57; }
.dash-dots span:nth-child(2) { background: #febc2e; }
.dash-dots span:nth-child(3) { background: #28c840; }

.dash-title-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  flex: 1;
}

.dash-mode-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--glow-red);
  background: rgba(176, 88, 64, 0.14);
  border: 1px solid rgba(176, 88, 64, 0.28);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* Progresso do dia */
.dash-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.dash-progress-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  width: 24px;
  flex-shrink: 0;
}

.dash-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  width: 64%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--glow-primary), var(--glow-secondary));
}

.dash-progress-pct {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* Lista de tarefas */
.dash-tasks {
  padding: 10px 0 4px;
}

.dash-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  transition: background 0.2s;
}

.task-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}

.dash-task--done .task-icon {
  background: rgba(107, 122, 80, 0.18);
  color: var(--glow-green);
  border: 1px solid rgba(107, 122, 80, 0.35);
}

.dash-task--stuck .task-icon {
  background: rgba(138, 90, 62, 0.14);
  color: var(--glow-amber);
  border: 1px solid rgba(138, 90, 62, 0.30);
  font-size: 11px;
}

.dash-task--proc .task-icon {
  background: rgba(154, 96, 64, 0.14);
  color: var(--glow-orange);
  border: 1px solid rgba(154, 96, 64, 0.30);
  font-size: 11px;
}

.task-text {
  font-size: 12px;
  font-weight: 400;
  flex: 1;
  line-height: 1;
}

.dash-task--done .task-text {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.15);
}

.dash-task--stuck .task-text,
.dash-task--proc .task-text {
  color: var(--ink);
}

.task-chip {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.chip--stuck {
  background: rgba(138, 90, 62, 0.14);
  color: var(--glow-amber);
  border: 1px solid rgba(138, 90, 62, 0.28);
}

.chip--proc {
  background: rgba(154, 96, 64, 0.14);
  color: var(--glow-orange);
  border: 1px solid rgba(154, 96, 64, 0.28);
}

.chip--over {
  background: rgba(176, 88, 64, 0.14);
  color: var(--glow-red);
  border: 1px solid rgba(176, 88, 64, 0.28);
}

/* Linha de urgências */
.dash-surge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 10px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4px;
}

.surge-icon {
  font-size: 12px;
}

.surge-text {
  font-size: 11px;
  color: var(--ink-muted);
  flex: 1;
}

/* Barra de energia */
.dash-energy {
  padding: 10px 18px 14px;
  border-top: 1px solid var(--border-subtle);
}

.energy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.energy-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.energy-pct {
  font-size: 10px;
  font-weight: 700;
  color: var(--glow-red);
}

.energy-track {
  height: 5px;
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.energy-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  width: 100%;
  background: linear-gradient(90deg, var(--glow-green), var(--glow-amber), var(--glow-red));
  animation: energy-deplete 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

@keyframes energy-deplete {
  from { width: 100%; }
  to   { width: 22%; }
}

/* --- MINI CARD: FOCO --- */
.mini-focus-card {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 160px;
}

.focus-ring-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.focus-ring-wrap svg {
  transform: rotate(-90deg);
}

.focus-ring-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--glow-sky);
}

.mini-focus-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-focus-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}

.mini-focus-desc {
  font-size: 10px;
  color: var(--ink-subtle);
  line-height: 1.3;
}

/* --- MINI PILL: ABAS --- */
.mini-pill-card {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.mini-pill-card span {
  font-size: 12px;
  color: var(--ink-muted);
}

.mini-pill-card .mini-pill-emoji {
  font-size: 14px;
}

/* --- MINI CARD: STAT --- */
.mini-stat-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 120px;
  text-align: center;
}

.mini-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--glow-red);
  letter-spacing: -0.04em;
  line-height: 1;
}

.mini-stat-desc {
  font-size: 10px;
  color: var(--ink-subtle);
  line-height: 1.3;
}
