@media (min-width:768px) {
  .navbar1 {
    width: 60px;
    height: 100%;
    background-color: var(--navbar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-width: 55px;
  }
  .grouplistmain{
  width: 100%;
  height: calc(100% - 150px);
}
#AImodel1{
  display: none;
}
 #storiesSection,
#settings,
#addfreinds,
#groupManagement,
#notifications {
  width:100%;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  z-index: var(--layer3);
  background-color: var(--white);
  flex-direction: column;
  /* overflow-y: auto; */

}
.rightfloat1{display: none;}
  .navbar1 .buttonss {
    width: 100%;
    height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
  }

  .navbar1 .buttonss button {
    width: 30px;
    height: 30px;
    background-color: transparent;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    color: var(--navbar-buttons);
  }
.LeftsideHeader {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}
  .Buttonsofheaders {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-right: 0.5rem;
    font-size: 1.2rem;
  }

  .leftside,
  .seconddarayslides {
    width: calc(100% - 50px);
    height: 100%;
    background-color: var(--white);
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .rightfloat {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #navbarImg1 {
    width: 45px;
    height: 45px;
    border-radius: 50%;
  }

  #leftAside {
    width: 40%;
    flex: 0 0 40%;
    max-width: 40%;
    height: 100%;
    display: flex;
    flex-direction: row;
  }

  .rightside {
    height: 100%;
    background-color: var(--navbar-bg);
    border-left: 1px solid var(--border);
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: var(--layer4);
    border-radius: 0px 10px 10px 0px;

  }

}

@media (min-width:426px) and (max-width: 769px) {
  .rightfloat {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .rightside {
    height: 100%;
    background-color: var(--navbar-bg);
    border-left: 1px solid var(--border);
    width: 100%;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    border-radius: 0px 10px 10px 0px;
    z-index: none;

  }

  #navbarImg1 {
    width: 45px;
    height: 45px;
    border-radius: 50%;
  }

  .leftside,
  .seconddarayslides {
    width: calc(100% - 50px);
    height: 100%;
    background-color: var(--white);
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: var(--layer5);
  }
  #AImodel1{
    display: none;
  }
.grouplistmain{
  width: 100%;
  height: calc(100% - 150px);
  align-self: flex-start;
  padding-inline: 1rem;
}
.LeftsideHeader {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}
  #leftAside {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    flex-direction: row;
    z-index: var(--layer5);
  }

  .Buttonsofheaders {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-right: 0.5rem;
    font-size: 1.2rem;
  }

  .rightside {
    height: 100%;
    background-color: var(--navbar-bg);
    border-left: 1px solid var(--border);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 0px 10px 10px 0px;

  }

  .navbar1 {
    min-width: 60px;
    width: 60px;
    height: 100%;
    background-color: var(--navbar-bg);
    border-right: 1px solid var(--border);
    border-radius: 10px 0px 0px 10px;
    display: flex;
    flex-direction: column;

  }

  .leftside {
    width: 100%;
  }
.rightfloat1{
  display: none;
}
  .navbar1 {
    width: 60px;
    height: 100%;
    background-color: var(--navbar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
  }

  .navbar1 .buttonss {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    align-items: center;
    gap: 2rem;
  }
  #storiesSection,
#settings,
#addfreinds,
#groupManagement,
#notifications {
  width: calc(100% - 60px);
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  z-index: var(--layer5);
  background-color: var(--white);
  flex-direction: column;
  /* overflow-y: auto; */

}

  .navbar1 .buttonss button {
    width: 30px;
    height: 30px;
    background-color: transparent;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    color: var(--navbar-buttons);
  }
}

@media (max-width:426px) {
  .rightfloat {
    width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    margin-right: 1rem;
    display: none;
  }

  #navbarImg1 {
    width: 45px;
    height: 45px;
    border-radius: 50%;
  }
#AImodel{
  display: none;
}
#navbarImg1{
  display: none;
}
#navbarImg2{
  display: flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
  .leftside,
  .seconddarayslides {
    width: 100%;
    height: 100%;
    background-color: var(--white);
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
    position: relative;
  }
.grouplistmain{
  width:100%;
  height: calc(100% - 150px);
  align-self: flex-start;
  padding-inline: 0.3rem;
  padding-top: 1rem;
}
.LeftsideHeader {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}
  #leftAside {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    flex-direction: column-reverse;
    z-index: var(--layer4);
  }

  .rightside {
    height: 100%;
    background-color: var(--navbar-bg);
    border-left: 1px solid var(--border);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 0px 10px 10px 0px;

  } #storiesSection,
