* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main Chat Container */

.chat-container {
    width: 100%;
    max-width: 480px;
    height: 680px;

    background: #ffffff;
    border-radius: 22px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

/* Header */

.chat-header {
    background: linear-gradient(135deg, #4a6cf7, #5f3dc4);
    color: white;

    padding: 20px;

    display: flex;
    align-items: center;
    gap: 14px;
}

.bot-icon {
    font-size: 38px;
}

.chat-header h1 {
    margin: 0;
    font-size: 22px;
}

.chat-header p {
    margin: 4px 0 0;
    font-size: 13px;
    opacity: 0.9;
}

/* Language */

.chat-controls {
    padding: 10px 16px;

    background: #f5f6fa;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 8px;

    font-size: 13px;
}

.chat-controls select {
    padding: 6px 10px;

    border: 1px solid #d0d4dc;
    border-radius: 8px;

    background: white;

    cursor: pointer;
}

/* Chat Area */

.chat-box {
    flex: 1;

    padding: 18px;

    overflow-y: auto;

    background: #f8f9fc;

    display: flex;
    flex-direction: column;
}

/* User Message */

.user {
    align-self: flex-end;

    background: #4a6cf7;
    color: white;

    padding: 10px 14px;

    border-radius: 16px 16px 4px 16px;

    margin: 6px 0;

    max-width: 78%;

    font-size: 14px;

    line-height: 1.4;

    white-space: pre-line;
}

/* Bot Message */

.bot {
    align-self: flex-start;

    background: white;
    color: #222;

    padding: 10px 14px;

    border-radius: 16px 16px 16px 4px;

    margin: 6px 0;

    max-width: 82%;

    font-size: 14px;

    line-height: 1.5;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    white-space: pre-line;
}

/* Suggested Questions */

.suggestions {
    padding: 10px 12px;

    background: #ffffff;

    display: flex;

    gap: 7px;

    overflow-x: auto;
}

.suggestions button {
    border: 1px solid #d8dcf0;

    background: #f5f6ff;

    color: #3949ab;

    padding: 7px 10px;

    border-radius: 20px;

    font-size: 12px;

    white-space: nowrap;

    cursor: pointer;

    transition: 0.2s;
}

.suggestions button:hover {
    background: #e9ebff;
}

/* Input */

.chat-input {
    display: flex;

    padding: 12px;

    background: white;

    border-top: 1px solid #eeeeee;

    gap: 8px;
}

.chat-input input {
    flex: 1;

    padding: 11px 15px;

    border-radius: 22px;

    border: 1px solid #d4d7df;

    outline: none;

    font-size: 14px;
}

.chat-input input:focus {
    border-color: #4a6cf7;
}

.send-button {
    width: 44px;
    height: 44px;

    border: none;

    border-radius: 50%;

    background: #4a6cf7;

    color: white;

    font-size: 18px;

    cursor: pointer;

    transition: 0.2s;
}

.send-button:hover {
    background: #3b5bdb;

    transform: scale(1.05);
}

/* Footer */

.chat-footer {
    text-align: center;

    padding: 7px;

    background: #f5f6fa;

    color: #777;

    font-size: 10px;
}

/* Mobile */

@media (max-width: 600px) {

    body {
        padding: 0;
    }

    .chat-container {
        height: 100vh;

        max-width: none;

        border-radius: 0;
    }

    .chat-header {
        padding: 16px;
    }
}