
:root {
  --rad: 10px;
  --rad-sm: 3px;
}

html {
  font-size: 1.25rem; /* base size for rem units */
  overflow: hidden; /* Prevent the entire page from moving */
  -webkit-text-size-adjust: 100%; /* Prevent text zoom on iOS/Android */
  text-size-adjust: 100%;
}

body{
margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100vw;
  height: 100vh;
  overscroll-behavior: none;
}

.main-container {
  position: absolute;
  top: 0;
  bottom: 100px;
  left: 0;
  right: 0;
  overflow: hidden;
  height: 100vh;
}

.carousel {
  display: flex;
  width: 300vw;
  height: calc(100vh - 60px); /* match slides */
  transition: transform 0.3s ease;
  touch-action: pan-y;
}

.slide {
  width: 100vw;
  flex: 0 0 100%;
  height: calc(100vh - 60px);
  padding: 2px;
  font-size: 1.1rem;
  -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
}

nav {
  position: fixed;
  bottom: 0;
  width: 100vw;
  height:60px;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 10;
  box-shadow: 0px -2px 5px 0px rgba(0,0,0,0.2);
  -webkit-box-shadow: 0px -2px 5px 0px rgba(0,0,0,0.2);
  -moz-box-shadow: 0px -2px 5px 0px rgba(0,0,0,0.2);
}

.nav-item {
  display: flex;
  justify-content: space-around;
  color: #6b6b6b;
  text-align: center;
  align-items: center;
  cursor: pointer;
  padding: 24px 0;
  font-size: 36px;
  height: 60px;
  width: 100px;
}

.nav-item.active {
  color: #6898ff;
  border-top: 3px solid #0d6efd;
}


/*from desktop styles*/


*:focus {
  outline: none;
}

.username {
  font-size: 14px;
  color: #5e5e5e;
  user-select: none;
  -webkit-user-select: none;
  /* For Safari */
  -moz-user-select: none;
  /* For Firefox */
  -ms-user-select: none;
  /* For older IE */
}

#chatContainer {
  height: 100vh;
}

.leftWrapper {
  display: flex;
  flex-direction: column;
  background: #f2f2f2;
  height: calc(100vh - 110px);
}

#userList {
  width: 100vw;
  position:relative;
  padding: 5px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background-color: #dddddd;
}

.user {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
}

.user:hover {
  background: #d6dbe2;
}

.user-item {
  background-color: #f2f5ff;
  padding: 5px 5px;
  box-sizing: border-box;
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: left;
  gap: 10px;
  cursor: pointer;
}

.user-item:hover {
  background-color: #e1e8ff;
}

.user-item.active {
background-color: #cdddff;
}

#chatHeader {
  padding: 10px;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
  height: 40px;
}

#chatBox {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  height: calc(100vh - 60px);
  width: 100vw;
}

#chatMessages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #fff;
  height: calc(100vh - 70px);
}

.message {
  width: fit-content;
  padding: 8px 12px;
  margin: 8px 0;
  background: #eee;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.20);
  word-wrap: break-word;
  /* for legacy support */
  overflow-wrap: break-word;
  /* modern equivalent */
  /*max-width: 60%;*/
}

.message.sent {
  border-radius: var(--rad) var(--rad-sm) var(--rad-sm) var(--rad);
  background: #d7e7ff;
  color: #000;
  margin-left: auto;
  margin-top: 5px;
  margin-bottom: 15px;
  align-self: flex-end;
  max-width: 70%;
  word-wrap: break-word;
  /* for legacy support */
  overflow-wrap: break-word;
  /* modern equivalent */
  white-space: normal;
  /* ensures text wraps */
}

.message.received {
  border-radius: var(--rad-sm) var(--rad) var(--rad) var(--rad-sm);
  background: #e7e7e7;
  color: #000;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 15px;
  align-self: flex-start;
  max-width: 70%;
  word-wrap: break-word;
  /* for legacy support */
  overflow-wrap: break-word;
  /* modern equivalent */
  white-space: normal;
  /* ensures text wraps */
}

/* Proper radius for the first .msg in the parent container */
.chatMessages>.message:first-child {
  border-top-left-radius: var(--rad);
  border-top-right-radius: var(--rad);
}

/* Detect the first message in a group and style it */
.message.sent:first-child,
.message.rcvd+.message.sent {
  border-top-right-radius: var(--rad);
}

.message.rcvd:first-child,
.message.sent+.message.rcvd {
  border-top-left-radius: var(--rad);
}

