* {
    box-sizing: border-box;
    font-family: "Inter", Arial, sans-serif;
}

body {
    margin: 0;
    background: #f9fafb;
    color: #111;
}

/* HEADER */
.header {
    background: #ffffff;
    padding: 16px 32px;
    border-bottom: 1px solid #eee;
}

.logo {
    font-weight: 700;
    font-size: 20px;
}

/* CONTAINER */
.container {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

/* CHAT CARD */
.chat-box {
    width: 100%;
    max-width: 600px;
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
}

.chat-box h1 {
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    margin-bottom: 24px;
}

/* FORM */
.chat-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.chat-form input {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 15px;
}

.chat-form input:focus {
    outline: none;
    border-color: #ff7a00;
}

.chat-form button {
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    background: #ff7a00;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.chat-form button:hover {
    background: #e66d00;
}

/* MESSAGES */
.message {
    text-align: left;
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
    line-height: 1.5;
}

.message.ai {
    background: #f3f4f6;
}

.message.error {
    background: #ffe5e5;
    color: #900;
}

/* ===== CALORIES ===== */

.calories-form {
    background: #fff;
    padding: 24px;
    max-width: 420px;
    margin: 40px auto;
    border-radius: 16px;
}

.calories-form input,
.calories-form select,
.calories-form button {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    font-size: 16px;
}

.calories-result {
    text-align: center;
    font-size: 22px;
    margin-top: 20px;
    color: #ff7a00;
}

.navbar {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #111;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.navbar a:hover {
    color: #ff7a00;
}

.content {
    padding: 40px;
}
/* style.css */

.message.system {
    background-color: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

.message.user {
    background-color: #007bff;
    color: white;
    padding: 10px;
    margin: 10px 0;
    border-radius: 10px;
    text-align: right;
}

.message.assistant {
    background-color: #f1f1f1;
    color: #333;
    padding: 10px;
    margin: 10px 0;
    border-radius: 10px;
}