/* Dark theme stylesheet (black background) */
:root{
  --bg: #05060a;         /* page background - near black */
  --surface: #0b1220;    /* primary surfaces/cards */
  --muted: #9aa4b2;      /* muted text */
  --text: #e6eef6;       /* main text */
  --accent: #06b6d4;     /* cyan accent */
  --accent-2: #10b981;   /* green accent */
  --glass: rgba(255,255,255,0.03);
}

html,body{
  height:100%;
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.p-4{padding:1rem}
.max-w-sm{max-width:24rem}
.mx-auto{margin-left:auto;margin-right:auto}
.flex{display:flex}
.flex-col{flex-direction:column}
.gap-2{gap:0.5rem}
.border{border:1px solid rgba(255,255,255,0.06)}
.rounded{border-radius:0.375rem}
.p-2{padding:0.5rem}
.bg-blue-500{background:var(--accent)}
.text-white{color:#fff}
.hover\:bg-blue-600:hover{background:#2563eb}
.text-red-600{color:#dc2626}

/* Simple form card (will use surface color in dark theme) */
.card{
  background: linear-gradient(180deg, var(--surface), rgba(11,18,32,0.9));
  padding:1.25rem;
  border-radius:0.5rem;
  box-shadow: 0 8px 30px rgba(2,6,23,0.7);
  border: 1px solid rgba(255,255,255,0.03);
}

/* Utilities for buttons */
.btn{
  display:inline-block;
  padding:0.5rem 0.75rem;
  border-radius:0.375rem;
  border:none;
  cursor:pointer;
}

/* small responsive container */
.container{
  max-width:72rem;
  margin:0 auto;
  padding:1rem;
}

/* Additional utilities added to match existing classnames used in components */
.p-6{padding:1.5rem}
.p-10{padding:2.5rem}
.py-16{padding-top:4rem;padding-bottom:4rem}
.px-4{padding-left:1rem;padding-right:1rem}
.py-2{padding-top:0.5rem;padding-bottom:0.5rem}
.mt-4{margin-top:1rem}
.mb-4{margin-bottom:1rem}

.text-2xl{font-size:1.5rem;line-height:1.2}
.text-3xl{font-size:1.875rem;line-height:1.2}
.text-5xl{font-size:3rem;line-height:1.1}
.font-bold{font-weight:700}
.font-semibold{font-weight:600}

.bg-white{background:#ffffff}
.rounded-xl{border-radius:0.75rem}
.rounded-lg{border-radius:0.5rem}
.shadow{box-shadow:0 10px 30px rgba(15,23,42,0.08)}

.items-center{align-items:center}
.justify-between{justify-content:space-between}
.justify-center{justify-content:center}
.w-full{width:100%}

.text-gray-600{color:#4b5563}
.text-gray-500{color:#6b7280}

.emoji-large{font-size:3rem; margin-bottom:1rem}

.bg-green-500{background:#10b981}
.hover\:bg-green-600:hover{background:#059669}

.mt-4{margin-top:1rem}

/* button style for green primary */
.btn-green{background:#10b981;color:#fff;padding:0.5rem 1rem;border-radius:0.5rem;border:none;cursor:pointer}

/* small helpers */
.gap-4{gap:1rem}
.text-center{text-align:center}

/* Add any project-specific overrides here */

/* Semantic component styles to replace utility-heavy classnames */
.container-page {
  padding: 1.5rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.site-nav {
  padding: 1rem;
  display:flex;
  gap:1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.site-nav .nav-link {
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
}
.site-nav .nav-link:hover { opacity: 1; }

.card {
  background: linear-gradient(180deg, var(--surface), rgba(11,18,32,0.9));
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(2,6,23,0.7);
  padding: 1.5rem;
  display:flex;
  flex-direction:column;
  gap:0.5rem;
  width:100%;
  border: 1px solid rgba(255,255,255,0.03);
}
.card-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.card-title { color: var(--muted); }
.card-value { font-size: 1.875rem; font-weight:600; color: var(--text); }

.empty-section {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding-top:4rem;
  padding-bottom:4rem;
  color:var(--muted);
}

.btn { display:inline-block; padding:0.5rem 0.75rem; border-radius:0.5rem; border:none; cursor:pointer; }
.btn-primary { background:var(--accent); color:#071018; }
.btn-create { background:var(--accent-2); color:#071018; }

.form-card { background: linear-gradient(180deg, var(--surface), rgba(11,18,32,0.9)); padding:1rem; border-radius:0.5rem; box-shadow:0 8px 24px rgba(2,6,23,0.6); max-width:24rem; margin:0 auto; border:1px solid rgba(255,255,255,0.03); }
.form { display:flex; flex-direction:column; gap:0.5rem; }
.form-input { padding:0.5rem; border:1px solid rgba(255,255,255,0.06); border-radius:0.375rem; background: rgba(255,255,255,0.01); color:var(--text); }
.form-error { color:#ff7b7b; }

/* Food item card styles */
.food-card {
  /* compact card for grid layout */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, var(--surface), rgba(11,18,32,0.85));
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 6px 16px rgba(2,6,23,0.5);
  width: 230px;
  min-width: 0;
}
.food-card .left {
  width: 100%;
}
.food-card .title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.food-card .brand {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.125rem;
}
.food-card .metrics {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.food-card .metric { display:flex; flex-direction:column; }
.food-card .metric .label { font-size:0.7rem; color:var(--muted); }
.food-card .metric .value { font-weight:600; color:var(--text); }

.food-card .right {
  display:flex;
  align-items:center;
  gap:0.5rem;
  width:100%;
  justify-content: space-between;
}
.food-card .price {
  font-weight:700;
  color: var(--text);
  background: rgba(255,255,255,0.02);
  padding: 0.35rem 0.5rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255,255,255,0.03);
}

/* action buttons in the card */
.food-card .actions { display:flex; gap:0.5rem; }
.btn-danger {
  background: transparent;
  color: #ff7b7b;
  border: 1px solid rgba(255,255,255,0.04);
  padding: 0.4rem 0.6rem;
  border-radius: 0.45rem;
  cursor: pointer;
}
.btn-danger:hover { background: rgba(255,123,123,0.06); }

/* small icon sizing inside buttons */
.food-card .icon { width: 16px; height: 16px; display:block; }
.food-card .btn svg { vertical-align: middle; }

@media (max-width: 640px) {
  .food-card { width: 100%; }
  .food-card .right { align-self: stretch; width: 100%; display:flex; justify-content:space-between; }
}

/* grid helper to place cards in a responsive grid */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

/* page actions (right-aligned header buttons) */
.page-actions { display:flex; gap:0.5rem; align-items:center; }

/* Modal for create/edit form */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 10000;
}
.modal-panel {
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  width: 520px;
  max-width: calc(100% - 2rem);
  color: var(--text);
  box-shadow: 0 10px 40px rgba(2,6,23,0.6);
  border: 1px solid rgba(255,255,255,0.04);
}
.modal-panel h2 { margin: 0 0 0.5rem 0; }
.modal-panel label { display:block; margin-top:0.5rem; }
.modal-panel .form-input { width:100%; box-sizing:border-box; }

/* Large meal form modal */
.meal-form-modal .modal-panel {
  width: 95vw;
  max-width: 1400px;
  height: 90vh;
  max-height: 90vh;
  padding: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.meal-form-modal .modal-panel h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Meal form layout */
.meal-form-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.meal-form-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.meal-form-header label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meal-form-header .form-input {
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.375rem;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 0.95rem;
}

.meal-form-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  overflow: hidden;
}

.meal-form-food-section {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.meal-form-food-section h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

.meal-form-search {
  margin-bottom: 1rem;
}

.meal-form-search .form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 0.95rem;
}

.meal-form-food-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  flex: 1;
  overflow: hidden;
}

.meal-form-food-column {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.meal-form-food-column h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.meal-form-food-list {
  flex: 1;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.02);
  padding: 0.75rem;
}

.meal-form-food-item {
  cursor: pointer;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.meal-form-food-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.meal-form-food-item:last-child {
  margin-bottom: 0;
}

.meal-form-food-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.meal-form-food-item-brand {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.meal-form-food-item-calories {
  font-size: 0.8rem;
  color: var(--accent-2);
  font-weight: 500;
}

.meal-form-selected-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 0.375rem;
}

.meal-form-selected-item:last-child {
  margin-bottom: 0;
}

.meal-form-selected-info {
  flex: 1;
}

.meal-form-selected-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.meal-form-selected-calories {
  font-size: 0.8rem;
  color: var(--muted);
}

.meal-form-amount-input {
  width: 80px;
  padding: 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.25rem;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  text-align: center;
  font-size: 0.9rem;
}

.meal-form-remove-btn {
  padding: 0.375rem 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 0.25rem;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.meal-form-remove-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

/* Nutrition panel */
.meal-form-nutrition {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.meal-form-nutrition h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

.meal-form-nutrition-panel {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.02);
  padding: 1.25rem;
  overflow-y: auto;
}

.meal-form-nutrition-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.meal-form-nutrition-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.meal-form-nutrition-label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.meal-form-nutrition-value {
  font-weight: 500;
  color: var(--accent-2);
  font-size: 0.9rem;
}

.meal-form-nutrition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}

.meal-form-nutrition-macro {
  background: rgba(255,255,255,0.02);
  padding: 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(255,255,255,0.05);
}

.meal-form-nutrition-macro-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.meal-form-nutrition-macro-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* Modal footer */
.meal-form-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.meal-form-footer .btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.meal-form-footer .btn-cancel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
}

.meal-form-footer .btn-cancel:hover {
  background: rgba(255,255,255,0.1);
}

.meal-form-footer .btn-save {
  background: var(--accent-2);
  color: white;
}

.meal-form-footer .btn-save:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 101;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.meal-detail-modal {
  min-width: 500px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--accent);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
}

.meal-description {
  padding: 1rem 1.5rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.meal-detail-content {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.nutrition-section {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 1rem;
}

.nutrition-section h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.nutrition-radar-container {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.nutrition-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.nutrition-value {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.nutrition-value .label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.nutrition-value .value {
  font-weight: 600;
  color: var(--accent-2);
  font-size: 0.95rem;
}

.foods-section h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

/* Daily Plan Form Styles - mirror of meal form styling */
.dailyplan-form-modal .modal-panel {
  width: 95vw;
  max-width: 1400px;
  height: 90vh;
  max-height: 90vh;
  padding: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dailyplan-form-modal .modal-panel h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.dailyplan-form-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dailyplan-form-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dailyplan-form-header label { display:flex; flex-direction:column; gap:0.5rem; }

.dailyplan-form-header .form-input {
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.375rem;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 0.95rem;
}

.dailyplan-form-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  overflow: hidden;
}

.dailyplan-form-food-section { display:flex; flex-direction:column; overflow:hidden; }

.dailyplan-form-food-section h3 { margin:0 0 1rem 0; font-size:1.25rem; font-weight:600; color:var(--accent); }

.dailyplan-form-search { margin-bottom:1rem; }
.dailyplan-form-search .form-input { width:100%; padding:0.75rem 1rem; border:1px solid rgba(255,255,255,0.1); border-radius:0.5rem; background:rgba(255,255,255,0.05); color:var(--text); font-size:0.95rem; }

.dailyplan-form-food-grid { display:grid; grid-template-columns: 1fr 1fr; gap:1rem; flex:1; overflow:hidden; }

.dailyplan-form-food-column { display:flex; flex-direction:column; overflow:hidden; }
.dailyplan-form-food-column h4 { margin:0 0 0.75rem 0; font-size:1rem; font-weight:600; color:var(--text); }

.dailyplan-form-food-list { flex:1; overflow-y:auto; border:1px solid rgba(255,255,255,0.1); border-radius:0.5rem; background:rgba(255,255,255,0.02); padding:0.75rem; }

.dailyplan-form-food-item { cursor:pointer; padding:0.75rem; margin-bottom:0.5rem; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.05); border-radius:0.375rem; transition: all 0.15s ease; }
.dailyplan-form-food-item:hover { background: rgba(255,255,255,0.08); border-color: var(--accent); transform: translateY(-1px); }
.dailyplan-form-food-item:last-child { margin-bottom:0; }

.dailyplan-form-food-item-name { font-weight:600; font-size:0.95rem; color:var(--text); margin-bottom:0.25rem; }
.dailyplan-form-food-item-brand { font-size:0.8rem; color:var(--muted); margin-bottom:0.25rem; }
.dailyplan-form-food-item-calories { font-size:0.8rem; color:var(--accent-2); font-weight:500; }

.dailyplan-form-selected-item { display:flex; align-items:center; gap:0.75rem; margin-bottom:0.75rem; padding:0.75rem; background:rgba(16,185,129,0.06); border:1px solid rgba(16,185,129,0.12); border-radius:0.375rem; }
.dailyplan-form-selected-item:last-child { margin-bottom:0; }
.dailyplan-form-selected-info { flex:1; }
.dailyplan-form-selected-name { font-weight:600; font-size:0.9rem; color:var(--text); margin-bottom:0.25rem; }
.dailyplan-form-selected-calories { font-size:0.8rem; color:var(--muted); }

.dailyplan-form-amount-input { width:80px; padding:0.5rem; border:1px solid rgba(255,255,255,0.1); border-radius:0.25rem; background:rgba(255,255,255,0.05); color:var(--text); text-align:center; font-size:0.9rem; }

.dailyplan-form-remove-btn { padding:0.375rem 0.5rem; background:rgba(239,68,68,0.08); border:1px solid rgba(239,68,68,0.18); border-radius:0.25rem; color:#ef4444; cursor:pointer; font-size:0.9rem; font-weight:600; transition:all 0.15s ease; }
.dailyplan-form-remove-btn:hover { background: rgba(239,68,68,0.18); border-color: #ef4444; }

.dailyplan-form-nutrition { display:flex; flex-direction:column; overflow:hidden; }
.dailyplan-form-nutrition h3 { margin:0 0 1rem 0; font-size:1.25rem; font-weight:600; color:var(--accent); }

.dailyplan-form-nutrition-panel { flex:1; border:1px solid rgba(255,255,255,0.1); border-radius:0.5rem; background:rgba(255,255,255,0.02); padding:1.25rem; overflow-y:auto; }
.dailyplan-form-nutrition-item { display:flex; justify-content:space-between; align-items:center; margin-bottom:0.75rem; padding:0.5rem 0; border-bottom:1px solid rgba(255,255,255,0.05); }
.dailyplan-form-nutrition-item:last-child { margin-bottom:0; border-bottom:none; padding-top:1rem; border-top:1px solid rgba(255,255,255,0.1); }
.dailyplan-form-nutrition-label { font-weight:600; color:var(--text); font-size:0.9rem; }
.dailyplan-form-nutrition-value { font-weight:500; color:var(--accent-2); font-size:0.9rem; }

.dailyplan-form-nutrition-grid { display:grid; grid-template-columns:1fr 1fr; gap:0.5rem; margin:1rem 0; }
.dailyplan-form-nutrition-macro { background:rgba(255,255,255,0.02); padding:0.5rem; border-radius:0.25rem; border:1px solid rgba(255,255,255,0.05); }
.dailyplan-form-nutrition-macro-label { font-size:0.8rem; color:var(--muted); margin-bottom:0.25rem; }
.dailyplan-form-nutrition-macro-value { font-size:0.9rem; font-weight:600; color:var(--text); }

.dailyplan-form-footer { display:flex; gap:0.75rem; justify-content:flex-end; margin-top:1.5rem; padding-top:1rem; border-top:1px solid rgba(255,255,255,0.1); }
.dailyplan-form-footer .btn { padding:0.75rem 1.5rem; font-size:0.95rem; font-weight:500; border-radius:0.375rem; border:none; cursor:pointer; transition:all 0.2s ease; }
.dailyplan-form-footer .btn-cancel { background: rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); color:var(--text); }
.dailyplan-form-footer .btn-cancel:hover { background: rgba(255,255,255,0.1); }
.dailyplan-form-footer .btn-save { background: var(--accent-2); color: white; }
.dailyplan-form-footer .btn-save:hover { background: #059669; transform: translateY(-1px); }

@media (max-width: 768px) {
  .dailyplan-form-main { grid-template-columns: 1fr; }
  .dailyplan-form-header { grid-template-columns: 1fr; }
}

.foods-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.food-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.food-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.food-header div {
  display: flex;
  flex-direction: column;
}

.food-header h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.food-brand {
  font-size: 0.8rem;
  color: var(--accent-2);
}

.food-amount {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.food-details {
  font-size: 0.85rem;
  color: var(--muted);
}

.detail {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.detail-label {
  font-weight: 500;
  color: var(--muted);
}

.detail-value {
  color: var(--text);
}

.detail-nutrition {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
  color: var(--accent-2);
  font-weight: 500;
}

.empty-message {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 1rem;
  margin: 0;
}

.cost-section {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: right;
}

.cost-item {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  align-items: center;
}

.cost-item .label {
  color: var(--muted);
  font-weight: 500;
}

.cost-item .value {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 1.1rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.modal-footer .btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .meal-detail-modal {
    min-width: auto;
    width: 95%;
  }

  .meal-detail-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nutrition-section {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 0;
    padding-bottom: 1rem;
  }

  .nutrition-radar-container svg {
    max-width: 100%;
    height: auto;
  }
}

/* Eye icon button styling (info button) */
.btn-info {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent);
  padding: 0.5rem;
  margin-right: 0.5rem;
  transition: all 0.2s ease;
}

.btn-info:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.5);
}
/* Nutrition Pie Chart Styling */
.nutrition-pie-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 1rem 0;
}

.nutrition-pie-container svg {
  max-width: 100%;
  height: auto;
}

.pie-slice {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.pie-slice:hover {
  opacity: 0.85;
}

.pie-label {
  pointer-events: none;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.pie-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.legend-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.legend-value {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .nutrition-pie-container {
    margin: 0.5rem 0;
  }

  .pie-legend {
    grid-template-columns: 1fr;
  }
}