/* 로그인 사이드바 전용 스타일 (최종본) */

/* 사이드바 배경 오버레이 */
#sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

#sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* 사이드바 모달 본체 */
.sidebar-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90%;
  height: 100vh;
  background-color: #fff;
  z-index: 1050;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s ease-in-out, visibility 0.4s;
}

.sidebar-modal.show {
  transform: translateX(0);
  visibility: visible;
}

/* ✅ [핵심] 내부 콘텐츠 레이아웃 설정 */
.sidebar-modal-content {
  display: flex;
  flex-direction: column; /* 자식 요소들을 무조건 세로로 쌓도록 설정 */
  height: 100%; 
}

/* 닫기 버튼을 감싸는 영역 */
.sidebar-modal-close-wrapper {
  text-align: right;
  padding: 10px 15px 0;
  flex-shrink: 0; /* 이 영역이 줄어들지 않도록 함 */
}

/* 실제 닫기 버튼(X) 스타일 */
.sidebar-modal-close-btn {
  font-size: 2rem;
  cursor: pointer;
  color: #888;
  padding: 5px;
  line-height: 1;
}

/* 제목과 내용을 포함한 나머지 모든 콘텐츠 영역 */
.sidebar-modal-body-wrapper {
  padding: 0 20px 20px;
  overflow-y: auto; /* 내용이 길어지면 스크롤 생성 */
  flex-grow: 1; /* 남은 세로 공간을 모두 차지하도록 설정 */
}

/* 제목 스타일 */
.sidebar-modal-title {
	text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}