body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #e0e0e0;
}

section{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section1-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 9%;
}

.chat-container {
    width: 100%;
    /*max-width: 400px;*/
    background-color: #2a2a2a;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 90vh;
}

.chat-header {
    background-color: #3a3a3a;
    color: #fff;
    padding: 15px;
    text-align: center;
}

.chat-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.message-content {
    padding: 10px;
    border-radius: 5px;
    max-width: 80%;
    display: flex;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background-color: #4a90e2;
    margin-right: 10px;
    border-radius: 8px 2px 8px 8px;
    top: 4px;
}

.bot-message .message-content {
    background-color: #3a3a3a;
    margin-left: 10px;
    margin-bottom: 2rem;
    /**/display: flex;
    flex-direction: column;/**/
}

.profile-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-input-container {
    display: flex;
    padding: 15px;
    background-color: #2a2a2a;
}

#user-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #4a4a4a;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #3a3a3a;
    color: #e0e0e0;
    outline: none;
}

.chat-input-container label{
    position: absolute;
    transform: translateX(0.6rem) translateY(0.4rem);
    transition: 0.5s ease;
    height: 1.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
    border: 6px solid none;
    border-radius: 6px;
}

#user-input:focus + label{
    transform: translateX(0.6rem) translateY(-1.6rem);
    background-color: #3a3a3a;
    border: 1px solid #4a4a4a;
}

#send-button {
    padding: 10px 20px;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 1rem;
}

#send-button:hover {
    background-color: #3a7bc8;
}

#send-button:disabled {
    background-color: #2a5a8a;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .chat-container {
        height: 100vh;
        border-radius: 0;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2a2a2a;
}

::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

/* Typing animation */
.typing-indicator {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.typing-indicator .dot {
    width: 8px;
    height: 8px;
    margin: 0 3px;
    background-color: #ccc;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.typing-indicator .dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.3s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

/* Bold text */
.strong {
    font-weight: bold;
}

/* Copy Label */

.message-content {
    position: relative;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 2px 8px 8px 8px;
    margin-top: 5px;
    font-size: 1em;
}

.copy-button {
    display: block;
    margin-top: 8px;
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    text-align: center;
    position: absolute;
    bottom: -1.8rem;
    right: 0;
}

.copy-button:hover {
    background-color: #0056b3;
}