.meta {
  display: flex;
  align-items:center;
  font-size: 10px;
  text-align: right;
  font-style: italic;
  transform: translateY(15px);
  gap: 10px;
  justify-content: right;
}

.copy-icon{
  color:#0035ff;
  font-size: 14px;
}
.copy-icon:hover {
  color:#033097;
}

#typingStatus {
  font-style: italic;
  color: #1845ad;
  padding-left: 10px;
  bottom: 55px;
  left: 210px;
  position: absolute;
  font-size: 12px;
}

.dots::after {
  content: '...';
  animation: dotsBlink 1.5s steps(3, end) infinite;
  font-size: 16px;
  font-weight: bold;
  color: #1845ad;
}

@keyframes dotsBlink {
  0% {
    content: '';
  }

  33% {
    content: '.';
  }

  66% {
    content: '..';
  }

  100% {
    content: '...';
  }
}


#chatBox>button {
  padding: 10px 20px;
  font-size: 16px;
  margin: 0 10px 10px 10px;
  flex-grow: 0;
  height: 40px;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.buttonsContainer {
  display: none;
  position: relative;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background-color: white;
  border-top: 1px solid #ccc;
  box-shadow: 0px -5px 10px -3px rgba(0, 0, 0, 0.1)
  z-index-100;
}

.whoIs {
  position: relative;
  margin: 5px;
  height: 20px;
  width: fit-content;
  padding: 5px 10px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 11000;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  left: 0;
}

#chatInput {
  width: 80%;
  height: 49px;
  padding: 5px;
  align-items: center;
  text-align: left;
  border: 1px solid #343541;
  color: #000;
  font-size: 14px;
  border: none;
  background-color: #fff;
  margin: 0 5px;
  resize: none !important;
  border: none;
  outline: none;
  overflow-y: hidden;
  resize: none;
  max-height: 50px;
}

.file-preview {
  max-width: 200px;
  border-radius: 8px;
  margin-top: 5px;
}

.file-link {
  display: inline-block;
  text-decoration: none;
  color: #007bff;
  margin-top: 5px;
}

.avatar.initials {
  width: 40px;
  height: 40px;
  background-color: #ccc;
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  display: inline-block;
  user-select: none;
  -webkit-user-select: none;
  /* For Safari */
  -moz-user-select: none;
  /* For Firefox */
  -ms-user-select: none;
  /* For older IE */
}

.avatar.pic {
  width: 40px;
  height: 40px;
  background-color: #ccc;
  border: 2px solid #ccc;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  display: inline-block;
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
}

.status-indicator.online {
  background-color: #02bc0b;
  /* green */
}

.status-indicator.offline {
  background-color: #ccc;
  /* grey */
}

.toast-container {
  position: fixed;
  bottom: 50px;
  right: 20px;
  width: 250px;
  z-index: 9999;
}

.toast {
  background: #4D4D4D;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.toast:hover {
  transform: scale(1.02);
}

.toast .close-toast {
  position: absolute;
  right: 8px;
  top: 6px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
}

.toast .close-toast:hover {
  color: #fff;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  /* makes it a perfect circle */
  object-fit: cover;
  /* crops/resizes image to fill the box */
  display: inline-block;
}

.welcomebox {
  display: flex;
  width:100vw;
  padding: 8px;
  position:sticky;
  top:0;
  flex-direction: row;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
  background-color: white;
  height: 80px;
}

.selfAvatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  margin-right: 8px;
  vertical-align: middle;
}

.selfName {
  font-size: 18px;
  font-weight: 700;
}

.sendMessageIcon {
  color: #42a5f5;
  margin: 0 10px;
  font-size: 20px;
  cursor: pointer;
}

.sendMessageIcon:hover {
  color: #2c72ab;
}

.loginContainer { 
position:fixed;
  background-color: #ffffff;
  width: 100vw;
  height:100vh;
  top:0;
  left:0;
  bottom:0;
  right:0;
}



h3 {
  font-size: 32px;
  font-weight: 500;
  line-height: 42px;
  text-align: center;
}

login-form{
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}

.login-label {
  display: block;
  margin-top: 30px;
  font-size: 16px;
  font-weight: 500;
  color: white;
}

.login-input {
  display: block;
  height: 40px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  padding: 0 10px;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 300;
  border: none;
  outline: none;
  box-sizing: border-box;
  color: white;
}

::placeholder {
  color: #aaa9a9;
}

.login-button {
  margin-top: 30px;
  width: 100%;
  background-color: #23a2f6;
  color: #080710;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  border: none;
}

.greptcha {
  margin-top: 30px;
}

.loginError{
    font-size: 16px;
    color: red;
}

