* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
    height: 100vh;
}

.app {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
}


/* =========================
   HEADER
========================= */

.chat-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;

    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #eef2ff;

    font-size: 22px;
}

.bot-info h1 {
    font-size: 18px;
    font-weight: 600;
}

.bot-info p {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.new-chat-btn {
    border: none;
    background: #111827;
    color: white;

    padding: 9px 14px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 13px;
}

.new-chat-btn:hover {
    opacity: 0.85;
}


/* =========================
   CHAT BOX
========================= */

.chat-box {
    flex: 1;

    overflow-y: auto;

    padding: 30px;

    display: flex;
    flex-direction: column;

    gap: 22px;
}


/* =========================
   MESSAGES
========================= */

.message {
    display: flex;
    gap: 12px;

    max-width: 850px;
}

.message-avatar {
    width: 34px;
    height: 34px;

    min-width: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eef2ff;

    font-size: 17px;
}

.message-content {
    max-width: 700px;
}

.message-name {
    font-size: 12px;
    color: #6b7280;

    margin-bottom: 5px;
}

.message-text {
    font-size: 15px;
    line-height: 1.6;

    color: #1f2937;
}


/* USER MESSAGE */

.user-message {
    align-self: flex-end;

    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: #111827;
}

.user-message .message-text {
    background: #111827;
    color: white;

    padding: 11px 15px;

    border-radius: 14px 14px 3px 14px;
}


/* BOT MESSAGE */

.bot-message .message-text {
    background: #f3f4f6;

    padding: 11px 15px;

    border-radius: 3px 14px 14px 14px;
}


/* =========================
   INPUT
========================= */

.input-area {
    padding: 15px 24px 18px;

    border-top: 1px solid #e5e7eb;

    background: white;
}

.input-wrapper {
    max-width: 900px;

    margin: auto;

    display: flex;
    align-items: flex-end;

    border: 1px solid #d1d5db;

    border-radius: 14px;

    padding: 8px;

    background: white;
}

#userInput {
    flex: 1;

    border: none;
    outline: none;

    resize: none;

    padding: 10px;

    font-size: 15px;

    max-height: 120px;

    font-family: inherit;
}

.send-btn {
    width: 42px;
    height: 42px;

    border: none;

    border-radius: 10px;

    background: #111827;
    color: white;

    font-size: 18px;

    cursor: pointer;
}

.send-btn:hover {
    opacity: 0.85;
}

.disclaimer {
    text-align: center;

    font-size: 11px;

    color: #9ca3af;

    margin-top: 8px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .chat-header {
        padding: 0 15px;
    }

    .new-chat-btn {
        font-size: 11px;
        padding: 8px 10px;
    }

    .chat-box {
        padding: 20px 15px;
    }

    .input-area {
        padding: 10px 12px 14px;
    }

    .message-content {
        max-width: 80%;
    }

}

.message-text h3 {
    margin: 14px 0 8px;
    font-size: 17px;
}

.message-text strong {
    font-weight: 700;
}

.ai-list-item {
    margin: 5px 0;
}
.message-text hr {
    border: 0;
    border-top: 1px solid #d9dde5;
    margin: 16px 0;
}

.message-text h3 {
    margin: 16px 0 8px;
    font-size: 17px;
}

.message-text strong {
    font-weight: 700;
}

.ai-list-item {
    margin: 6px 0;
}
.copy-btn {
    margin-top: 8px;
    padding: 6px 10px;

    border: 1px solid #d9dde5;
    border-radius: 7px;

    background: white;
    color: #5b6472;

    font-size: 12px;

    cursor: pointer;

    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #f1f3f6;
}

.copy-btn:active {
    transform: scale(0.97);
}