@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.chat-container {
    width: 500px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.chat-header {
    background-color: #f0f0f0;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #eee;
}

.chat-messages {
    height: 450px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.data-usage-image {
    max-height: 100%;
    max-width: 70%;
    border-radius: 10px;
    border: 2px solid white;
}


.socmed-icon {
    max-width: 10%;
    padding-left: 10px;
    padding-right: 10px;
}


.message {
    display: flex-column;
    margin-bottom: 15px;
    align-items: flex-start;
}

.bot-message {
    background-color: #89CBDD;
    align-self: flex-start;
    align-items: left;
    border-radius: 20px 20px 20px 5px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center horizontally */
    text-align: left; /* Center vertically */
    padding: 10px; /* Add padding to avoid cramped content */
    max-width: 90%;
}

.user-message {
    background-color: lightgrey;
    align-self: flex-end;
    border-radius: 20px 20px 5px 20px;
    justify-content: flex-end;
}

.message-content {
    color: black;
    font-size: 20px;
    padding: 12px 18px 10px 18px;
    max-width: 85%;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    justify-content: left; /* Center vertically */ /* Center horizontally *//* Ensure text is centered */
}

.bot-avatar {
    max-width: 70%;
    height: 60px;
    border: 1px solid white;
    border-radius: 50px;
    margin-right: 6px;
    margin-left: 10px;
    margin-top: 12px;
}

.timestamp {
    display: block;
    font-size: 11px;
    color: #fff;
    margin-top: 5px;
    text-align: right;
    display: flex;
    align-self: flex-end;
    margin-right: 10px;
}

.timestampinbotmessage {
    display: block;
    font-size: 11px;
    color: #fff;
    margin-top: 5px;
    text-align: right;
    display: flex;
    align-self: flex-end;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px; /* Keep this for spacing */
}

.quick-reply {
    background-color: #fff;
    border: 2px solid black;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-weight: 900
}

.quick-reply:hover {
    background-color: #d6f5f5;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 6px 0;
}

.typing-indicator .dot {
    width: 6px;
    height: 6px;
    background-color: #888;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
    background-color: #f8f8f8;
    overflow: hidden;
}

#user-input {
    font-family: 'Poppins', sans-serif;
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    margin-right: 10px;
    box-sizing: border-box;
    width: calc(100% - 120px); /* Adjust width to make room for the button */
}

#send-button {
    font-family: 'Poppins', sans-serif;
    background-color: #3a80d8;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    float: left
}

#send-button:hover {
    background-color: LightSeaGreen;
}

@media (max-width: 400px) {
    .chat-container {
        width: 95%;
    }
}