

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/

body {
  /*font-family: "Open Sans", sans-serif;*/
  color: #444444;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
}

.container {
  position: relative;
  top: -55px;
}

a {
  color: #0056b3;
  text-decoration: none;
}

a:hover {
  color: #004094;
  text-decoration: none;
}

.img {
  box-shadow: 0px 6px 40px rgba(0, 86, 179, 0.5);
}


.form-control {
  border-radius: 5px;
  width: 300px;
}


#sendButton:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}


.chat-container {
  position: relative;
  display: flex;
  width: 90%;
  max-width: 1300px;
  height: 90%;
  margin: 50px auto;
  border: none; /* Remove border */
  border-radius: 10px;
  top: -30px;
  background: #ffffff;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
}


.chat-sidebar {
  flex: 0.3;
  background-color: #f0f2f5; /* Different background color */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1); /* Add shadow to the sidebar */
}
.new-chat-link {
  padding: 10px;
  background-color: #f5f5f5;
  text-align: center;
}

.new-chat-link a {
  background-color: #0056b3;
  color: #ffffff;
  padding: 5px 15px;
  border-radius: 5px;
  transition: 0.3s;
  box-shadow: 0px 5px 30px rgba(0, 86, 179, 0.4);

}

.new-chat-link a:hover {
  background-color: #004094;
}


.conversation-list {
  overflow-y: auto;
  height: calc(100% - 40px); /* Adjust the height to subtract the height of the New Chat link */
}

.conversation-list ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

#conversationList li {
  display: flex;           /* Aligns children (text and icons) in a row */
  justify-content: space-between; /* Spaces the content and icons apart */
  align-items: center;     /* Vertically centers the text and icons */
  padding: 10px 15px;
  transition: 0.3s;
}

#conversationList li:hover {
  background-color: #e6e6e6;
}

.icon-container {
  display: flex;           /* Makes sure the icons are side by side */
  align-items: center;     /* Vertically centers the icons */
  font-size: 20px;
}

#conversationList .fa-pencil-alt,
#conversationList .fa-trash-alt {
  margin-left: 10px;       /* Gives space between the icons */
  cursor: pointer;         /* Changes cursor to a hand when hovering over icons */
}


#conversationList .fa-trash-alt:hover {
    color: red;
}

#conversationList .fa-pencil-alt:hover {
    color: #4CAF50;  /* Green */
}

.conversation-list li:hover {
  background-color: #f5f5f5;
}

.chat-sidebar ul {
  list-style-type: none;
  padding: 0;
}

.chat-sidebar li {
  padding: 8px 10px;
  border-bottom: 1px solid #e6e6e6;
  cursor: pointer;
}

.chat-sidebar li:hover {
  background-color: #e6e6e6;
}


.chat-main {
  flex: 0.7; /* Adjust to match design width */
  padding: 15px 25px; /* Adjust to match design spacing */
  position: relative; /* Set to relative for any absolute positioning within */
}



.chatWelcomeMsg {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%); /* This ensures it's truly centered */
  text-align: center; 
  z-index: 10; /* This ensures it appears on top of chat-history */
  color: #ffffff;
}

@keyframes pulseImage {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.05);
  }
  100% {
      transform: scale(1);
  }
}

.chatWelcomeMsg img {
  border-radius: 50%;
  animation: pulseImage 5s infinite ease-in-out;
}

.chat-message {
  display: flex;
  align-items: flex-start; /* This aligns the items to the top */
  margin: 10px 0;
}

.avatar {
  width: 40px; /* or whatever size you prefer */
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0; /* This ensures that the avatar doesn't shrink if the adjacent content grows */
}

.avatar img {
  display: block;
  max-width: 100%;
  height: auto;
}


.user-avatar {
  background: url('../img/user-avatar.png') no-repeat center;
  background-size: cover;
  color: #ffffff; /* white text color */
  display: flex;
  justify-content: center; /* horizontally center the initials */
  align-items: center; /* vertically center the initials */
  font-weight: bold; /* optional: make the text bold */
  font-size: 16px; /* adjust font size as needed */
}

.assistant-avatar {
  background: url('../img/lotus2x2.png') no-repeat center;
  background-size: cover;
}

.message-content {
  padding: 10px 20px;
  border-radius: 20px;
}

.user-message .message-content {
  background-color: #EFEFEF; /* Color based on uploaded image */
}



