/* =============================================================================
 * File: frontend/public/css/healist-todays-nutrition.css
 * Today's Nutrition - Layout C (Expandable Accordion)
 * NEW FILE - Place in frontend/public/css/
 * ============================================================================= */

/* =============================================================================
 * TODAY'S NUTRITION CARD
 * ============================================================================= */

.todays-nutrition-card {
  background: var(--brand-surface);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.todays-nutrition-header {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  color: var(--brand-text-light);
  padding: var(--space-4) var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.todays-nutrition-header h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: white;
}

.tn-header-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--brand-text-light);
  padding: var(--space-2) var(--space-4);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tn-header-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}


/* =============================================================================
 * MEAL ITEMS (Accordion)
 * ============================================================================= */

.tn-meal-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.tn-meal-item {
  border-bottom: 1px solid var(--brand-border);
}

.tn-meal-item:last-child {
  border-bottom: none;
}

.tn-meal-summary {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}

.tn-meal-summary:hover {
  background: var(--brand-surface-elevated);
}

.tn-expand-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-3);
  color: var(--brand-text-muted);
  transition: transform 0.2s ease;
  font-size: 12px;
}

.tn-meal-item.expanded .tn-expand-icon {
  transform: rotate(90deg);
}

.tn-meal-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-surface-elevated);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: var(--space-3);
  flex-shrink: 0;
}

.tn-meal-info {
  flex: 1;
  min-width: 0;
}

.tn-meal-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--brand-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tn-meal-name.substituted {
  color: var(--brand-secondary-dark);
}

.tn-meal-name.skipped {
  color: var(--brand-text-muted);
  text-decoration: line-through;
}

.tn-meal-meta {
  display: flex;
  gap: var(--space-3);
  font-size: 12px;
  color: var(--brand-text-muted);
  margin-top: 2px;
}

.tn-status-eaten {
  color: var(--color-success);
}

.tn-status-skipped {
  color: var(--color-error);
}

.tn-status-substituted {
  color: var(--brand-secondary-dark);
}

.tn-meal-stats {
  text-align: right;
  margin-left: var(--space-3);
  flex-shrink: 0;
}

.tn-stat-main {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-primary);
}

.tn-stat-secondary {
  font-size: 11px;
  color: var(--brand-text-muted);
}


/* =============================================================================
 * MEAL DETAILS (Expanded Content)
 * ============================================================================= */

.tn-meal-details {
  display: none;
  padding: 0 var(--space-5) var(--space-4) 72px;
  animation: tnSlideDown 0.2s ease;
}

.tn-meal-item.expanded .tn-meal-details {
  display: block;
}

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

.tn-detail-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}

.tn-action-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--brand-surface-elevated);
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tn-action-chip:hover {
  border-color: var(--brand-primary);
  background: var(--brand-surface);
}

.tn-action-chip.primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-text-light);
}

.tn-action-chip.primary:hover {
  background: var(--brand-primary-light);
}

.tn-action-chip.danger {
  border-color: var(--color-error);
  color: var(--color-error);
}

.tn-action-chip.danger:hover {
  background: var(--color-error-light);
}

.tn-action-chip.alternate {
  border-color: var(--brand-secondary);
  color: var(--brand-secondary-dark);
}

.tn-action-chip.alternate:hover {
  background: var(--color-warning-light);
}


/* =============================================================================
 * HALF PORTION TOGGLE
 * ============================================================================= */

.tn-half-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  font-size: 12px;
  color: var(--brand-text-muted);
}

.tn-toggle-switch {
  width: 36px;
  height: 20px;
  background: var(--brand-border);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tn-toggle-switch.active {
  background: var(--brand-primary);
}

.tn-toggle-switch::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--brand-surface);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: left 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tn-toggle-switch.active::after {
  left: 18px;
}


/* =============================================================================
 * TOTALS BAR
 * ============================================================================= */

.tn-totals-bar {
  background: var(--brand-surface-elevated);
  padding: var(--space-4) var(--space-5);
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--brand-border);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.tn-total-item {
  text-align: center;
  min-width: 80px;
}

