/* === Card Component === */
.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.5em;
  box-shadow: var(--shadow);
}

/* === Headings === */
h1, h2 {
  color: var(--link);
  margin-top: 0;
}

/* === Link Lists === */
.link-list a {
  display: block;
  margin: 0.5em 0;
  color: var(--link);
  font-weight: bold;
  text-decoration: none;
}

.link-list a:hover {
  color: var(--hover);
}

/* === Progress Bars === */
.progress-bar {
  background: #ddd;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 1em;
  margin-top: 0.5em;
  margin-bottom: 1em;
}

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

/* === Progress Link === */
.progress-link {
  display: inline-block;
  margin-top: 0.5em;
  font-size: 0.9em;
  font-weight: bold;
  color: var(--link);
  text-decoration: underline;
}

.progress-link:hover {
  color: var(--hover);
}

/* === Divider === */
.divider {
  height: 1px;
  background: var(--divider-gradient);
  margin: 2em 0;
}

/* === Progress Preview Layout === */
#progress-preview {
  margin: 2em auto;
  padding: 1em;
  max-width: 900px;
}

.progress-grid {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* === Goal Cards === */
.goal-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.goal-card h3,
.goal-card h2 {
  margin: 0 0 0.5em;
  font-size: 1.1em;
  color: var(--link);
}

.goal-card .goal-meta {
  font-size: 0.9em;
  opacity: 0.75;
  margin-bottom: 0.5em;
}

/* === Status Labels === */
.goal-status {
  display: inline-block;
  font-size: 0.8em;
  font-weight: bold;
  padding: 0.3em 0.6em;
  border-radius: 0.4em;
  margin-top: 0.5em;
  text-transform: uppercase;
}

.goal-status.not-started   { background: #888; color: white; }
.goal-status.in-progress   { background: #ffe08a; color: #5e4600; }
.goal-status.completed     { background: #a0e6a0; color: #2d672d; }
.goal-status.cancelled     { background: #f2a0a0; color: #7d2a2a; }

/* === Theme Buttons (override-specific) === */
.theme-btn {
  border: 2px solid transparent;
  background: none;
  font-size: 1.5em;
  padding: 0.3em 0.6em;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-btn:hover {
  animation: pulse 1s infinite;
}

.theme-btn[data-theme="peach"].active {
  border-color: #ffcba4;
  background-color: rgba(255, 203, 164, 0.15);
}

.theme-btn[data-theme="plum"].active {
  border-color: rgba(219, 166, 240, 0.6);
  background-color: rgba(219, 166, 240, 0.2);
}

.theme-btn[data-theme="apricot"].active {
  border-color: #fbb02d;
  background-color: rgba(251, 176, 45, 0.15);
}

.theme-btn[data-theme="apricot"]:hover {
  background-color: rgba(251, 176, 45, 0.1);
}

/* === Pulse Animation === */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
