@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;500;600;700;800&display=swap');

:root {
  --bg-color: #030712;
  --text-main: #f3f4f6;
  --text-sub: #9ca3af;
  --text-muted: #6b7280;
  --card-bg: rgba(15, 23, 42, 0.45);
  --card-border: rgba(255, 255, 255, 0.08);
  --primary-color: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --input-bg: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] {
  --bg-color: #f8fafc;
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #94a3b8;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: rgba(15, 23, 42, 0.06);
  --primary-glow: rgba(99, 102, 241, 0.06);
  --input-bg: rgba(15, 23, 42, 0.02);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
}

/* 사이드바 여백 확보를 위한 메인 콘텐츠 래퍼 */
.home_content {
  padding-left: 20px;
}

.tp-wrap {
  padding: 60px 40px;
  max-width: 1300px;
  margin: 0 auto;
}

/* 2. 헤더 섹션 */
.tp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 20px;
}

.text-glow {
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.tp-title-wrap p {
  color: var(--text-sub);
  font-size: 1.05rem;
}

.tp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 3. 검색 및 필터 컨트롤 */
.tp-search-area {
  margin-bottom: 24px;
}

.search-input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-size: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.tp-filter-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
}

.chip.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.count-badge {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 20px;
}

/* 4. 프로젝트 카드 그리드 시스템 */
.tp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.08);
}

.project-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-card-head h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

.project-card-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.6;
  min-height: 48px;
}

.project-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.project-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip-static {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: #06b6d4;
}

.project-card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border);
  padding-top: 14px;
  margin-top: auto;
}

.project-card-actions {
  display: flex;
  gap: 8px;
}

.project-card-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.project-card-actions .primary-btn {
  background: var(--primary-color);
  color: white;
}

.project-card-actions .secondary-btn {
  background: var(--card-border);
  color: var(--text-main);
}

/* 5. 글로벌 공통 모달 (생성 / 상세) 기본 구조 */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000 !important;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: #0b0f19;
  border: 1px solid var(--card-border);
  width: min(600px, calc(100vw - 32px));
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

[data-theme="light"] .modal {
  background: #ffffff;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 16px;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-sub);
}

/* 폼 컨트롤 공통 */
input,
textarea,
select {
  width: 100%;
  padding: 12px;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.recruit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: rgba(255, 255, 255, 0.01);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
}

.recruit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recruit-row input {
  width: 70px;
  padding: 6px 10px;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--card-border);
  padding-top: 20px;
}

/* 6. 프로젝트 상세 모달 커스텀 레이아웃 */
.detail-modal {
  width: min(900px, calc(100vw - 32px));
}

.detail-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
}

.detail-top-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.badge-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--card-border);
  color: var(--text-sub);
}

.detail-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.detail-desc {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 24px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.meta-box {
  background: var(--input-bg);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  font-size: 0.9rem;
}

.meta-label {
  color: var(--text-muted);
  margin-right: 8px;
}

.detail-section {
  margin-bottom: 20px;
}

.detail-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.role-status-list,
.detail-member-list,
.side-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-chip,
.member-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--input-bg);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
}

.role-chip-title,
.member-name {
  font-weight: 600;
}

.role-chip-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.role-chip-state {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}

.role-chip-state.open {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.role-chip-state.filled {
  background: var(--card-border);
  color: var(--text-muted);
}

.side-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 16px;
}

.side-box h4 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.side-info-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

/* 참여 역할 라디오 리스트 래퍼 */
.join-role-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

/* 개별 라디오 버튼 항목을 세련된 카드형으로 변환 */
.join-role-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .join-role-item {
  background: rgba(15, 23, 42, 0.02);
}

/* 마우스 호버 시 살짝 밝아지며 테두리 하이라이트 */
.join-role-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

[data-theme="light"] .join-role-item:hover {
  background: rgba(15, 23, 42, 0.04);
}

/* 실제 input[type="radio"] 숨기기 (디자인 커스텀을 위함) */
.join-role-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* 선택된 상태(Checked)의 세련된 인디고-시안 액티브 스타일 */
.join-role-item:has(input[type="radio"]:checked) {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.08));
  border-color: #6366f1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
  color: #ffffff;
}

[data-theme="light"] .join-role-item:has(input[type="radio"]:checked) {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.04));
  border-color: #4f46e5;
  color: #4f46e5;
}

/* 선택되었을 때 우측에 나타날 체크 표시 효과 (가상 요소) */
.join-role-item::after {
  content: "✓";
  font-size: 1rem;
  font-weight: 800;
  color: #06b6d4;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.join-role-item:has(input[type="radio"]:checked)::after {
  opacity: 1;
  transform: scale(1);
}

/* 안내 및 도움말 텍스트 정돈 */
.help-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
  padding-left: 4px;
}

/* 7. 우측 하단 고정 UI - 실시간 모던 채팅방 (전면 리팩토링) */
#chatWindow {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 390px;
  height: 580px;
  background: #0f1322;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  z-index: 3000 !important;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] #chatWindow {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

#chatWindow.open {
  display: flex;
}

/* 채팅 헤더 정돈 */
.chat-header {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="light"] .chat-header {
  background: rgba(15, 23, 42, 0.01);
}

#chatTitle {
  font-weight: 800;
  color: var(--text-main);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

#chatProjectInfo {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.chat-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-small-btn,
.chat-close-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s;
}

.chat-small-btn:hover,
.chat-close-btn:hover {
  color: var(--text-main);
}

.chat-close-btn {
  font-size: 1.1rem;
}

/* 대화창 내부 메인 영역 */
.chat-message-area {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(0, 0, 0, 0.1);
}