.tn-total-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--brand-primary);
}

.tn-total-value span {
  font-size: 14px;
  color: var(--brand-text-muted);
  font-weight: 400;
}

.tn-total-label {
  font-size: 12px;
  color: var(--brand-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tn-total-progress {
  width: 80px;
  height: 4px;
  background: var(--brand-border);
  border-radius: 2px;
  margin: var(--space-2) auto 0;
  overflow: hidden;
}

.tn-total-progress-fill {
  height: 100%;
  background: var(--brand-secondary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.tn-total-progress-fill.over-goal {
  background: var(--color-warning);
}

.tn-total-progress-fill.at-goal {
  background: var(--color-success);
}


/* =============================================================================
 * CARD FOOTER
 * ============================================================================= */

.tn-card-footer {
  padding: var(--space-4) var(--space-5);
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.tn-btn-secondary {
  background: var(--brand-surface);
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  padding: var(--space-3) var(--space-5);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tn-btn-secondary:hover {
  background: var(--brand-surface-elevated);
}

.tn-btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  color: var(--brand-text-light);
  border: none;
  padding: var(--space-3) var(--space-5);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tn-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.tn-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.tn-btn-ghost {
  background: none;
  color: var(--brand-primary);
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.tn-btn-ghost:hover {
  background: var(--brand-surface-elevated);
}

/* --- Reactivation Section (Phase C) --- */
.tn-reactivate-section {
  margin-top: 16px;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}
.tn-reactivate-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-text-muted);
  margin-bottom: 6px;
  text-align: left;
}
.tn-reactivate-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--brand-text);
  background: var(--brand-surface);
  margin-bottom: 10px;
  cursor: pointer;
}
.tn-reactivate-select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.1);
}


/* =============================================================================
 * MODALS
 * ============================================================================= */

.tn-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.tn-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.tn-modal {
  background: var(--brand-surface);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.tn-modal-overlay.active .tn-modal {
  transform: scale(1);
}

.tn-modal.wide {
  max-width: 600px;
}

.tn-modal-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
  color: white;
  z-index: 10;
  border-radius: 16px 16px 0 0;
}

.tn-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: white;
  margin: 0;
}

.tn-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tn-modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.tn-modal-body {
  padding: var(--space-5);
}

.tn-modal-body.tn-modal-scrollable {
  max-height: 60vh;
  overflow-y: auto;
}

.tn-modal-subtitle {
  margin-bottom: var(--space-4);
  color: var(--brand-text-muted);
  font-size: 14px;
}

.tn-modal-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--brand-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  position: sticky;
  bottom: 0;
  background: var(--brand-surface);
}


/* =============================================================================
 * MODAL OPTIONS (3-Choice)
 * ============================================================================= */

.tn-modal-option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tn-modal-option:hover {
  border-color: var(--brand-primary);
  background: var(--brand-surface-elevated);
}

.tn-modal-option:last-child {
  margin-bottom: 0;
}

.tn-modal-option-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.tn-modal-option-text h4 {
  font-weight: 500;
  margin: 0 0 2px 0;
}

.tn-modal-option-text p {
  font-size: 13px;
  color: var(--brand-text-muted);
  margin: 0;
}


/* =============================================================================
 * RECIPE PICKER
 * ============================================================================= */

.tn-recipe-search {
  margin-bottom: var(--space-4);
}

.tn-recipe-search input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.tn-recipe-search input:focus {
  border-color: var(--brand-primary);
}

.tn-recipe-filters {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.tn-filter-btn {
  padding: var(--space-2) var(--space-3);
  background: var(--brand-surface-elevated);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tn-filter-btn:hover,
.tn-filter-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-text-light);
}

.tn-recipe-list {
  max-height: 400px;
  overflow-y: auto;
}

.tn-recipe-item {
  display: flex;
  align-items: center;
  padding: var(--space-4);
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tn-recipe-item:hover {
  border-color: var(--brand-primary);
  background: var(--brand-surface-elevated);
}

.tn-recipe-item.selected {
  border-color: var(--brand-primary);
  background: rgba(30, 58, 95, 0.05);
}

.tn-recipe-content {
  flex: 1;
}

.tn-recipe-title {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: var(--space-1);
}

.tn-recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 12px;
  color: var(--brand-text-muted);
}

