body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #fff;
    color: #275755;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

a {
    color: #275755;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 3px;
    background: #E9F8F1;
    border-bottom: 1px solid #ccc;
}

.notification-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #e8fff3;
    border-bottom: 1px solid #ccc;
    font-weight: bolder;
    font-size:x-small;
}

.topbar img {
    height: 40px;
}

.user-dropdown-wrapper {
    position: relative;
}

.user-dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 30px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    z-index: 100;
    min-width: 140px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #275755;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: #E9F8F1;
}

.dashboard {
    padding: 20px;
}

.calendar {
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.day-name, .day {
    text-align: center;
    padding: 2px 8px;
    background: #fffbf5;
    border-radius: 10px;
    font-size: 14px;
    border: solid;
    border-width: 1px;
    box-shadow: 0 4px 12px rgb(136 119 94);
}

.day.today {
    background: #535353;
    color: white;
    outline: 3px solid #275755;
}

.day.selected {
    background: #51B471;
    color: white;
    outline: 3px solid #275755;
}

.empty {
    visibility: hidden;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
}

button {
    background: #275755;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    padding: 24px;
    border-radius: 16px;
    width: 92%;
    max-width: 420px;
    box-sizing: border-box;
}

.modal-content input,
.modal-content textarea {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.camera-btn {
    background: #ccc;
    color: #555;
    font-size: 18px;
    padding: 14px;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    border: none;
}

.camera-btn-disabled {
    cursor: not-allowed;
    background: #ccc;
    color: #555;
}

.close-modal {
    background: #ccc;
    color: #275755;
}

.meal-log {
    margin-top: 30px;
}

.meal-log table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.meal-log th,
.meal-log td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    text-align: left;
    font-size: 14px;
}

.meal-log td:last-child {
    text-align: right;
}

.meal-log a {
    margin: 0 5px;
    font-size: 18px;
}

/* MOBILE-FRIENDLY TWEAKS */
@media (max-width: 480px) {
    html {
        font-size: 17px;
    }

    .topbar {
        flex-direction: row;
        gap: 10px;
    }

    .calendar-grid {
        gap: 1px;
    }

    .day-name, .day {
        font-size: 16px;
        font-weight:bolder;
        line-height: 1;
    }

    .calendar-controls {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .meal-log th,
    .meal-log td {
        font-size: 15px;
        padding: 8px;
    }

    button,
    .camera-btn {
        font-size: 17px;
    }

    .modal-content {
        padding: 20px;
        border-radius: 14px;
    }

    .modal-content input,
    .modal-content textarea {
        font-size: 17px;
        padding: 16px;
    }

    .modal-content button {
        font-size: 17px;
        padding: 14px;
    }

    .dashboard {
        padding: 15px;
    }

    .meal-log table {
        font-size: 15px;
    }
}