/* [핵심 수정] 말풍선 객체 정밀 튜닝 */
.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 75%;
  position: relative;
}

/* 내 메시지 - 우측 정렬 */
.chat-message.mine {
  align-self: flex-end;
  align-items: flex-end;
}

/* 상대방 메시지 - 좌측 정렬 */
.chat-message.other {
  align-self: flex-start;
  align-items: flex-start;
}

/* 보낸 사람 닉네임 */
.chat-sender {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 4px;
  padding-left: 4px;
}

.chat-message.mine .chat-sender {
  display: none;
  /* 내 화면에서 내 닉네임은 가려서 깔끔하게 함 */
}

/* [버그 수정] 글래스모피즘 입체 말풍선 주입 */
.chat-message .chat-text-wrapper {
  padding: 11px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-all;
  color: #ffffff;
}

/* 내 말풍선: 인디고 그라데이션 */
.chat-message.mine .chat-text-wrapper {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-radius: 16px 16px 2px 16px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* 상대방 말풍선: 은은한 다크 그레이 */
.chat-message.other .chat-text-wrapper {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px 16px 16px 2px;
  color: var(--text-main);
}

/* 라이트모드 셋업 */
[data-theme="light"] .chat-message.other .chat-text-wrapper {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.03);
  color: #0f172a;
}

[data-theme="light"] .chat-message.mine .chat-text-wrapper {
  color: #ffffff;
}

/* [버그 수정] 읽음 숫자 및 시간 메타 데이터 크기 최소화 정돈 */
.chat-meta-container {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.chat-message.mine .chat-meta-container {
  flex-direction: row-reverse;
}

/* 읽음 카운트 인디게이터 포인트 컬러 */
.chat-read-info {
  color: #06b6d4;
  font-weight: 700;
}

.chat-time {
  color: var(--text-muted);
}

/* 시스템 메시지 (입장/퇴장) */
.chat-message-system {
  align-self: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-sub);
  text-align: center;
  margin: 8px 0;
}

[data-theme="light"] .chat-message-system {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-sub);
}

/* [디자인 고도화] 파일 다운로드 컴포넌트 */
.chat-file-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: #06b6d4 !important;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.chat-file-download-btn:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: #06b6d4;
}

.chat-message.mine .chat-file-download-btn {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.1);
  color: #06b6d4 !important;
}

/* 하단 폼 컨트롤 푸터 영역 */
.chat-footer {
  padding: 16px;
  border-top: 1px solid var(--card-border);
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .chat-footer {
  background: #f8fafc;
}

.file-btn {
  background: var(--card-border);
  border: 1px solid transparent;
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.file-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.chat-input-wrap {
  display: flex;
  flex: 1;
  gap: 8px;
}

.chat-input-wrap input {
  flex: 1;
  padding: 12px;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  border-radius: 10px;
  font-size: 0.9rem;
}

.chat-input-wrap input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* ============================================================
   7-A. 파일 모아보기 사이드 패널 내부 아이템 디자인 (최종)
   ============================================================ */
.chat-files-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  height: calc(100% - 60px);
}

/* 개별 파일이 노출되는 세련된 글래스모피즘 카드 */
.chat-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  transition: all 0.2s ease;
}

[data-theme="light"] .chat-file-item {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.05);
}

.chat-file-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(6, 182, 212, 0.3);
}

[data-theme="light"] .chat-file-item:hover {
  background: #f1f5f9;
}

/* 파일 아이콘 및 메타 정보 배치 구획 */
.chat-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  /* 파일명이 길어질 때 말줄임표(...) 가동을 위한 방어 코드 */
  flex: 1;
}

/* 사이버틱한 파일 아이콘 배경 배지 */
.chat-file-icon {
  font-size: 1.25rem;
  background: rgba(6, 182, 212, 0.1);
  padding: 8px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-file-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* 파일 제목 말줄임 방어 레이어 */
.chat-file-name {
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 업로더 및 생성일자 포맷 크기 최적화 */
.chat-file-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* 패널 전용 우측 다운로드 단추 고도화 */
.chat-file-download-btn.panel-download {
  background: #06b6d4;
  color: #ffffff !important;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.chat-file-download-btn.panel-download:hover {
  background: #0891b2;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}

/* 8. 우측 레이어 패널 - 채팅방 목록 / 파일 모아보기 */
.chat-room-list-panel,
.chat-files-panel {
  position: fixed;
  top: 80px;
  right: -400px;
  width: 360px;
  height: calc(100vh - 100px);
  background: #0b0f19;
  border-left: 1px solid var(--card-border);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 2500 !important;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .chat-room-list-panel,
[data-theme="light"] .chat-files-panel {
  background: #ffffff;
}

/* 오픈 클래스 작동 방식 강제 활성화 */
.chat-room-list-panel.open,
.chat-files-panel.open {
  right: 0 !important;
}

.chat-room-list-header,
.chat-files-header {
  padding: 20px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-room-list-header strong,
.chat-files-header strong {
  font-size: 1.1rem;
  font-weight: 700;
}

.chat-room-list,
.chat-files-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 리스트 아이템 디자인 기획전 */
.chat-room-item {
  padding: 16px;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  transition: all 0.2s;
}

.chat-room-item:hover {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.03);
}

.chat-room-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.chat-room-last {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.chat-room-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.chat-room-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.detail-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 0.9rem;
}

/* 9. 버튼 글로벌 규격 */
.btn {
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-sub);
}

.btn-ghost:hover {
  background: var(--card-border);
  color: var(--text-main);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.btn-danger:hover {
  background: #ef4444;
  color: white;
}

.tp-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}