body, html {
    height: 100%;
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
}

.chat-container {
    width: 90%;
    height: 95vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    border: 0px solid #ccc;
    background-color: #fff;
}

.chat-header {
    padding: 10px;
    background-color: #fff;
    color: #000;
    text-align: center;
    font-size: 20px;
}

.chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}


.chat-input {
    display: flex;
    padding: 10px;
}

#user-input {
    flex-grow: 1;
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#clean-data-btn {
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    height:100%;
}

.chat-message {
    /* padding: 8px; */
    border-radius: 4px;
    margin: 5px 0;
    padding: 8px 10px; /* Adjust padding to ensure space around text */
    border-radius: 4px;
    line-height: 1.6; /* Ensuring sufficient line height for readability */
    word-wrap: break-word; /* Ensures long words do not overflow */
    font-size: 16px; /* Adjust font size as needed for readability */
    background-color: #ffffff;
    border-radius: 4px;
}


/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .chat-message {
        font-size: 14px; /* Slightly smaller font size for small screens */
        padding: 6px 8px; /* Adjust padding to fit smaller screens */
    }
}



.chat-message.user-message {
    background-color: #d1eaff;
}


/* Add to or adjust existing styles */
.chat-header {
    padding: 10px;
    background-color: #ffffff; /* Changed to white */
    color: #000; /* Text color */
    text-align: center;
    font-size: 20px;
    border-bottom: 0px solid #ccc; /* Added a border */
}

.chat-logo {
    height: 40px; /* Example logo height, adjust as needed */
}

.file-label {
    cursor: pointer;
    padding: 10px;
    background-color: #eee; /* Light grey background */
    border-radius: 4px;
    margin-right: 5px;
}

/* New style for the file input to visually hide it but keep it accessible */
#file-input {
    display: none;
}

/* Adjusted chat message colors */
.chat-message.user-message {
    background-color: #ffffff; /* Lighter grey */
}

.chat-message.bot-message {
    background-color: #ffffff; /* Different background for bot messages */
}



.sender-label {
    display: block;
    align-items: center;
    font-size: 0.85em;
    margin-bottom: 5px;
}

.sender-label i {
    margin-right: 5px;
    font-size: 1.2em; /* Adjust icon size */
}

.text-center {
    text-align: center;
} 
.text-xs{
    font-size: 10px;
}
/*
.typing-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: black;
    margin-left: 5px;
    vertical-align: middle;
    animation: blink-animation 1s infinite;
}
*/
.message-container {
    display: block; /*flex;*/ 
    align-items: center;
    margin-bottom: 10px;
}

.chat-message {
    padding: 0px;
    border-radius: 4px;
    display: inline; 
}

.typing-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: black;
    margin-left: -5px;
    vertical-align: middle;
    animation: blink-animation 1s infinite;
}

.button-container {
    position: relative;
    display: inline-block;
}


/*
.loader {
    border: 4px solid #f3f3f3; 
    border-top: 4px solid #000; 
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
*/
.loader {
    display: none; /* Initially hidden */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #000; /* Blue */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}


@keyframes blink-animation {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

@media (max-width: 768px) {
    .chat-container {
        width: 90%; /* Increase width on smaller screens */
        margin: 10px; /* Adjust margin for a little spacing around the container */
    }
}