:root {
    --primary: #e67e22;
    /* Carrot orange */
    --secondary: #27ae60;
    /* Kidney bean green */
    --bg: #fdfaf6;
    --text: #2c3e50;
    --card-bg: #ffffff;
    --border: #ecf0f1;
    --accent: #f1c40f;
    /* Sunflower yellow */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

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

h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.table-container {
    width: 100%;
    max-width: 800px;
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

th {
    background-color: #f8f9fa;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.date-cell {
    font-weight: 700;
    color: var(--secondary);
    width: 140px;
}

.day-name {
    font-size: 0.75rem;
    font-weight: 400;
    color: #95a5a6;
    display: block;
}

.meal-cell {
    position: relative;
    cursor: grab;
    transition: background 0.2s;
}

.meal-cell:active {
    cursor: grabbing;
}

.meal-cell:hover {
    background-color: #fff9f0;
}

.meal-cell input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    padding: 5px;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    z-index: 100;
    box-shadow: var(--shadow);
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background-color: var(--primary);
    color: white;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(230, 126, 34, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(39, 174, 96, 0.3);
}

/* Animation Container */
.food-anim {
    width: 50px;
    height: 50px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

.steam {
    position: absolute;
    top: -10px;
    left: 20px;
    width: 4px;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    opacity: 0;
    animation: steam 2s infinite ease-out;
}

@keyframes steam {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translateY(-20px) scale(1.5);
        opacity: 0;
    }
}

/* Management Page Layout */
.lists-container {
    display: flex;
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    margin-top: 2rem;
}

.list-section {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.list-section h2 {
    color: var(--secondary);
    margin-top: 0;
}

.item-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.item-input-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

li:last-child {
    border-bottom: none;
}

.delete-btn {
    color: #e74c3c;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.2rem;
}

@media (max-width: 600px) {
    .lists-container {
        flex-direction: column;
    }

    h1 {
        font-size: 1.8rem;
    }

    .table-container {
        padding: 0.5rem;
    }
}