/* ==========================================================================
   1. DESIGN TOKENS, ATMOSPHERIC GLOW & RESETS
   ========================================================================== */
:root {
    --bg-color: #fbfdfc;
    --card-bg: #ffffff;
    --card-hover: #f8faf9;
    --text-color: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;

    --primary-color: #10b981;
    --primary-hover: #059669;
    --primary-dark: #065f46;
    --primary-light: #ecfdf5;
    --primary-border: rgba(16, 185, 129, 0.25);

    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;

    --danger-color: #ef4444;
    --danger-bg: #fef2f2;
    --danger-border: #fee2e2;

    --warning-color: #f59e0b;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;

    --info-color: #3b82f6;
    --info-light: #eff6ff;

    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.06), 0 3px 8px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 16px 32px -6px rgba(0, 0, 0, 0.08), 0 6px 12px -3px rgba(0, 0, 0, 0.04);

    --font-stack:
        -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-stack);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    letter-spacing: -0.015em;
}

/* Atmospheric Ambient Glow Blobs */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.glow-top-left {
    top: -8vw;
    left: -8vw;
    width: 35vw;
    height: 35vw;
    min-width: 440px;
    min-height: 440px;
    max-width: 620px;
    max-height: 620px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.17) 0%, rgba(52, 211, 153, 0.05) 55%, transparent 75%);
}

.glow-top-right {
    top: 2vw;
    right: -8vw;
    width: 32vw;
    height: 32vw;
    min-width: 400px;
    min-height: 400px;
    max-width: 580px;
    max-height: 580px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.13) 0%, rgba(110, 231, 183, 0.04) 60%, transparent 80%);
}

/* ==========================================================================
   2. HERO INTRO & BIO HEADER
   ========================================================================== */
.hero-section {
    position: relative;
    z-index: 10;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 12px 24px;
}

.hero-container {
    max-width: 900px;
}

.hero-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.hero-inline-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-right: -5px;
    margin-left: -5px;
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.title-dark {
    color: #0f172a;
}

