* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(
    #2a3072 0%,
    #30316a 130px,
    #d9dbd5 130px,
    #d9dbd5 100%
  );
}

.hidden{
  display: none !important;
}

.container {
  position: relative;
  width: 1298px;
  max-width: 100%;
  height: calc(100vh - 40px);
  display: flex;
}
.container .leftSide {
  position: relative;
  flex: 30%;
  background: #fff;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}
.container .rightSide {
  position: relative;
  flex: 70%;
  background: #e5ddd5;
}
.container .rightSide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.06;
}
.header {
  position: relative;
  width: 100%;
  height: 60px;
  background: #ededed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
}
.userimg {
  position: relative;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
  background-color: transparent;
}
.cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav_icons {
  display: flex;
  margin-bottom: 0;
}
.nav_icons li {
  display: flex;
  list-style: none;
  cursor: pointer;
  color: #51585c;
  font-size: 1.5em;
  margin-left: 22px;
}
.search_chat {
  position: relative;
  width: 100%;
  height: 50px;
  background: #f6f6f6;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
}
.search_chat div {
  width: 100%;
}
.search_chat div input {
  width: 100%;
  outline: none;
  border: none;
  background: #fff;
  padding: 6px;
  height: 38px;
  border-radius: 30px;
  font-size: 14px;
  padding-left: 40px;
}
.search_chat div input::placeholder {
  color: #bbb;
}
.search_chat div ion-icon {
  position: absolute;
  left: 30px;
  top: 14px;
  font-size: 1.2em;
}
.chatlist {
  position: relative;
  height: calc(100% - 110px);
  overflow: auto;
}
.chatlist .block {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
}
.chatlist .block.active {
  background: #ebebeb;
}
.chatlist .block:hover {
  background: #f5f5f5;
}
.chatlist .block .imgBox {
  position: relative;
  min-width: 45px;
  height: 45px;
  overflow: hidden;
  border-radius: 50%;
  margin-right: 20px;
  text-align: center;
  background-color: #30316a;
}
.chatlist .block .imgBox i{
  font-size: 20px;
  color: white;
  padding: 8px;
}

.chatlist .block .details {
  position: relative;
  width: 100%;
}

.chatlist .block .details .listHead {
  display: flex;
  justify-content: space-between;
}
.chatlist .block .details .listHead h4 {
  font-size: 1.1em;
  font-weight: 600;
  color: #111;
}
.chatlist .block .details .listHead .time {
  font-size: 0.6em;
  color: #aaa;
  margin-bottom: 0;
}
.chatlist .block .details .listHead .time {
  color: #111;
}
.chatlist .block.unread .details .listHead .time {
  color: #06d755;
}
.message_p {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.message_p b {
  background: #06d755;
  color: #fff;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.6rem;
}

.message_p p {
  color: #aaa;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  font-size: 0.9em;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding: 0;
}
.imgText {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.imgText h4 {
  font-weight: 500;
  line-height: 1.2em;
  margin-left: 15px;
  margin-bottom: 0;
  padding: 0;
  font-size: 1.1em;
}
.imgText h4 span {
  font-size: 0.8em;
  color: #555;
}

/* CHAT BOX */
.chatbox {
  position: relative;
  width: 100%;
  height: calc(100% - 120px);
  padding: 25px;
  overflow-y: auto;
}
.message {
  position: relative;
  display: flex;
  width: 100%;
  margin: 5px 0;
}
.message p {
  position: relative;
  right: 0;
  text-align: right;
  max-width: 65%;
  padding: 12px;
  background: #dcf8c8;
  border-radius: 10px;
}
.message p::before {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;
  width: 20px;
  height: 20px;
  background: linear-gradient(
    135deg,
    #dcf8c6 0%,
    #dcf8c6 50%,
    transparent 50%,
    transparent
  );
}
.message p span {
  display: block;
  margin-top: 5px;
  font-size: 0.7em !important;
  opacity: 0.5;
}
.my_msg {
  justify-content: flex-end;
}
.friend_msg {
  justify-content: flex-start;
}
.friend_msg p {
  background: #fff;
  text-align: left;
}
.message.friend_msg p::before {
  content: "";
  position: absolute;
  top: 0;
  left: -12px;
  width: 20px;
  height: 20px;
  background: linear-gradient(
    225deg,
    #fff 0%,
    #fff 50%,
    transparent 50%,
    transparent
  );
}
.chat_input {
  position: relative;
  width: 100%;
  /*height: 60px;*/
  background: #f0f0f0;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat_input i {
  cursor: pointer;
  font-size: 1.8em;
  color: #51585c;
}
.chat_input ion-icon:nth-child(1) {
  margin-right: 15px;
}
.chat_input input {
  position: relative;
  width: 90%;
  margin: 0 20px;
  padding: 10px 20px;
  border: none;
  outline: none;
  border-radius: 30px;
  font-size: 1em;
}

/* ALTRO */
.link_chat_bot{
  text-decoration: none;
  margin: 0;
  padding: 0;
}
.header-scritte{
  font-size: 0.55rem;
}
.read-status{
  position: absolute;
  bottom: 0;
  right: -10px;
}
.author_okone_post{
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding-top: 8px;
  opacity: 0.7!important;
}
#download-photo{
  margin-right: 1rem;
}
#invio-messaggiooo{
  margin-left: 1rem;
}
/* login */
.text-title-login{
  text-align: center;
    text-transform: uppercase;
    padding-bottom: 2rem;
    font-size: x-large;
}
.input-field{
  background-color: white !important;
    border-radius: 14px !important;
    margin: 5%;
}
.input-field label{
  padding-left: 20px;
}
.input-field label.active{
  padding-left: 10px!important;
  padding-top: 5px !important;
}
.input-field input{
  padding-top: 10px !important;
  padding-left: 25px!important;
}
.remember-box-login{
  margin-left: 5%;
}
.botton-login{
  text-align: center
}
.botton-login button{
  width: 50%;
  border-radius: 14px;
}
.header-bottom{
  position: absolute;
  bottom: 0!important;
  text-align: center;
}
.header-bottom span{
  flex: 1;
  text-align: center;
}
.header-scritte-login{
  text-align: left!important;
  font-size: large;
  padding-left: 20px;
  flex: 2;
}

#menuContainer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Opacità del menu */
  color: #fff;
  z-index: 1000;
}

#menu {
  display: flex;
  flex-direction: column;
  text-align: left !important;
  justify-content: center;
  height: 100%;
  width: 250px;
  background: #fff;
  color: #111;
  padding-left: 10px;
}

#menu img {
  width: 70px;
  margin-bottom: 20px;
  position: absolute;
  top:2rem;
}

#menu a {
  text-decoration: none;
  color: #111;
  font-size: 18px;
  margin: 10px 0;
}

#copyright {
  position: absolute;
  bottom: 10px;
  text-align: center;
  max-width: 90%;
  font-size: 10px;
}