.goals-container {
  margin-top: 8px;
}

.goal-card {
  background: var(--card-bg);
  border: 0.5px solid var(--border-color);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
  width: 100%;
}

.goal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-right: 32px;
}

.goal-name {
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: text;
  flex: 1;
  word-break: break-word;
}

.delete-goal-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-secondary);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.delete-goal-btn:hover {
  background: var(--mode-struggled);
  color: white;
}

.goal-name-input {
  font-size: 1rem;
  font-weight: 500;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 40px;
  padding: 8px 14px;
  width: 100%;
}

.goal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.timeframe-pill {
  background: var(--bg-secondary);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.priority-badge {
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 500;
}

.priority-high {
  background: var(--priority-high);
  color: #dc2626;
}
.priority-medium {
  background: var(--priority-medium);
  color: #d97706;
}
.priority-low {
  background: var(--priority-low);
  color: #16a34a;
}

.goal-why {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 14px;
  word-break: break-word;
}

.progress-section {
  margin-bottom: 14px;
}

.progress-label {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
}

.progress-bar {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-accent);
  transition: width 0.3s;
}

.mode-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.mode-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 10px 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.1s;
}

.mode-btn:hover {
  background: var(--border-color);
}

.mode-confirmation {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  text-align: center;
  padding: 12px;
  border-radius: 40px;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.max-goals-message {
  background: var(--bg-secondary);
  border-radius: 60px;
  padding: 16px 24px;
  text-align: center;
  color: var(--text-secondary);
  border: 0.5px solid var(--border-color);
  margin: 16px 0;
  font-size: 0.95rem;
  word-break: break-word;
}

.max-goals-message span {
  color: var(--mode-struggled);
  font-weight: 600;
}

.completion-screen {
  text-align: center;
  padding: 40px 16px;
}

.checkmark {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: var(--primary-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
}
