#chatbot {
    width: 70%;
    height: 70%;
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    display: none; /* Initially hidden */
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family:"Calibri", sans-serif;
    z-index: 1000;
}

#chat-header {
    background-color: #0066cc;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

#chat-header h4 {
    font-size: 18px;
    color: #ffffff;
    margin-left: 10px;
    margin-bottom: 0px;
}

#chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

#chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px; /* Add margin for spacing */
}

#chat-body {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    background-color: #f9f9f9;
}

#chat-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 16px;
    word-wrap: break-word;
    animation: fadeIn 0.2s ease;
    position: relative; /* For positioning time */
}

.bot-message {
    background-color: #e1f5fe;
    align-self: flex-start;
}

.user-message {
    background-color: #d1e7dd;
    align-self: flex-end;
}

/* Time Style */
.message-time {
    font-size: 10px;
    color: #999;
    position: absolute;
    bottom: -15px; /* Adjust position as needed */
    right: 10px; /* Align to the right of the message */
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px; /* Margin to align typing effect */
}

.typing-dots {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    animation: typing 1.5s infinite;
}

.typing-dots:nth-child(2) {
    animation-delay: 0.3s;
}

.typing-dots:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes typing {
    0%, 100% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

/* Smooth fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: #ffffff;
}

#chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 16px;
}

#chat-input button {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-left: 10px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#chat-input button:hover {
    background-color: #004da0;
}

/* Toggle Button */
#chatbot-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    transition: all 0.3s ease;
    line-height: normal;
    z-index: 1000;
}

#chatbot-btn:hover {
    background-color: #004da0;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    #chatbot {
        width: 95%;
        right: 2.5%;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    color: #333;
}

tr:hover {
    background-color: #f5f5f5;
}

th, td {
    transition: background-color 0.3s ease;
}
p{
    margin: 0 !important;
}