
:root {
    --primary-color: #094148;
    --secondary-color: #143f4d;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
}


.chat-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-container {
display: flex;
flex-direction: column;
background: white;
border-radius: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
overflow: hidden;
max-width: 400px;
max-height: 580px;
}

#messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    min-height: 510px;
    max-height: 580px;
}

/* Style for modern slim and rounded scrollbar */
#messages {
overflow-y: auto; /* Enable vertical scrolling */
scrollbar-width: thin; /* For Firefox (slim scrollbar) */
scrollbar-color: #b6bdbf #f0f0f000; /* Thumb and Track color for Firefox */
border-radius: 20px;
}

/* Webkit browsers (Chrome, Safari, Edge, etc.) */
#messages::-webkit-scrollbar {
width: 8px; /* Slim scrollbar */
border-radius: 10px; /* Rounded edges */
}

#messages::-webkit-scrollbar-thumb {
background-color: #104757; /* Thumb color */
border-radius: 10px; /* Rounded thumb */
border: 2px solid #f0f0f0; /* Thumb border color */
}

#messages::-webkit-scrollbar-track {
background-color: #f0f0f0; /* Track color */
border-radius: 10px; /* Rounded track */
}

.bot-message:before {
    content: '🤖 Bot';
    color: #969696;
    position: absolute;
    bottom: -25px;
    left: 2px;
}

#chatbotContainer.visible {
    display: flex;  /* Show when visible class is added */
    /* Any other styles for when the chatbot is visible */
}


.message {
margin-bottom: 1rem;
padding: 14px 18px;
border-radius: 12px;
width: fit-content;
word-wrap: break-word;
max-width: 80%;
}

.user-message .message-content {
color: white !important;
font-size: 14px;
}

.user-message {
    background-color: #104757 !important;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.bot-message {
margin-right: auto;
border-bottom-left-radius: 2px;
white-space: pre-line;
overflow-wrap: anywhere;
max-width: 90%;
padding: 16px;
font-size: 14px;
background: #f2f2f2;
/*box-shadow: rgba(0, 0, 0, 0.25) 0px 0.6px 0.54px -1.33px, rgba(0, 0, 0, 0.17) 0px 2.29px 2.06px -2.67px, rgba(0, 0, 0, 0.08) 0px 10px 9px -4px;*/
position: relative;
}

#notification {
height: auto !important;
}


.input-container {
display: flex;
padding: 1rem;
background: white;
border: solid 1px #c1b8b8;
padding: 0;
margin: 10px;
display: flex;
align-items: center;
padding: 1px 5px;
border-radius: 12px;
box-shadow: rgb(0 0 0 / 9%) 0px 0.602187px 2.04744px -1.33333px, rgb(0 0 0 / 28%) 0px 2.28853px 7.78101px -2.66667px, rgba(0, 0, 0, 0.02) 0px 10px 34px -4px;
}

#user-input {
    flex-grow: 1;
    padding: 0.75rem;
    border: 0;
    border-radius: 40px;
    margin-right: 0.5rem;
    font-size: 1rem;
}

#user-input {
    border: none !important;
    outline: none !important;
  }
#send-button {
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}



button:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
}

.copy-btn {
    padding: 0.25rem 0.5rem;
    font-size: 12px;
    background-color: #64748b;
    margin-top: 10px;
    display: none !important;
}




#loading {
    display: none;
    text-align: center;
    padding: 1rem;
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.typing-dot {
    width: 4px;
    height: 4px;
    background-color: #94a3b8;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
}

@media (max-width: 640px) {
    
    .chat-container {
        border-radius: 0;
    }
    .message {
        max-width: 90%;
    }
}


/* Chatbot Container (Popup) */
.chatbot-container {
position: fixed;
bottom: 100px; /* Adjust to lift it above the chat button */
left: 20px;
background-color: #fff;
border-radius: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
display: none; /* Initially hidden */
flex-direction: column;
overflow: hidden;
z-index: 1111111111111 !important;
animation-duration: 0.3s;
max-width: 400px;
right: 20px;
}

.chat-text {
    position: absolute;
    right: -123px;
    top: -48px;
    text-align: -webkit-auto;
    font-size: 16px;
    padding: 20px;
    background: rgba(76, 89, 96, 0.31);
    border-radius: 20px;
    padding: 13px;
    border-bottom-left-radius: 0;
}

/* Open and Close Animations */
.chatbot-container.open {
display: flex;
animation-name: slideIn;
}
.chatbot-container.close {
animation-name: slideOut;
animation-fill-mode: forwards;
}

