/* NutriPulse - Calorie & Macro Tracker Stylesheet */
/* Strict Rules: No Tailwind, No CSS Variables */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0b0f19;
    color: #f8fafc;
    min-height: 100vh;
    padding: 24px 16px 60px;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Glowing Ambient Backgrounds */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
}

.bg-glow-2 {
    top: 400px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
}

/* App Container */
.app-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(20, 27, 44, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    font-size: 11px;
    font-weight: 600;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Date Navigator */
.date-navigator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 12px;
    border-radius: 14px;
}

.date-display-wrapper {
    position: relative;
    cursor: pointer;
}

.date-picker-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.date-display-text {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.date-display-wrapper:hover .date-display-text {
    background: rgba(255, 255, 255, 0.08);
}

/* Buttons */
.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.pill-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.primary-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    transition: all 0.2s ease;
}

.primary-btn:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.text-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.text-btn:hover {
    color: #f8fafc;
    text-decoration: underline;
}

.small-btn {
    padding: 6px 12px;
    font-size: 12px;
}

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

/* Cards Base */
.card {
    background: rgba(20, 27, 44, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 17px;
    font-weight: 700;
    color: #f1f5f9;
}

.card-header .subtitle {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

/* Summary Card */
.net-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.summary-body {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* SVG Progress Ring */
.ring-wrapper {
    position: relative;
    width: 210px;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.progress-ring {
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
}

.ring-fill {
    fill: none;
    stroke: #38bdf8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}

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

.ring-number {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
    line-height: 1.1;
}

.ring-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 2px;
}

.ring-subtext {
    font-size: 11px;
    color: #a855f7;
    font-weight: 600;
    margin-top: 6px;
    background: rgba(168, 85, 247, 0.12);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Metrics Grid inside Summary */
.metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1;
}

.metric-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
}

.metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.icon-goal { background: rgba(59, 130, 246, 0.15); }
.icon-food { background: rgba(16, 185, 129, 0.15); }
.icon-burn { background: rgba(168, 85, 247, 0.15); }

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.metric-value {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
}

/* Macros Card */
.macros-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.macro-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

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

.macro-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.protein-dot { background-color: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
.carbs-dot { background-color: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
.fat-dot { background-color: #f43f5e; box-shadow: 0 0 8px rgba(244, 63, 94, 0.5); }

.macro-name {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.macro-val {
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.protein-fill { background: linear-gradient(90deg, #059669, #10b981); }
.carbs-fill { background: linear-gradient(90deg, #d97706, #f59e0b); }
.fat-fill { background: linear-gradient(90deg, #e11d48, #f43f5e); }

.macro-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Auxiliary Grid (Water & Exercise) */
.auxiliary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.aux-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.aux-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aux-icon {
    font-size: 24px;
}

.aux-title h3 {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
}

.aux-sub {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.water-progress-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}

.water-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.water-actions {
    display: flex;
    gap: 10px;
}

.water-add-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.water-add-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-1px);
}

.exercise-mini-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 90px;
    overflow-y: auto;
}

.exercise-item-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    font-size: 12px;
}

.exercise-item-name {
    font-weight: 600;
    color: #e9d5ff;
}

.exercise-item-val {
    font-weight: 700;
    color: #c084fc;
}

.delete-exercise-btn {
    background: none;
    border: none;
    color: #a855f7;
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
}

/* Meals Container */
.meals-container {
    margin-top: 10px;
}

.meals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.meals-header h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.meals-summary {
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.meals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.meal-card {
    display: flex;
    flex-direction: column;
}

.meal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.meal-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meal-icon {
    font-size: 22px;
}

.meal-title-group h3 {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
}

.meal-macros-summary {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.add-food-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-food-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    color: #ffffff;
}

.meal-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 80px;
}

.empty-meal-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    border: 1.5px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.food-item-row {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.food-item-row:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.food-item-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.food-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
}

.food-item-sub {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    gap: 8px;
}

.macro-pill {
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10px;
}

.pill-p { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.pill-c { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.pill-f { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

.food-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.food-item-calories {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.food-item-actions {
    display: flex;
    gap: 4px;
}

.action-icon-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.action-icon-btn:hover {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.15);
}

/* ==================== MODALS ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 16, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: #131b2e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.small-modal {
    max-width: 420px;
}

.large-modal {
    max-width: 720px;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
}

.close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Tabs */
.tab-bar {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    padding: 6px;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tab-btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: rgba(59, 130, 246, 0.15);
    color: #38bdf8;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.3);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Presets & Saved grid */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    color: #94a3b8;
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: #f8fafc;
    font-size: 13px;
    width: 100%;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
}

.preset-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-card:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-2px);
}

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

.preset-name {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
}

.preset-cal {
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
}

.preset-serving {
    font-size: 11px;
    color: #94a3b8;
}

.preset-macros {
    display: flex;
    gap: 6px;
    font-size: 10px;
}

/* Forms */
.form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.two-col > .form-group { flex: 1; }
.three-col > .form-group { flex: 1; }
.four-col > .form-group { flex: 1; }
.full-width { width: 100%; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #f8fafc;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.checkbox-group {
    margin: 16px 0;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
}

.form-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
    margin: 16px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.danger-zone {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(244, 63, 94, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.danger-zone h4 {
    font-size: 13px;
    color: #f43f5e;
}

.danger-btn {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.danger-btn:hover {
    background: rgba(244, 63, 94, 0.25);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

/* Analytics */
.analytics-summary-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.analytics-stat-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-title {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #38bdf8;
}

.chart-container h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #e2e8f0;
}

.bars-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 180px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bar-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}

.bar-fill-track {
    width: 24px;
    height: 100%;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    position: relative;
}

.bar-fill-inner {
    width: 100%;
    background: linear-gradient(180deg, #38bdf8, #3b82f6);
    border-radius: 6px;
    transition: height 0.6s ease;
}

.bar-fill-inner.over-goal {
    background: linear-gradient(180deg, #f43f5e, #e11d48);
}

.bar-day-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

.bar-val-label {
    font-size: 10px;
    color: #cbd5e1;
    font-weight: 700;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .meals-grid {
        grid-template-columns: 1fr;
    }

    .auxiliary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        padding: 12px 10px 40px;
    }

    .app-header {
        flex-direction: column;
        gap: 14px;
        align-items: stretch;
    }

    .date-navigator {
        justify-content: center;
    }

    .header-actions {
        justify-content: flex-end;
    }

    .summary-body {
        flex-direction: column;
    }

    .presets-grid {
        grid-template-columns: 1fr;
    }

    .four-col {
        flex-direction: column;
    }

    .three-col {
        flex-direction: column;
    }

    .two-col {
        flex-direction: column;
    }

    .analytics-summary-boxes {
        grid-template-columns: 1fr;
    }
}
