.mainpageSidebar {
  width: clamp(240px, 18vw, 300px);
  padding: clamp(14px, 1.5vh, 24px) clamp(12px, 1.2vw, 18px);
  position: fixed;
  top: 0px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.4s ease;
  transform: translateX(0);
  opacity: 1;
  display: flex;
  flex-direction: column;
  z-index: 2000;
}

.mainpageSidebar.closed {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.mainpageSidebarInner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* =========================================
   Custom Webkit Scrollbars for Lists
   ========================================= */
.activeProjectBox::-webkit-scrollbar,
.peoplesharedlistFrame::-webkit-scrollbar,
.TasksTodayList::-webkit-scrollbar {
  width: 4px;
}

.activeProjectBox::-webkit-scrollbar-track,
.peoplesharedlistFrame::-webkit-scrollbar-track,
.TasksTodayList::-webkit-scrollbar-track {
  background: transparent;
}

.activeProjectBox::-webkit-scrollbar-thumb,
.peoplesharedlistFrame::-webkit-scrollbar-thumb,
.TasksTodayList::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.activeProjectBox::-webkit-scrollbar-thumb:hover,
.peoplesharedlistFrame::-webkit-scrollbar-thumb:hover,
.TasksTodayList::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/*Toggle sidebar bTn*/
.toggleSidebarBtnFrame {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.floatingSidebarToggle {
  position: fixed;
  top: 16px;
  left: 20px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.sidebarBtn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebarBtn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* =========================================
   Section Headers 
   ========================================= */

.activeProjectTitle h3,
.recentSharePart h3,
.TasksTodaybox h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.5); /* Muted headers */
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  margin: 0 0 12px 0;
  padding: 0 4px;
}

.downArrow {
  background: none;
  color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  font-size: 12px;
  transition: color 0.2s ease;
}

.downArrow:hover {
  color: #fff;
}

/* =========================================
   Active Projects 
   ========================================= */
.activeProjectPart {
  margin-top: 50px;
}

.activeProjectBox {
  max-height: clamp(120px, 15vh, 200px);
  overflow-y: auto;
  padding: 3px 0;
  padding-right: 4px;
}

.activeProjectBox ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.projectList {
  width: 90%;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.projectList:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px); /* Smooth slide effect on hover */
  color: #fff;
}

.projectEmpty {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  padding: 10px;
  text-align: center;
  font-style: italic;
}

/* =========================================
   Co-Workers 
   ========================================= */
.recentSharePart,
.TasksTodayFrame {
  margin-top: clamp(14px, 2vh, 24px);
}

.peoplesharedlistFrame {
  max-height: clamp(140px, 18vh, 220px);
  list-style: none;
  padding: 0;
  padding-right: 4px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.peoplesharedlist {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.peoplesharedlist:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* =========================================
   Tasks Today 
   ========================================= */
.TasksTodayFrame {
  margin-top: 20px;
}

.TasksTodayList {
  overflow-y: auto;
  max-height: clamp(180px, 22vh, 320px);
  padding-right: 4px;
}

.TasksTodayList ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.TasksTodayList button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: none;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13.5px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.TasksTodayList button::before {
  content: "•";
  color: rgba(255, 255, 255, 0.3);
  margin-right: 8px;
}

.TasksTodayList button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   Profile Frame (Pushed to bottom)
   ========================================= */
.profileFrame {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  bottom: 25px;
  width: 87%;
}

.profileFrame:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.profileleft {
  flex: 0 0 auto;
}

.userImage img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profileright {
  flex: 1;
  min-width: 0;
}

.profilerightheader {
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.profilerightheader h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.circleforOnline {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2ee66b;
  box-shadow: 0 0 8px rgba(46, 230, 107, 0.6);
}

.profilerightMain ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profilerightMain li {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  .projectList {
    width: 100%;
    padding: 8px 10px;
    font-size: 12px;
  }

  .peoplesharedlist {
    gap: 8px;
    font-size: 12px;
  }

  .TasksTodayList button {
    padding: 7px 9px;
    font-size: 12px;
  }

  .profileFrame {
    width: calc(100% - 16px);
    padding: 8px;
    bottom: 14px;
  }

  .userImage img {
    width: 32px;
    height: 32px;
  }
}

@media (min-width: 1900px) {
  .mainpageSidebar {
    width: clamp(280px, 20vw, 360px);
    padding: 28px 22px;
  }

  /* ── 섹션 헤더 ── */
  .activeProjectTitle h3,
  .recentSharePart h3,
  .TasksTodaybox h3 {
    font-size: 13px;
    letter-spacing: 1.4px;
    margin: 0 0 14px 0;
  }

  .downArrow {
    font-size: 14px;
  }

  /* ── Active Projects ── */
  .activeProjectPart {
    margin-top: 60px;
  }

  .activeProjectBox {
    max-height: clamp(140px, 18vh, 240px);
  }

  .projectList {
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
  }

  .projectEmpty {
    font-size: 14px;
  }

  /* ── Co-Workers ── */
  .recentSharePart,
  .TasksTodayFrame {
    margin-top: 28px;
  }

  .peoplesharedlistFrame {
    max-height: clamp(160px, 20vh, 260px);
    gap: 6px;
  }

  .peoplesharedlist {
    font-size: 15px;
    padding: 8px 10px;
    gap: 14px;
    border-radius: 12px;
  }

  .avatar {
    width: 38px;
    height: 38px;
  }

  /* ── Tasks Today ── */
  .TasksTodayFrame {
    margin-top: 24px;
  }

  .TasksTodayList {
    max-height: clamp(200px, 24vh, 360px);
  }

  .TasksTodayList button {
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 10px;
  }

  /* ── Profile ── */
  .profileFrame {
    padding: 14px 16px;
    border-radius: 16px;
    gap: 14px;
    bottom: 28px;
    width: 88%;
  }

  .userImage img {
    width: 46px;
    height: 46px;
  }

  .profilerightheader h4 {
    font-size: 16px;
  }

  .profilerightMain li {
    font-size: 13px;
  }

  .circleforOnline {
    width: 10px;
    height: 10px;
  }

  /* ── 사이드바 토글 버튼 ── */
  .floatingSidebarToggle {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 16px;
  }

  .sidebarBtn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 16px;
  }
}