.title-green {
    background: linear-gradient(135deg, #1b4332 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

/* Callout Box (Exact match to requested aesthetic) */
.hero-callout {
    border-left: 3px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 18px;
    border-radius: 0 10px 10px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-left: 3px solid var(--primary-color);
}

.callout-highlight {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.callout-body {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   3. APPLICATION GRID & CARD CONTAINERS
   ========================================================================== */
.app-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 12px 24px 40px 24px;
    display: grid;
    grid-template-columns: 370px 1fr;
    gap: 22px;
    flex-grow: 1;
    position: relative;
    z-index: 10;
    align-items: start;
}

@media (max-width: 1080px) {
    .app-container {
        grid-template-columns: 1fr;
    }
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.right-panel {
    display: flex;
    flex-direction: column;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-row h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.section-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 6px;
}

.subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    margin-bottom: 10px;
}

.resizable-scroll-container {
    overflow-y: auto;
    border-radius: 6px;
    padding-right: 4px;
}

.resizable-scroll-container::-webkit-scrollbar {
    width: 5px;
}

.resizable-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.resizable-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

/* ==========================================================================
   4. APPLE/LINEAR-STYLE SEGMENTED TABS
   ========================================================================== */
.mode-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.tab-btn {
    flex: 1;
    height: 34px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    background-color: #ffffff;
    color: var(--text-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mode-view {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mode-view.hidden {
    display: none !important;
}

/* ==========================================================================
   5. TWO-STEP FOOD SELECTOR
   ========================================================================== */
.food-input-step {
    position: relative;
    width: 100%;
}

.food-input-step.hidden {
    display: none !important;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input-wrapper input[type='text'] {
    width: 100%;
    height: 40px;
    padding-left: 36px;
    padding-right: 12px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-color);
    outline: none;
    transition: all 0.15s ease;
}

.search-input-wrapper input[type='text']:focus {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.input-inline-hint {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.hint-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.hint-sample {
    font-weight: 600;
    color: var(--text-color);
}

/* Food Autocomplete Dropdown */
.food-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 100;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
}

.food-dropdown.hidden {
    display: none;
}

.food-dropdown-list {
    list-style: none;
}

.food-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    transition: all 0.1s ease;
}

.food-dropdown-item:hover,
.food-dropdown-item.is-selected {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.food-dropdown-item.is-matched {
    color: var(--text-color);
    font-weight: 600;
}

.food-dropdown-item .item-calories {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* Step 2: Integrated Quantity Bar */
.quantity-input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.selected-food-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 0 10px;
    height: 38px;
    border-radius: 6px;
    border: 1px solid var(--primary-border);
    cursor: pointer;
    max-width: 130px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.selected-food-pill:hover {
    background: #d1fae5;
}

.selected-food-pill span#selected-food-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pill-remove-icon {
    font-size: 14px;
    font-weight: bold;
    opacity: 0.6;
}

.amount-field-container {
    position: relative;
    flex: 1;
    min-width: 0;
}

.amount-field-container input[type='number'] {
    width: 100%;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0 10px;
    font-size: 13px;
    background: #f8fafc;
    outline: none;
    -moz-appearance: textfield;
}

.amount-field-container input[type='number']::-webkit-outer-spin-button,
.amount-field-container input[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amount-field-container input[type='number']:focus {
    border-color: var(--primary-color);
    background: #ffffff;
}

/* Presets Dropdown */
.amount-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    z-index: 120;
    max-height: 180px;
    overflow-y: auto;
    padding: 4px;
}

.amount-dropdown.hidden {
    display: none;
}

.amount-dropdown-list {
    list-style: none;
}

.amount-preset-item {
    padding: 6px 10px;
    font-size: 12px;
    color: var(--text-muted);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.amount-preset-item:hover,
.amount-preset-item.is-selected {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

/* Unit Dropdown */
.unit-dropdown-container {
    position: relative;
    flex-shrink: 0;
}

.unit-trigger-btn {
    height: 38px;
    padding: 0 10px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.unit-trigger-btn:hover {
    background: #e2e8f0;
}

.unit-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    z-index: 120;
    min-width: 130px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.unit-menu.hidden {
    display: none;
}

.unit-opt {
    background: none;
    border: none;
    padding: 6px 10px;
    font-size: 12px;
    text-align: left;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    width: 100%;
}

.unit-opt:hover {
    background: #f1f5f9;
}

.unit-opt.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
}

.add-submit-btn {
    height: 38px;
    padding: 0 14px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.add-submit-btn:hover {
    background: var(--primary-hover);
}

/* ==========================================================================
   6. DIET LIST
   ========================================================================== */
.diet-list-wrapper {
    min-height: 50px;
    max-height: 440px;
}

.diet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.diet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition:
        background 0.12s ease,
        border-color 0.12s ease;
}

.diet-item:hover {
    background-color: #f8fafc;
}

.diet-item.hovered {
    background-color: var(--primary-light);
}

.diet-item.selected {
    background-color: var(--primary-light);
    border-color: var(--primary-border);
}

.diet-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    min-width: 0;
}

.diet-food-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.diet-unit-breakdown {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-subtle);
    cursor: pointer;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s;
    margin-left: 8px;
}

.remove-btn:hover {
    color: var(--danger-color);
    background-color: var(--danger-bg);
}

/* ==========================================================================
   7. BIOLOGICAL PROFILE FIELD NOTE (INSIGHT CARD)
   ========================================================================== */
.food-insight-card {
    background: #fffdf7;
    border: 1px solid #f3e8c7;
    border-left: 3px solid var(--warning-color);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 2px;
    box-shadow: var(--shadow-xs);
}

.food-insight-card.hidden {
    display: none !important;
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3px;
}

.insight-title-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.insight-badge {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    color: #d97706;
}

#insight-food-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
}

.close-insight-btn {
    background: none;
    border: none;
    color: var(--text-subtle);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.close-insight-btn:hover {
    color: var(--text-color);
}

.insight-family {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 8px;
}

.insight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.insight-tag {
    background: #fef3c7;
    color: #92400e;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #fde68a;
}

.insight-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.insight-block {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.insight-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.label-superpower {
    color: #059669;
}
.label-nuance {
    color: #dc2626;
}
.label-prep {
    color: #2563eb;
}

.insight-block p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.prep-block {
    background: rgba(255, 255, 255, 0.6);
    padding: 5px 7px;
    border-radius: 5px;
    border: 1px dashed #e5e7eb;
}

/* ==========================================================================
   8. RIGHT PANEL & TOP CRONOMETER DASHBOARD
   ========================================================================== */
.nutrition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.nutrition-header h2 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-color);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.indicator {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 3px 8px;
    border-radius: 6px;
}

.toggle-all-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.toggle-all-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Top Dashboard Layout */
.nutrition-summary-dashboard {
    background: #fafcfb;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 1.15fr 1.35fr;
    gap: 22px;
    align-items: center;
}

.summary-left-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-right: 1px solid var(--border-color);
    padding-right: 20px;
}

.summary-rings-panel {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.ring-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ring-svg-container {
    position: relative;
    width: 62px;
    height: 62px;
}

.circular-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3.2;
}

.ring-fill {
    fill: none;
    stroke-width: 3.2;
    stroke-linecap: round;
    transition: stroke-dasharray 0.4s ease;
}

.energy-fill {
    stroke: var(--primary-color);
}
.target-fill {
    stroke: var(--info-color);
}
.remaining-fill {
    stroke: #94a3b8;
}

.ring-center-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ring-val {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ring-unit {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
}

.ring-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Water Tracker */
.water-tracker-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.water-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.water-title-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.water-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-color);
}

.water-vol-text {
    font-size: 11px;
    color: #0284c7;
    font-weight: 700;
    font-family: var(--font-mono);
}

.water-glasses-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.water-btn {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.water-btn:hover {
    background: #0284c7;
    color: #ffffff;
}

.glasses-container {
    display: flex;
    gap: 5px;
}

.glass-btn {
    width: 14px;
    height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 2px 2px 4px 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: all 0.15s ease;
}

.glass-btn.active {
    border-color: #0284c7;
    background: #0284c7;
}

.water-progress-track {
    width: 100%;
    height: 4px;
    background: #e0f2fe;
    border-radius: 2px;
    overflow: hidden;
}

.water-progress-bar {
    height: 100%;
    background: #0284c7;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Macro Target Rows */
.summary-macros-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.macro-target-row {
    display: grid;
    grid-template-columns: 75px 1fr 135px 38px;
    align-items: center;
    gap: 10px;
    font-size: 11px;
}

.macro-name {
    font-weight: 600;
    color: var(--text-color);
}

.macro-progress-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.macro-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.energy-bar {
    background: var(--primary-color);
}
.protein-bar {
    background: var(--info-color);
}
.carbs-bar {
    background: var(--warning-color);
}
.fat-bar {
    background: #8b5cf6;
}
.glycine-bar {
    background: #06b6d4;
}

.macro-vals {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.macro-pct {
    font-weight: 700;
    color: var(--text-muted);
    text-align: right;
    font-family: var(--font-mono);
}

.glycine-ratio-card {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.glycine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
}

.glycine-title {
    font-weight: 700;
    color: #0f766e;
}

.glycine-score {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #0d9488;
}

@media (max-width: 1150px) {
    .nutrition-summary-dashboard {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .summary-left-col {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 14px;
    }
}

/* ==========================================================================
   9. CATEGORY ACCORDION CARDS
   ========================================================================== */
.nutrition-grid-wrapper {
    flex-grow: 1;
    min-height: 300px;
}

.nutrition-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
}

@media (max-width: 950px) {
    .nutrition-columns {
        grid-template-columns: 1fr;
    }
}

.nutrition-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nutrient-category {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.15s ease;
    cursor: pointer;
}

.nutrient-category:hover {
    border-color: #cbd5e1;
    background-color: var(--card-hover);
}

.nutrient-category h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.cat-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-icon-svg {
    width: 15px;
    height: 15px;
    stroke: var(--text-muted);
}

.cat-progress-badge {
    font-size: 11px;
    color: var(--primary-dark);
    font-weight: 600;
    background: var(--primary-light);
    padding: 1px 6px;
    border-radius: 4px;
}

.toggle-icon {
    font-size: 11px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.nutrient-category.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.category-progress-bar {
    width: 100%;
    height: 3px;
    background-color: #f1f5f9;
    margin-top: 6px;
    margin-bottom: 10px;
    border-radius: 2px;
    overflow: hidden;
}

.category-progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.limit-category .category-progress-fill {
    background-color: var(--danger-color) !important;
}

.nutrient-category.limit-category {
    border-color: #fee2e2;
    background: #fffafa;
}

.category-progress-bar.compare-category-bar {
    background-color: transparent !important;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: visible;
    margin-bottom: 10px;
}

.category-content {
    display: block;
    margin-top: 10px;
    cursor: default;
}

.category-content.hidden {
    display: none;
}

/* ==========================================================================
   10. NUTRIENT ROWS & TREE INDENTATIONS
   ========================================================================== */
.nutrient-row {
    padding: 7px 0;
    border-bottom: 1px dashed var(--border-subtle);
}

.nutrient-row:last-child {
    border-bottom: none;
}

.nutrient-row.clickable-row {
    cursor: pointer;
    transition: background-color 0.12s ease;
    padding: 7px 8px;
    margin-left: -8px;
    width: calc(100% + 16px);
    border-radius: 6px;
}

.nutrient-row.clickable-row:hover {
    background-color: #f8fafc;
}

.nutrient-row.indent-1.clickable-row {
    padding-left: 14px;
}
.nutrient-row.indent-2.clickable-row {
    padding-left: 26px;
}
.nutrient-row.indent-3.clickable-row {
    padding-left: 38px;
}

.nutrient-row.indent-1 .nutrient-info span:first-child::before {
    content: '↳ ';
    color: var(--text-subtle);
    font-family: var(--font-mono);
    font-weight: bold;
    margin-right: 4px;
}

.nutrient-row.indent-2 .nutrient-info span:first-child::before {
    content: '    ↳ ';
    color: var(--text-subtle);
    font-family: var(--font-mono);
    font-weight: bold;
    margin-right: 4px;
}

.nutrient-row.indent-3 .nutrient-info span:first-child::before {
    content: '        ↳ ';
    color: var(--text-subtle);
    font-family: var(--font-mono);
    font-weight: bold;
    margin-right: 4px;
}

.nutrient-row.subheader {
    font-weight: 700;
    color: var(--text-secondary);
    background-color: #f8fafc;
    padding: 5px 8px;
    margin-top: 10px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Bars */
.nutrient-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 3px;
}

.nutrient-info span:last-child {
    font-weight: 600;
    font-family: var(--font-mono);
}

.rda-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 6px;
    background-color: transparent;
    position: relative;
}

.rda-bar-wrapper {
    display: flex;
    flex: 1;
    height: 6px;
    background-color: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

.rda-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.rda-bar.exceeded {
    background-color: var(--info-color);
}
.rda-bar.over-limit {
    background-color: var(--warning-color) !important;
}
.rda-bar.limit-under {
    background-color: #fecaca !important;
}
.rda-bar.limit-over {
    background-color: var(--danger-color) !important;
}

.percentage-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: right;
    width: 70px;
    flex-shrink: 0;
    font-family: var(--font-mono);
}

.percentage-label.over-limit-text {
    color: #ea580c !important;
}

.rda-bar.unabsorbed {
    opacity: 0.35 !important;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.25) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.25) 75%,
        transparent 75%,
        transparent
    ) !important;
    background-size: 8px 8px !important;
}

/* No-Target (N/T) system */
.rda-container.no-target-layout {
    background-color: transparent !important;
}

.rda-dots {
    letter-spacing: 3px;
    color: #cbd5e1;
    font-size: 12px;
}

.nt-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-subtle);
    width: 70px;
    text-align: right;
}

.no-target-val {
    color: var(--text-muted);
}

/* ==========================================================================
   11. EXPANDED NUTRIENT ANALYSIS DRAWER
   ========================================================================== */
.nutrient-details-panel {
    background-color: #fcfdfd;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    margin: 6px 8px 6px -8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.nutrient-details-panel h4 {
    font-size: 12px;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.detail-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre-line;
    margin: 8px 0 10px 0;
}

.sources-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.sources-container.single-column {
    grid-template-columns: 1fr;
}

.sources-list {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 10px;
}

.sources-list h5 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    margin-bottom: 5px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 3px;
}

.source-item {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 3px 0;
}

.source-item span:last-child {
    font-weight: 700;
    color: var(--primary-color);
}

/* Multi-color Meter */
.detailed-meter-container {
    margin: 12px 0 16px 0;
    position: relative;
    user-select: none;
}

.meter-bar-wrapper {
    position: relative;
    height: 16px;
    margin: 6px 0;
}

.meter-bar {
    height: 7px;
    border-radius: 4px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.meter-marker {
    position: absolute;
    top: -5px;
    font-size: 8px;
    color: #e67e22;
    transform: translateX(-50%);
    z-index: 10;
}

.meter-tick {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 5;
}

.meter-labels-top,
.meter-labels-bottom {
    position: relative;
    height: 12px;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
}

.meter-labels-top span,
.meter-labels-bottom span {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

.meter-labels-bottom .zero-label {
    transform: none;
    left: 0;
}

/* ==========================================================================
   12. COMPARISON MODE STYLES
   ========================================================================== */
.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.slot-badge {
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}

.clear-slot-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 4px;
}

.clear-slot-btn:hover {
    color: var(--danger-color);
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.color-picker-wrapper label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.color-options {
    display: flex;
    gap: 6px;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s ease;
}

.color-dot:hover {
    transform: scale(1.15);
}

.color-dot.active {
    border-color: #0f172a;
    box-shadow: 0 0 0 2px white inset;
}

.slot-status {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 8px;
    margin-top: 10px;
    border-top: 1px solid var(--border-subtle);
}

.slot-status.active {
    color: var(--text-color);
    font-weight: 600;
}

.compare-info {
    display: flex;
    justify-content: space-between;
}

.compare-vals {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vs-divider {
    color: var(--text-subtle);
    font-size: 9px;
    text-transform: uppercase;
    font-weight: bold;
}

.target-val {
    color: var(--text-muted);
    font-size: 11px;
}

.rda-container.compare-container {
    height: 16px !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: transparent !important;
    width: 100% !important;
    gap: 12px !important;
}

.compare-bars-wrapper {
    width: auto !important;
    flex-grow: 1 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.rda-bar.compare-bar {
    height: 5px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.compare-percentages {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    font-size: 9px;
    font-weight: bold;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
    width: 70px;
    font-family: var(--font-mono);
}

.compare-meters-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.compare-slot-meter {
    margin: 4px 0 8px 0;
}

/* ==========================================================================
   FAR TOP-LEFT CORNER MENU (☰ -> |||)
   ========================================================================== */
.corner-nav-wrapper {
    position: fixed;
    top: 24px;
    left: 28px;
    z-index: 500;
}

/* 3 horizontal bars (☰) */
.nav-toggle-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3.5px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease;
}

.nav-toggle-btn:hover {
    opacity: 0.7;
}

.nav-toggle-btn .bar {
    display: block;
    width: 15px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 1px;
}

/* Morph to 3 vertical bars (|||) on open */
.nav-toggle-btn.is-active {
    transform: rotate(90deg);
}

.nav-toggle-btn.is-active .bar {
    background-color: var(--primary-color);
}

/* Minimal dropdown list */
.minimal-nav-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 10px 4px;
    z-index: 501;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.minimal-nav-dropdown.hidden {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.min-nav-link {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    cursor: pointer;
    transition: color 0.15s ease;
}

.min-nav-link:hover {
    color: var(--text-color);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ==========================================================================
   ULTRA-SLIM 1-LINE AMBIENT FOOTER
   ========================================================================== */
.app-footer {
    position: relative;
    margin-top: 40px;
    width: 100%;
    /* Soft black to emerald gradient, subtle top border */
    background: linear-gradient(98deg, #090c0a 0%, #0d1512 35%, #073523 75%, #064e3b 100%);
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    color: #94a3b8;
}

.footer-slim-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
}

.footer-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.footer-title {
    font-weight: 700;
}

.footer-title-green {
    color: #34d399;
}

.footer-sep {
    color: #475569;
    font-size: 10px;
}

.footer-author a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
}

.footer-author a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-center {
    color: #64748b;
    font-size: 11px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-links a {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .corner-nav-wrapper {
        top: 16px;
        left: 16px;
    }
    .footer-slim-container {
        flex-direction: column;
        gap: 8px;
        padding: 16px 20px;
        text-align: center;
    }
}

/* ==========================================================================
   WEEK SELECTOR, MEALS & FOOD TRACKER CONTROLS
   ========================================================================== */
.week-bar-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 10px;
}

.week-days-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.day-btn {
    height: 30px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.day-btn:hover {
    background: #f1f5f9;
    color: var(--text-color);
}

.day-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.week-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 6px;
}

.save-load-group {
    display: flex;
    gap: 4px;
}

.week-action-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.week-action-btn:hover {
    color: var(--text-color);
    border-color: #cbd5e1;
    background: #f8fafc;
}

.tracker-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-day-badge {
    font-size: 10px;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}

.add-meal-btn {
    background: #f8fafc;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.15s ease;
}

.add-meal-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-border);
}

/* Meal Groups */
.meal-group-card {
    background: #fafcfb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.meal-group-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.meal-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    background: #f1f5f9;
    cursor: pointer;
    user-select: none;
}

.meal-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-color);
}

.meal-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meal-cals-badge {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.meal-delete-btn {
    background: none;
    border: none;
    color: var(--text-subtle);
    cursor: pointer;
    font-size: 14px;
}

.meal-delete-btn:hover {
    color: var(--danger-color);
}

.meal-target-select {
    height: 38px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: #f8fafc;
    color: var(--text-color);
    outline: none;
}

/* ==========================================================================
   QUICK LOG SECTION, MODALS & TOAST NOTIFICATIONS
   ========================================================================== */

/* Quick Log Section */
.quick-log-card {
    background: #ffffff;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: all 0.15s ease;
}

.quick-log-card.selected {
    border-color: var(--primary-color);
    border-style: solid;
    box-shadow: 0 0 0 1px var(--primary-color);
}

.quick-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    background: #f8fafc;
    cursor: pointer;
    user-select: none;
}

.quick-log-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.quick-log-cals {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.week-action-btn.danger:hover {
    color: var(--danger-color);
    border-color: var(--danger-border);
    background: var(--danger-bg);
}

/* Native Modal Backdrop & Cards */
.app-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    transition: opacity 0.2s ease;
}

.app-modal-backdrop.hidden {
    display: none;
}

.app-modal-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 380px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-modal-card.hidden {
    display: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--text-color);
}

.modal-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.modal-input {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.modal-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.modal-btn-subtle {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.modal-btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
}

.modal-btn-primary:hover {
    background: var(--primary-hover);
}

/* Saved plans list in Load Modal */
.saved-plans-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.saved-plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #f8fafc;
}

.saved-plan-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
}

.saved-plan-date {
    font-size: 10px;
    color: var(--text-muted);
}

.plan-item-actions {
    display: flex;
    gap: 6px;
}

.plan-load-btn {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-border);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.plan-del-btn {
    background: none;
    border: none;
    color: var(--text-subtle);
    cursor: pointer;
    font-size: 15px;
}

.plan-del-btn:hover {
    color: var(--danger-color);
}

/* Floating Clean Toast */
.app-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: #0f172a;
    color: #ffffff;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
}

.app-toast.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
    pointer-events: none;
}

.meal-group-card,
.quick-log-card {
    cursor: pointer; /* Whole card is clickable */
}

.meal-items-list,
.quick-items-list {
    cursor: default;
}

/* Clear visual distinction when single food inside a meal is selected */
.diet-item.selected {
    background-color: var(--primary-light) !important;
    border-color: var(--primary-border) !important;
}
