/* ===== Routine Timer Overlay ===== */
.routine-bar {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.routine-title {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.routine-time-remaining {
  font-size: 14px;
  font-weight: 600;
}

.routine-time-remaining.on-track {
  color: #4caf50;
}

.routine-time-remaining.hurry {
  color: #ff9800;
}

.routine-time-remaining.late {
  color: #f44336;
}

/* ===== Progress Track ===== */
.routine-track {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 24px 0 8px 0;
}

.routine-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 4px;
  transition: width 1s linear, background 0.5s;
}

.routine-fill.on-track {
  background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.routine-fill.hurry {
  background: linear-gradient(90deg, #ff9800, #ffa726);
}

.routine-fill.late {
  background: linear-gradient(90deg, #f44336, #ef5350);
}

/* ===== Milestones ===== */
.routine-milestones {
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 48px;
  pointer-events: none;
}

.routine-milestone {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.routine-milestone-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

.routine-milestone-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  position: absolute;
  top: 36px;
}

.routine-milestone.passed .routine-milestone-icon {
  opacity: 0.4;
}

/* ===== Start/End markers ===== */
.routine-time-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.routine-time-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}