.tn-recipe-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.tn-recipe-meta-item .value {
  font-weight: 500;
  color: var(--brand-primary);
}

.tn-recipe-type-tag {
  padding: 2px var(--space-2);
  background: var(--brand-secondary-light);
  color: var(--brand-secondary-dark);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.tn-recipe-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--brand-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: var(--space-3);
  transition: all 0.15s ease;
}

.tn-recipe-item.selected .tn-recipe-radio {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
}

.tn-recipe-item.selected .tn-recipe-radio::after {
  content: '\2713';
  color: var(--brand-text-light);
  font-size: 12px;
  font-weight: 600;
}


/* =============================================================================
 * PHOTO CAPTURE
 * ============================================================================= */

.tn-camera-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--brand-charcoal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
}

.tn-camera-icon {
  font-size: 48px;
  opacity: 0.5;
}

.tn-camera-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.tn-camera-buttons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

.tn-camera-btn {
  padding: var(--space-3) var(--space-6);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tn-camera-btn.capture {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  border: none;
  color: var(--brand-text-light);
}

.tn-camera-btn.upload {
  background: var(--brand-surface);
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
}


/* =============================================================================
 * PHOTO RESULTS
 * ============================================================================= */

.tn-analyzed-image {
  width: 100%;
  height: 200px;
  background: var(--brand-surface-elevated);
  border-radius: 8px;
  margin-bottom: var(--space-4);
  background-size: cover;
  background-position: center;
  position: relative;
}

.tn-analyzed-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-success);
  color: var(--brand-text-light);
  padding: var(--space-1) var(--space-3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.tn-detected-foods {
  margin-bottom: var(--space-5);
}

.tn-detected-foods h4 {
  font-size: 14px;
  color: var(--brand-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-3);
}

.tn-food-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-3);
  background: var(--brand-surface-elevated);
  border-radius: 6px;
  margin-bottom: var(--space-2);
}

.tn-food-item .name {
  font-weight: 500;
}

.tn-food-item .portion {
  font-size: 13px;
  color: var(--brand-text-muted);
}

.tn-food-item .calories {
  font-weight: 600;
  color: var(--brand-primary);
}

.tn-nutrition-summary {
  background: var(--brand-surface-elevated);
  padding: var(--space-4);
  border-radius: 8px;
  margin-bottom: var(--space-4);
}

.tn-nutrition-summary h4 {
  font-size: 14px;
  color: var(--brand-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-3);
}

.tn-nutrition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  text-align: center;
}

.tn-nutrition-item .value {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-primary);
}

.tn-nutrition-item .label {
  font-size: 11px;
  color: var(--brand-text-muted);
}

.tn-diet-labels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.tn-diet-label {
  padding: var(--space-1) var(--space-3);
  background: var(--color-success-light);
  color: var(--color-success);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.tn-confidence-note {
  font-size: 12px;
  color: var(--brand-text-muted);
  text-align: center;
  margin-top: var(--space-3);
}


/* =============================================================================
 * BARCODE SCANNER
 * ============================================================================= */

.tn-scanner-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--brand-charcoal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  position: relative;
}

.tn-scanner-line {
  position: absolute;
  width: 70%;
  height: 2px;
  background: var(--color-error);
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
  animation: tnScanLine 2s ease-in-out infinite;
}

@keyframes tnScanLine {
  0%, 100% { top: 30%; }
  50% { top: 65%; }
}

