/* body {
    font-size: 16px;
    min-width: 700px;
}

input[type='text'],
input[type='number'],
textarea {
  font-size: 16px;
}

.recipesList {

}

.recipesList > .recipesListItem {
    margin: 5px;
    padding: 5px;
    width: 600px;
    border: 1px solid #000;
}

.recipesList > .recipesListItem > .title {
    font-weight: bold;
}

.recipesList > .recipesListItem > .description {
    
}

.recipesList > .recipesListItem > .source {
    
}

.recipesList > .recipesListItem > .date {
    
}
*/
form > input[type="text"], form > input[type="password"], form > textarea {
    font-size: 16px;
    width: 350px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    background-color: #0A5;
    color: white;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
}
.logo a {
    color: white;
    text-decoration: none;
}

.nav-links {
    list-style-type: none;
    display: flex;
    text-align: right;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
}

.hamburger {
    display: none;
    font-size: 2em;
    cursor: pointer;
    text-align: right;
}

.grid-container {
    display: grid;
    gap: 20px;
    padding: 20px;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    flex: 1;
    align-content: start; /* Ensure top alignment */
}

.card {
    background-color: #f4f4f4;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.card .title {
    margin-bottom: 10px;
    font-size: 20px;
}

.card .date {
    margin-top: 5px;
    font-size: 14px;
}


.card img {
    max-width: 100%;
    height: auto;
}

main {
    flex: 1;
    margin: 20px;
    align-content: start; /* Ensure top alignment */
}
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 20px;
    width: 100%;
}

/* Current Date Display */
.current-date {
    margin: 15px 0;
    padding: 10px 15px;
    background-color: #e8f4fd;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.current-date p {
    margin: 0;
    color: #495057;
    font-size: 16px;
}

