
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}
html{
    overflow-x: hidden;
}
.main-contents{
    padding: 20px;
}
/* Leads Summary */
.main-contents .container{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px;
}
/* Leads */
.main-contents .leads{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
}
.main-contents #live-screen{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.main-contents #live-screen #heading{
  font-size: 18px;
  color: #088994;
  font-weight: bold;
}
.main-contents #live-screen>div{
display: flex;
justify-content: flex-end;
width: 100%;
align-items: center;
gap: 10px;
cursor: pointer;
}
.main-contents #live-screen>div>span{
color: #2E6C9A;
font-size: 14px;
font-weight: bold;
}
.main-contents #live-screen>div>a{
  font-size: 14px;
  background-color: rgb(201, 43, 43);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
}
.main-contents .leads-1,.leads-2{
    border-top: 3px solid rgb(212, 212, 212);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 10px 10px;
    height: 180px;
    width: 250px;
    background-color: #F7F8FB;
    border-radius: 10px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}
.main-contents #dayorweek{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
.main-contents #dayorweek>i{
    cursor: pointer;
    font-size: 25px;
}
.main-contents #dayorweek>span{
    cursor: pointer;
    font-size: 13px;
}
.main-contents #dayorweek .active{
    color: red;
    font-weight: 600;
    border-bottom: 2px solid red;
}
.main-contents #total-leads{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50%;
}
.leads-1 .total{
    width: 48%;
    padding: 10px;
    border-radius: 10px;
    color: white;
}
.leads-1 .blue{
    background-color: #2E6C9A;
}
.leads-1 .green{
    font-weight: bold;
    background-color: #008994 ;
}
.leads-1 .total>div{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
}
.leads-1 .total>span{
    font-size: 9px;
}
.main-contents #heading-2{
    font-size: 12px;
    text-align: right;
    color: #286DB3;
    font-weight: 600;
    cursor: pointer;
}
.main-contents .leads-2{
    align-items: center;
    justify-content: space-evenly;
    color: #286DB3;
}
.main-contents .leads-2>div{
    font-weight: bold;
}
.main-contents .leads-2>span{
    font-size: 10px;
}
.main-contents .leads-2>a{
    color: white;
    text-decoration: none;
    font-size: 12px;
    padding: 10px 30px;
    border-radius: 5px;
    background-color: #2E6C9A;
}

/* profile */

.main-contents .profile-1,.profile-2{
    color: #286DB3;
    margin-bottom: 20px;
    border-top: 3px solid rgb(212, 212, 212);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 20px;
    height: 200px;
    width: 230px;
    background-color: #F7F8FB;
    border-radius: 10px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}
.main-contents .profile-1>p,.profile-2>p{
    font-size: 20px;
    font-weight: bold;
}
.main-contents .profile-1 #good, .profile-2 #good{
    font-size: 15px;
    font-weight: 600;
}
.main-contents .profile-1 .green-color{
    height: 6px;
    background-color: green;
    border-radius: 10px;
}
.main-contents .profile-2 .red-color{
    height: 6px;
    width: 70%;
    background-color: red;
    border-radius: 10px;
}
.main-contents .profile-1>span,.profile-2>span{
    font-size: 10px;
}
.main-contents .profile-1 #high, .profile-2 #high{
    font-size: 11px;
    font-weight: 600;
}
.main-contents .profile-1>article,.profile-2>article{
    font-size: 15px;
}
.main-contents .profile-1>a{
    background-color: #286DB3;
    text-decoration: none;
    color: #fff;
    padding: 10px;
    width: 35%;
    text-align: center;
    border-radius: 7px;
    font-size: 12px;
    position: relative;
    left: 130px;
}
.main-contents .profile-2>a{
    position: relative;
    left: 100px;
    font-size: 12px;
    color: #286DB3;
}
/* FAQ's */
.main-faqs{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0px 10px;
}
.main-faqs .heading>span{
  font-size: 18px;
  font-weight: bold;
  color: #2E6C9A;
}
.main-faqs .faqs{

  max-width: 700px;
  width: 100%;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}
.faqs .questionandanswer{
  border-bottom: 2px solid grey;
}
.faqs .main-question{
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #F7F8FB;
  font-size: 14px;
  cursor: pointer;
}
.main-answer {
  display: none; 
  padding: 10px 20px;
  font-size: 14px;
}

.arrow-icon {
  cursor: pointer;
  transition: transform 0.3s ease;
  display: inline-block;
  margin-left: 10px;
}

