/* Pet Training Goal Tracker Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background: #fafafa; padding: 1rem; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
header h1 { font-size: 1.5rem; color: #2c3e50; }
nav a { margin-left: 1rem; text-decoration: none; color: #3498db; font-size: 0.9rem; }
nav a:hover { text-decoration: underline; }
main { max-width: 800px; margin: 0 auto; }
section { background: #fff; padding: 1.25rem; margin-bottom: 1rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
section h2, section h3 { margin-bottom: 1rem; color: #2c3e50; font-size: 1.25rem; }
form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
input, select, button { padding: 0.5rem; font-size: 1rem; border: 1px solid #ddd; border-radius: 4px; }
input { flex: 1; min-width: 200px; }
button { background: #3498db; color: white; border: none; cursor: pointer; }
button:hover { background: #2980b9; }
#goals-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.goal-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: #f8f9fa; border-radius: 6px; border-left: 4px solid #3498db; }
.goal-item .goal-name { font-weight: 600; }
.streak-badge { background: #e74c3c; color: white; padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.85rem; margin-left: 0.5rem; }
.success-badge { background: #27ae60; color: white; padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.85rem; margin-left: 0.5rem; }
.log-btn { background: #2ecc71; color: white; border: none; padding: 0.25rem 0.75rem; border-radius: 4px; cursor: pointer; font-size: 0.9rem; }
.log-btn:hover { background: #27ae60; }
#stats-panel { display: flex; justify-content: space-around; text-align: center; padding: 1rem; background: #ecf0f1; border-radius: 6px; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: #2c3e50; }
.stat-label { font-size: 0.85rem; color: #7f8c8d; }
.dl { margin-left: 0.5rem; }
.dt { font-weight: 600; margin-top: 0.5rem; }
.dd { margin-left: 1rem; margin-bottom: 0.25rem; }
.presets-note, .last-updated { font-size: 0.85rem; color: #7f8c8d; margin-top: 0.5rem; }
@media (max-width: 600px) { header { flex-direction: column; align-items: flex-start; } nav a { margin-left: 0; margin-right: 0.75rem; } }



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