/*SETTINGS POPUP*/
/* Popup container */
.frmSettings {
  position: absolute;
  width: 200px;
  height: 150px;
  padding: 10px;
  border-radius: 10px;
  background-color: #14161b;
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Space between settings */
  justify-content: flex-start;
  /* Align items to the top */
  bottom: 70px;
  right: 10px;
  color: white;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  box-shadow: 0px 0px 17px 5px rgba(0, 0, 0, 0.31);
  -webkit-box-shadow: 0px 0px 17px 5px rgba(0, 0, 0, 0.31);
  -moz-box-shadow: 0px 0px 17px 5px rgba(0, 0, 0, 0.31);
}

.setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
}

.toggle-switch {
  position: relative;
  width: 36px;
  height: 18px;
}

.toggle-switch input {
  display: none;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ebebeb;
  padding: 9px 9px;
  border-radius: 38px;
  cursor: pointer;
  border: 1px solid #ccc;
  transition: background-color 0.3s ease;
}

.slider::before {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

input:checked+.slider {
  background-color: #2196F3;
}

input:checked+.slider::before {
  transform: translateX(16px);
}

.okBtn {
  position: absolute;
  height: 20px;
  width: 60px;
  border-radius: 5px;
  background-color: #ff0000;
  color: white;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  bottom: 10px;
  right: 5px;
  border: none;
  cursor: pointer;
}

/*END Settings POPUP*/

/*DATE SEPARATOR*/
.date-separator {
  text-align: center;
  position: relative;
  margin: 30px 0;
  font-weight: bold;
  color: #555;
  font-size: 12px;
}


.separator-line {
  display: inline-block;
  background: #eee;
  padding: 4px 12px;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.date-separator::before,
.date-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #ccc;
}

.date-separator::before {
  left: 0;
}

.date-separator::after {
  right: 0;
}

.contextMenu {
  border-radius: 4px;
  font-size: 14px !important;
  background-color: #f8f8f8 !important;
  color: #000;
  display: 'block';
  position: 'absolute';
  color: '#333';
  padding: '4px 8px';
  z-Index: '1000';
  cursor: 'pointer';
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.4);
  -webkit-box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.4);
}

/*TASKS STYLES*/
.tasksWrapper {
  display: flex;
  width: 100vw;
  flex: 0 0 100%;
  flex-direction: column;
  height: calc(100vh - 100px);
  background: #f2f2f2;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}


.taskHeader {
  top: 0px;
  width: 100vw;
  height: 40px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: bold;
  color: #000;
  box-sizing: border-box;
  border-bottom: 1px solid #ccc;
}

.taskContainer {
  width: 100vw;
  top: 40px;
  font-size: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 185px);
}

.taskInputContainer {
  position: relative;
  bottom: 100px;
  padding: 5px 10px;
  display: flex;
  flex-direction: row;
  gap: 5px;
  width: 100vw;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  border-top: 1px solid #ccc;
}

.taskInput {
  height: 60px;
  width: 275px;
  border: none;
  outline: none;
  overflow-y: scroll;
  background-color: white;
  font-family: Verdana, Arial;
  font-size: 12px;
  resize: none;
  overflow-x: hidden;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}

taskInput::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.btnTask {
  width: 50px;
  height: 60px;
  background-color: #ededed;
  color: #383838;
  font-size: 12px;
  font-weight: bold;
  line-height: 18px;
  border-radius: 5px;
  border: 1px solid #b3b3b3;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  -webkit-box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  -moz-box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  cursor: pointer;
}

/*TASK LIST ITEMMS*/
.taskOuter {
  border-bottom: 1px solid #ccc;
  width:100vw;
}

.taskDate {
  text-align: right;
  font-size: 0.85em;
  color: #777;
  margin-right: 5px;
  margin-bottom: 8px;
}

.taskItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  display: flex;
}

.chkTasks {
  cursor: pointer;
  margin-right: 10px;
}

.descTasks {
  flex-grow: 1;
  word-break: break-word;
}

.btnDelTask {
  background: none;
  border: none;
  cursor: pointer;
  color: #c00;
  margin-left: 10px;
}

.taskDate {
  font-style: italic;
}