#settings,
#addfreinds,
#groupManagement,
#notifications {
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  z-index: var(--layer5);
  background-color: var(--white);
  flex-direction: column;
  /* overflow-y: auto; */

}

  .Buttonsofheaders {
    display: flex;
    flex-direction: row;
    gap: 2px;
    /* margin: 0.5rem; */
    font-size: 1.2rem;
  }
.office-teams-title{
  font-size: 0.9rem;
}
  .navbar1 {
    width: 100%;
    height: 60px;
    background-color: var(--navbar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .navbar1 .buttonss {
    width:100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    align-items: center;
    justify-content: space-evenly;
    gap: 2rem;
  }

  .navbar1 .buttonss button {
    width: 30px;
    height: 30px;
    background-color: transparent;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    color: var(--navbar-buttons);
  }
}

#notification span:first-child {
  position: relative;
}

#notificationBadge {
  position: absolute;
  top: -10px;
  right: -10px;
  color: var(--primary-strong);
  background-color: transparent;
  border: none;
  min-width: 20px;
  min-height: 20px;
  max-width: 50px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  display: flex;
  padding: 3px;
}

#navbarImg1{
  object-fit: cover;
}

#navbarImg1:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}


.seconddarayslides {
  width: 100%;
  padding: 0;
}



.mainname {
  width: 100%;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  font-size: 1.375rem;
  color: var(--message-sent-bg);
  font-family: emoji;
}
#AImodel img{
  width: 30px;
  height: 30px;

}
#AImodel{
  background-color: transparent;
  border: none;
}
.classlistl {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#searchGroups {
  width: 100%;
  height: 100%;
  padding: 0.5rem;
}

.server {
  width: 100%;
  height: 2.5rem;
  padding: 0.1rem;
  background-color: var(--border);
  border-radius: 7.5px;
  display: flex;
  flex-direction: row;
}

#searchIcon {
  width: 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#searchInput {
  width: calc(100% - 30px);
  height: 100%;
  background-color: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
}
.chat-filters{
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  justify-content: space-around;
  margin-top: 0.4rem;
}
.chat-filters button{
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  border: 2px solid var(--border-color);
  padding-inline: 0.5rem;
  border-radius: 30px;
  cursor: pointer;
  min-width: 45px;
  color: var(--primary-strong);
}
.filter-btn.active{
  border-color: var(--color-info);
  background-color: var( --color-lightprime);
  transition: 0.3s;
  animation:left 0.3s ease-in-out;
}
@keyframes left{
  0%{
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
}
 .chat-list-container {
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 1;
  transform: translateX(0);
}

.chat-list-container.hide {
  opacity: 0;
  transform: translateX(-20px);
  pointer-events: none;
  height: 0;
}

.chat-list-container.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* groupList section under .leftside  */
#groupList {
  width: 100%;
  height: calc(100% - 100px);
  padding-right: 5px;
  overflow-x: hidden;
  color: var(--primary-strong);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.groupItem {
  width: 100%;
  height: 64px;
  display: flex;
  flex-direction: row;
  position: relative;
  z-index: 99;
  padding: 0.5rem 0.3rem;
  min-width: 150px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.groupItem img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-self: center;
  justify-self: center;
  position: relative;
  z-index: 100;
  object-fit: cover;
  background-color: var(--navbar-bg);
  padding: 5px;
}

.groupInfo {
  width: calc(100% - 45px);
  height: 100%;
  margin-left: 0.5rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.3s;
  margin-right: 0.3rem;
}

.groupItem:hover {
  background-color: var(--navbar-bg);
}

.lastMessageDiv {
  width: 100%;
  max-width: 100%;
}
#friendsList1 .groupItem::after{
  content: "F";
}
#friendsList1 .groupItem:hover::after{
   content: 'Friend';
   width: 100px;
   height:25px;
   border-radius: 20px;
}
.groupInfo .leftAsid {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  gap: 3px;
  max-width: 100%;
}
.groupItem::after {
  content: "G";
  background-color: var(--color-primary); /* Online dot */
  border: 2px solid var(--navbar-bg);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary-sent);
  padding: 5px;
  margin: 0.5rem;
  transition: all 0.2s ease-in-out;
   z-index: 10000000;

}
.groupInfo .leftAsid .GroupNameDiv {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  max-width: 95%;
}

.groupInfo .leftAsid .GroupNameDiv .groupName {
  font-size: 17px;
  font-weight: 500;
}

