/* 마이페이지 팝업 기본 스타일 */
body{
    font-family: 'Spoqa Han Sans Neo', sans-serif;
    font-weight: 400;
}
.mypage-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%; /* 가운데 기준 */
    transform: translateX(-50%); /* 정중앙 정렬 */ 
    background: white;
    border: 1px solid #ddd;
    padding: 12px 0;
    border-radius: 10px;
    
    z-index: 999;
    min-width: 150px;
    text-align: left;
}
.mypage-popup.show {
    display: block;
}

.mypage-popup .pop-nav-link {
     display: flex;
    padding: 6px 12px;
     align-items: center;
    text-decoration: none;
    font-size: 16px;
    color: #000000!important;
    white-space: nowrap;
    text-align: center;
    gap: 6px;
}
.pop-nav-link .emoji {
  font-size: 1.2rem; /* 필요시 더 키워도 됨 */
  margin-right: 2px;
  
  flex-shrink: 0;
}


.mypage-popup.show {
    display: block;
}

/* 팝업 내부 스타일 */
.popup-body {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.popup-body a {
  padding: 10px;
  text-decoration: none;
  color: black;
  font-size: 0.95rem;
  border-bottom: 1px solid #ddd;
  display: block;
}

.popup-body a:last-child {
  border-bottom: none;
}

/* 알림 개수 배지 */
.badge {
  position: absolute;
  top: 15px;
  right: -5px;
  font-size: 0.75rem;
  padding: 4px 6px;
  border-radius: 50%;
  display: inline-block;
}

.badge:hover, .badge:focus {
	color: #bbb;
	text-decoration: none;
	cursor: pointer;
}

#blck{
    color: black !important;
    }
.navbar-nav{
    color: black !important;
    }
/* 알림 팝업 */
.alarm-popup {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 300px;
  z-index: 9999;
  padding: 10px 0;
  max-height: 600px;
  overflow-y: auto;
}

/* Webkit 기반 브라우저 (Chrome, Safari 등) */
.alarm-popup::-webkit-scrollbar {
    width: 3px; /* 스크롤바 너비를 얇게 */
}

.alarm-popup::-webkit-scrollbar-track {
    background: transparent; /* 배경을 투명하게 */
}

.alarm-popup::-webkit-scrollbar-thumb {
    background: #ccc; /* 스크롤바 색상 (연한 회색) */
    border-radius: 10px; /* 둥근 모서리 */
}

.alarm-popup::-webkit-scrollbar-thumb:hover {
    background: #999; /* 호버 시 조금 더 진한 색상 */
}

.alarm-popup {/* Firefox 지원 */
    scrollbar-width: thin; /* 얇은 스크롤바 */
    scrollbar-color: #ccc transparent; /* 스크롤바 색상과 배경 */
}

/* 로딩 표시 */
.alarm-loading {
    text-align: center;
    padding: 10px;
    visibility: hidden; /* 초기에는 보이지 않지만 공간은 차지 */
    overflow: hidden; /* 내용이 넘치지 않게 */
    font-size: 12px;
    color: gray;
    font-weight: 200;
}

.alarm-loading.active {
    visibility: visible; /* 로딩 중일 때 보이게 */
    /* height: 20px; 실제 높이 설정 */
}

/* 알림 항목 */
.alarm-item {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.alarm-item:hover {
  background-color: #f7f7f7;
}

.alarm-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 4px;
}

/* 새로운 채팅 개수 표시 카드 */
.notifyNewChatMessage {
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background-color: #4a11be;
  margin: 4px 6px;
}

.notifyNewChatMessage:hover {
  background-color: #b98ff0;
}

#chatAlarm {
  color: #f7f7f7 !important;
  font-weight: 200;
}

/* 알림 시간 표시 텍스트 */
.timeNotify {
  margin-bottom: 3px;
}

/* 알림 카드 오버레이 */
.alarm-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(250, 250, 250, 0.7); /* 검정색 반투명 */
}

/* 빨간 알림 점 */
.alarm-dot {
  position: absolute;
  
  width: 7px;
  height: 7px;
  background-color: red;
  border-radius: 50%;
  display: inline-block;
}
    

/* 알림 삭제 버튼*/
.delete-alarm-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
    font-size: 14px;
    color: #999;
    cursor: pointer;
}
.delete-alarm-btn:hover {
    color: black;
}

@media screen and (max-width: 600px) {
  .mypage-popup,
  .alarm-popup {
    width: 90vw;
    left: 50%;
    transform: translateX(-50%);
    min-width: unset;
    max-height: 80vh;
  }

  .mypage-popup .pop-nav-link {
    font-size: 14px;
    padding: 8px 10px;
    gap: 4px;
  }

  .popup-body a {
    padding: 8px;
    font-size: 0.9rem;
  }

  .alarm-item {
    padding: 8px 12px;
    font-size: 13px;
  }

  .alarm-loading {
    font-size: 11px;
  }

  .badge {
    top: 12px;
    right: -4px;
    font-size: 0.7rem;
    padding: 3px 5px;
  }

  .delete-alarm-btn {
    top: 3px;
    right: 3px;
    font-size: 12px;
  }
}
