.btn-elevated {
  background-color: #1a73e8;
  border: none;
  color: white;
  font-weight: 500;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.btn-elevated:hover {
  background-color: #1765d3;
}

/* Sidebar Secondary Scrollbar Fix */
/* sidebar-left-secondary에 스크롤바 추가 */
.sidebar-left-secondary,
.layout-sidebar-compact .sidebar-left-secondary,
div.sidebar-left-secondary {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: 100vh !important;
}

/* 모바일에서도 동일하게 적용 */
@media (max-width: 576px) {
  .sidebar-left-secondary,
  .layout-sidebar-compact .sidebar-left-secondary {
    max-height: calc(100vh - 70px) !important;
  }
}

/* Perfect Scrollbar가 적용되어 있는 경우 */
.sidebar-left-secondary.ps,
.sidebar-left-secondary.ps.ps--active-y {
  overflow: auto !important;
  overflow-y: auto !important;
}

/* Perfect Scrollbar 스타일 개선 */
.sidebar-left-secondary .ps__rail-y {
  width: 6px;
  background-color: transparent;
  right: 0 !important;
}

.sidebar-left-secondary .ps__thumb-y {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  width: 6px;
}

.sidebar-left-secondary .ps__thumb-y:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

/* 웹킷 브라우저용 기본 스크롤바 스타일 */
.sidebar-left-secondary::-webkit-scrollbar {
  width: 6px;
}

.sidebar-left-secondary::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-left-secondary::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.sidebar-left-secondary::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

/* Mobile Navbar Fixes */

/* 모바일에서 사이드바와 오버레이의 z-index를 높게 설정 */
@media (max-width: 576px) {
  /* 사이드바가 다른 요소 위에 표시되도록 z-index 증가 */
  .layout-sidebar-compact .sidebar-left {
    z-index: 1000 !important;
  }

  .layout-sidebar-compact .sidebar-left-secondary {
    z-index: 999 !important;
    overflow-y: auto !important;
  }

  .layout-sidebar-compact .sidebar-left-secondary.open {
    z-index: 999 !important;
  }

  /* 사이드바 오버레이 추가 - 배경 클릭 시 닫기 위함 */
  .layout-sidebar-compact.sidenav-open::after {
    content: '';
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    pointer-events: auto;
  }

  /* 사이드바가 열려있을 때 body 스크롤 방지 */
  body.sidenav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  /* 메인 콘텐츠가 사이드바 아래에 표시되도록 z-index 설정 */
  .main-content-wrap {
    z-index: 1 !important;
    position: relative;
  }

  /* 사이드바가 열려있을 때 터치 이벤트 활성화 */
  .layout-sidebar-compact.sidenav-open .sidebar-left,
  .layout-sidebar-compact.sidenav-open .sidebar-left-secondary.open {
    pointer-events: auto;
    touch-action: auto;
  }
}