:root {
  /* Howdy Fox Brand Colors */
  --hf-teal: #35B69A;
  --hf-teal-hover: #2fa58a;
  --hf-peach: #F7A683;
  --hf-dark: #111111;
  --hf-text-main: #333333;
  --hf-text-muted: #777777;
  --hf-bg: #F9F9F9;
  --hf-card-bg: #FFFFFF;
  --hf-border: #EFEFEF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--hf-bg);
  color: var(--hf-text-main);
  line-height: 1.6;
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.background-blobs {
  display: none; /* Removed for Howdy Fox clean aesthetic */
}

.container {
  width: 100%;
  max-width: 650px;
  background: var(--hf-card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid var(--hf-border);
}

.app-header {
  background-color: var(--hf-dark);
  color: #fff;
  padding: 2rem;
  text-align: center;
}

.app-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  color: #FFD54F; /* Forces HowdyFox Yellow */
}

.app-header .highlight {
  color: var(--hf-peach);
}

.app-header p {
  color: #cccccc;
  font-size: 0.95rem;
}

.calculator-card {
  background: var(--hf-card-bg);
}

#nutrition-form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hf-text-main);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

select, input[type="number"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #fff;
  transition: border-color 0.2s;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

select:focus, input[type="number"]:focus {
  outline: none;
  border-color: var(--hf-teal);
  box-shadow: 0 0 0 3px rgba(53, 182, 154, 0.15);
}

.breed-info {
  font-size: 0.85rem;
  color: var(--hf-text-muted);
  margin-top: 0.5rem;
}

.btn-primary {
  width: 100%;
  padding: 1rem;
  background-color: var(--hf-teal);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 1rem;
}

.btn-primary:hover {
  background-color: var(--hf-teal-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

.hidden {
  display: none !important;
}

.results-section {
  padding: 2rem;
  background-color: #fcfcfc;
  border-top: 1px solid var(--hf-border);
  animation: fade-in 0.3s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--hf-text-main);
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--hf-border);
  text-align: center;
}

.primary-metric {
  background-color: #E8F5E9; /* Very light green */
  border-color: var(--hf-teal);
}

.metric-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hf-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.primary-metric .metric-title {
  color: var(--hf-teal-hover);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--hf-dark);
  margin-bottom: 0.5rem;
}

.metric-desc {
  font-size: 0.8rem;
  color: var(--hf-text-muted);
}

.macronutrients h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--hf-text-main);
}

.macro-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.macro-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.macro-label {
  width: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hf-text-muted);
}

.macro-bar-container {
  flex-grow: 1;
  height: 12px;
  background-color: #eee;
  border-radius: 6px;
  overflow: hidden;
}

.macro-bar {
  height: 100%;
  width: 0%;
  transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.protein-bar { background-color: var(--hf-teal); }
.fat-bar { background-color: var(--hf-peach); }
.carbs-bar { background-color: #FFD54F; }

.macro-amount {
  width: 60px;
  text-align: right;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--hf-text-main);
}

@media (max-width: 500px) {
  body { padding: 1rem; }
  .metrics-grid { grid-template-columns: 1fr; }
}
