/* Chat Icon Styling */
.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #024d9d; 
    color: #ffffff; 
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 9999;
}

.chat-icon:hover {
    background-color: #007bff; /* Darker blue on hover */
}

/* Chat Modal Styling */
.chat-modal {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 450px;
    height: 500px;
    background-color: #ffffff; 
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.7);
    display: flex;
    flex-direction: column;
	z-index:105 !important;
	
}

/* Chat Header Styling */
.chat-header {
    background-color: #024d9d; 
    color: #ffffff; 
    padding: 20px; 
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
	position: relative;
	justify-content: space-between;
}

.chat-header .header-content {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
}

.chat-header .header-content i {
    font-size: 30px; /* Larger robot icon size */
}

.chat-header .header-content span {
    font-size: 20px; /* Larger header text size */
    font-weight: bold;
}


/* Chat Body Styling */
.chat-body {
    display: flex; 
    flex-direction: column;
    padding: 20px;
    /* Remove padding-bottom if footer is part of normal flow */
    /* padding-bottom: 70px; */
    flex-grow: 1; 
    overflow-y: auto;
}

/* Bot Message Bubble */
.bot-message {
    align-self: flex-start; 
    background-color: #c8d9ff;
    color: #000; 
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 10px; 
    max-width: 80%; 
    font-size: 16px; 
    font-weight: 500;
    line-height: 1.5; 
}

/* User Message Bubble */
.user-message {
    align-self: flex-end; 
    background-color: #f0f0f0; 
    color: #333333; 
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%; 
    font-size: 16px; 
    font-weight: 500;
    line-height: 1.5; 
}


/* Chat Footer Styling (fixed at the bottom) */
.chat-footer {
    background-color: #ffffff; 
    padding: 10px 20px;
    display: flex;
    align-items: center; 
    gap: 10px; 
    border-top: 1px solid #ddd;
    margin-top: auto;
}

/* Input Field Styling */
.chat-footer input[type="text"] {
    flex-grow: 1; 
    padding: 12px;
    font-size: 16px; 
    border-radius: 30px; 
    border: none; 
    outline: none; 
    width: 330px;
}

/* Send Button Styling */
.chat-footer button {
    background-color: #ffffff;
    color: #024d9d;
    border-radius: 50%; 
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    margin-top: -45px;
    margin-left: 365px;
}

.chat-footer button:hover {
    color: #0056b3; 
}

/* Icon inside Send Button */
.chat-footer button i {
    font-size: 18px; 

}

.bot-message a {
    /* color: cyan !important; */
    text-decoration: none; 
	font-weight: bold;
}

.bot-message a:hover {
    text-decoration: underline;
}

.chat-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: #888;
    transition: color 0.2s;
}

.chat-close:hover {
    color: #f44336;
}

.message-label {
    font-size: 0.95em;
    color: #aaa;
    font-weight: 600;
    margin-bottom: 2px;
}


/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .chat-modal {
        width: 100%; /* Full width on smaller screens */
        height: 80%; /* Set height to 80% of the viewport */
        max-height: 80%; /* Limit height to 80% of viewport */
        bottom: 80px; /* Adjust position */
        right: 10px; /* Adjust position */
    }
}

@media (max-width: 480px) {
    .chat-modal {
        width: 360px !important; /* Full width on extra small screens */
        height: 600px !important; /* Set height to 70% of the viewport */
    }

    .chat-header .header-content span {
        font-size: 18px; /* Smaller header text size */
    }
    
    .chat-footer input[type="text"] {
        font-size: 14px; /* Smaller font size for input on mobile */
    }

    .chat-footer button {
        width: 40px; /* Smaller button on mobile */
        height: 40px; /* Smaller button on mobile */
    }
}

