
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f6e8c9;
    font-family: Arial, sans-serif;
    color: #35483c;
}

.top-bar {
    background: #3b5946;
    color: white;
    text-align: center;
    padding: 9px;
    font-size: 10px;
    letter-spacing: 2px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 6%;
}

.logo {
    font-size: 17px;
    font-weight: bold;
}

.logo span {
    color: #df806c;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #354438;
    font-size: 12px;
    font-weight: bold;
}

.nav-links a:hover {
    color: #df806c;
}

.container {
    width: 90%;
    max-width: 880px;
    margin: 30px auto;
}

.heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.heading small {
    font-size: 10px;
    letter-spacing: 3px;
    color: #8d8976;
}

.heading h1 {
    font-size: 45px;
    margin-top: 10px;
}

.note {
    background: #e9bd61;
    padding: 15px;
    transform: rotate(3deg);
    font-family: cursive;
    line-height: 1.7;
    box-shadow: 2px 3px 5px #c9ad76;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #ded6bd;
}

.stat-card p {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.stat-card h2 {
    font-size: 28px;
    font-weight: normal;
}

.total { background: #fff9eb; }
.check { background: #f2ddd1; }
.fresh { background: #d9ddbd; }

.form-box {
    background: #fff9ec;
    padding: 25px;
    border: 2px dashed #d3cbb0;
    border-radius: 18px;
    margin-bottom: 35px;
}

.form-box h2 {
    font-size: 21px;
    margin-bottom: 8px;
}

.subtitle {
    color: #a29b89;
    font-size: 13px;
    margin-bottom: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 15px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.field label {
    font-size: 12px;
    font-weight: bold;
}

.field input,
.field select {
    width: 100%;
    padding: 13px;
    border: 1px solid #dedacb;
    border-radius: 10px;
    background: white;
    font-size: 14px;
    color: #35483c;
}

.photo-field {
    margin-top: 20px;
}

.photo-box {
    border: 1px dashed #d8d2bf;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.photo-box span {
    color: #99917e;
    font-size: 11px;
}

.add-btn {
    margin-top: 20px;
    background: #35483c;
    color: white;
    border: none;
    padding: 14px 22px;
    border-radius: 9px;
    cursor: pointer;
}

.add-btn:hover {
    background: #526b57;
}

.fridge-section {
    margin-top: 35px;
}

.fridge-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.fridge {
    background: #e6e8d5;
    border: 10px solid #d4d8c0;
    border-bottom: 17px solid #c4c9ad;
    border-radius: 20px;
    padding: 25px;
    min-height: 350px;
}

.category-title {
    font-size: 19px;
    margin: 10px 0 18px;
}

.food-items {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 25px;
}

.food-card {
    width: 185px;
    background: #fffdf5;
    padding: 12px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 3px 5px #c9cbb5;
}

.food-card img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    border-radius: 11px;
    margin-bottom: 12px;
}

.food-emoji {
    height: 155px;
    background: #f4e8d3;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    color: #82967b;
    border-radius: 11px;
    margin-bottom: 12px;
}

.food-card h3 {
    font-size: 17px;
    margin-bottom: 7px;
}

.food-card p {
    font-size: 12px;
    color: #898879;
    margin-bottom: 9px;
}

.days {
    display: inline-block;
    background: #dce8d3;
    color: #526d4e;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 10px;
}

.days.warning {
    background: #f4dfcf;
    color: #a15e46;
}

.delete-btn {
    position: absolute;
    right: 18px;
    top: 18px;
    background: #fff9ee;
    color: #bd7968;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 17px;
}

.empty-message {
    text-align: center;
    color: #858875;
    padding: 80px 10px;
}

footer {
    text-align: center;
    color: #928a75;
    font-size: 12px;
    margin: 35px 0;
}

@media (max-width: 600px) {
    .container { width: 94%; }

    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .heading h1 { font-size: 32px; }

    .stats,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-box { padding: 17px; }

    .food-card {
        width: 100%;
        max-width: 220px;
    }
}