.groupInfo .leftAsid .GroupNameDiv .lastMessageTimestamp {
  font-size: 12px;
  margin-top: 3px;
  overflow: hidden;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: none;
  max-width: 100%;
  margin-left: 6px;
  font-weight: 600;
  font-size: 12px;
  color: var(--message-sent-bg);
}

.lastMessageDiv .lastmessagep,
.Fldrows {
  display: block;
  flex-grow: 1;
  overflow: hidden;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-color: transparent;
  max-width: 95%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}
.friendsListContainer{
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  width: 100%;
  padding-inline: 1rem;
  height: 150px;
  scroll-behavior:smooth;
  scrollbar-width:25px;
  &::-webkit-scrollbar{
    display: none;
  }
}


.friendsListContainer .groupItem {
  width: 150px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 12px;
  z-index: 99;
  padding: 0.5rem 0.75rem;
  margin-inline: 0.5rem;
  min-width: 150px;
  background-color: var(--navbar-bg);
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.friendsListContainer .groupItem:hover {
  background-color: var(--navbar-hover);
  transform: scale(1.02);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
 .groupItem:hover {
  background-color: var(--navbar-hover);
  transform: scale(1.02);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Avatar with online status */
.friendsListContainer .groupItem img {
  width: 60px;
  height: 60px;
  min-height: 60px;
  min-width: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
}

.friendsListContainer .groupItem::after {
  content: "P";
  background-color: var(--color-primary); /* Online dot */
  border: 2px solid var(--navbar-bg);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary-sent);
  padding: 5px;
  margin: 0.5rem;
  transition: all 0.2s ease-in-out;
   z-index: 10000000;

}
.friendsListContainer .groupItem:hover::after{
   content: 'Private';
   width: 100px;
   height:25px;
   border-radius: 20px;
}
 .groupItem:hover::after{
   content: 'Group';
   width: 100px;
   height:25px;
   border-radius: 20px;
}

/* Info layout */
.friendsListContainer .groupItem .groupInfo {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  border-bottom: none;
}

.friendsListContainer .groupItem .GroupNameDiv {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.friendsListContainer .groupItem .groupName {
  font-weight: 700;
  font-size: 15px;
  color: var(--primary-strong);
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.friendsListContainer .groupItem .fldrows {
  color: var(--text-secondary);
  font-size: 13px;
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  display: inline;
  white-space: nowrap;
}

/* Last message + time */
.friendsListContainer .groupItem .lastMessageDiv {
  display: flex;
  flex-direction: column;
  padding-inline: 0.5rem;
  gap: 2px;
}

.friendsListContainer .groupItem .lastMessageDiv .rightside {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.friendsListContainer .groupItem .lastMessageTimestamp {
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
  font-weight: 500;
  color: var(--colorgrey);
  text-align: right;
}

/* Unread badge */




#settings::-webkit-scrollbar {
  display: none;
}

#groupManagement {
  overflow-y: auto;
}

#groupManagement::-webkit-scrollbar {
  width: 6px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

#groupManagement::-webkit-scrollbar-thumb {
  background-color: grey;
  height: 10px;
  border-radius: 10px;
  margin-top: 1rem;
}

.stories-section {
  flex-direction: column;
}

.stories-section .top {
  width: 100%;
  height: 50px;
  position: sticky;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  background-color: var(--white);
}

#closestory,
#backButton,
#backbutton,#backAiButton , #closeBT {
  width: 25px;
  height: 25px;
  background-color: transparent;
  border: none;
  font-size: var(--font-smm);
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  color: var(--primary-strong);
}

.stories-section .top h3 {
  width: calc(100% - 25px);
}

.stories-section #addStoryButton {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0.5rem;
  background-color: var(--message-sent-bg);
  border: none;
  position: fixed;
  top: 91%;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 0;
  margin-right: 1rem;
  z-index: var(--layer5);
  color: var(--white);
  font-size: 1rem;
}

#storyForm {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: var(--layer6);
  left: 0;
  top: 0;
  margin: 0;
  background-color: transparent;
  backdrop-filter: blur(20px);
  margin-top: 0;
  align-items: center;
  justify-content: center;
}

.mainstoryfomvdkgvrhvj {
  padding: 1rem;
  background-color: var(--aliceblue);
  box-shadow: 0px 0px 6px 0px var(--primary-strong);
  border-radius: 7.5px;
  position: relative;
  z-index: var(--layer6);

}

