/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 14px;
}

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

/* Header Styles */
header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 0.95em;
    opacity: 0.9;
}

/* Section Styles */
section {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #8899ff;
    border-bottom: 3px solid #8899ff;
    padding-bottom: 10px;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 400px;
    margin-top: 20px;
}

/* Diet Table Styles */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.diet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

.diet-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.diet-table th,
.diet-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #444;
}

.diet-table th {
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.diet-table th.meal-type {
    background: #5568d3;
}

.diet-table tbody tr:nth-child(even) {
    background-color: #333;
}

.diet-table tbody tr:hover {
    background-color: #3a3a5a;
}

.meal-name {
    font-weight: 600;
    color: #8899ff;
    background-color: #3a3a5a !important;
}

.meal-item {
    padding: 4px 0;
    line-height: 1.8;
}

.meal-item strong {
    color: #aaa;
}

/* Today's column highlight */
.diet-table th.today-column {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    font-weight: 700;
}

.diet-table td.today-column {
    background-color: #4a2a2a !important;
    border-left: 3px solid #ff6b6b;
    border-right: 3px solid #ff6b6b;
}

.diet-table tbody tr:hover td.today-column {
    background-color: #5a3535 !important;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-style: italic;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5em;
    }
    
    .container {
        padding: 10px;
    }
    
    section {
        padding: 20px;
    }
    
    .diet-table {
        font-size: 0.75em;
    }
    
    .diet-table th,
    .diet-table td {
        padding: 7px;
    }
    
    .chart-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.3em;
    }
    
    .diet-table {
        font-size: 0.7em;
    }
    
    .diet-table th,
    .diet-table td {
        padding: 5px;
    }
}
