@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");



*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
}
body{
  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  padding: 0 10px;
}
.wrapper{

  max-width: 500px;
  margin-top: 50px;
  width: 100%;
  border-radius: 16px;

}

/* Login & Signup Form CSS Start */
.form{
  padding: 25px 30px;
}
.form header{
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  font-family: poppins, latto;
  margin-top: 10px;
}

.form .p{
  font-size: 15px;
  font-weight:400;
  margin-top: 7px;
  font-family: poppins;
  color: grey;
  padding-bottom: 10px;
  border-bottom: 1px solid #c9c9c935;
  margin-bottom: 10px;
}
.form form{

  margin: 10px 0;
}
.form form .error-text{
  color: #ff011a;
  padding: 12px 10px;
  text-align: center;
  border-radius: 5px;
  background: #ff001520;

  margin-bottom: 10px;
  display: none;
}

.form form .back-button {
  background: none;
  border: none;
/* background: #69f0ae; */

  font-size: 16px;
  color: #333;
  cursor: pointer;
  margin-bottom: 10px;
}

.form form .back-button i {
  margin-right: 5px;
}


.form form .name-details{
  display: flex;
}
.form .name-details .field:first-child{
  margin-right: 10px;
}
.form .name-details .field:last-child{
  margin-left: 10px;
}
.form form .field{
  display: flex;
  margin-bottom: 20px;
  flex-direction: column;
  position: relative;
}
.form form .field label{
  margin-bottom: 2px;
}
.form form .input input,
.form form .input select{
  height: 53px;
  width: 100%;
  font-size: 16px;
  padding:  15px;
  border-radius: 10px;
  background: #f2f2f2;
  /* border: 1px solid #ccc; */
  border-color: transparent ;
}

.form form .input input:focus {
	background-color: transparent;
	outline: transparent;
	border: 2px solid  orange;
  }
  
  /* .form form .input input::placeholder {
	color: grey;
  } */

.form form .field input{
  outline: none;
}
.form form .image input{
  font-size: 17px;
}
