.chat-history {
  flex: 1; /* Allow it to grow and shrink */
  height: 510px; 
  overflow-y: auto;
  margin-bottom: 15px; /* Adjust to match design spacing */
  background-color: #03223e;
  border-radius: 5px;
}



.assistant-message {
  background-color: #e7f5ff;
  padding: 10px;
  margin: 5px;
  border-radius: 5px;
}

.user-message {
  background-color: #f1f1f1;
  padding: 10px;
  margin: 5px;
  border-radius: 5px;
  text-align: right;
}

.input-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e6e6e6; /* Add a separator line */
  padding-top: 10px;
}

.input-area textarea {
  width: 85%;
  padding: 10px;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  resize: none;
  font-size: 16px;
  transition: 0.3s;
}

input-area textarea:focus {
  border-color: #0056b3;
}

.input-area button {
  width: 12%;
  padding: 10px;
  background-color: #0056b3;
  color: #ffffff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.5s;
  box-shadow: 0px 5px 30px rgba(0, 86, 179, 0.4);
}


/* Hide the sidebar toggle icon by default */
.sidebar-toggle {
  display: none;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh; /* 100% of the viewport height */
  width: 100vw; /* 100% of the viewport width */
  background-color: rgba(0,0,0,0.5); /* Semi-transparent background */
  z-index: 9999; /* Ensure it's on top of everything else */
}

.loader {
  margin: 0;
  padding: 0;
  background: url('../img/lotus2x2.png') no-repeat center;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 8s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  padding-bottom: 40px;
}

.section-header h2 {
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 700;
  margin: 0;
  color: #0056b3;
  text-transform: uppercase;
}


.section-header p {
  margin: 10px 0 0 0;
  padding: 0;
  font-size: 38px;
  line-height: 42px;
  font-weight: 700;
  color: #012970;
}

@media (max-width: 768px) {


  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh; /* 100% of the viewport height */
    width: 100vw; /* 100% of the viewport width */
    background-color: rgba(0,0,0,0.5); /* Semi-transparent background */
    z-index: 9999; /* Ensure it's on top of everything else */
  }
  
  .loader {
    margin: 0;
    padding: 0;
    background: url('../img/lotus2x2.png') no-repeat center;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 8s linear infinite;
    position: absolute;
    top: 35%;
    left: 35%;
    transform: translate(-50%, -50%);
  }

  .container {
    position: relative;
    top: -100px;
  }

  .section-header p {
    font-size: 28px;
    line-height: 32px;
  }
  .chat-sidebar {
    display: none; /* hide sidebar by default */
    position: absolute; 
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1001; /* ensure it overlays the chat main section */
    background-color: #ffffff;
    transition: transform 0.3s ease-in-out;
    overflow-y: auto; /* add scroll if the list is long */
    box-shadow: 0px 6px 40px rgba(65, 84, 241, 0.5);
  }

  .chat-container {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    border: none;
    position: relative;
    top: -95px;
}

  .chat-container.open-sidebar .chat-sidebar {
    display: block; /* show sidebar when the icon is clicked */
    transform: translateX(0);
  }

  /* Adjust chat main section */
  .chat-main {
    width: 100%;
    height: calc(100vh - 60px); /* Adjust as needed based on your header height */
    position: relative;  /* Ensure that absolute positioning of children is relative to this container */
    display: flex;
    flex-direction: column;
  }

  .chatWelcomeMsg {
    position: absolute;
    top: 40%;
    left: 65%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10; /* Ensures it's above chat-history */
}

  #sendButton {
    height: 100%; /* Make the button take the full height of the input area */
    width: 15%;
    font-size: 16px; /* Adjust font size for better visibility */
    padding: 10px 10px 10px 10px; /* Adjust padding for a balanced appearance */
    margin-left: 5px;
}

  .input-area {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff; /* Match this with your design's background color */
    border-top: 1px solid #e6e6e6; /* Add a separator line */
    padding: 10px;
    z-index: 1000; /* Ensure it's above other content */
}

