body {
    font-family: Arial, sans-serif;
    background-color: #2ECCFA;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.chat-container {
    width: 100%;
    max-width: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

h1 {
    background-color: #4CAF50;
    color: white;
    margin: 0;
    padding: 15px;
    font-size: 1.2em;
    text-align: center;
}

.chat-box {
    height: 400px;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.bot-message, .user-message {
    max-width: 80%;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 18px;
    word-wrap: break-word;
}

.bot-message {
    align-self: flex-start;
    background-color: #B40431;
    color: black;
}

.user-message {
    align-self: flex-end;
    background-color: #0101DF;
    color: white;
}

.input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#user-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #BE81F7;
    border-radius: 20px;
    outline: none;
}

.voice-button {
    margin-left: 10px;
    padding: 10px 15px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
}

.voice-button:hover {
    background-color: #0b7dda;
}

.voice-button.listening {
    background-color: #f44336;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.message-status {
    font-size: 0.8em;
    color: #666;
    margin: 5px 0;
    text-align: right;
}

.audio-message {
    margin-top: 10px;
    width: 100%;
}

#send-button {
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #DF0174;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

#send-button:hover {
    background-color: #3ADF00;
}
