@font-face {
    font-family: CoconNextArabic;
    src: url(fonts/CoconNextArabic-light.ttf);
    font-weight: 400;
}

@font-face {
    font-family: CoconNextArabic;
    src: url(fonts/CoconNextArabic-Regular.otf);
    font-weight: 500;
}

@font-face {
    font-family: CoconNextArabic;
    src: url(fonts/CoconNextArabic-Bold.ttf);
    font-weight: bold;
}

* {
    font-family: CoconNextArabic;
    font-weight: 400;
}


body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0px;
    background-color: #f5f5f5;
    overflow: hidden;
    /*  */


}
h1 {
  font-size: 1.5em; /* Or any other desired value like 24px, smaller, etc. */
}
.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 0px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    /*  */
    display: flex;
    /*  */
    flex-direction: column;
    /*  */
}

.chat-header {
    background-color: #015570;
    color: white;
    padding: 10px 20px;
    text-align: center;
}

.chat-header h2 {
    margin: 4px 0;
}

.chat-messages {
    /* height: 500px; */
    /*  */
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /*  */
}

.chat-messages::-webkit-scrollbar {
    width: 10px;
    background-color: #e1e1e1;
    border-radius: 0px;
}

.chat-messages::-webkit-scrollbar-track {
    background-color: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: #93d50a;
    border-radius: 0px;
}

.message {
    margin: 10px 0;
    padding: 6px;
    border-radius: 15px;
    max-width: 80%;
    min-width: 40%;
    display: inline-flex;
    align-items: flex-start;
    animation: fade-in 0.5s ease-in-out;
}

.message-content {
    margin: 12px 6px 6px;

}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    background: #015570;
    color: white;
    margin-left: auto;
    border-top-right-radius: 0;
}

.user-message .bot-logo {
    background: #ffffff;
}


.bot-message {
    background: #e9ecef;
    color: black;
    margin-right: auto;
    flex-direction: row-reverse;
    border-top-left-radius: 0;
}


.bot-logo {
    width: 30px;
    height: 30px;
    /* background-color: #015570; */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 16px;
    margin: 6px;
}

.bot-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.input-container {
    display: flex;
    padding: 20px;
    border-top: 1px solid #dee2e6;
}

#message-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-left: 10px;
    font-size: 16px; /* Or 1em */

}

#send-button {
    padding: 10px 20px;
    background: #93d50a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#send-button:hover {
    background: #7db709;
}

.loading {
    text-align: center;
    padding: 10px;
    display: none;
}
.input-container textarea {
    flex-grow: 1; /* Allows the textarea to take up available space */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    resize: none; /* Prevents manual resizing by the user */
    overflow-y: hidden; /* Hide scrollbar initially, JS will manage it */
    min-height: 40px; /* Adjust based on your desired single-line height */
    max-height: 120px; /* Approximately 3 lines, adjust as needed */
    line-height: 1.5; /* Ensure consistent line height */
}