/*Smooth scrolling for anchor links*/
html {
  scroll-behavior: smooth;
}

/* Global reset & base*/
* {
margin:0;
padding:0;
box-sizing:border-box;
}

body {
  font-family: 'Segoe UI', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background:linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
  min-height: 100vh;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 30px;
  background:rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.header h1 {
  color: white;
  font-size: 3em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2em;
}

/*Dashboard grid*/
.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px,1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/*Card Components */
.card {
 background: rgba(255, 255, 255, 0.95);
 border-radius: 15px;
 padding: 25px;
 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: #667eea;
  margin-bottom: 20px;
  font-size: 1.5em;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
}

/* Form Styles */
 .form-group {
  margin-bottom: 15px;
 }

 .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #555;
 }

 .form-group input, .form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
 }

 .form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
 }

 /* Buttons */

 .btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
 }

 .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
 }

 .btn:active {
  transform: translateY(0);
 }

 /* Misc Components */
 .progress-chart {
  margin-top: 20px;
  height: 300px;
 }

 .bmi-result {
  margin-top: 15px;
  padding: 15px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
 }

 .nutrition-results {
  margin-top: 15px;
  max-height: 200px;
  overflow-y: auto;
 }

 .food-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  border-left: 4px solid #667eea;
 }

 /* Badges & Animations */

 .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
 }

 .badge {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #333;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
  animation: pulse 2s infinite;
 }

 @keyframes pulse {
  0%, 100% {transform: scale(1);}
  50% {transform: scale(1.05);}
 }

 /* Stats grid */
 .stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 30px;
 }

 .stat-item {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
 }

 .stat-number {
font-size: 2em;
font-weight: bold;
display: block;
 }
 
 .stat-label {
  font-size: 0.9em;
  opacity: 0.9;
 }

 /* Workout Log */
 .workout-log {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 15px;
 }

 .workout-entry {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  border-left: 4px solid #667eea;
  display: flex;
  justify-content: space-between;
  align-items: center;
 }

 .loading {
  text-align: center;
  color: #667eea;
  font-style: italic;
 }

 .home-intro {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin-bottom: 30px;
  color: white;
}
.home-intro h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
}
.home-intro p {
  font-size: 1.2em;
  margin-bottom: 20px;
}
.home-intro .btn {
  font-size: 1em;
  padding: 10px 20px;
}

/*.about {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  margin-top: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}*/


.contact,
.about {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


.about h3 {
  color: #667eea;
  margin-bottom: 15px;
}
.about p {
  font-size: 1em;
  color: #333;
}


/*.contact {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  margin-top: 40px;
}*/
.contact h3 {
  color: #764ba2;
  margin-bottom: 10px;
}
.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact input,
.contact textarea {
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  font-size: 16px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  background: #667eea;
  color: white;
  margin-top: 40px;
}


 /* Responsive design */
 @media(max-width: 768px){
  .dashboard {
    grid-template-columns: 1fr;
 }

 .header h1 {
  font-size: 2em;
 }

 .stats {
  grid-template-columns: repeat(2, 1fr);
 }

 @media (max-width: 768px) {
  .about,
  .contact {
    max-width: 95%;
    padding: 20px;
  }
}

}