.open .arrow-icon {
  transform: rotate(180deg);
}

/* chatbot */
.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 35px;
    outline: none;
    border: none;
    height: 50px;
    width: 50px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #007bff;
    transition: all 0.2s ease;
  }
  body.show-chatbot .chatbot-toggler {
    transform: rotate(90deg);
  }
  .chatbot-toggler span {
    color: #fff;
    position: absolute;
  }
  .chatbot-toggler span:last-child,
  body.show-chatbot .chatbot-toggler span:first-child  {
    opacity: 0;
  }
  body.show-chatbot .chatbot-toggler span:last-child {
    opacity: 1;
  }
  .chatbot {
    position: fixed;
    right: 35px;
    bottom: 90px;
    width: 420px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    transform-origin: bottom right;
    box-shadow: 0 0 128px 0 rgba(0,0,0,0.1),
                0 32px 64px -48px rgba(0,0,0,0.5);
    transition: all 0.1s ease;
    z-index: 9999;
  }
  body.show-chatbot .chatbot {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }
  .chatbot header {
    padding: 16px 0;
    position: relative;
    text-align: center;
    color: #fff;
    background: #007bff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  .chatbot header span {
    position: absolute;
    right: 15px;
    top: 50%;
    display: none;
    cursor: pointer;
    transform: translateY(-50%);
  }
  header h2 {
    font-size: 16px;
  }
  .chatbot .chatbox {
    z-index: 9999;
    overflow-y: auto;
    max-height: 400px;
    height: 100%;
    padding: 30px 20px 100px;
  }
  .chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
    width: 6px;
  }
  .chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
    background: #fff;
    border-radius: 25px;
  }
  .chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 25px;
  }
  .chatbox .chat {
    display: flex;
    list-style: none;
  }
  .chatbox .outgoing {
    margin: 20px 0;
    justify-content: flex-end;
  }
  .chatbox .incoming span {
    width: 32px;
    height: 32px;
    color: #fff;
    cursor: default;
    text-align: center;
    line-height: 32px;
    align-self: flex-end;
    background: #007bff;
    border-radius: 4px;
    margin: 0 10px 7px 0;
  }
  .chatbox .chat p {
    white-space: pre-wrap;
    padding: 12px 16px;
    border-radius: 10px 10px 0 10px;
    max-width: 75%;
    color: #fff;
    font-size: 14px;
    background: #007bff;
  }
  .chatbox .incoming p {
    border-radius: 10px 10px 10px 0;
  }
  .chatbox .chat p.error {
    color: #721c24;
    background: #f8d7da;
  }
  .chatbox .incoming p {
    color: #000;
    background: #f2f2f2;
  }
  .chatbot .chat-input {
    display: flex;
    gap: 5px;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #fff;
    padding: 3px 20px;
    border-top: 1px solid #ddd;
  }
  .chat-input textarea {
    height: 55px;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    max-height: 180px;
    padding: 15px 15px 15px 0;
    font-size: 14px;
  }
  .chat-input span {
    align-self: flex-end;
    color: #007bff;
    cursor: pointer;
    height: 55px;
    display: flex;
    align-items: center;
    visibility: hidden;
    font-size: 1.35rem;
  }
  .chat-input textarea:valid ~ span {
    visibility: visible;
  }
  
  @media (max-width: 490px) {
    .chatbot-toggler {
      right: 20px;
      bottom: 20px;
    }
    .chatbot {
      top: 50px;
      right: 0;
      bottom: 5px;
      height: 95%;
      border-radius: 0;
      width: 100%;
    }
    .chatbot .chatbox {
      height: 90%;
      padding: 25px 15px 100px;
    }
    .chatbot .chat-input {
      padding: 5px 15px;
    }
    .chatbot header span {
      display: block;
      
    }
    .chatbot header .roboicon{
      display: none;
    }
  }

/* message */
  /* Chat list box (floating at bottom-left) */
  .chat-box-container {
    position: fixed;
    bottom: 30px;
    left: 100px;
    z-index: 1000;
}

.chat-list-box {
    width: 250px;
    max-height: 500px;
    height: 100%;
    border: 1px solid #ccc;
    background-color: #fefefe;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.chat-list-header {
    /* background-color: #ffffff; */
    color: rgb(0, 0, 0);
    padding: 10px 10px;
    font-size: 16px;
    font-weight:500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0px 5px;
    width: 100%;
}

