/* -------------------------------------------------
  9) 하단 메뉴(nav.bottom-nav)
------------------------------------------------- */
/* 그리드 설정 (2행 × 4열, 높이 120px) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #F0F2F5; /* 연한 그레이 블루 */
  border-top: 2px solid #D0D3D6;
  height: 120px;
  display: grid;
  grid-template-rows: repeat(2, 1fr);     /* 2행 */
  grid-template-columns: repeat(4, 1fr);  /* 4열 */
  gap: 8px;
  padding: 4px;
  z-index: 1001;
}

/* 리스트 태그를 contents로 변경해, 버튼이 그리드 셀에 직접 배치되도록 */
.bottom-menu-list {
  display: contents;
}

.bottom-menu-list li {
  list-style: none; /* 기본 불릿/숫자 제거 */
  
}

/* 버튼 스타일: 아이콘과 텍스트를 한 줄로 나열, 줄바꿈 금지 */
.bottom-menu-btn {
  background-color: #2C3E50; /* Primary: Blue Gray 500 */
  color: #F0F2F5;
  border: none;
  font-size: 1.4rem;
  border-radius: 12px;

  display: flex;
  flex-direction: row;       /* 아이콘 + 텍스트를 한 줄로 배치 */
  align-items: center;
  justify-content: center;

  cursor: pointer;
  width: 100%;
  height: 100%;

  transition: background-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;       /* 텍스트 줄바꿈 금지 */
  overflow: hidden;          
  text-overflow: ellipsis;   
  padding: 0 12px;           
}

.bottom-menu-btn:hover,
.bottom-menu-btn:focus {
  background-color: #1A252F; /* Primary-dark: Blue Gray 700 */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 아이콘과 텍스트 간 간격 */
.bottom-menu-btn .btn-label {
  margin-left: 6px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}






/*───────────────────────────────────────────────
  하단 메뉴 버튼 컬러 (LED 제거 + 새 하이라이트)
───────────────────────────────────────────────*/

/* 기본 버튼 */
.bottom-menu-btn{
  background:#2C3E50;               /* 기본 블루-그레이 */
  color:#FFFFFF;
  transition:background-color .18s, filter .18s;
}

/* 일반 버튼: hover / focus 때만 주황 하이라이트 */
.bottom-menu-btn:not(.toggle-btn):hover {
  background:transparent;               
  color:#2C3E50;
  border: #2C3E50 4px solid;
}

/* 토글 버튼 ON⇄OFF */
.bottom-menu-btn.toggle-btn.active{
  background:transparent;               
  color:#2C3E50;
  border: #2C3E50 4px solid;
}

/* 다크 테마도 동일 팔레트 적용 */
.dark-theme .bottom-menu-btn{background:#1A252F;}
.dark-theme .bottom-menu-btn:not(.toggle-btn):hover{
  background:transparent;color:#2C3E50;
  border: #2C3E50 4px solid;
}
.dark-theme .bottom-menu-btn.toggle-btn.active{
  background:transparent;color:#2C3E50;
  border: #2C3E50 4px solid;
}







/* 다크테마용 하단 메뉴 수정 */
.dark-theme .bottom-nav {
  background-color: #212121; /* Surface Dark */
  border-top-color: #333333;
}

.dark-theme .bottom-menu-btn {
  background-color: #1A252F; /* Primary-dark: Blue Gray 700 */
  color: #F0F2F5;
}

.dark-theme .bottom-menu-btn:hover,
.dark-theme .bottom-menu-btn:focus {
  background-color: #2C3E50; /* Primary: Blue Gray 500 */
}

.dark-theme .bottom-menu-btn .btn-label {
  color: #F0F2F5;
}