/* Sleep Dashboard Styles */
.sleep-dashboard {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.sleep-summary, .sleep-stats, .recent-sleep {
    margin-bottom: 25px;
    padding: 15px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sleep-metrics .metric, .stats-grid .stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.sleep-metrics .metric:last-child, .stats-grid .stat:last-child {
    border-bottom: none;
}

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

.label, .stat-label {
    font-weight: bold;
    color: #555;
}

.value, .stat-value {
    color: #333;
}

.sleep-trend table {
    width: 100%;
    border-collapse: collapse;
}

.sleep-trend th, .sleep-trend td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.sleep-trend th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Sleep Chart Styles */
.sleep-chart {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.sleep-chart h5 {
    margin-bottom: 20px;
    color: #495057;
    font-size: 1.1em;
    font-weight: 600;
}

#sleepChart {
    border-radius: 6px;
    overflow: hidden;
}

/* Responsive sleep chart adjustments */
@media (max-width: 768px) {
    .sleep-chart {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    #sleepChart {
        height: 300px !important;
    }
}

.no-data {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.quick-actions {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.action-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #0056b3;
}

/* Weight Dashboard Styles */
.weight-dashboard {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.weight-summary, .current-weight, .weight-averages, .weight-trend {
    margin-bottom: 25px;
    padding: 15px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.weight-metrics .metric {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.weight-metrics .metric:last-child {
    border-bottom: none;
}

.weight-metrics .metric.primary .value {
    font-weight: bold;
    font-size: 1.2em;
    color: #007bff;
}

.averages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.average-metric {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.average-metric .label {
    font-weight: bold;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.average-metric .value {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.average-metric .previous-value {
    font-size: 0.85em;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.average-metric .delta {
    font-size: 0.9em;
    font-weight: normal;
    display: block;
}

.delta.positive, .positive {
    color: #28a745;
}

.delta.negative, .negative {
    color: #dc3545;
}

.delta.neutral, .neutral {
    color: #6c757d;
}

.trend-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.trend-summary .metric {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.trend-summary .metric .label {
    margin-bottom: 5px;
}

.comparison-detail {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.weight-deltas table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.weight-deltas th, .weight-deltas td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.weight-deltas th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.weight-deltas td.positive {
    color: #dc3545;
}

.weight-deltas td.negative {
    color: #28a745;
}

.weight-deltas td.neutral {
    color: #6c757d;
}

/* Weight Chart Styles */
.weight-chart {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.weight-chart h5 {
    margin-bottom: 20px;
    color: #495057;
    font-size: 1.1em;
    font-weight: 600;
}

#weightChart {
    border-radius: 6px;
    overflow: hidden;
}

/* Responsive chart adjustments */
@media (max-width: 768px) {
    .weight-chart {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    #weightChart {
        height: 300px !important;
    }
}

/* Macros Dashboard Styles */
.macros-dashboard {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.macros-summary, .today-macros, .yesterday-macros, .macros-14day-table, .calorie-averages {
    margin-bottom: 25px;
    padding: 15px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.macros-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.macro-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #28a745;
}

.macro-item .label {
    font-weight: bold;
    color: #555;
}

.macro-item .value {
    color: #333;
    font-weight: 500;
}

.meals-breakdown {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.meals-breakdown h6 {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.1em;
}

.meal-section {
    margin-bottom: 15px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.meal-section h7 {
    font-weight: bold;
    color: #333;
    font-size: 1em;
    display: block;
    margin-bottom: 8px;
}

.meal-totals {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.meal-foods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.food-item {
    background-color: #e9ecef;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    color: #495057;
}

.macros-14day-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.macros-14day-table th, .macros-14day-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.macros-14day-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.macros-14day-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Today Macros Header */
.today-macros-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.today-macros-header h5 {
    margin: 0;
}

.macros-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.fetch-weeks-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-refresh {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875em;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-refresh:hover {
    background-color: #138496;
    transform: translateY(-1px);
}

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

.btn-refresh:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.refresh-icon {
    font-size: 1.1em;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-refresh.refreshing .refresh-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-fetch-weeks {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 90px;
    justify-content: center;
}

.btn-fetch-weeks:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

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

.btn-fetch-weeks:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.fetch-icon {
    font-size: 1em;
    display: inline-block;
}

.btn-fetch-weeks.fetching .fetch-icon {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Macros Chart Styles */
.macros-chart {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Macros Target Cards */
.macros-targets {
    margin-bottom: 30px;
}

.target-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.target-card {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.target-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.target-card.active {
    border-color: #007bff;
    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

.target-card.low-deficit {
    border: 3px solid transparent;
    border-image: repeating-linear-gradient(90deg, #ffc107 0, #ffc107 25px, transparent 25px, transparent 35px) 1;
    box-shadow: 0 4px 8px rgba(255,193,7,0.2);
}

.target-card.weightloss {
    border: 3px solid transparent;
    border-image: repeating-linear-gradient(90deg, #28a745 0, #28a745 8px, transparent 8px, transparent 15px) 1;
    box-shadow: 0 4px 8px rgba(40,167,69,0.2);
}

.target-card.maintenance {
    border: 3px solid transparent;
    border-image: repeating-linear-gradient(90deg, #fd7e14 0, #fd7e14 25px, transparent 25px, transparent 35px) 1;
    box-shadow: 0 4px 8px rgba(253,126,20,0.2);
}

.target-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.target-card-header h6 {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    color: #333;
}

.target-steps {
    font-size: 0.85em;
    color: #666;
    background-color: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
}

.target-card.active .target-steps {
    background-color: #007bff;
    color: white;
}

.target-calories {
    font-size: 1.3em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 12px;
    text-align: center;
}

.target-card.active .target-calories {
    color: #0056b3;
}

.target-macros {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.macro-target {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.macro-label {
    font-size: 0.9em;
    color: #555;
    font-weight: 500;
}

.macro-value {
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
}

.macros-chart h5 {
    margin-bottom: 20px;
    color: #495057;
    font-size: 1.1em;
    font-weight: 600;
}

#macrosChart {
    border-radius: 6px;
    overflow: hidden;
}

/* Force Highcharts tooltip above all content */
.highcharts-tooltip {
    z-index: 99999 !important;
}

/* Responsive macros chart adjustments */
@media (max-width: 768px) {
    .macros-chart {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    #macrosChart {
        height: 300px !important;
    }
}

/* Calorie Averages Styles */
.calorie-averages .averages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.calorie-averages .average-metric {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #fd7e14;
}

.calorie-averages .average-metric .label {
    font-weight: bold;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.calorie-averages .average-metric .value {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.calorie-averages .average-metric .previous-value {
    font-size: 0.85em;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.calorie-averages .average-metric .delta {
    font-size: 0.9em;
    font-weight: normal;
    display: block;
}

/* Steps Dashboard Styles */
.steps-dashboard {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.steps-summary, .today-steps, .yesterday-steps, .steps-averages, .steps-14day-table {
    margin-bottom: 25px;
    padding: 15px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.steps-display {
    text-align: center;
}

.steps-count {
    font-size: 2em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
}

.step-goals {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.goal-item {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

.goal-item.achieved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.goal-item.not-achieved {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.steps-averages .averages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.steps-averages .average-metric {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.steps-averages .average-metric .label {
    font-weight: bold;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.steps-averages .average-metric .value {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.steps-averages .average-metric .previous-value {
    font-size: 0.85em;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.steps-averages .average-metric .delta {
    font-size: 0.9em;
    font-weight: normal;
    display: block;
}

.steps-14day-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.steps-14day-table th, .steps-14day-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.steps-14day-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.steps-14day-table tbody tr:hover {
    background-color: #f8f9fa;
}

.steps-14day-table td.goal-achieved {
    background-color: #d4edda;
    color: #155724;
    font-weight: 500;
}

.steps-14day-table td.goal-not-achieved {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: 500;
}

/* Steps Chart Styles */
.steps-chart {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.steps-chart h5 {
    margin-bottom: 20px;
    color: #495057;
    font-size: 1.1em;
    font-weight: 600;
}

#stepsChart {
    border-radius: 6px;
    overflow: hidden;
}

/* Responsive steps chart adjustments */
@media (max-width: 768px) {
    .steps-chart {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    #stepsChart {
        height: 300px !important;
    }
}

/* Macros Chart Styles */
.macros-chart {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

#macrosChart {
    border-radius: 6px;
    overflow: hidden;
}

/* Responsive macros chart adjustments */
@media (max-width: 768px) {
    .macros-chart {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    #macrosChart {
        height: 300px !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: right;

    }

    .nav-links li {
        margin-bottom: 5px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
    
    /* Sleep Dashboard Mobile Styles */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-links {
        flex-direction: column;
    }
    
    .sleep-trend table {
        font-size: 14px;
    }
    
    .sleep-trend th, .sleep-trend td {
        padding: 8px 5px;
    }
    
    /* Weight Dashboard Mobile Styles */
    .averages-grid {
        grid-template-columns: 1fr;
    }
    
    .trend-summary {
        grid-template-columns: 1fr;
    }
    
    .weight-deltas table {
        font-size: 14px;
    }
    
    .weight-deltas th, .weight-deltas td {
        padding: 8px 5px;
    }
    
    /* Macros Dashboard Mobile Styles */
    .macros-totals {
        grid-template-columns: 1fr;
    }
    
    .calorie-averages .averages-grid {
        grid-template-columns: 1fr;
    }
    
    .meal-foods {
        flex-direction: column;
        gap: 5px;
    }
    
    .macros-14day-table table {
        font-size: 14px;
    }
    
    .macros-14day-table th, .macros-14day-table td {
        padding: 8px 5px;
    }
    
    .macros-14day-table {
        overflow-x: auto;
    }
    
    /* Mobile styles for macros buttons */
    .today-macros-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .macros-buttons {
        align-items: center;
    }
    
    .fetch-weeks-buttons {
        justify-content: center;
        gap: 6px;
    }
    
    .btn-fetch-weeks {
        font-size: 0.75em;
        padding: 5px 8px;
        min-width: 80px;
    }
    
    /* Mobile styles for target cards */
    .target-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .target-card {
        padding: 12px;
    }
    
    .target-calories {
        font-size: 1.2em;
    }
    
    /* Steps Dashboard Mobile Styles */
    .step-goals {
        flex-direction: column;
        gap: 8px;
    }
    
    .steps-averages .averages-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-14day-table table {
        font-size: 14px;
    }
    
    .steps-14day-table th, .steps-14day-table td {
        padding: 8px 5px;
    }
    
    .steps-14day-table {
        overflow-x: auto;
    }
    
    .steps-count {
        font-size: 1.5em;
    }
}

/* Dashboard Section Headers */
.sleep-dashboard h4,
.weight-dashboard h4,
.macros-dashboard h4,
.steps-dashboard h4 {
    font-size: 1.5em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.sleep-dashboard h4::before,
.weight-dashboard h4::before,
.macros-dashboard h4::before,
.steps-dashboard h4::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.sleep-dashboard h4:hover::before,
.weight-dashboard h4:hover::before,
.macros-dashboard h4:hover::before,
.steps-dashboard h4:hover::before {
    left: 100%;
}

/* Individual section header colors */
.sleep-dashboard h4 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.weight-dashboard h4 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.macros-dashboard h4 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.steps-dashboard h4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}



/* Responsive header adjustments */
@media (max-width: 768px) {
    .sleep-dashboard h4,
    .weight-dashboard h4,
    .macros-dashboard h4,
    .steps-dashboard h4 {
        font-size: 1.3em;
        padding: 12px 15px;
        margin-bottom: 20px;
    }
}
