/* Goal Section */
.goal-section {
  margin-top: 2rem;
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.goal-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* Goal Input */
.goal-input-group {
  display: flex;
  align-items: center;
}

.goal-input-group input {
  width: 70px;
  padding: 0.4rem 0.6rem;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  text-align: center;
  transition: all 0.2s ease;
}

.goal-input-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.goal-input-group input::placeholder {
  color: var(--text-muted);
}

/* Goal Progress Container */
.goal-progress-container {
  padding: 1rem;
  background-color: var(--bg-color);
  border-radius: var(--radius-sm);
}

/* Progress Bar */
.goal-progress-bar {
  height: 8px;
  background-color: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.goal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 4px;
  transition: width 0.5s ease;
  position: relative;
}

.goal-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

.goal-progress-fill.completed {
  background: linear-gradient(90deg, #10b981, #34d399);
}

/* Goal Stats */
.goal-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.goal-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.goal-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.goal-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Goal Completed State */
.goal-progress-container.completed {
  background-color: rgba(16, 185, 129, 0.1);
  animation: bounceIn 0.5s ease;
}

.goal-progress-container.completed .goal-stat-value {
  color: #10b981;
}

/* Retro theme overrides */
[data-theme="retro"] .goal-input-group input {
  border-radius: 0;
  border-width: 2px;
  font-family: 'Courier New', monospace;
}

[data-theme="retro"] .goal-progress-bar {
  border-radius: 0;
  height: 10px;
}

[data-theme="retro"] .goal-progress-fill {
  border-radius: 0;
}

[data-theme="retro"] .goal-stat-value {
  font-family: 'Courier New', monospace;
}

/* Leather theme overrides */
[data-theme="leather"] .goal-progress-container {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="leather"] .goal-progress-bar {
  background-color: rgba(0, 0, 0, 0.4);
}