.chat-history {
  position: fixed;
  max-height: 510px;
  height: calc(100vh - 260px); /* Deducting an estimated total height of other elements */
  width: 96%;
  overflow-y: auto;
  margin-bottom: 10px;
  margin-left: 10px;
  left: 0;
}


  /* Icon styles (assumes you have an icon with class 'sidebar-toggle') */
  .sidebar-toggle {
    display: block;
    cursor: pointer;
    position: absolute;
    top: -10px; /* Adjust as needed */
    left: 15px; /* Adjust as needed */
    z-index: 900;
  }

  .form-control, .btn-get-started {
    width: 100%; /* Ensures fields and button take up full width of container */
    box-sizing: border-box; /* Ensures padding and borders are included in total width/height */
  }
  
  .btn-get-started {
    text-align: center; /* Center align text within the button */
    margin-top: 20px; /* Add some space between the last input field and the button */

  }

}


/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #4154f1;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #6776f4;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  transition: all 0.5s;
  z-index: 0;
  padding: 20px 0;
}

.header.header-scrolled {
  background: #fff;
  padding: 5px 0;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
}

.header .logo {
  line-height: 0;
}

.header .logo img {

  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.header .logo span {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #012970;
  /*font-family: "Nunito", sans-serif;*/
  margin-top: 3px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  /*font-family: "Nunito", sans-serif;*/
  font-size: 16px;
  font-weight: 700;
  color: #013289;
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: #0056b3;
}

.navbar .getstarted,
.navbar .getstarted:focus {
  background: #0056b3;
  padding: 8px 20px;
  margin-left: 30px;
  border-radius: 4px;
  color: #fff;
  box-shadow: 0px 5px 30px rgba(0, 86, 179, 0.4);

}

.navbar .getstarted:hover,
.navbar .getstarted:focus:hover {
  color: #fff;
  background: #004094;
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
  border-radius: 4px;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 15px;
  text-transform: none;
  font-weight: 600;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
  color: #0056b3;
}

.navbar .dropdown:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .megamenu {
  position: static;
}

.navbar .megamenu ul {
  margin-top: 5px;
  right: 0;
  padding: 10px;
  display: flex;
}

.navbar .megamenu ul li {
  flex: 1;
}

.navbar .megamenu ul li a,
.navbar .megamenu ul li:hover>a {
  color: #013289;
}

.navbar .megamenu ul li a:hover,
.navbar .megamenu ul li .active,
.navbar .megamenu ul li .active:hover {
  color: #0056b3;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover>ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover>ul {
    left: -100%;
  }
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: #012970;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 1200px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(1, 22, 61, 0.9);
  z-index: 1010;

}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  border-radius: 10px;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
  z-index: 1010;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: #012970;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
  color: #0056b3;
  z-index: 9999;
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  margin: 15px;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 1010;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
  z-index: 9999;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover>a {
  color: #0056b3;
}

.navbar-mobile .dropdown>.dropdown-active {
  display: block;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  height: 100%;
  /*background: url(../img/hero-bg.png) top center no-repeat;
  background-size: cover;*/
  padding-top: 0px;
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  color: #012970;
}

.hero h2 {
  color: #444444;
  margin: 15px 0 0 0;
  font-size: 26px;
}

.hero .btn-get-started {
  margin-top: 30px;
  line-height: 0;
  padding: 20px 40px;
  border-radius: 4px;
  transition: 0.5s;
  color: #fff;
  background: #0056b3;
  box-shadow: 0px 5px 30px rgba(0, 86, 179, 0.4);
}

.hero .btn-get-started span {
  /*font-family: "Nunito", sans-serif;*/
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
}

.hero .btn-get-started i {
  margin-left: 5px;
  font-size: 18px;
  transition: 0.3s;
}

.hero .btn-get-started:hover i {
  transform: translateX(5px);
}

.hero .hero-img {
  text-align: right;
}

@media (min-width: 1024px) {
  .hero {
    background-attachment: fixed;
  }
}

@media (max-width: 991px) {
  .hero {
    height: auto;
    padding: 120px 0 60px 0;
  }

  .hero .hero-img {
    text-align: center;
    margin-top: 80px;
  }

  .hero .hero-img img {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .hero {
    text-align: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .hero .hero-img img {
    width: 100%;
  }
}

/*--------------------------------------------------------------
# Index Page
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
 
  padding: 0 0 0 0;
  font-size: 14px;
}

@media (max-width: 992px) {
  .footer .footer-top {
    background-position: center bottom;
  }
}

.footer .copyright {
  text-align: center;
  padding-top: 70px;
  
}