:root {
    --bg: #fafaf9;
    --surface: #ffffff;
    --text: #1c1917;
    --text-secondary: #44403c;
    --text-muted: #a8a29e;
    --border: #e7e5e4;
    --border-hover: #d6d3d1;
    --paneer: #f59e0b;
    --paneer-bg: #fffbeb;
    --paneer-border: #fcd34d;
    --paneer-text: #92400e;
    --special-bg: #f0fdf4;
    --special-border: #86efac;
    --special-text: #166534;
    --regular-bg: #f5f5f4;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.375rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 400;
}

/* Week Navigation */
.week-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.week-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    min-width: 160px;
}

.week-display span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    padding: 0 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid var(--border);
    background-color: var(--surface);
    color: var(--text-secondary);
}

.btn:hover {
    border-color: var(--border-hover);
    background-color: var(--bg);
    color: var(--text);
}

.btn-small {
    height: 1.75rem;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    background-color: var(--text);
    color: #fff;
    border-color: var(--text);
}

.btn-small:hover {
    background-color: var(--text-secondary);
    border-color: var(--text-secondary);
}

/* Special Banner */
.special-banner {
    text-align: center;
    margin-bottom: 1.25rem;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.special-banner:empty {
    display: none;
}

.banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    background-color: var(--special-bg);
    color: var(--special-text);
    border: 1px solid var(--special-border);
}

.banner-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    margin-bottom: 0.5rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.875rem;
    margin-bottom: 2rem;
}

.day-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.day-card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.04), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    transform: translateY(-1px);
}

.day-header {
    padding: 0.875rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background-color: var(--bg);
}

.day-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
}

.day-date {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.meals {
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.meal {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: var(--regular-bg);
    border: 1px solid transparent;
    transition: transform 0.15s ease;
}

.meal:hover {
    transform: scale(1.02);
}

.meal.paneer {
    background-color: var(--paneer-bg);
    border-color: var(--paneer-border);
}

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

.meal.special {
    background-color: var(--special-bg);
    border-color: var(--special-border);
}

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

.meal.soyabean {
    background-color: #eef2ff;
    border-color: #c7d2fe;
}

.meal.soyabean .meal-name {
    color: #3730a3;
    font-weight: 600;
}

.meal.lauki {
    background-color: #ecfdf5;
    border-color: #6ee7b7;
}

.meal.lauki .meal-name {
    color: #065f46;
    font-weight: 600;
}

.meal-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.meal-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Footer Info */
.info {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.info-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.paneer-dot {
    background-color: var(--paneer);
}

.special-dot {
    background-color: #22c55e;
}

.soyabean-dot {
    background-color: #6366f1;
}

.lauki-dot {
    background-color: #34d399;
}

/* Tablet */
@media (max-width: 1024px) {
    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 1.625rem;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    .day-card {
        display: grid;
        grid-template-columns: 80px 1fr;
    }

    .day-header {
        border-bottom: none;
        border-right: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0.625rem;
    }

    .day-name {
        font-size: 0.8125rem;
    }

    .day-date {
        font-size: 0.625rem;
    }

    .meals {
        flex-direction: row;
        padding: 0.625rem;
    }

    .meal {
        flex: 1;
        padding: 0.625rem;
    }

    .info-grid {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .meals {
        flex-direction: column;
    }

    .day-card {
        grid-template-columns: 1fr;
    }

    .day-header {
        border-right: none;
        border-bottom: 1px solid var(--border);
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
