/* ============================================
   채팅관리 (Chats) — 전용 CSS
   공통 UI 컴포넌트는 components.css 에 정의
   모달 기본 스타일은 components.css 에 정의
   모달 셀렉트·경고 텍스트는 reservations.css 에 정의
   배지 색상은 components.css 의 7색 시스템 사용
   이 파일은 채팅관리 페이지에만 필요한 추가 스타일
   ============================================ */

/* ── 신고 여부 색상 텍스트 ── */
.report-yes { color: var(--danger); font-weight: 600; }
.report-no  { color: var(--text-weak); }

/* ── 제재 유형 색상 텍스트 ── */
.sanction-text--warn   { color: var(--warning); font-weight: 600; }
.sanction-text--danger { color: var(--danger); font-weight: 600; }

/* ── 마지막 메시지 말줄임 → components.css 에 통합 ── */

/* ── 첨부 이미지 썸네일 (신고 상세) ── */
.attachment-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-base);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.attachment-thumb:hover {
  opacity: 0.75;
}

/* ================================================
   말풍선 UI (chat-detail.html 메시지 내역 영역)
   ================================================ */

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 600px;
  overflow-y: auto;
  padding: 16px;
  background: var(--surface-base);
  border-radius: var(--radius-sm);
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
}

/* 날짜 구분선 */
.chat-date-divider {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-weak);
  padding: 8px 0;
  position: relative;
}

.chat-date-divider::before,
.chat-date-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 60px);
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
}

.chat-date-divider::before { left: 0; }
.chat-date-divider::after  { right: 0; }

/* 말풍선 래퍼 */
.chat-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 65%;
}

.chat-bubble-wrap--guardian {
  align-self: flex-start;
}

.chat-bubble-wrap--kindergarten {
  align-self: flex-end;
}

.chat-bubble-wrap--system {
  align-self: center;
  max-width: 80%;
}

/* 말풍선 본문 */
.chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.chat-bubble--guardian {
  background: var(--badge-brown-bg);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}

.chat-bubble--kindergarten {
  background: var(--badge-pink-bg);
  color: var(--text-primary);
  border-top-right-radius: 4px;
}

.chat-bubble--system {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-weak);
  font-size: 12px;
  text-align: center;
  border-radius: 8px;
}

/* 말풍선 이미지 (메시지 유형: 이미지) */
.chat-bubble__image {
  width: 180px;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-base);
  display: block;
}

/* 말풍선 메타 (닉네임 · 시간 · 읽음) */
.chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-weak);
}

.chat-meta--right {
  justify-content: flex-end;
}

.chat-meta__read {
  color: var(--success);
}

.chat-meta__unread {
  color: var(--text-weak);
}

/* ── 모달 변형 스타일은 components.css 에 통합 ── */
