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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    min-height: 100vh;
    padding: 20px;
    color: #e0e6ed;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    font-size: inherit;
    margin-right: 8px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(179, 0, 255, 0.4);
    color: #00d4ff;
    font-weight: 900;
    letter-spacing: 2px;
}

header h1 .material-symbols-outlined {
    font-size: 2.5rem;
}

.date-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.current-date {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00d4ff;
    min-width: 200px;
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.date-picker {
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #00d4ff;
    border-radius: 10px;
    background: #1a1f3a;
    color: #00d4ff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.date-picker:hover {
    border-color: #00d4ff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.date-picker:focus {
    outline: none;
    border-color: #b300ff;
    box-shadow: 0 0 20px rgba(179, 0, 255, 0.6);
}

.nav-btn, .today-btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-btn {
    background: linear-gradient(135deg, #b300ff 0%, #7000a3 100%);
    color: white;
    border: 2px solid #b300ff;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(179, 0, 255, 0.8);
}

.nav-btn:active {
    transform: translateY(0);
}

.today-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #0077ff 100%);
    color: #0a0e27;
    font-weight: bold;
    border: 2px solid #00d4ff;
}

.today-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

.today-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.today-btn:disabled:hover {
    transform: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

.card {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1329 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.1);
    animation: fadeIn 0.5s ease-in;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

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

h2 {
    color: #00d4ff;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    font-weight: 700;
    letter-spacing: 1px;
}

h2 .material-symbols-outlined {
    font-size: 1.5rem;
}

h3 {
    color: #b300ff;
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(179, 0, 255, 0.5);
}

.weight-input-group,
.food-input-group,
.goals-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.goals-input-group label {
    font-weight: bold;
    color: #00d4ff;
    font-size: 0.95rem;
}

.goal-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.goal-item {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(179, 0, 255, 0.1) 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.goal-label {
    font-size: 0.85rem;
    color: #8b95a5;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.goal-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.total-goal {
    display: block;
    font-size: 0.85rem;
    color: #8b95a5;
    margin-top: 3px;
}

.goal-progress {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.progress-item {
    margin-bottom: 15px;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #e0e6ed;
    margin-bottom: 8px;
}

.progress-bar-container {
    height: 30px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.progress-bar {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 15px;
    box-shadow: 0 0 15px currentColor;
}

.protein-progress {
    background: linear-gradient(90deg, #00d4ff 0%, #0077ff 100%);
}

.protein-progress.complete {
    background: linear-gradient(90deg, #00ff88 0%, #00cc70 100%);
}

.carb-progress {
    background: linear-gradient(90deg, #ffa500 0%, #ff8c00 100%);
}

.carb-progress.over-limit {
    background: linear-gradient(90deg, #ff3366 0%, #cc0033 100%);
}

.progress-text {
    display: block;
    font-size: 0.85rem;
    color: #8b95a5;
    margin-top: 5px;
}

#customEntry {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    border: 2px dashed rgba(0, 212, 255, 0.3);
}

.food-search-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    position: relative;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1329 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d4ff 0%, #b300ff 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.search-result-item {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.2);
}

.search-result-item:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00d4ff;
    transform: translateX(5px);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-name {
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 5px;
}

.search-result-macros {
    font-size: 0.85rem;
    color: #8b95a5;
}

.search-loading {
    text-align: center;
    padding: 20px;
    color: #00d4ff;
    font-style: italic;
}

.search-error {
    text-align: center;
    padding: 20px;
    color: #ff3366;
    font-style: italic;
}

.search-empty {
    text-align: center;
    padding: 20px;
    color: #8b95a5;
    font-style: italic;
}

input[type="number"],
input[type="text"],
select {
    padding: 12px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.3);
    color: #e0e6ed;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

select option {
    background: #1a1f3a;
    color: #e0e6ed;
}

button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #00d4ff 0%, #0077ff 100%);
    color: #0a0e27;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 44px;
}

button .material-symbols-outlined {
    font-size: 1.2rem;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.8);
}

button:active {
    transform: translateY(0);
}

.clear-btn {
    background: linear-gradient(135deg, #ff3366 0%, #cc0033 100%);
    margin-top: 15px;
    width: 100%;
    color: white;
}

.clear-btn:hover {
    box-shadow: 0 0 25px rgba(255, 51, 102, 0.8);
}

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

.total-item {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(179, 0, 255, 0.1) 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.total-label {
    display: block;
    font-size: 0.9rem;
    color: #8b95a5;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.weight-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.stat-card {
    background: linear-gradient(135deg, rgba(179, 0, 255, 0.2) 0%, rgba(115, 0, 179, 0.2) 100%);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(179, 0, 255, 0.3);
}

.stat-label {
    font-size: 0.75rem;
    color: #8b95a5;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff3366;
}

.stat-value.positive {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.stat-value.negative {
    color: #ff3366;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

.chart-container {
    margin: 20px 0;
    max-height: 300px;
    position: relative;
}

.macro-ratios {
    margin: 20px 0;
}

.ratio-item {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ratio-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #e0e6ed;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ratio-bar {
    height: 24px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.ratio-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 0 10px currentColor;
}

.protein-fill {
    background: linear-gradient(90deg, #00d4ff 0%, #0077ff 100%);
}

.fat-fill {
    background: linear-gradient(90deg, #b300ff 0%, #7000a3 100%);
}

.carb-fill {
    background: linear-gradient(90deg, #ffa500 0%, #ff8c00 100%);
}

.ratio-percent {
    font-size: 0.9rem;
    font-weight: bold;
    color: #00d4ff;
    text-align: right;
}

.weight-history {
    margin-top: 20px;
}

#weightList,
#foodLogList {
    max-height: 300px;
    overflow-y: auto;
}

#weightList::-webkit-scrollbar,
#foodLogList::-webkit-scrollbar {
    width: 8px;
}

#weightList::-webkit-scrollbar-track,
#foodLogList::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

#weightList::-webkit-scrollbar-thumb,
#foodLogList::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d4ff 0%, #b300ff 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.weight-entry,
.food-entry {
    background: rgba(0, 212, 255, 0.05);
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.weight-entry:hover,
.food-entry:hover {
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    border-color: #00d4ff;
}

.weight-entry .date,
.food-entry .date {
    font-size: 0.85rem;
    color: #8b95a5;
}

.weight-entry .weight {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.food-entry .food-name {
    font-weight: bold;
    color: #e0e6ed;
}

.food-entry .food-macros {
    font-size: 0.9rem;
    color: #8b95a5;
    margin-top: 4px;
}

.food-entry-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.food-entry-chart {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
}

.food-entry-chart canvas {
    max-width: 100%;
    max-height: 100%;
}

.food-entry-info {
    flex: 1;
}

@media (max-width: 600px) {
    .food-entry-chart {
        width: 70px;
        height: 70px;
    }
    
    .food-entry-content {
        gap: 10px;
    }
}

.delete-btn {
    background: linear-gradient(135deg, #ff3366 0%, #cc0033 100%);
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 5px;
    color: white;
}

.delete-btn:hover {
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.6);
}

.data-management {
    text-align: center;
}

.data-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.data-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.export-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #0077ff 100%);
    border: 2px solid #00d4ff;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.8);
}

.import-btn {
    background: linear-gradient(135deg, #b300ff 0%, #7000a3 100%);
    border: 2px solid #b300ff;
}

.import-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(179, 0, 255, 0.8);
}

.data-btn:active {
    transform: translateY(0);
}

.data-help-text {
    color: #8b95a5;
    font-size: 0.9rem;
    margin-top: 10px;
    font-style: italic;
}

.inflammatory-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
}

.inflammatory-badge.non-inflammatory {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.inflammatory-badge.somewhat-inflammatory {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid #ffa500;
}

.inflammatory-badge.highly-inflammatory {
    background: rgba(255, 51, 102, 0.2);
    color: #ff3366;
    border: 1px solid #ff3366;
}

#foodInflammatoryIndicator {
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.2);
    margin-top: 10px;
    display: none;
    align-items: center;
    gap: 10px;
}

#foodInflammatoryIndicator.active {
    display: flex;
}

#foodInflammatoryIndicator .material-symbols-outlined {
    font-size: 1.5rem;
}

#foodInflammatoryIndicator .indicator-text {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
}

.inflammatory-legend {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.inflammatory-legend h4 {
    color: #00d4ff;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-item .material-symbols-outlined {
    font-size: 1.2rem;
}

.legend-item .legend-label {
    font-weight: 600;
    min-width: 120px;
}

.legend-item .legend-description {
    color: #8b95a5;
}

.anti-nutrient-warning {
    max-width: 1400px;
    margin: 0 auto 20px auto;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.3) 0%, rgba(255, 51, 102, 0.3) 100%);
    border-radius: 12px;
    border: 2px solid rgba(255, 165, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.4);
    animation: fadeIn 0.5s ease-in;
}

.warning-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-text {
    flex: 1;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 250px;
}

.dismiss-warning-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dismiss-warning-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.anti-nutrient-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.anti-nutrient-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
    border: 1px solid;
    transition: all 0.2s ease;
}

.anti-nutrient-badge.low {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border-color: #00ff88;
}

.anti-nutrient-badge.medium {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
    border-color: #ffa500;
}

.anti-nutrient-badge.high {
    background: rgba(255, 51, 102, 0.15);
    color: #ff3366;
    border-color: #ff3366;
    box-shadow: 0 0 8px rgba(255, 51, 102, 0.3);
}

.anti-nutrient-legend {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.anti-nutrient-legend h4 {
    color: #ffa500;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legend-intro {
    color: #8b95a5;
    font-size: 0.8rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.anti-nutrient-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.anti-nutrient-item {
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.4;
    border-left: 3px solid rgba(255, 165, 0, 0.5);
}

.anti-nutrient-item strong {
    color: #ffa500;
    margin-right: 5px;
}

.severity-key {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 165, 0, 0.2);
}

.severity-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid;
    letter-spacing: 0.5px;
}

.severity-badge.low {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border-color: #00ff88;
}

.severity-badge.medium {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
    border-color: #ffa500;
}

.severity-badge.high {
    background: rgba(255, 51, 102, 0.15);
    color: #ff3366;
    border-color: #ff3366;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #5a6470;
    font-style: italic;
}

.weight-projections {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(179, 0, 255, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    animation: fadeIn 0.5s ease-in;
}

.projections-title {
    font-size: 1rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 12px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.projections-timeline {
    padding: 12px 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.projections-timeline.green {
    background: linear-gradient(135deg, #00ff88 0%, #00cc70 100%);
    color: #0a0e27;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.projections-timeline.yellow {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    color: #0a0e27;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
}

.projections-timeline.red {
    background: linear-gradient(135deg, #ff3366 0%, #cc0033 100%);
    color: white;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.5);
}

.projections-timeline.no-goal {
    background: linear-gradient(135deg, rgba(139, 149, 165, 0.3) 0%, rgba(90, 100, 112, 0.3) 100%);
    color: #8b95a5;
    box-shadow: 0 0 10px rgba(139, 149, 165, 0.3);
    border: 1px solid rgba(139, 149, 165, 0.3);
}

.projections-timeline.no-progress {
    background: linear-gradient(135deg, rgba(90, 100, 112, 0.3) 0%, rgba(60, 70, 82, 0.3) 100%);
    color: #8b95a5;
    box-shadow: 0 0 10px rgba(90, 100, 112, 0.3);
    border: 1px solid rgba(90, 100, 112, 0.3);
}

.projection-item {
    display: inline-block;
    padding: 0 8px;
}

.projection-separator {
    display: inline-block;
    padding: 0 5px;
    opacity: 0.6;
}

.projections-eta {
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.projections-eta.green {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 2px solid #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.projections-eta.yellow {
    background: rgba(255, 165, 0, 0.1);
    color: #ffa500;
    border: 2px solid #ffa500;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.3);
}

.projections-eta.red {
    background: rgba(255, 51, 102, 0.1);
    color: #ff3366;
    border: 2px solid #ff3366;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.3);
}

.projections-eta.no-progress {
    background: rgba(90, 100, 112, 0.1);
    color: #8b95a5;
    border: 2px solid rgba(139, 149, 165, 0.3);
}

.week-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.current-week {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00d4ff;
    min-width: 180px;
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.week-nav-btn, .week-today-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.week-nav-btn {
    background: linear-gradient(135deg, #b300ff 0%, #7000a3 100%);
    color: white;
    border: 2px solid #b300ff;
}

.week-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(179, 0, 255, 0.8);
}

.week-nav-btn:active {
    transform: translateY(0);
}

.week-today-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #0077ff 100%);
    color: #0a0e27;
    font-weight: bold;
    border: 2px solid #00d4ff;
}

.week-today-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

.week-today-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.week-today-btn:disabled:hover {
    transform: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.weekly-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.day-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(179, 0, 255, 0.08) 100%);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(0, 212, 255, 0.2);
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
    border-color: #00d4ff;
}

.day-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.day-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.day-date {
    font-size: 0.8rem;
    color: #8b95a5;
}

.day-calories {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e0e6ed;
    margin: 12px 0;
}

.day-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    margin-top: 10px;
}

.mini-chart {
    max-width: 150px;
    max-height: 150px;
}

.weekly-summary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(179, 0, 255, 0.1) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.weekly-summary h3 {
    color: #00d4ff;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.weekly-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.weekly-stat-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.weekly-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
    border-color: #00d4ff;
}

.weekly-stat-label {
    font-size: 0.8rem;
    color: #8b95a5;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weekly-stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

@media (max-width: 1200px) {
    .weekly-days-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .weekly-days-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    header h1 .material-symbols-outlined {
        font-size: 2rem;
    }
    
    .totals-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card {
        padding: 18px;
    }

    .ratio-item {
        grid-template-columns: 70px 1fr 50px;
    }

    .projections-timeline {
        font-size: 0.85rem;
    }

    .projection-item {
        display: block;
        padding: 3px 0;
    }

    .projection-separator {
        display: none;
    }

    .weekly-days-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .week-navigation {
        gap: 10px;
    }

    .current-week {
        font-size: 1rem;
        min-width: 150px;
        padding: 8px 15px;
    }

    .week-nav-btn, .week-today-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        min-height: 44px;
    }

    .nav-btn, .today-btn {
        padding: 10px 18px;
        min-height: 44px;
    }

    .weekly-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    button {
        padding: 12px 20px;
        min-height: 44px;
    }

    input[type="number"],
    input[type="text"],
    select {
        min-height: 44px;
    }
}