.taskInner {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.refreshTaskIcon {
  cursor: pointer;
}

.rotate {
  animation: spin 1s linear infinite;
}

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

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

/*blinker for user list items on new emesssage*/
@keyframes slow-blink {

  0%,
  100% {
    background-color: inherit;
  }

  50% {
    background-color: #ffeaa7;
  }

  /* light yellow highlight */
}

.blink {
  animation: slow-blink 1.5s infinite;
}

.toolsIcon {
  display: flex;
  position: absolute;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background-color: white;
  top: 5px;
  right: 10px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  border: 1px solid #ebebeb;
  font-size: 18px;
  color: #2c2c2c !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
}


.tab-container {
  position: fixed;
  display: none;
  height: 450px;
  width: 100vw;
  border: 5px solid #d3d3d3;
  border-radius: 5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: var(--origin-x, center) var(--origin-y, center);
  z-index: 10000;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  opacity: 0;
  background-color: white;
}

.tab-container.show {
  background-color: white;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.hidden {
  display: none;
}

.tab-buttons {
  display: flex;
  flex-direction: column;
  width: 165px;
  background: #f1f1f1;
}

.tab-btn {
  padding: 15px 10px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  font-weight: normal;
  transition: background 0.3s;
  display: flex;
  align-items: center;
}

.tab-btn:hover {
  background: #ddd;
}

.tab-btn.active {
  background: #fff;
  color: #5c38ff;
  border-radius: 10px 0 0 10px;
}

.tab-content {
  flex-grow: 1;
  padding: 20px;
}

.tab-page {
  display: none;
}

.tab-page.active {
  display: block;
}

.input-settings {
  height: 30px;
  padding: 5px;
  background-color: #f1f1f1;
  border: none;
  outline: none;
  border-radius: 5px;
  font-size: 12px;
}

.input-form-button {
  width: fit-content;
  height: 30px;
  padding: 5px;
  background-color: #5c38ff;
  color: white;
  font-size: 12px;
  border-radius: 5px;
  border: 1px solid #2f00ff;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  margin: 15px 0;
}

.sIcons {
  font-size: 18px;
  color: #959595 !important;
  margin-right: 10px;
}

.tab-container.flex {
  display: flex;
  transform: translate(-50%, -50%) scale(1);
}

.btnCloseSettings {
  position: absolute;
  height: 20px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: red;
  font-size: 16px;
  margin-bottom: 5px;
  right: 10px;
  top: 10px;
  z-index: 999;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
}

.info-text {
  font-size: 12px;
  color: forestgreen;
  line-height: 24px;
}

.password-wrapper {
  position: relative;
  display: inline-block;
  width: 200px;
  background-color: #f1f1f1;
  border-radius: 5px;
  padding: 0 5px;
}

#togglePassword {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  color: #888;
}

#cropContainer {
  width: 240px;
  height: 240px;
  position: relative;
  overflow: hidden;
  margin: 10px 0;
}

#preview {
  max-width: 200px;
  max-height: 200px;
  display: block;
}

/*Loader Animation*/
.status-container {
  position: absolute;
  display: flex;
  bottom: 49px;
  height: 2px;
  width: 90%;
  left: 50%;
  transform: translateX(-50%);
}

.loader-line-9 {
  position: relative;
  width: 200px;
  height: 2px;
  overflow: hidden;
  left: 50%;
  transform: translateX(-50%);
}

.loader-line-9:after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  background-color: #ff0046;
  animation: anm-LL-9-move 3s ease-out infinite;
}

@keyframes anm-LL-9-move {
  0% {
    left: -100%;
  }

  50% {
    left: 100%;
  }

  100% {
    left: -100%;
  }
}

.connection-status {
  min-width: 100px;
  width: fit-content;
  height: 20px;
  padding: 5px 10px;
  border-radius: 5px 5px 0 0;
  background-color: #101010;
  font-size: 11px;
  color: #20e65f;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*END LOADER ANIMATION*/
.statusWrapper {
  position: fixed;
  left: 0;
  display: flex;
  bottom: 0;
  width: 250px;
  height: 50px;
  z-index: 500;
  justify-content: center;
  align-items: end;
  border-top: 1px solid #ccc;
}

#passwordStatus {
  font-size: 12px;
  margin: 20px 0;
}

/*SCROLLBAR STYLING*/
#userList,
#chatMessages,
.taskContainer {
  overflow-y: auto;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Hide scrollbar (Chrome, Safari, Opera) */
.taskContainer::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Show scrollbar on hover */
.taskContainer:hover {
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: #ccc #fff;
  /* thumb track */
}

.taskContainer:hover::-webkit-scrollbar {
  width: 1px;
  height: 5px;
}

.taskContainer:hover::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

.taskContainer:hover::-webkit-scrollbar-track {
  background-color: #fff;
}

#uploadAlert {
  width: fit-content;
  margin-top: 25px;
  font-size: 14px;
  line-height: 28px;
}

/*PROJECT FILES MANAGEMENT*/

