:root {
  --bg-page: #F8FAFC;
  --bg-hero-start: #F0FDFA;
  --bg-hero-end: #F1F5F9;
  --bg-card: #FFFFFF;
  --primary-accent: #0D9488;
  --primary-accent-light: #CCFBF1;
  --text-dark: #1E293B;
  --text-medium: #475569;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  --error-bg: #FEF2F2;
  --error-text: #DC2626;
  --warning-bg: #FFFBEB;
  --warning-text: #B45309;
  --success-bg: #ECFDF5;
  --success-text: #065F46;
  --protein-color: #3B82F6;
  --carbs-color: #10B981;
  --fat-color: #F59E0B;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-medium);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

h2.section-title {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  margin-bottom: 1.25rem;
}

h3.subsection-title {
  font-size: clamp(1rem, 3vw, 1.1rem);
  margin-bottom: 0.75rem;
}

/* Navigation */
.navbar {
  background-color: var(--bg-card);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem clamp(0.75rem, 3vw, 1rem);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo {
  height: 32px;
  width: auto;
}

.brand-name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.1rem;
}

/* Navigation Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.25rem;
  z-index: 1002;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Navigation Slider */
.nav-slider {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-card);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  z-index: 1001;
  overflow-y: auto;
}

.nav-slider.active {
  right: 0;
}

.slider-content {
  padding: 1.5rem;
  height: 100%;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.slider-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
}