.tn-product-card {
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.tn-product-header {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
}

.tn-product-image {
  width: 80px;
  height: 80px;
  background: var(--brand-surface-elevated);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.tn-product-info {
  flex: 1;
}

.tn-product-brand {
  font-size: 12px;
  color: var(--brand-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tn-product-name {
  font-size: 16px;
  font-weight: 600;
  margin: var(--space-1) 0;
}

.tn-product-barcode {
  font-size: 12px;
  color: var(--brand-text-muted);
  font-family: var(--font-mono);
}

.tn-product-nutrition {
  background: var(--brand-surface-elevated);
  padding: var(--space-4);
}

.tn-product-nutrition h5 {
  font-size: 12px;
  color: var(--brand-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-3);
}


/* =============================================================================
 * SUCCESS ANIMATION
 * ============================================================================= */

.tn-success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 58, 95, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tn-success-overlay.active {
  opacity: 1;
  visibility: visible;
}

.tn-success-icon {
  font-size: 64px;
  animation: tnSuccessPop 0.5s ease;
}

.tn-success-text {
  color: var(--brand-text-light);
  font-size: 20px;
  font-weight: 500;
}

.tn-success-detail {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

@keyframes tnSuccessPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}


/* =============================================================================
 * RESPONSIVE
 * ============================================================================= */

@media (max-width: 600px) {
  .tn-nutrition-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tn-recipe-meta {
    flex-direction: column;
    gap: var(--space-1);
  }

  .tn-totals-bar {
    padding: var(--space-3) var(--space-4);
  }

  .tn-total-item {
    min-width: 70px;
  }

  .tn-total-value {
    font-size: 18px;
  }

  .tn-meal-summary {
    padding: var(--space-3) var(--space-4);
  }

  .tn-meal-details {
    padding: 0 var(--space-4) var(--space-3) 56px;
  }

  .tn-detail-actions {
    gap: var(--space-2);
  }

  .tn-action-chip {
    padding: var(--space-2) var(--space-3);
    font-size: 12px;
  }
}


/* =============================================================================
 * MEAL REMINDER SETTINGS (AccountTab)
 * ============================================================================= */

.meal-settings-card {
  margin-top: var(--space-6);
}

.meal-settings-content {
  padding: var(--space-5);
}

.meal-settings-toggle {
  margin-bottom: var(--space-5);
}

.meal-settings-toggle label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.meal-settings-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.meal-settings-toggle-label {
  font-weight: 500;
}

.meal-settings-toggle-desc {
  margin: var(--space-2) 0 0 var(--space-8);
  font-size: 14px;
  color: var(--brand-text-muted);
}

.meal-times-section {
  margin-bottom: var(--space-6);
}

.meal-times-section label {
  display: block;
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.meal-times-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.meal-time-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.meal-time-label {
  min-width: 80px;
  font-size: 14px;
  text-transform: capitalize;
}

.meal-time-input {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  font-size: 14px;
  flex: 1;
}

.macro-slider-section {
  margin-bottom: var(--space-5);
}

.macro-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.macro-slider-label {
  font-weight: 500;
}

.macro-slider-recommended {
  font-size: 12px;
  color: var(--brand-text-muted);
}

.macro-slider-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.macro-slider-row input[type="range"] {
  flex: 1;
}

.macro-slider-value {
  min-width: 80px;
  padding: var(--space-2) var(--space-3);
  background: var(--brand-surface-elevated);
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
}

.meal-settings-save-btn {
  padding: var(--space-3) var(--space-6);
  background-color: var(--brand-primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.meal-settings-save-btn:hover {
  background-color: var(--brand-primary-dark);
}

.meal-settings-save-btn:disabled {
  background-color: var(--brand-text-muted);
  cursor: not-allowed;
}

/* Placeholder/loading states */
.tn-placeholder {
  padding: var(--space-10);
  text-align: center;
}

.tn-placeholder-text {
  margin-bottom: var(--space-4);
  color: var(--brand-text-muted);
}

.tn-loading {
  padding: var(--space-10);
  text-align: center;
}

/* Half portion indicator */
.tn-half-indicator {
  color: var(--brand-primary);
}

/* Mark All Consumed Result Modal */
.tn-consumed-summary {
  text-align: center;
  font-size: var(--text-lg);
  padding: var(--space-4) 0;
  color: var(--brand-navy);
}
.tn-consumed-pantry { margin-top: var(--space-3); }
.tn-consumed-pantry h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: var(--space-2);
}
.tn-consumed-pantry-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-light);
}
.tn-consumed-note {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: center;
  margin-top: var(--space-3);
}