.chat-list-header div{
  display: flex;
  align-items: center;
}.box-icons{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.box-icons .arrow{
  font-size: 20px;
  font-weight: 500;
}
.box-icons span{
  font-size: 20px;
  font-weight: 500;
}
.chat-list-box hr{
  margin: 0px auto;
  width: 97%;
}
.searching{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}
.searching .searchbox{
  display: flex;
  align-items: center;
  width: 100%;
  padding: 5px;
  border: 1px solid rgb(188, 188, 188);
  border-radius: 6px;
  background-color: #d0e8f9;
}
.searchbox input{
  width: 100%;
  padding: 2px;
  padding-left: 4px;
  border: none;
  outline: none;
  background-color: transparent;
}
.chat-list-content {
    display: none;
    max-height: 440px;
    height: 100%;
    overflow-y: auto;
}

.chat-list-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chat-list-content li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #c0c0c0;
    margin: 0px 5px;
}

.chat-list-content li img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}
.chat-list-header img{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}
.chat-list-content li:hover {
    background-color: #eeeeee;
}
.persontext{
  display: flex;
  align-items: center;
}
.persontext span{
  font-size: 14px;
  font-weight: 500;
}
.time{
  font-size: 12px;
  color: #5a5a5a;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.chat-list-content::-webkit-scrollbar {
  width: 5px;               /* width of the entire scrollbar */
}
.chat-list-content::-webkit-scrollbar-track {
  background: rgb(255, 255, 255);        /* color of the tracking area */
}

.chat-list-content::-webkit-scrollbar-thumb {
  background-color: #088994;    /* color of the scroll thumb */
  border-radius: 20px;       /* roundness of the scroll thumb */
  border: 3px solid rgb(112, 112, 112);  /* creates padding around scroll thumb */
}
/* Chat window */
.chat-window {
    display: none;
    max-width: 500px;
    width: 100%;
    position: fixed;
    bottom: 30px;
    overflow: hidden;
    max-height: 500px;
    height: 100%;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;    
    left: 360px;
}

.chat-window-header {
    background-color: #007BFF;
    color: white;
    padding: 10px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px 10px 0px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-window-header img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.close-chat {
    cursor: pointer;
    font-size: 20px;
}

.chat-window-content {
    padding: 10px;
    width: 100%;
    height: 90%;
    /* border: 1px solid #ccc; */
    border-radius: 10px;
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.chat-messages {
    height: 100%;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 5px;
    gap: 15px;
}
.chat-messages::-webkit-scrollbar {
  width: 5px;               /* width of the entire scrollbar */
}
.chat-messages::-webkit-scrollbar-track {
  background: rgb(255, 255, 255);        /* color of the tracking area */
}

.chat-messages::-webkit-scrollbar-thumb {
  background-color: #088994;    /* color of the scroll thumb */
  border-radius: 20px;       /* roundness of the scroll thumb */
  border: 3px solid rgb(112, 112, 112);  /* creates padding around scroll thumb */
  cursor: pointer;
}

#chat-input {
    width: 100%;
    height: 50px;
    padding: 5px;
    margin-bottom: 0px;
    border-radius: 5px;
    border: 1px solid #ccc;
    resize: none;
    outline-color: #b6b6b6;
}

#send-chat-btn {
    width: 100%;
    padding: 8px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#send-chat-btn:hover {
    background-color: #0056b3;
}

.arrow {
    transition: transform 0.3s ease;
}



.message-container{
  display: flex;
}


.left {
  justify-content: flex-start;
  /* margin-right: 60px; */
}

.right {
  /* justify-content: flex-end; */
  flex-direction: row-reverse;
  /* margin-left: 60px; */
  
}

.message-text {
  background-color: #f1f0f0;
  font-size: 14px;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid rgb(202, 202, 202);
  /* max-width: 100%; */
  word-wrap: break-word;
}

.right .message-text {
  background-color: #e1f4ff;
}

.message-time {
  font-size: 12px;
  color: #888;
  margin-top: 5px;
}

.profile-pic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 0 10px;
}