/* Tree container */
.treeview {
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  padding: 10px;
}

/* Collapse/expand spacing */
.treeview details summary {
  cursor: pointer;
  padding: 3px 0;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.treeview ul {
  list-style: none;
  margin-left: 15px;
  padding-left: 0;
}

.treeview li {
  margin: 3px 0;
}

.treeview a {
  color: #333;
  text-decoration: none;
}

.treeview a:hover {
  text-decoration: underline;
}

/* Icons */
.treeview i.fa-regular {
  margin-right: 5px;
}

.preview-container {
  border: 1px solid #ccc;
  padding: 10px;
  margin-top: 10px;
  max-height: 600px;
  overflow: auto;
  background: #fafafa;
  left: 250px;
  top: 50px;
  display: none;
}

/*files manager styles*/

.proj-tab-wrapper {
  display: flex;
  flex-direction: column;
}

.proj-tab-nav {
    width: 100vw;
  display: flex;
  flex-direction: row;
 background-color: #f8f8f8;
}

.proj-tab-btn {
  padding: 20px 10px;
  border: none;
  background: none;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  width: 50vw;
}

.proj-tab-btn.active {
  background-color: #ddd;
}

.proj-tab-content {
  flex-grow: 1;
}

.proj-tab-panel {
  display: none;
}

.proj-tab-panel.active {
  display: block;
}


/*TREEVIEW STYLES*/
summary {
  list-style: none;
  /* remove default arrow */
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
  /* hide the triangle */
}

.folder-title {
  padding-left: 4px;
  font-weight: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3f51b5;
}

.file-node {
  margin-left: 20px;
}

.image-node {
  margin-left: 20px;
}

.file-object,
.image-object {
  margin-left: 40px;
  list-style-type: disc;
}

.popup-preview {
  display: none;
  /* Hidden by default */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
  height: 80%;
  background-color: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  z-index: 9999;
  overflow: auto;
  padding: 16px;
}

.popup-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.closeBtn {
  position: absolute;
  padding: 0 5px;
  top: 0;
  right: 0;
  background: #e1e1e1;
  border: none;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 24px;
  cursor: pointer;
  color: red;
  z-index: 1000;
}

#filePreview {
  pointer-events: auto;
}

.tooltip-icon {
  position: relative;
}

.tooltip-icon:hover+.custom-tooltip {
  display: inline-block;
}

.custom-tooltip {
  display: none;
  position: absolute;
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 4px;
  top: -30px;
  left: 0;
  white-space: nowrap;
  z-index: 1000;
}

.reply-block {
  background: #f1f1f1;
  padding: 6px 8px;
  border-left: 3px solid #ccc;
  border-radius: 4px;
  margin-bottom: 5px;
  font-size: 0.85em;
}

.reply-icon {
  color: #3665ff;
  font-size: 0.75rem;
  transition: color 0.2s;
  cursor: pointer;
  font-weight: 100;
}

.reply-icon:hover {
  color: #1a047e;
}

.reply-preview {
  background-color: #e7efff;
  font-size: 12px;
  font-weight: 500;
  color: #444444;
  padding: 2px 5px;
  width: fit-content;
  margin: 0 5px;
  box-sizing: border-box;
  border-radius: 5px;
}

.replyHeader {
  font-size: 12px;
  color: #444444;
  font-style: italic;
  font-weight: 300;
}

.original-message {
  font-size: 10px;
  color: #444444;
  font-style: italic;
  font-weight: 300;
}

#chatInputWrapper {
  width: 100%;
}

.forward-icon {
  color: #f44336;
  font-size: 0.75rem;
  transition: color 0.2s;
  cursor: pointer;
  font-weight: 100;
}

/* Modal background */
.modal {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hide modal by default */
.hidden {
  display: none !important;
}

/* Modal box */
.modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* User list */
.user-list {
  max-height: 200px;
  overflow-y: auto;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
  font-size: 0.8rem;
}

.user-list div {
  margin-bottom: 5px;
}

/* Actions */
.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.modal-actions button {
  padding: 8px 16px;
  border: none;
  background: #007BFF;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.modal-actions button:last-child {
  background: #888;
}
.modal-heading{
  font-size: 0.9rem;
  color: #ccc;
}


/*connected status beacon*/
.beacon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
}

.connected {
  background-color: #00ff00;
  box-shadow: 0 0 8px 2px rgba(0, 255, 0, 0.6);
}

.connected::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: rgba(0, 255, 0, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite ease-out;
  z-index: -1;
}

.disconnected {
  background-color: #888;
  box-shadow: none;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}