/* Reset & base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #eef2f6; /* Lighter background */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 20px;
    color: #1c1e21;
}

.container {
    background: #f5f7fa;
    width: 400px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 600px;
    overflow: hidden;
}

/* Header */
.chat-header {
    background: linear-gradient(135deg, #007bff, #00b4d8);
    color: rgb(18, 33, 94);
    text-align: center;
    padding: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
/* Styling for the logo in the chat header */
.bot-header-logo {
    width: 60px;
    height: 50px;
    border-radius: 50%; /* Optional: to make the logo circular */
}
.message.bot .bot-chat-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%; /* Optional: to make the logo circular */
    align-self: flex-end;
    flex-shrink: 0;
    margin-right: 8px;
}
.bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-info i {
    font-size: 32px;
    color: #007bff;
}

.bot-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* Chatbox */
.chatbox {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f0f2f5; /* Messenger background color */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Messages */
.message {
    display: flex;
    align-items: flex-end;
    max-width: 80%;
}

.message.user {
    align-self: flex-end;
}

.message.bot {
    align-self: flex-start;
}

.message .icon {
    font-size: 28px;
    align-self: flex-end;
    flex-shrink: 0;
    margin-right: 8px; /* Space between icon and bubble */
    color: #888; /* Icon color */
}

.message.user .icon {
    display: none; /* Hide user's icon for a cleaner look */
}

.message .text-bubble {
    background: #e9f0f7;
    padding: 12px 16px;
    border-radius: 20px;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.message.user .text-bubble {
    background: #007bff; /* Messenger blue */
    color: white;
    border-bottom-right-radius: 4px;
}

.message.bot .text-bubble {
    background: #e5e5ea; /* Messenger grey */
    color: #1c1e21;
    border-bottom-left-radius: 4px;
}


/* Input area */
.input-area {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
}

input[type="text"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    background: #f0f2f5;
    outline: none;
    transition: background-color 0.3s ease;
}

input[type="text"]:focus {
    background: #e5e7eb;
}

#sendBtn {
    background: transparent;
    color: #007bff;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
#btnRecord{
    background: transparent;
    color: #007bff;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

button:disabled {
    color: #c0c0c0;
    cursor: not-allowed;
}
button:hover:not(:disabled) {
    color: #0056b3;
}
.listening{
    color:red;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}