body {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

#chat-container {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 10px;
    background: white;
}

#input-container {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}

#text-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

button {
    padding: 0 12px;
    font-size: medium;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #45a049;
}

#mic-button.recording {
    background-color: #f44336;
}

.message {
    margin: 5px 0;
    padding: 8px;
    border-radius: 8px;
    max-width: 85%;
    word-wrap: break-word;
}

.user-message {
    background-color: #e3f2fd;
    margin-left: auto;
    text-align: right;
}

.response-message {
    background-color: #f5f5f5;
    margin-right: auto;
}

.error-message {
    background-color: #eebbbb;
    margin-right: auto;
}