.form form .button input {
  height: 55px;
  border: none;
  color: #fff;
  font-size: 17px;
  background: orange;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 13px;


  position: relative;
  transition: all 0.2s ease;
}
.form form .button input:active {
  transform: scale(0.96);
}
.form form .button input:before,
.form form .button input:after {
  position: absolute;
  content: "";
  width: 150%;
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
  z-index: -1000;
  background-repeat: no-repeat;
}
.form form .button input.animate::before {
  top: -70%;
  background-image: radial-gradient(circle, #7d2ae8 20%, transparent 20%),
    radial-gradient(circle, transparent 20%, #7d2ae8 20%, transparent 30%),
    radial-gradient(circle, #7d2ae8 20%, transparent 20%),
    radial-gradient(circle, #7d2ae8 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, #7d2ae8 15%, transparent 20%),
    radial-gradient(circle, #7d2ae8 20%, transparent 20%),
    radial-gradient(circle, #7d2ae8 20%, transparent 20%),
    radial-gradient(circle, #7d2ae8 20%, transparent 20%),
    radial-gradient(circle, #7d2ae8 20%, transparent 20%);
  background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%,
    10% 10%, 18% 18%;
  animation: greentopBubbles ease-in-out 0.6s forwards infinite;
}
@keyframes greentopBubbles {
  0% {
    background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%,
      40% 90%, 55% 90%, 70% 90%;
  }
  50% {
    background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%,
      50% 50%, 65% 20%, 90% 30%;
  }
  100% {
    background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%,
      50% 40%, 65% 10%, 90% 20%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}
.form form .button input.animate::after {
  bottom: -70%;
  background-image: radial-gradient(circle, #7d2ae8 20%, transparent 20%),
    radial-gradient(circle, #7d2ae8 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, #7d2ae8 15%, transparent 20%),
    radial-gradient(circle, #7d2ae8 20%, transparent 20%),
    radial-gradient(circle, #7d2ae8 20%, transparent 20%),
    radial-gradient(circle, #7d2ae8 20%, transparent 20%),
    radial-gradient(circle, #7d2ae8 20%, transparent 20%);
  background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 20% 20%, 18% 18%;
  animation: greenbottomBubbles ease-in-out 0.6s forwards infinite;
}
@keyframes greenbottomBubbles {
  0% {
    background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%,
      70% -10%, 70% 0%;
  }
  50% {
    background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%,
      105% 0%;
  }
  100% {
    background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%,
      110% 10%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}








.form form button{
  height: 55px;
  border: none;
  color: #fff;
  font-size: 17px;
  background: orange;
  border-radius: 10px;

  cursor: pointer;
  margin-top: 13px;
}

.form form .field i{
  position: absolute;
  right: 15px;
  top: 50%;
  color: #ccc;
  cursor: pointer;
  transform: translateY(-50%);
}
.form form .field i.active::before{
  color: #333;
  content: "\f070";
}
.form .link{
  text-align: center;
  margin: 30px 0;
  font-size: 15px;
  line-height: 2.6;
}
.form .link a{
  color: orange;


  transition: .2s ease-in-out;
}
.form .link a:hover{
text-decoration: underline;
  color: rgb(79, 79, 79);
}


/* Users List CSS Start */
.users{
  padding: 0px 30px;
}
.users header{
  margin-top: 70px;
}
.users header,
.users-list a{
  display: flex;

  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e6e6;
  justify-content: space-between;
}
.wrapper img{
  object-fit: cover;
  border-radius: 50%;
}
.users header img{
  height: 50px;
  width: 50px;
}
:is(.users, .users-list) .content{
  display: flex;
  align-items: center;
}
:is(.users, .users-list) .content .details{
  color: #000;
  margin-left: 20px;
}
:is(.users, .users-list) .details span{
  font-size: 18px;
  font-weight: 500;
}

.users header .logout{
  display: block;
  background: #333;
  color: #fff;
  outline: none;
  border: none;
  padding: 7px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 17px;
}
.users .search{
  
  margin: 20px 0;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
}
.users .search .text{
  font-size: 18px;
}
.users .search input{
  position: absolute;
  height: 42px;
  width: calc(100% - 50px);
  font-size: 16px;
  padding: 0 13px;
  border: 1px solid #e6e6e6;
  outline: none;
  border-radius: 5px 0 0 5px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}
.users .search input.show{
  opacity: 1;
  pointer-events: auto;
}
.users .search button{
  position: relative;
  z-index: 1;
  width: 47px;
  height: 42px;
  font-size: 17px;
  cursor: pointer;
  border: none;
  background: #fff;
  color: #333;
  outline: none;
  border-radius: 0 5px 5px 0;
  transition: all 0.2s ease;
}
.users .search button.active{
  background: #333;
  color: #fff;
}





.users2{
  padding: 0px 10px;
}
.users2 header{
  margin-top: 60px;
}
.users2 header,
.users-list a{
  display: flex;

  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e6e6;
  justify-content: space-between;
}

:is(.users2, .users-list2) .content{
  display: flex;
  align-items: center;
}

.users2 .content .details{
  color: #000;
  margin-left: 0px;
}
:is(.users2) .details span{
  font-size: 18px;
  font-weight: 500;
}





:is(.users-list2) .content .details{
  color: #000;
  margin-left: 20px;
}
:is(.users-list2) .details span{
  font-size: 18px;
  font-weight: 500;
}
.users2 header a{
  display: block;
  /* background: #f2f2f2; */
    color: #242424;
  outline: none;
  border: none;
  padding: 7px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 30px;
}
.users2 .search{
  
  margin: 20px 0;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
}
.users2 .search .text{
  font-size: 15px;
}
.users2 .search input{
  position: absolute;
  height: 50px;
  width: calc(100% - 50px);
  font-size: 16px;
  padding: 0 13px;
  border: 1px solid rgba(161, 161, 161, 0.5);
  outline: none;
  border-radius: 5px 0 0 5px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}
.users2 .search input.show{
  opacity: 1;
  pointer-events: auto;
}
.users2 .search button{
  position: relative;
  z-index: 1;
  width: 47px;
  height: 50px;
  font-size: 17px;
  cursor: pointer;
  border: none;
  background: #fff;
  color: #333;
  outline: none;
  border-radius: 0 5px 5px 0;
  transition: all 0.2s ease;
}
.users2 .search button.active{
  background: #333;
  color: #fff;
}
.search button.active i::before{
  content: '\f00d';
}
.users-list{
  max-height: 550px;
  overflow-y: auto;
}
:is(.users-list, .chat-box, body)::-webkit-scrollbar{
  width: 0px;
}
.users-list a{
  padding-bottom: 10px;
  margin-bottom: 15px;
  padding-right: 1px;
  border-bottom-color: #f1f1f1;
}
.users-list a:last-child{
  margin-bottom: 0px;
  border-bottom: none;
}
.users-list a img{
  height: 40px;
  width: 40px;
  margin-right: 20px;
}
.users-list a .details p{
  color: #67676a;
  
}
.users-list a .status-dot{
  font-size: 7px;
  color: #12e989;
  padding-left: 10px;
}
.users-list a .status-dot.offline{
  color: #ccc;
}

/* Chat Area CSS Start */

.chat-area header{
  display: flex;
  align-items: center;
  padding: 15px 30px;
  position: fixed;
  top: 0;
  left: 0;
  background: white;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(49, 49, 49, 0.066);

}
.chat-area header .back-icon{
  color: #333;
  font-size: 18px;
}
.chat-area header img{
  height: 45px;
  width: 45px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 15px;
}
.chat-area header .details span{
  font-size: 17px;
  font-weight: 500;
}
.chat-box{
  position: relative;
  min-height: 100px;


  overflow-y: auto;
  padding: 50px 20px 150px 20px;
  background: #f7f7f700;
  /* box-shadow: inset 0 32px 32px -32px rgb(0 0 0 / 5%),
              inset 0 -32px 32px -32px rgb(0 0 0 / 5%); */
}
.chat-box .text{
  position: fixed;
  top: 50%;
  left: 50%;
  font-size: 13px;

  border-radius: 15px;
  padding: 15px;
  width: calc(100% - 50px);
  text-align: center;
  transform: translate(-50%, -50%);
}
.chat-box .chat{
  margin: 15px 0;
}
.chat-box .chat p{
  word-wrap: break-word;
  padding: 8px 16px;
  box-shadow: 0 0 32px rgb(0 0 0 / 8%),
              0rem 16px 16px -16px rgb(0 0 0 / 10%);
}
.chat-box .outgoing{
  display: flex;
}
.chat-box .outgoing .details{
  margin-left: auto;
  max-width: calc(100% - 130px);
}
.outgoing .details p{
  background: #333;
  color: #fff;
  border-radius: 18px 18px 0 18px;
}
.chat-box .incoming{
  display: flex;
  align-items: flex-end;
}
.chat-box .incoming img{
  height: 35px;
  object-fit: cover;
  width: 35px;
  border-radius: 50%;
}
.chat-box .incoming .details{
  margin-right: auto;
  margin-left: 10px;
  max-width: calc(100% - 130px);
}
.incoming .details p{
  background: #fff;
  color: #333;
  border-radius: 18px 18px 18px 0;
}



.alert {
  padding: 10px;
  display: flex;
  bottom: -100px; /* Initially hidden */
  left: 50%; /* Center horizontally */
  transform: translateX(-50%);
  max-width: 250px;
  /* box-shadow: 0 -4px 30px rgba(49, 49, 49, 0.099); */
  width: 100%;
  cursor: pointer;
  font-size: 13px;
  border-radius: 10px;
  background: #12e988;
  position: fixed;
  text-align: center;
  justify-content: space-between;
  opacity: 0; /* Initially hidden */
  transition: bottom 0.5s, opacity 0.5s; /* Slide-in animation */
}

.alert.show {
  bottom: 90px; /* Final visible position */
  opacity: 1;
}

/* .alert i{

  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
  }
  40% {
      transform: translateX(-20px);
  }
  60% {
      transform: translateX(-5px);
  }
}
 */

.alert i {
  font-size: 16px;
  cursor: pointer;

  margin-top: 1px;
  color: rgb(9, 9, 9);
}


#popupMessage {
  position: fixed;
  bottom: -100px;
  left: 50%;
  text-align: center;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.911);
  color: rgb(219, 219, 219);
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  z-index: 1000;
  font-family: Poppins, sans-serif;
  width: 90%;
  max-width: 400px;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: bottom 0.5s, opacity 0.5s;
}


#popupMessage.show {
  bottom: 20px;
  opacity: 1;
}

.typing-area{
  padding: 5px ;
  display: flex;
  bottom: 0;
  left: 0%;
  right: 0%;
  box-shadow: 0 -4px 20px rgba(49, 49, 49, 0.066);
  width: 100%;
  background: white;
  position: fixed;
  justify-content: space-between;
}
.typing-area input{
  height: 65px;
  width: calc(100% - 58px);
  font-size: 16px;
  padding: 0 13px;
border: none;
  outline: none;
  border-radius: 5px 0 0 5px;
}


.typing-area button{
  color: #fff;
  width: 65px;
  border: none;
  outline: none;
  background: rgb(123, 123, 123);
  font-size: 19px;
  cursor: pointer;
  opacity: 0.7;
  pointer-events: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.typing-area button.active{
  opacity: 1; 
  background:  orange;
  pointer-events: auto;
}

/* Responive media query */
@media screen and (max-width: 450px) {
  .form, .users{
    padding: 10px;
  }

  .form form .name-details{
    flex-direction: column;
  }
  .form .name-details .field:first-child{
    margin-right: 0px;
  }
  .form .name-details .field:last-child{
    margin-left: 0px;
  }

  .users header img{
    height: 45px;
    width: 45px;
  }
  .users header .logout{
    padding: 6px 10px;
    font-size: 16px;
  }
  :is(.users, .users-list) .content .details{
    margin-left: 6px;
  }

  .users-list a{
    padding-right: 10px;
  }

  .chat-area header{
    padding: 15px 20px;
  }
  .chat-box{
    min-height: 500px;
    padding: 40px 15px 150px 20px;
  }
  .chat-box .chat p{
    font-size: 15px;
  }
  .chat-box .outogoing .details{
    max-width: 230px;
  }
  .chat-box .incoming .details{
    max-width: 265px;
  }
  .incoming .details img{
    height: 30px;
    width: 30px;
    margin-right: 7px;
  }
  .chat-area form{
    padding: 8px;
  }
  .chat-area form input{
    height: 55px;
    width: calc(100% - 48px);
  }
  .chat-area form button{
    width: 55px;
  }
}




