body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.chat-container {
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: #5bb85d;
    color: white;
    padding: 16px;
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 14px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 0.95em;
}

.message.user {
    background: #e0f7fa;
    color: #5bb85d;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.bot {
    background: #f1f1f1;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.input-area {
    padding: 16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background: #fff;
}

input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.input-area input {
    flex: 1;
}

input:focus {
    border-color: #5bb85d;
}

button {
    background: #5bb85d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

button:hover {
    background: #5bb85d;
}

.typing {
    font-size: 0.8em;
    color: #888;
    margin-left: 10px;
    display: none;
}

.tool-indicator {
    font-size: 0.7em;
    cursor: help;
    opacity: 0.6;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
    transition: opacity 0.2s;
}

.tool-indicator:hover {
    opacity: 1;
}

[title] {
    position: relative;
}
