:root {
    --bg-main: #E8DFD4;
    --iu-red: #A43D2F;
    --light-card: #F2F2F2;
    --chip-gray: #D9D9D9;
    --text-dark: #222;
    --bubble-user: #000000;
    --bubble-bot: #ECECEC;
}

/* RESET */
body {
    margin: 0;
    font-family: "Arial", sans-serif;
    background: var(--bg-main);
}

/* APP */
.app {
    width: 100%;
    max-width: 900px;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: #F7F7F7;
}

/* HEADER */
.header {
    background: var(--iu-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.icon {
    font-size: 18px;
    cursor: pointer;
    opacity: 0.9;
}

.header-text {
    text-align: center;
}

.title {
    font-weight: 600;
}

.status {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #00ff66;
    border-radius: 50%;
}

/* CHAT */
.chat-box {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

/* MESSAGES */
.message {
    max-width: 75%;
    margin-bottom: 12px;
}

.message.user {
    margin-left: auto;
}

.message p {
    padding: 12px;
    border-radius: 12px;
    line-height: 1.4;
}

/* USER */
.message.user p {
    background: var(--bubble-user);
    color: white;
}

/* BOT */
.message.bot p {
    background: var(--bubble-bot);
    color: var(--text-dark);
}

/* SUGGESTIONS */
.suggestions {
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestions button {
    background: var(--chip-gray);
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
}

/* INPUT */
.input-area {
    display: flex;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #ddd;
    margin-top: 10px;
}

.input-area input {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
}

.input-area button {
    margin-left: 10px;
    background: var(--iu-red);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0 16px;
    cursor: pointer;
}


/* =========================
   MOBILE RESPONSIVE DESIGN
========================= */

@media screen and (max-width: 768px) {

    .app {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .header {
        padding: 12px;
    }

    .title {
        font-size: 16px;
    }

    .status {
        font-size: 11px;
    }

    .chat-box {
        padding: 12px;
    }

    .message {
        max-width: 85%;
    }

    .message p {
        font-size: 14px;
        padding: 10px;
    }

    .suggestions {
        padding: 8px 10px;
        gap: 6px;
    }

    .suggestions button {
        font-size: 12px;
        padding: 6px 10px;
    }

    .input-area {
        padding: 10px;
    }

    .input-area input {
        font-size: 14px;
        padding: 10px;
    }

    .input-area button {
        padding: 0 14px;
        font-size: 13px;
    }

    .icon {
        font-size: 16px;
    }
}