
/* Reset default body and html padding/margin */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
  overflow-x: hidden; /* Prevent sideways scroll */
}

/* Apply box-sizing border-box globally */
*, *::before, *::after {
  box-sizing: border-box;
}
/* body {
  margin: 0;
  background: #f4f4f9;
  font-family: Arial, sans-serif;
} */

.chatbot-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 1000;
  animation: shake 2s infinite;
}

.chatbot-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 380px;
  height: 500px;
  background: white;
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  display: none;
  z-index: 999;
}

.chatbot-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border: none;
  font-size: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
}

/* Chatbot message styling */
.chatbot-message {
position: fixed;
bottom: 90px;
right: 20px;
background: linear-gradient(to right, #cbcbf5, #78dfe8);
font-weight: bold;
color: #000000;
padding: 15px 20px;
border-radius: 10px;
z-index: 10000;
font-size: 14px;
display: none;
max-width: 240px;
box-sizing: border-box;  /* Ensures padding is included in width */
line-height: 1.5;  /* Helps align text and button properly */
overflow: hidden;  /* Ensures nothing overflows */
padding-right: 40px;  /* Add extra padding to the right for the button */
}

/* Close button styling */
.chatbot-message .close-btn {
position: absolute;
top: 5px;  /* Positioned slightly down to avoid overlap */
right: 5px;  /* Right-align the button */
background: rgba(255, 255, 255, 0);
border: none;
font-size: 20px;
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
z-index: 1001;
text-align: center;  /* Ensures the "×" is centered */
line-height: 30px;  /* Vertically centers the "×" inside the button */
}

/* Hover effect for close button */
.chatbot-message .close-btn:hover {
background-color: #a9e7ec;  /* Optional hover effect */
}

/* Optional: Add transitions for smooth hover effect */
.chatbot-message .close-btn {
transition: background-color 0.3s ease;
}