/* contractor */
.contractor-list {
  display: none;
  border: 1px solid #ccc;
  background-color: #fefefe;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
  position: fixed;
  left: 360px;
  bottom: 30px;
  max-height: 500px;
  max-width: 350px;
  width: 100%;
  border-radius: 10px;
}
.contractor-list hr{
  margin: 0px auto;
  width: 97%;
}
.contractor-content{
  max-height: 440px;
  overflow-y: auto;
}
.contractor-content::-webkit-scrollbar {
  width: 6px;
}
.contractor-content::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 25px;
}
.contractor-content::-webkit-scrollbar-thumb {
  background: #707070;
  border-radius: 25px;
}
.contractor-content ul {
  list-style: none;
  padding: 5px;
  padding-top: 0px;
  margin: 0;
}

.contractor-content li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #c0c0c0;
  width: 100%;
}

.contractor-content li img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}
.contractor-list-header{
  color: rgb(0, 0, 0);
  padding: 10px 10px;
  font-size: 16px;
  font-weight:500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0px 5px;
}
.contractor-list-header div{
  display: flex;
  align-items: center;
}
.contractor-list-header img{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}
.contractor-content li:hover {
  background-color: #eeeeee;
}
.contractor-list-header span{
  font-size: 16px;
  font-weight: 500;
}
.persontext{
display: flex;
align-items: center;
}
.persontext span{
font-size: 14px;
font-weight: 500;
}
.time{
font-size: 12px;
color: #5a5a5a;
}

/* menu */
.menu {
  position: fixed;
  margin-top: 50px;
  margin-left: 110px;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
  z-index: 1000;
  border-radius: 8px;
  padding: 5px 0px 5px 0px;
}

.menu ul {
  list-style: none;
  padding: 0px;
  margin: 0;
}

.menu li {
  font-size: 12px;
  padding: 6px;
  cursor: pointer;
  border-radius: 4px;
  border-bottom: none;
}

.menu li:hover {
  background-color: #f0f0f0;
}

.chat-dots{
  display: flex;
  gap: 5px;
  align-items: center;
}
.dots{
  cursor: pointer;
}
.dots:hover{
  background-color: #cfcfcf;
  border-radius: 10px;
  padding: 0px;
  margin: 0px;
  color: black;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 60px;
  border-radius: 6px;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000; /* Make sure it appears on top */
  padding: 4px;
}

.dropdown-item {
  padding: 4px;
  color: black;
  font-weight: 400;
  font-size: 12px;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
  border-radius: 6px;
}

@media (max-width:768px) {
  .chat-box-container {
    bottom: 20px;
    left: 20px;
    max-height:600px ;

  }
  .chat-window {
    width:calc(100% - 10px);
    left: 5px;
    max-width: 500px;
    max-height:600px ;
    bottom: 5px;
  }
  .contractor-list {
    
    left: 10px;
    bottom: 25px;
    max-height: 550px;
    max-width: 350px;
    width: 80%;
    
  }
}

/* Popup overlay */
.popup-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out; /* Smooth opacity transition */
}

/* Show the overlay */
.popup-overlay.show {
  display: block;
  opacity: 1;
  animation: fadeIn 0.3s ease-in-out forwards;
}

.popup-overlay.hide {
  animation: fadeOut 0.3s ease-in-out forwards;
}

/* Popup content */
.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9); /* Start small */
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 90%;
  max-width: 400px;
  opacity: 0;
  transition: all 0.3s ease-in-out; /* Smooth transform/opacity */
}

/* Entry animation for content */
.popup-overlay.show .popup-content {
  transform: translate(-50%, -50%) scale(1); /* Full size */
  opacity: 1;
  animation: scaleIn 0.3s ease-in-out forwards;
}

/* Exit animation for content */
.popup-overlay.hide .popup-content {
  transform: translate(-50%, -50%) scale(0.9); /* Shrink */
  opacity: 0;
  animation: scaleOut 0.3s ease-in-out forwards;
}

/* Title and message */
.popup-content h3 {
  margin: 0 0 10px;
  color: #333;
  font-size: 1.5rem;
  font-weight: bold;
}

.popup-content p {
  margin: 0 0 20px;
  color: #666;
  font-size: 1rem;
}

/* Popup actions */
.popup-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.popup-actions .btn {
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s;
}

.btn-secondary {
  background-color: #6c757d;
  color: #fff;
}

.btn-danger {
  background-color: #dc3545;
  color: #fff;
}

.btn:hover {
  transform: translateY(-2px); /* Subtle hover animation */
  background-color: #444;
}

/* Keyframes for overlay fade */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Keyframes for content scaling */
@keyframes scaleIn {
  from {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes scaleOut {
  from {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
  }
}