/* Chatbot Header */
.chatbot-header {
background-color: #c4f4f1;
color: #fff;
padding: 12px 18px;
font-size: 16px;
display: flex;
justify-content: space-between;
align-items: center;
}


.chatbot-header img{
max-width: 180px;
}

/* Close Button */
.close-btn {
border: none;
font-size: 30px;
cursor: pointer;
background: white;
color: red;
padding: 0px 10px 10px 10px;
}

/* Chatbot Body */
.chatbot-body {
flex: 1;
overflow-y: auto;
}

#back-to-default {
color: #104757;
font-size: 22px;
cursor: pointer;
}

/* Chat Button */
.chatbot-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    border: none;
    z-index: 1000;
    /*opacity: 0;*/ 
    transition: 0.3s;
    background: transparent;
    padding: 0;
}

.chatbot-button i {
    padding: 15px 15px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 22px;
    width: 60px;
    border-radius: 50%;
    cursor: pointer;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}


.chatbot-button i:hover {
    scale: 1.1;
}

.chatbot-button i:active {
    scale: 0.8;
}

/* Slide In Animation */
@keyframes slideIn {
from {
opacity: 0;
transform: translatex(100%);
}
to {
opacity: 1;
transform: translatex(0);
}
}

/* Slide Out Animation */
@keyframes slideOut {
from {
opacity: 1;
transform: translatex(0);
}
to {
opacity: 0;
transform: translatex(100%);
}
}




.chatbot-content {
display: none; /* Initially hidden */
}

.default-section {
padding: 20px;
display: flex;
flex-direction: column;
gap: 10px;
max-width: 450px;
min-height: 580px;
background: rgb(35,85,100);
background: linear-gradient(180deg, rgb(11 210 199 / 24%) 40%, #f8f8f8 60%);
}


.default-section h2 {
font-size: 40px;
font-weight: bold;
color: #0d1117;
}

.default-section button {
background: white;
color: #0d1117;
font-size: 16px;
margin-top: 0px;
}


.message-content {
flex: 1;
color: black;
display: flex;
flex-direction: column;
gap: 0;
}


#user-input::placeholder {
color: #232a3191 !important;
opacity: 1; /* Firefox */
}

.message-timestamp {
color: #0000004a;
font-size: 14px;
display: none;
}

button.action-btn {
background: #104757;
font-size: 18px;
font-weight: 500;
margin-top: 0px;
color: #ffffff;
}

#messages ol {
margin-left: 20px !important;
}

.message-content h1, .message-content h2, .message-content h3, .message-content h4, .message-content h5, .message-content h6 {
color: black !important;
font-weight: 600;
margin-bottom: 10px;
font-family: 'Inter';
font-size: 14px !important;
}


.message-content ol li {
margin-bottom: 6px;
}

.message-content p {
margin-bottom: 6px;
}

.message-content ul {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 10px;
margin-bottom: 10px;
margin-left: 20px;
list-style: disc;
}

#messages li{
margin-top: -10px;
}

.quick-prompts {
display: flex;
flex-direction: column;
gap: 8px;
width: 100%;
margin: 20px 0;
}

.quick-prompts-heading {
font-size: 18px;
color: #0d1117;
margin-bottom: 4px;
}

.prompt-btn {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 14px 16px;
border-radius: 8px;
background: white;
cursor: pointer;
transition: all 0.2s ease;
text-align: left;
font-size: 14px;
box-shadow: rgba(0, 0, 0, 0.15) 0px 0.6px 0.54px -1.33px, rgba(0, 0, 0, 0.13) 0px 2.29px 2.06px -2.67px, rgba(0, 0, 0, 0.04) 0px 10px 9px -4px;
}


.prompt-btn:hover {
background: #f5f5f5;
border-color: #d0d0d0;
}

.prompt-btn i {
color: #104757;
font-size: 18px;
}


.divider {
position: relative;
text-align: center;
margin: 20px 0;
}

.divider::before,
.divider::after {
content: "";
position: absolute;
top: 50%;
width: calc(50% - 30px);
height: 1px;
background-color: #e0e0e0;
}

.divider::before {
left: 0;
}

.divider::after {
right: 0;
}

.divider span {
background: white;
padding: 0 10px;
color: #666;
font-size: 14px;
}

.action-btn {
width: 100%;
padding: 12px 20px;
background: #007bff;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
transition: background 0.2s ease;
}

.action-btn:hover {
background: #47b3c0;
}

#messages p, #messages ol, #messages li, #messages span {
font-size: 14px;
font-family: 'Inter';
margin-bottom: 6px;
}

.message strong {
color: currentColor;
font-weight: 600 !important;
font-family: 'Inter' !important;
}