:root {
    --primary: #e91e63;
    --primary-light: #fde4ec;
    --bg: #ffffff;
    --text-dark: #333;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text-dark);
}

/* Page */
/* .page {
    padding: 30px;
} */


.hero {
    text-align: center;
    margin-bottom: 40px;
}
.brand {
    color: var(--primary);
}

/* Layout */
/* .main-wrapper {
    display: flex;
    gap: 25px;
    max-width: 1400px;
    margin: auto;
} */

/* Grid */
/* .selection-grid {
    flex: 70%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
} */

/* Category Cards */
/* .item-box {
    background: white;
    border-radius: 22px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: 0.3s;
}

.item-box:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
} */

/* Side Panel */
.side-panel {
    flex: 30%;
    background: white;
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(233,30,99,0.15); 
}

/* Buttons */
 button {
    background: linear-gradient(135deg, #f72585, #e91e63);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(233,30,99,0.4);
    transition: 0.3s;
}

button:hover {
    transform: translateY(-2px);
}

/* Plate */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plate-list {
    margin: 15px 0;
    padding-left: 20px;
}

.bar {
    background: #eee;        
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
}

 .fill {
    height: 100%;
    width: 0%;
    background: #ccc;
    border-radius: 10px;
    transition: width 0.4s ease, background 0.4s ease;
} 

/* CTA Button */
 .create-plan-btn {
    width: 100%;
    margin-top: 20px;
    font-size: 15px;
}
.fill.active {
    background: linear-gradient(90deg, #f72585, #e91e63);
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    width: 80%;
    max-width: 800px;
    border-radius: 25px;
}

.modal-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
    gap: 20px;
    margin: 25px 0;
}

.modal-item-card {
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.modal-item-card:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}


.graph-wrapper {
    display: flex;
    gap: 14px;
    margin: 16px 0 24px;
}

.y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 11px;
    color: #888;
    height: 160px;
}

.v-graph {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 18px;
    height: 160px;
    padding-bottom: 18px;
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    width: 100%;
} 

/* grid lines */
 .v-graph::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to top,
        transparent,
        transparent 39px,
        rgba(0,0,0,0.05) 40px
    );
    pointer-events: none;
}

.v-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 38px;
}

.v-bar label {
    font-size: 11px;
    margin-top: 6px;
    color: #555;
} */

/* bar */
.v-fill {
    width: 100%;
    height: 0%;
    background: #e6e6e6;
    border-radius: 8px 8px 0 0;
    transition: height 0.5s ease, background 0.4s ease;
}

/* when nutrition is added */
.v-fill.active {
    background: linear-gradient(180deg, #ff4d94, #ff1f75);
}


.graph-card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.bar-chart {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  height: 200px;   
  margin-top: 20px;
}

.bar {
  flex: 1;
  background: #f1f1f1;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.bar span {
  position: absolute;
  bottom: -28px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #ff4d94;
}

.target {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #ff4d8d, #ff7aa2);
  border-radius: 12px;
  transition: height 0.8s ease;
}

.mealContainer{

}
.option-grid {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2em;
    justify-content: center;
    align-items: centerś;
}

.option-item {
    border: 2px solid #eee;
    height: 3em;
    width: 15em;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.option-item:hover {
    border-color: rgb(16, 68, 51);
    background-color: #fff9fb;
}

.option-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-item input:checked + .option-text {
    color: rgb(16, 68, 51);
    font-weight: bold;
}

.option-item:has(input:checked) {
    border-color: rgb(16, 68, 51);
    background-color:rgb(235, 245, 243);
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.1);
}
.typesOfMeal{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2em;
    border: 2px #5251516b solid;
    flex-direction: column;
    padding: 2em;
    border-radius: 15px;
    background-color: rgb(235, 245, 243);
    height: 15em;
}
.mealDiv{
    display: flex;
    margin: auto;
}
.meals{
    margin: 2em;
    border: 2px #5251516b solid;
    height: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10em;
    border-radius: 15px;
    transition: all 0.5s;
    background-color: #fff;
}
.meals:hover{
    cursor: pointer;
    background-color: rgb(166, 249, 174);
    border-color:   rgb(16, 68, 51);
}
.categoriesAndBarContainer{
    display: flex;
}
.categoriesContainer{
    display: flex;
    border: 2px #5251516b Solid;
    flex-direction: column;
    margin: 2em;
    background-color: rgb(235, 245, 243);
    border-radius: 15px;
    justify-content: center;
    align-items: center;
}

.upCategories{
    display: flex;

}
.downCategories{
    display: flex;
}
.categories{
    margin: 2em;
    border: 2px #5251516b solid;
    height: 8em;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 15em;
    border-radius: 15px;
    font-family: "Poppins" , sans-serif;
    background-color: #fff;
    transition: all 0.5s;
    text-align: center;
    gap: 0.5em;
    font-weight: 600;
}
.categories:hover{
    cursor: pointer;
    background-color: rgb(166, 249, 174);
    border-color:   rgb(16, 68, 51);
}
.categoriesImg{
    height:4em;
    width: 4em;
    margin-right: 1em ;
}