#loader {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.238);
  backdrop-filter: blur(7.5px);
  z-index: var(--layer6);
  flex-direction: column;
}

#loader

/* From Uiverse.io by kennyotsu */
.card {
  /* color used to softly clip top and bottom of the .words container */
  --bg-color: #ffffff;
  background-color: var(--bg-color);
  padding: 1rem 2rem;
  border-radius: 7.5px 7.5px 0px 0px;

}

.loader {
  color: rgb(0, 0, 0);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 25px;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  height: 40px;
  padding: 10px 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  border-radius: 8px;
}

.words {
  overflow: hidden;
  position: relative;
}

.words::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--bg-color) 10%,
      transparent 30%,
      transparent 70%,
      var(--bg-color) 90%);
  z-index: 20;
}

.word {
  display: block;
  height: 100%;
  padding-left: 6px;
  color: #956afa;
  animation: spin_4991 4s infinite;
}

@keyframes spin_4991 {
  10% {
    -webkit-transform: translateY(-102%);
    transform: translateY(-102%);
  }

  25% {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
  }

  35% {
    -webkit-transform: translateY(-202%);
    transform: translateY(-202%);
  }

  50% {
    -webkit-transform: translateY(-200%);
    transform: translateY(-200%);
  }

  60% {
    -webkit-transform: translateY(-302%);
    transform: translateY(-302%);
  }

  75% {
    -webkit-transform: translateY(-300%);
    transform: translateY(-300%);
  }

  85% {
    -webkit-transform: translateY(-402%);
    transform: translateY(-402%);
  }

  100% {
    -webkit-transform: translateY(-400%);
    transform: translateY(-400%);
  }
}

.Nnntpofvsgdfkhhjh {
  width: 289px;
  background-color: var(--bg-color);
  --bg-color: #ffffff;
  margin-top: -2px;
  border-radius: 0px 0px 7.5px 7.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-strong);
  font-weight: bold;

}

.rightside .myimg {
  width: 250px;
}

#groupList {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

/* settings-panel section starts */
.settings-panel,
#addfreinds {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.settings-panel .settings-header,
.addfriends-header,
.Notification-Header {
  width: 100%;
  height: 50px;
  background-color: var(--message-recieved-bg);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.settings-header .settings-title,
.Addfreands-tittle {
  width: calc(100% - 25px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 17px;
}

.close-button,
#closeaddf,
#closenotification {
  width: 25px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  color: var(--primary-strong);
}

#notificationList {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  padding-top: 1rem;
  padding-inline: 0.3rem;
}

.notification-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  gap: 4px;
  border-bottom: 1px solid var(--bubble-parth);
}

.notification-item .profile-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.notification-item .accept-btn {
  background-color: var(--message-sent-bg);
  color: white;
  display: inline;
  width: 70px;
  border: none;
  outline: none;
  border-radius: 7px;
}

.notification-item span {
  font-size: 15px;
}

.settings-panel .settings-header {
  background-color: transparent;
}

.settings-profile {
  padding: 20px;
  background: var(--message-recieved-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 4px var(--color-primary);
}

.profile-name {
  font-size: var(--font-smm);
  font-weight: bold;
  color: var(--primary-strong);
  font-family: var(--font-main);
}

/* SETTINGS PANEL STYLES */
.settings-content {
  padding: 20px;
  background: var(--white);
  font-family: var(--font-main);
  color: var(--text-muted);
  max-width: 800px;
  margin: auto;
  margin-top: 2rem;
  overflow-y: auto;

  &::-webkit-scrollbar {
    display: none;
  }
}

.settings-section {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.section-title {
  font-size: var(--font-m);
  color: var(--primary-strong);
  margin-bottom: 1rem;
}

.maineditsss {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  cursor: pointer;
  color: var(--color-primary);
  transition: var(--transition);
}

.maineditsss:hover {
  color: var(--color-info);
}

#updateProfileForm .pass {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

#updateProfileForm .pass input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-sm);
  background-color: var(--navbar-bg);
}

.custom-file-label {
  background: var(--navbar-bg);
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  width: 100%;
}

.custom-file-label:hover {
  background: var(--aliceblue);
}

.hidden-file-input {
  display: none;
}

.drop-area {
  border: 2px dashed var(--primary-strong);
  padding: 1rem;
  text-align: center;
  margin-top: 10px;
  border-radius: var(--border-radius);
  background: var(--message-recieved-bg);
  position: relative;
}

.preview-img {
  max-width: 100px;
  margin-top: 10px;
  border-radius: var(--border-radius);
}

.remove-image-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--color-error);
  border: none;
  color: white;
  font-size: var(--font-sm);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