.slider-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-link {
  display: block;
  padding: 1rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.slider-link:hover, .slider-link.active {
  background-color: var(--primary-accent-light);
  color: var(--primary-accent);
}

/* Overlay when slider is open */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Layout */
main {
  padding: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.card {
  background-color: var(--bg-card);
  border-radius: 0.75rem;
  padding: clamp(0.75rem, 3vw, 1.25rem);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  width: 100%;
}

.main-card {
  border-top: 4px solid var(--primary-accent);
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 768px) {
  main {
    padding: 1rem;
  }
  .main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Form Styles */
.form-section {
  width: 100%;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.input-group {
  margin-bottom: 1.5rem;
}

.form-section label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.8rem, 2.5vw, 0.875rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-section input, .form-section select {
  width: 100%;
  padding: clamp(0.5rem, 2vw, 0.75rem);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  background-color: var(--bg-page);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-section input:focus, .form-section select:focus {
  outline: none;
  background-color: white;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px var(--primary-accent-light);
}

.input-with-unit {
  display: flex;
  gap: 0.5rem;
}

.input-with-unit input {
  flex: 1;
}

.input-with-unit select {
  width: 80px;
}

.calculate-button {
  width: 100%;
  background-color: var(--primary-accent);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1rem;
}

.calculate-button:hover {
  background-color: #0b8378;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

/* Results Section */
.results-section {
  width: 100%;
}

.results-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.result-box {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--bg-page);
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  width: 100%;
}

.result-box.primary {
  background-color: var(--primary-accent-light);
  border-color: var(--primary-accent);
}

.result-label {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.result-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.result-box small {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Macronutrients Section */
.macros-section {
  width: 100%;
}

.macros-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 480px) {
  .macros-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.macro-item {
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.macro-item.protein {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: var(--protein-color);
}

.macro-item.carbs {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: var(--carbs-color);
}

.macro-item.fat {
  background-color: rgba(245, 158, 11, 0.1);
  border-color: var(--fat-color);
}

.macro-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.macro-header i {
  font-size: 1.25rem;
}

.macro-item.protein .macro-header i {
  color: var(--protein-color);
}

.macro-item.carbs .macro-header i {
  color: var(--carbs-color);
}

.macro-item.fat .macro-header i {
  color: var(--fat-color);
}

.macro-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.macro-calories {
  font-size: 0.875rem;
  color: var(--text-medium);
}

/* Message Boxes */
.message-box {
  padding: clamp(0.5rem, 2vw, 0.75rem);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  width: 100%;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-box {
  background-color: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-text);
}

/* Hero Section */
.hero-section {
  padding: clamp(1.5rem, 5vw, 2.5rem) clamp(0.75rem, 3vw, 1rem) clamp(2rem, 5vw, 3.5rem);
  background-image: linear-gradient(120deg, var(--bg-hero-start), var(--bg-hero-end));
  text-align: center;
  width: 100%;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(0.75rem, 3vw, 1rem);
}

.hero-text p {
  font-size: clamp(0.875rem, 3vw, 1.1rem);
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.tool-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tool-link {
  background-color: white;
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid var(--border-color);
}

.tool-link:hover {
  background-color: var(--primary-accent-light);
  border-color: var(--primary-accent);
}

.tool-link.active {
  background-color: var(--primary-accent);
  color: white;
  border-color: var(--primary-accent);
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-accent);
  color: white;
  padding: clamp(0.625rem, 2.5vw, 0.75rem) clamp(1.25rem, 4vw, 1.75rem);
  border-radius: 0.5rem;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  margin-top: 0.5rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(13, 148, 136, 0.1);
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem clamp(0.75rem, 3vw, 1rem);
  margin-top: 2rem;
  background-color: var(--bg-hero-end);
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--primary-accent);
  text-decoration: none;
  font-weight: 500;
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Content Sections */
.content-section {
  margin-top: 2rem;
  width: 100%;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 992px) {
  .content-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.content-main, .content-sidebar {
  width: 100%;
}

/* Information Items */
.info-item {
  margin-bottom: 2rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.info-item p {
  color: var(--text-medium);
  line-height: 1.6;
}

.activity-list {
  list-style: none;
  padding: 0;
}

.activity-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.activity-list li:last-child {
  border-bottom: none;
}

/* Macronutrient Guide */
.macros-guide {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.macro-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--bg-page);
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
}

.macro-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.macro-icon.protein {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--protein-color);
}

.macro-icon.carbs {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--carbs-color);
}

.macro-icon.fat {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--fat-color);
}

.macro-content h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.macro-content p {
  color: var(--text-medium);
  line-height: 1.6;
}

/* Tips */
.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.tip-item:last-child {
  border-bottom: none;
}

.tip-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-accent);
}

.tip-content h3 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.tip-content p {
  font-size: 0.8rem;
  color: var(--text-medium);
  line-height: 1.5;
}

/* Tools Grid */
.tools-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: var(--bg-page);
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.2s;
}

.tool-card:hover {
  background-color: var(--primary-accent-light);
  border-color: var(--primary-accent);
}

.tool-card.active {
  background-color: var(--primary-accent-light);
  border-color: var(--primary-accent);
}

.tool-card i {
  font-size: 1.25rem;
  color: var(--primary-accent);
}

.tool-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.tool-card p {
  font-size: 0.75rem;
  color: var(--text-medium);
  margin: 0;
}

/* Chart Styles */
.chart-container {
  margin-bottom: 1.5rem;
  width: 100%;
}

.chart-wrapper {
  border-radius: 0.5rem;
  padding: clamp(0.5rem, 2vw, 0.75rem);
  height: clamp(250px, 40vw, 300px);
  background-color: white;
  border: 1px solid var(--border-color);
  position: relative;
  width: 100%;
}

/* Input Help Text */
.input-help {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Animations */
.animate-on-load {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav-slider {
    width: 100%;
  }
  
  .input-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tool-links {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .macro-guide-item {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .macros-grid {
    grid-template-columns: 1fr;
  }
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.print-button {
  background-color: var(--primary-accent);
  color: white;
}

.print-button:hover {
  background-color: #0b8378;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.save-button {
  background-color: var(--bg-page);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.save-button:hover {
  background-color: var(--primary-accent-light);
  border-color: var(--primary-accent);
  transform: translateY(-2px);
}

/* Disclaimer Box */
.disclaimer-box {
  background-color: var(--warning-bg);
  border: 1px solid var(--warning-text);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.disclaimer-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--warning-text);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.disclaimer-text {
  color: var(--warning-text);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* Print Styles */
@media print {
  .navbar,
  .nav-slider,
  .nav-overlay,
  .hero-section,
  .content-section,
  .footer,
  .action-buttons,
  .disclaimer-box {
    display: none !important;
  }
  
  .main-card {
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
  }
  
  .results-grid {
    display: block;
  }
  
  .result-box,
  .macros-section,
  .chart-container {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
  
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  
  .card {
    background: white;
    border: 1px solid #ccc;
  }
}

/* Mobile Styles for Action Buttons */
@media (max-width: 480px) {
  .action-buttons {
    flex-direction: column;
  }
  
  .action-button {
    justify-content: center;
  }
}

/* BMI Indicator */
.bmi-section {
  margin-bottom: 1.5rem;
}

.bmi-indicator {
  background: var(--bg-page);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  text-align: center;
}

.bmi-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.bmi-category {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  display: inline-block;
}

.bmi-category.underweight { background: #FEF3C7; color: #92400E; }
.bmi-category.normal { background: #D1FAE5; color: #065F46; }
.bmi-category.overweight { background: #FEE2E2; color: #991B1B; }
.bmi-category.obese { background: #FECACA; color: #7F1D1D; }

.bmi-chart {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.bmi-bar {
  height: 20px;
  background: linear-gradient(90deg, #3B82F6, #10B981, #F59E0B, #EF4444);
  border-radius: 10px;
  position: relative;
  margin: 0.5rem 0;
}

.bmi-marker {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 30px;
  background: var(--text-dark);
}

.bmi-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Health Assessment */
.health-assessment {
  background: var(--success-bg);
  border: 1px solid var(--success-text);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.health-assessment.warning {
  background: var(--warning-bg);
  border-color: var(--warning-text);
}

.health-assessment.danger {
  background: var(--error-bg);
  border-color: var(--error-text);
}

.assessment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.assessment-header i {
  font-size: 1.25rem;
}

.health-assessment .assessment-header { color: var(--success-text); }
.health-assessment.warning .assessment-header { color: var(--warning-text); }
.health-assessment.danger .assessment-header { color: var(--error-text); }

/* Progress Tracking */
.progress-section {
  background: var(--info-bg);
  border: 1px solid var(--info-text);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.progress-timeline {
  margin-top: 1rem;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.progress-item:last-child {
  border-bottom: none;
}

.progress-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-accent);
  flex-shrink: 0;
}

.progress-content h4 {
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.progress-content p {
  color: var(--text-medium);
  font-size: 0.875rem;
  margin: 0;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.share-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--bg-page);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.share-button:hover {
  background: var(--primary-accent-light);
  border-color: var(--primary-accent);
}

/* Educational Content */
.educational-tips {
  background: var(--bg-page);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.tip-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.tip-item:last-child {
  border-bottom: none;
}

.tip-item h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.tip-item p {
  color: var(--text-medium);
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Local Storage Notice */
.local-storage-notice {
  background: var(--primary-accent-light);
  border: 1px solid var(--primary-accent);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--primary-accent);
  text-align: center;
}

/* Print Styles Update */
@media print {
  .bmi-chart,
  .share-buttons,
  .local-storage-notice {
    display: none !important;
  }
  
  .health-assessment,
  .progress-section,
  .educational-tips {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* Custom Notification System */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
}

.notification {
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--primary-accent);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideInRight 0.3s ease-out;
  transform: translateX(100%);
  opacity: 0;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.hide {
  animation: slideOutRight 0.3s ease-in forwards;
}

.notification.success {
  border-left-color: var(--success-text);
  background: var(--success-bg);
}

.notification.error {
  border-left-color: var(--error-text);
  background: var(--error-bg);
}

.notification.warning {
  border-left-color: var(--warning-text);
  background: var(--warning-bg);
}

.notification.info {
  border-left-color: var(--primary-accent);
  background: var(--primary-accent-light);
}

.notification-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.notification.success .notification-icon { color: var(--success-text); }
.notification.error .notification-icon { color: var(--error-text); }
.notification.warning .notification-icon { color: var(--warning-text); }
.notification.info .notification-icon { color: var(--primary-accent); }

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.notification-message {
  color: var(--text-medium);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1rem;
  transition: color 0.2s;
}

.notification-close:hover {
  color: var(--text-dark);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Enhanced Error States */
.input-error {
  border-color: var(--error-text) !important;
  background-color: var(--error-bg) !important;
}

.input-error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.error-help {
  color: var(--error-text);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Loading States */
.calculate-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.calculate-button.loading {
  position: relative;
  color: transparent;
}

.calculate-button.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Print Styles Update for Notifications */
@media print {
  .notification-container {
    display: none !important;
  }
}
.brand-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-link:hover {
  text-decoration: none;
  color: inherit;
}
