@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Poppins:wght@400;600&display=swap');

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

body {
  font-family: 'Nunito', sans-serif;
  background: #f6f8fb;
  color: #222;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: #4a90e2;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-links a {
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 0.88rem;
  color: #555;
}

.nav-links a:hover {
  background: #e4f0ff;
  color: #4a90e2;
}

.nav-links .btn-nav {
  background: #4a90e2;
  color: #fff;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
}

.nav-links .btn-nav:hover {
  background: #3578c6;
}

.hero {
  max-width: 1000px;
  margin: 2rem 0;
  padding: 2rem;
  text-align: left;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-align: left;
  margin-left: 0;
}

.hero h1 span {
  color: #4a90e2;
}

.hero p {
  color: #555;
  max-width: 450px;
  margin-bottom: 1.5rem;
  text-align: left;
}

.hero-btns {
  display: flex;
  gap: 0.7rem;
  justify-content: flex-start;
}

.stats-row {
  display: flex;
  gap: 10px;
  margin: 20px ;
  justify-content: flex-start;
}

.stat-card {
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  padding: 15px;
  flex: 1;
  text-align: center;
}

.stat-card .icon { font-size: 1.2rem; margin-bottom: 5px; }
.stat-card .lbl { font-size: 0.75rem; color: #555; font-weight: 600; margin-bottom: 5px; }
.stat-card .val { font-size: 1.5rem; font-weight: 700; }

.limit-section {
  margin: 30px;
  max-width: 1000px;
  padding: 0 10px;
}


.limit-box h6 { 
  font-size: 0.85rem; 
  margin-bottom: 3px; 
  font-weight: 600; 
}

.limit-box small { 
  font-size: 0.75rem; 
  color: #666; 
}

.limit-input-row { 
  display: flex; 
  gap: 5px; 
  margin-top: 8px; 
  justify-content: flex-start; /* left align inputs */
}

progress { 
  width: 100%; 
  height: 7px; 
  border-radius: 50px; 
}

.page-section { 
  margin: 30px 0; 
  max-width: 1000px; 
  padding: 0 10px; 
  text-align: left; 
}

.section-head h2 { 
  font-size: 1.2rem; 
  margin-bottom: 5px; 
}

.section-head p { 
  font-size: 0.8rem; 
  color: #666; 
}

.panel {
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  text-align: left;
}

.field label { 
  font-size: 0.75rem; 
  font-weight: 600; 
  color: #555; 
  margin-bottom: 3px; 
  display: block; 
}

.field input, .field select { 
  width: 100%; 
  padding: 6px; 
  border: 1px solid #dcdcdc; 
  border-radius: 8px; 
}

.radio-row { 
  display: flex; 
  gap: 10px; 
  margin-top: 3px; 
  justify-content: flex-start; /* left align radio buttons */
}

.btn-primary {
  background: #4f8ef7; 
  color: #fff; 
  padding: 6px 12px; 
  border-radius: 8px; 
  font-weight: 600; 
  border: none; 
  cursor: pointer;
}

.btn-primary:hover { 
  background: #3a7de8; 
}

.btn-secondary {
  background: #fff; 
  border: 1px solid #dcdcdc; 
  padding: 6px 12px; 
  border-radius: 8px; 
  font-weight: 600; 
  cursor: pointer;
}

.btn-secondary:hover { 
  border-color: #4f8ef7; 
}

table { 
  width: 100%; 
  border-collapse: collapse; 
  font-size: 0.85rem; 
  margin: 0; /* remove auto centering */
  text-align: left; 
}

thead th { 
  border-bottom: 1px solid #dcdcdc; 
  padding: 6px; 
  text-align: left; 
  color: #555; 
  font-weight: 600; 
}

tbody td { 
  padding: 6px; 
  border-bottom: 1px solid #eee; 
}

tbody tr:hover td { 
  background: #f7f7f7; 
}

footer {
  text-align: left; /* align footer left */
  font-size: 0.75rem;
  color: #666;
  padding: 10px 10px;
  background: #fff;
  border-top: 1px solid #dcdcdc;
}

footer strong { 
  color: #4f8ef7; 
}

.goal-card {
  text-align: left;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.fv-result {
  text-align: left;
  background: #f5f8ff;
  border: 1px solid #cce0ff;
  border-radius: 12px;
  padding: 15px;
}

@media (max-width: 900px) { 
  .stats-row { 
    flex-wrap: wrap; 
  } 
  .two-col { display: block; } 
}
@media (max-width: 600px) { 
  .hero h1 { font-size: 1.6rem; } 
  nav { padding: 0 10px; } 
}

.chart-wrap {
    max-width: 500px;
    margin: 0 auto;
}

#typeChart {
    max-height: 280px;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #f9f9fa;
  border-bottom: 2px solid #3b82f6;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color:#3b82f6;
  letter-spacing: 1px;
  order: 2;  
}

.nav-logo span {
  color: #3b82f6;  
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  order: 1;  
}

.nav-links a {
  color: #151618;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #3b82f6;
}