/* Assistant Container */
#nealgo-assistant-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: Arial, sans-serif;
}

/* Avatar Styling */
#nealgo-assistant-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  cursor: pointer;
}

#nealgo-assistant-avatar #nealgo-avatar-image {
  width: 100%;
  height: 100%;
  transition: transform 0.3s;
}

#nealgo-assistant-avatar:hover #nealgo-avatar-image {
  transform: scale(1.05);
}

/* Speech Bubble */
#nealgo-assistant-bubble {
  position: absolute;
  bottom: 100px;
  right: 0;
  width: 220px;
  background: #fff;
  border: 2px solid #333333;
  border-radius: 10px;
  padding: 10px;
  display: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#nealgo-assistant-bubble::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 20px;
  border-width: 10px;
  border-style: solid;
  border-color: #333333 transparent transparent transparent;
}

/* Assistant Text */
#nealgo-assistant-text {
  margin: 0;
  font-size: 14px;
  color: #333;
}

/* Close Button */
#nealgo-assistant-close {
  position: absolute;
  top: 5px;
  right: 5px;
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #333333;
}

/* Modal Background */
#nealgo-assistant-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1001; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
}

/* Modal Content */
#nealgo-modal-content {
  background-color: transparent;
  margin: 5% auto; /* Centered */
  margin-top: 5vh;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5vh;
  padding: 20px;
  border: 1px solid red;
  border:none;
  width: 90vw; /* Adjust as needed */
  height: calc(90vh - 65px);
  position: relative;
}

.nealgo-modal-half-right {
  margin-top: 2vh !important;
  margin-left: 48vw !important;
  margin-right: 2vw !important;
  margin-bottom: 2vh !important;
  width: calc(50vw - 45px) !important;
  height: calc(96vh - 65px) !important;
}

.nealgo-modal-half-left {
  margin-top: 2vh !important;
  margin-left: 2vw !important;
  margin-right: 48vw !important;
  margin-bottom: 2vh !important;
  width: calc(50vw - 45px) !important;
  height: calc(96vh - 65px) !important;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  #nealgo-modal-content {
    margin: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .nealgo-modal-half-right,
  .nealgo-modal-half-left {
    margin: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
  }

  #nealgo-assistant-container {
    bottom: 10px;
    right: 10px;
  }

  #nealgo-assistant-avatar {
    width: 60px;
    height: 60px;
  }

  #nealgo-assistant-bubble {
    width: 180px;
    bottom: 80px;
  }
}


/* Close Button */
#nealgo-modal-close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background-color: transparent;
  border-radius: 50%;
/*   padding-top: 5px; */
  padding-bottom: 5px;
  padding-left: 12px;
  padding-right: 12px;
  border: 1px solid white;
  margin-bottom: 3px;
}

#nealgo-modal-close:hover,
#nealgo-modal-close:focus {
  color: black;
  background-color: white;
  text-decoration: none;
}

/* Iframe Placeholder */
#nealgo-assistant-iframe {
  width: 100%;
  height: 90%; /* Adjust as needed */
}