@import './mainstyle.css';

.weight-tracker,.dash{
  text-align: center;
  background-color: #fff;
  padding: 1.5rem;
  transition: transform 0.2s ease;
  min-width: 150px;
  max-width: 250px;
  min-height: 250px;
  position: relative;
 box-shadow:
  0 2px 4px rgba(0, 0, 0, 0.08),
  0 6px 12px rgba(0, 0, 0, 0.12);
;
 h3,h4{
  margin-bottom: 0px;
 }
}
.dash {
  position: relative;
  background-color: #fff;
  border-radius: 6px;
  /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); */
  font-size: 1.3rem!important;
  /* padding: 1.5rem; */
  /* flex-basis: 25%; */
}
.macro-dash{
  text-align: center;
  background-color: var(--secondary-light-color);
  padding: 1rem;
  border-radius: 5px;
  min-width: 84%;
  position: relative;
  overflow-y: visible;
 box-shadow: 0 2px 8px rgba(0,0,0,0.1);
 h3,h4,h2{
  text-align: center;
  margin-bottom: 0px;
  
 }
}
.input-wrap{
  display: flex;
  width: 300px;
  padding-left: 80px;
  align-items: center;
  gap: 20px;
  input{
    max-width: 100px;
  }
  
}
.chart-grid{
  width: 100%;
  display: flex;
  justify-content: space-around;
  margin-bottom: -50px;
}
.chart-grid1{
  height: 170px; 
  width: 100%;
  margin-bottom: -50px;
  display: flex;
  flex-direction: column;
  
}

.weight-bar-container{
 
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: relative;

}
.weight-bar-container p {
  font-weight: bold;
  width: 30px;
  text-align: center;
}
/* .progress-bar{
display: flex;
align-items: center;
}
.progress-fill{
  background-color: var(--primary-color);
  flex: 2;
  height: 20px;
  width: 40px;
}
.progress-remaining{
  background-color: var(--secondary-color);
  flex: 1;
  height: 20px;
  width: 40px;
} */


.current-weight {
  text-align: center;
}

.current-weight h1 {
  margin: 0.5rem 0 0;
  font-size: 2rem;
  color: #333;
}

.current-weight p {
  margin: 0;
  color: #777;
}
#quote{
  font-size: 10px;
}
/* .dash-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
} */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 1000px; /* or 90vw or similar */
  margin: 0 auto;     /* ✅ center the entire grid */
}

.second-dash-grid{
  margin: auto;
margin-top: 1rem;
display: grid;
gap: 1rem;
grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
}
.unit-toggle,
.form-group {
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.unit-toggle label,
.form-group label {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.3rem;
}
.unit-toggle label,
.form-group input[type="radio"] + label {
  display: inline-block;
  margin-right: 1rem;
  font-weight: 500;
}

input[type="radio"] {
  margin-right: 0.4rem;
  transform: scale(1.3);
  accent-color: var(--primary-color);

}

/* Inputs */
input[type="number"],
select {
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.height-group,
.weight-group {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
}

.height-group input,
.weight-group input {
  flex: 0.3;
}
.result {
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: #2c3e50;
}
.age-group{
  label{
margin-right: 3rem;
}
input{
  flex: 0.3;
}
} 
select{
  width:80%;
  padding: 0.4rem;
}
#nutrientTrack, #calorie-Track {
  width: 100% ;
  height: auto;
  min-height: 200px;
  
}

#calorie-Track{
  position: relative;
  height: 200px;
  width: 200px;
}
#calorie-Track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85%;
  height: 85%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: #b9b9b922; /* light grey */
  z-index: 0;
}
#weightGauge{
  display: block;
  margin: auto;
  max-width: 190px!important;
  height: 170px!important;
}


.dash:hover {
  transform: translateY(-2px);
}
.dash h4::after {
  content: '';
  display: block;
  height: 2px;
  width: 100%;
  background: #347928;
  margin-top: 4px;
  border-radius: 4px;
}

.locked{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(4px); /* background blur */
  background-color: rgba(250, 255, 255, 0.4); /* white tint with transparency */
  border-radius: 6px; /* match dash card rounding if needed */
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.wide-dash {
  grid-column: span 2;
  /* width: 100%; */
  max-width: calc(500px + 3rem);
  min-width: calc(470px);
}
#weeklyCalorieChart{
  max-height: 250px;
}
.lock-icon{
  font-size: 2rem!important;
}
#macro-calc{
  /* background-color: var(--secondary-color);
   */
   background-color: #E6F2E6;
  height: 400px;
  margin-top: 2.5rem;
}