/* ── EXERCISE PLANNER STYLES ── */
.exercise-fab {
  position: fixed;
  bottom: calc(85px + env(safe-area-inset-bottom, 0px)); /* Right above bottom tab bar */
  right: 1.5rem;
  background: var(--accent-orange-grad);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
  cursor: pointer;
  z-index: 950;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.exercise-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.55);
}

.exercise-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.15rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 0.85rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.exercise-item-row:hover {
  transform: translateX(4px);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.exercise-item-row.completed {
  opacity: 0.75;
  border-color: var(--success-color);
  background-color: rgba(16, 185, 129, 0.03);
  box-shadow: none;
}

.exercise-item-row.completed .exercise-title {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.exercise-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.exercise-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-primary);
  transition: color 0.2s;
}

.exercise-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.exercise-checkbox-btn {
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.85rem;
  outline: none;
}

.exercise-checkbox-btn:hover {
  border-color: var(--success-color);
  background: rgba(16, 185, 129, 0.1);
}

.exercise-checkbox-btn.checked {
  background: var(--success-color);
  border-color: var(--success-color);
  color: #fff;
  transform: scale(1.1);
}

/* ── EXERCISE AI CHATBOX OVERRIDES ── */
#exercise-chat-modal .diet-chat-modal-content {
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -8px 32px rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.2);
}

#exercise-chat-modal .chat-modal-header {
  border-bottom: 1px solid rgba(249, 115, 22, 0.15);
  background: rgba(249, 115, 22, 0.03);
}

#exercise-chat-modal .chat-modal-header h3 {
  color: #f97316;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
}

#exercise-chat-modal .chat-modal-header h3::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--success-color);
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}

#exercise-chat-modal .chip-btn {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#exercise-chat-modal .chip-btn:hover {
  border-color: #f97316;
  background-color: rgba(249, 115, 22, 0.08);
  color: #ea580c;
  transform: translateY(-1px);
}

#exercise-chat-modal .message-bubble.user {
  background: var(--accent-orange-grad);
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

#exercise-chat-modal .message-bubble.bot {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-left: 3px solid #f97316;
  border-bottom-left-radius: 4px;
}

#exercise-chat-modal .chat-composer-row {
  border-top: 1px solid rgba(249, 115, 22, 0.15);
  background: var(--card-bg);
  padding: 0.9rem 1.25rem;
}

#exercise-chat-input {
  border-radius: 14px;
  border: 1.5px solid var(--border-color);
  padding: 0.75rem 1.15rem;
  font-size: 0.92rem;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

#exercise-chat-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}
