/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --spacing-1: 4px;
    --spacing-2: 8px;
    --spacing-3: 16px;
    --spacing-4: 24px;
    --spacing-5: 32px;

    --bkg-color-white: #ffffff;
    --bkg-color-light: #f9fafb;
    --bkg-color-dark: #1f2937;
    --bkg-color-black: #111827;

    --text-color-light: #6b7280;
    --text-color-dark: #111827;

    --color-accent: #ffd400;
}

html {
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
}

/* --- Novigation --- */

.nav-container {
    background-color: var(--bkg-light);
    border-bottom: 3px solid var(--color-accent);
    padding: var(--spacing-5) var(--spacing-4);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: var(--spacing-3);

    a {
        font-size: 1.125rem;
        color: var(--text-color-dark);
        text-decoration-thickness: 2px;
        text-underline-offset: 3px;
        text-decoration-color: var(--color-accent);
        
        &:hover {
            text-decoration-color: var(--text-color-dark);
        }
    }
}

/* --- Custom index page and homepage improvements --- */

.index-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.index-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.index-table {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.index-table th, .index-table td {
    padding: 0.75rem 1rem;
    text-align: left;
}

.index-table th {
    background: #f0f2f5;
    font-weight: 500;
    border-bottom: 2px solid #e0e3e8;
}

.index-table tr {
    border-bottom: 2px solid #e0e3e8;
    transition: box-shadow 0.15s, background 0.15s;
}

.index-table tr:not(:last-child) {
    margin-bottom: 0.5rem;
}

.index-table tr:hover {
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
    background: #eaf3fb;
}

/* --- Card and row separation for index pages --- */
.meal-card, .ingredient-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e3e8;
    transition: box-shadow 0.15s;
}
.meal-card:hover, .ingredient-card:hover {
    box-shadow: 0 4px 16px rgba(59,130,246,0.10);
    border-color: #3b82f6;
}

.homepage {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin: 2rem auto;
    max-width: 700px;
}

.homepage h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.homepage p {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 2rem;
}

.homepage .btn {
    font-size: 1.1rem;
    padding: 0.7rem 2rem;
}