#updateProfileButton {
  background: var(--color-primary);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

#updateProfileButton:hover {
  background: var(--color-info);
}

#updateProfileMessage {
  margin-top: 10px;
  font-size: var(--font-sm);
  color: var(--color-success);
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--border-radius);
  display: none;
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 4px solid var(--color-primary);
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

.settings-button {
  background: var(--color-primary);
  color: var(--text-primary);
  border: none;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  font-size: var(--font-sm);
  cursor: pointer;
  transition: var(--transition);
}

.settings-button:hover {
  background: var(--color-primary);
}

.settings-button.danger {
  background: var(--logout-btn);
}

.settings-button.danger:hover {
  background: var(--color-error);
}

.settings-section p,
.settings-section a {
  font-size: var(--font-sm);
  color: var(--text-muted);
}

.settings-section a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.fullscreen-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background-color: var(--message-recieved-bg);
}

.fullscreen-overlay img {
  width: auto;
  height: auto;
  max-width: 95%;
  max-height: 95%;
  object-fit: cover;
}

#version-section p {
  font-weight: bolder;
  color: var(--color-info);
}

/* Main Layout */
.addfriends-main {
  padding: 20px;
  background: var(--white);
  min-height: calc(100vh - 120px);
  font-family: var(--font-main);
}

/* Request Section */
.request-section {
  background: var(--rich-color);
  padding: 16px;
  border-radius: var(--border-radius);
  margin-bottom: 10px;
  box-shadow: var(--box-shadow);
}

.addfrendsheader {
  font-size: var(--font-m);
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-strong);
}

/* Input Box */
.input {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.inputC {
  background-color: var(--navbar-bg);
  padding: 10px;
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.inputS {
  font-size: var(--font-sm);
  color: var(--text-muted);
}

.form-control {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-left: none;
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  font-size: var(--font-sm);
  color: var(--text-hcw);
  outline: none;
  border-radius: 0px 7.5px 7.5px 0px;
}

#sentrequest {
  background-color: var(--color-primary);
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: var(--border-radius);
  font-weight: bold;
  cursor: pointer;
  transition: background-color var(--transition);
  font-size: 1rem;
}

#sentrequest:hover {
  background-color: var(--color-info);
}

/* Friends Section */
.frends-section h2 {
  font-size: var(--font-smm);
  margin-bottom: 12px;
  color: var(--text-hcw);
}

#friendsList1 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  height: 280px;

  &::-webkit-scrollbar {
    display: none;
  }
}



/* Footer */
.addfriends-footer {
  text-align: center;
  padding: 5px 15px;
  background-color: var(--message-recieved-bg);
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-main);

}

#friendsList1 .groupName {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1rem;
}

#friendsList1 .groupItem {
  background-color: var(--navbar-bg);
  padding: 1rem;
  border-radius: 7.5px;
  cursor: pointer;
}

#createGroupForm {
  display: flex;
  flex-direction: column;
}

.headerchat {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-inline: 0.5rem;
}
.groupIteminternet {
  width: 100%;
  padding: 10px 16px;
  margin-bottom: 10px;
  background-color: var(--color-error);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-main);
  font-size: var(--font-smm);
  transition: var(--transition);
  z-index: var(--layer5);
}

.groupItemOff {
  display: flex;
  align-items: center;
  width: 100%;
}

.groupItemOff .left {
  margin-right: 12px;
}

.groupItemOff .circle,
.groupItemOff .circlegreen {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--font-smm);
  background-color: rgba(255, 255, 255, 0.2);
}

.groupItemOff .circle {
  background-color: rgba(255, 0, 0, 0.2); /* red tint for offline */
  color: var(--color-error);
}

.groupItemOff .circlegreen {
  background-color: rgba(0, 255, 0, 0.15); /* green tint for online */
  color: var(--color-success);
}

.groupItemOff .righta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.top12 {
  font-weight: bold;
  color: var(--text-primary);
}

.topgreen {
  font-weight: bold;
  color: var(--color-success);
}

@media (max-width: 600px) {
  .groupIteminternet {
    font-size: var(--font-sm);
    padding: 8px 12px;
  }

  .groupItemOff .circle,
  .groupItemOff .circlegreen {
    width: 32px;
    height: 32px;
    font-size: var(--font-sm);
  }
}
.status .online{
  color: var(--message-sent-bg);
}