@charset "UTF-8";

/* --- 전체 기본 리셋 및 폰트 설정 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --theme-bg: #abc1d1;
  --theme-header-bg: #9bb0c1;
  --kakao-yellow: #fee500;
  --kakao-yellow-hover: #fada0a;
  --kakao-brown: #3a1d1d;
  --kakao-bubble-other: #ffffff;
  --kakao-text-main: #1e1e1e;
  --kakao-text-muted: #596673;
  --kakao-time-text: #556677;
  --kakao-input-bg: #ffffff;
  --kakao-btn-disabled: #e6e6e8;
  --kakao-badge-bg: rgba(0, 0, 0, 0.2);
}

/* ================== 계절별 배경 테마 그래픽 팔레트 ================== */

/* 1. 🌸 봄 (Spring): 벚꽃 핑크 & 파스텔 블룸 */
.chat-app.theme-spring {
  --theme-bg: linear-gradient(160deg, #ffd1dc 0%, #fbe4e8 50%, #fff0f5 100%);
  --theme-header-bg: rgba(255, 192, 203, 0.6);
  --kakao-time-text: #8c6068;
}

/* 2. 🌊 여름 (Summer): 시원한 트로피컬 오션 블루 & 파도 */
.chat-app.theme-summer {
  --theme-bg: linear-gradient(160deg, #74ebd5 0%, #9face6 100%);
  --theme-header-bg: rgba(116, 235, 213, 0.5);
  --kakao-time-text: #3c5d6e;
}

/* 3. 🍁 가을 (Autumn): 포근한 단풍 선셋 & 앰버 브라운 */
.chat-app.theme-autumn {
  --theme-bg: linear-gradient(160deg, #f7d08a 0%, #e8a87c 50%, #d48c80 100%);
  --theme-header-bg: rgba(232, 168, 124, 0.6);
  --kakao-time-text: #6b4c3b;
}

/* 4. ❄️ 겨울 (Winter): 포근한 스노우 윈터 블루 & 오로라 */
.chat-app.theme-winter {
  --theme-bg: linear-gradient(160deg, #89f7fe 0%, #66a6ff 100%);
  --theme-header-bg: rgba(137, 247, 254, 0.5);
  --kakao-time-text: #3b5980;
}

/* 5. 🟡 클래식 (Classic): 카카오톡 기본 스카이블루 */
.chat-app.theme-classic {
  --theme-bg: #abc1d1;
  --theme-header-bg: #9bb0c1;
  --kakao-time-text: #556677;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #2c3e50;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* 메인 앱 컨테이너 */
.chat-app {
  width: 100%;
  max-width: 480px;
  height: 100%;
  max-height: 100vh;
  background: var(--theme-bg);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: background 0.5s ease;
}

@media (min-height: 700px) and (min-width: 500px) {
  .chat-app {
    height: 92vh;
    border-radius: 20px;
  }
}

/* ================== 계절 파티클 애니메이션 ================== */
.season-particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  user-select: none;
  pointer-events: none;
  opacity: 0.8;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* 벚꽃잎 애니메이션 */
@keyframes fallSakura {
  0% {
    transform: translateY(-20px) translateX(0) rotate(0deg);
    opacity: 0.9;
  }
  100% {
    transform: translateY(105vh) translateX(80px) rotate(360deg);
    opacity: 0.1;
  }
}

/* 단풍잎 애니메이션 */
@keyframes fallMaple {
  0% {
    transform: translateY(-20px) translateX(0) rotate(0deg);
    opacity: 0.9;
  }
  50% {
    transform: translateY(50vh) translateX(-50px) rotate(180deg);
  }
  100% {
    transform: translateY(105vh) translateX(60px) rotate(360deg);
    opacity: 0.2;
  }
}

/* 눈송이 애니메이션 */
@keyframes fallSnow {
  0% {
    transform: translateY(-20px) translateX(0);
    opacity: 0.9;
  }
  100% {
    transform: translateY(105vh) translateX(30px);
    opacity: 0.2;
  }
}

/* ================== 1. 상단 헤더 & 엔진 상태 띠 ================== */
.chat-header {
  height: 56px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 상단 실시간 엔진 상태 띠 */
.engine-status-bar {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #ffffff;
  z-index: 9;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s;
}

.engine-status-bar:hover {
  background: rgba(0, 0, 0, 0.8);
}

.engine-status-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 6px #2ecc71;
  animation: livePulse 1.6s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px #2ecc71; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.engine-mode-text {
  font-weight: 600;
  letter-spacing: -0.2px;
}

.engine-status-right {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ffd166;
  font-weight: 500;
}

.info-arrow {
  font-size: 9px;
  opacity: 0.7;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 17px;
  color: var(--kakao-brown);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background-color: rgba(0, 0, 0, 0.08);
  transform: scale(1.05);
}

.admin-badge-btn {
  color: #d35400;
}

.room-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.room-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--kakao-brown);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-count-badge {
  font-size: 11px;
  font-weight: 600;
  color: #3b4856;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 2px 6px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.season-badge {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.65);
  color: #2c3e50;
  padding: 2px 7px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* 실시간 IP 날씨 뱃지 */
.weather-badge {
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 249, 255, 0.8) 100%);
  color: #0369a1;
  padding: 2px 8px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.weather-badge:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(3, 105, 161, 0.2);
}

.weather-badge i {
  color: #f59e0b;
}

/* 실시간 날씨 상세 팝오버 */
.weather-detail-popover {
  position: absolute;
  top: 58px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
  z-index: 60;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.weather-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 6px;
}

.weather-popover-loc {
  font-size: 13px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.weather-popover-loc i {
  color: #ef4444;
}

.weather-popover-ip {
  font-size: 10px;
  color: #94a3b8;
}

.weather-popover-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}

.weather-popover-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.weather-main-display {
  display: flex;
  align-items: center;
  gap: 12px;
}

.weather-big-icon {
  font-size: 32px;
  color: #f59e0b;
}

.weather-temp-wrap {
  display: flex;
  flex-direction: column;
}

.weather-temp-num {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.weather-status-desc {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.weather-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgba(0, 0, 0, 0.04);
  padding: 8px;
  border-radius: 10px;
  gap: 4px;
  text-align: center;
}

.weather-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 9px;
  color: #64748b;
}

.stat-val {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

/* 서랍 참여자 목록 내 날씨 태그 */
.user-weather-tag {
  font-size: 10px;
  background: rgba(0, 0, 0, 0.05);
  color: #475569;
  padding: 2px 6px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
}

/* 계절 테마 팝오버 메뉴 */
.theme-popover {
  position: absolute;
  top: 58px;
  right: 14px;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  z-index: 50;
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 175px;
  animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-popover.active {
  display: flex;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.9) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.theme-popover-title {
  font-size: 12px;
  font-weight: 700;
  color: #888888;
  padding: 4px 8px 6px;
  border-bottom: 1px solid #f0f0f0;
}

.theme-btn {
  background: none;
  border: none;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s;
}

.theme-btn:hover {
  background-color: #f3f4f6;
}

/* ================== 2. 채팅 바디 & 메시지 ================== */
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.chat-body::-webkit-scrollbar {
  width: 5px;
}

.chat-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

/* 날짜 구분선 */
.date-divider {
  display: flex;
  justify-content: center;
  margin: 6px 0 10px;
}

.date-divider span {
  background-color: rgba(0, 0, 0, 0.15);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}

.messages-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 시스템 메시지 */
.system-message {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

.system-message .bubble {
  background-color: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 14px;
  max-width: 85%;
  text-align: center;
  word-break: break-all;
  line-height: 1.4;
  backdrop-filter: blur(4px);
}

/* 공지사항 메시지 */
.notice-message {
  display: flex;
  justify-content: center;
  margin: 6px 0;
}

.notice-message .notice-card {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 12px;
  padding: 10px 14px;
  max-width: 90%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notice-header {
  font-size: 12px;
  font-weight: 700;
  color: #d35400;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-body {
  font-size: 13px;
  color: #333333;
  line-height: 1.45;
  white-space: pre-wrap;
}

/* 메시지 그룹 */
.message-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 상대방 메시지 */
.message-row.other {
  justify-content: flex-start;
}

.message-row.other .avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.message-row.other .content-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 75%;
}

.message-row.other .sender-name {
  font-size: 12px;
  color: #2c3e50;
  margin-bottom: 4px;
  font-weight: 600;
  padding-left: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sender-admin-tag {
  font-size: 10px;
  background: #ff9800;
  color: #ffffff;
  padding: 1px 4px;
  border-radius: 6px;
  font-weight: 700;
}

.message-row.other .bubble-and-time {
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.message-row.other .bubble {
  background-color: var(--kakao-bubble-other);
  color: var(--kakao-text-main);
  padding: 9px 13px;
  border-radius: 2px 14px 14px 14px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.time-stamp {
  font-size: 10px;
  color: var(--kakao-time-text);
  white-space: nowrap;
  margin-bottom: 1px;
}

/* 내 메시지 */
.message-row.mine {
  justify-content: flex-end;
}

.message-row.mine .content-wrap {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  max-width: 75%;
}

.message-row.mine .bubble {
  background-color: var(--kakao-yellow);
  color: var(--kakao-text-main);
  padding: 9px 13px;
  border-radius: 14px 2px 14px 14px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ================== 3. 하단 입력 바 ================== */
.chat-footer {
  background-color: #ffffff;
  padding: 8px 10px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 10;
}

.input-actions-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.action-btn {
  background: none;
  border: none;
  color: #707070;
  font-size: 18px;
  padding: 6px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-box-wrapper {
  flex: 1;
  background-color: #f4f4f4;
  border-radius: 18px;
  display: flex;
  align-items: center;
  padding: 4px 10px 4px 14px;
  border: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}

.input-box-wrapper:focus-within {
  background-color: #ffffff;
  border-color: #d1d1d1;
}

.input-box-wrapper textarea {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--kakao-text-main);
  resize: none;
  max-height: 100px;
  line-height: 1.4;
  padding: 4px 0;
}

.input-box-wrapper textarea::placeholder {
  color: #999999;
}

.emoji-btn {
  color: #888888;
  padding: 4px;
  font-size: 19px;
}

.input-actions-right {
  display: flex;
  align-items: center;
}

.send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background-color: var(--kakao-btn-disabled);
  color: #a0a0a0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: all 0.2s ease;
}

.send-btn.active {
  background-color: var(--kakao-yellow);
  color: var(--kakao-brown);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.send-btn.active:hover {
  background-color: var(--kakao-yellow-hover);
}

/* ================== 4. 서랍 메뉴 (사이드바) ================== */
.drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 90;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 330px;
  height: 100%;
  background-color: #ffffff;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
}

.drawer-menu.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.drawer-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: #1e1e1e;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: #888888;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-hint {
  font-size: 11px;
  color: #e74c3c;
  font-weight: 500;
}

/* 내 프로필 카드 */
.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: #f9f9fb;
  border-radius: 12px;
  border: 1px solid #f0f0f4;
}

.profile-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background-color: #45b7d1;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nickname-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.my-nickname {
  font-size: 15px;
  font-weight: 700;
  color: #1e1e1e;
}

.admin-crown-badge {
  font-size: 11px;
  background: #ff9800;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.edit-btn {
  background: none;
  border: none;
  color: #888888;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
}

.my-tag {
  font-size: 11px;
  color: #2e7d32;
  font-weight: 500;
}

/* 닉네임 수정 폼 */
.edit-nickname-form {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.edit-nickname-form input {
  flex: 1;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
}

.edit-nickname-form button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background-color: var(--kakao-yellow);
  color: var(--kakao-brown);
  border-radius: 6px;
  cursor: pointer;
}

.edit-nickname-form button.cancel-btn {
  background-color: #e0e0e0;
  color: #555;
}

/* 관리자 전용 제어 패널 */
.admin-panel-section {
  background: #fff9e6;
  border: 1px solid #ffe58f;
  padding: 12px;
  border-radius: 12px;
}

.admin-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-tool-btn {
  background: #ffffff;
  border: 1px solid #ffd666;
  color: #d46b08;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.admin-tool-btn:hover {
  background: #fff1b8;
}

/* 접속자 목록 & 강퇴 버튼 */
.user-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.15s;
}

.user-item:hover {
  background-color: #f7f7f8;
}

.user-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-item .avatar {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.user-item .online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background-color: #2ecc71;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.user-item .user-name {
  font-size: 14px;
  font-weight: 600;
  color: #222222;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-item .me-badge {
  font-size: 10px;
  background-color: #ffeb3b;
  color: #5d4037;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 700;
}

.user-item .admin-badge {
  font-size: 10px;
  background-color: #ff9800;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 700;
}

.user-item-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 강퇴 버튼 */
.kick-btn {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s;
}

.kick-btn:hover {
  background: #f87171;
  color: #ffffff;
}

/* 닉네임 강제 변경 버튼 */
.rename-btn {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0284c7;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s;
}

.rename-btn:hover {
  background: #38bdf8;
  color: #ffffff;
}

/* 시스템 아키텍처 정보 섹션 */
.system-status-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.status-row .label {
  color: #64748b;
  font-weight: 500;
}

.status-row .val {
  color: #1e293b;
  font-weight: 600;
}

.status-row .val.highlight {
  color: #0284c7;
}

.system-detail-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  transition: all 0.15s;
}

.system-detail-btn:hover {
  background: #e2e8f0;
}

/* 시스템 상세 안내 모달 */
.system-modal-card {
  max-width: 360px !important;
}

.system-modal-body {
  max-height: 65vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px;
}

.arch-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.arch-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.arch-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}

.arch-desc code {
  background: #e2e8f0;
  padding: 1px 4px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
  color: #0f172a;
}

.admin-login-btn:hover {
  background: #f3f4f6;
  color: #374151;
  border-color: #9ca3af;
}

.drawer-footer {
  padding: 14px 18px;
  background-color: #fbfbfb;
  border-top: 1px solid #f0f0f0;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #666666;
}

.status-indicator.online {
  width: 8px;
  height: 8px;
  background-color: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
}

/* ================== 5. 모달 다이얼로그 ================== */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e1e1e;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #888888;
  cursor: pointer;
}

.modal-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-desc {
  font-size: 13px;
  color: #666666;
  line-height: 1.45;
}

.modal-sub-desc {
  font-size: 12px;
  color: #888888;
  line-height: 1.4;
}

.modal-body input {
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
}

.modal-body input:focus {
  border-color: #f59e0b;
}

.modal-error {
  font-size: 12px;
  color: #ef4444;
  font-weight: 500;
}

.modal-footer {
  padding: 12px 18px 16px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-primary {
  background-color: var(--kakao-yellow);
  color: var(--kakao-brown);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #4b5563;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* 강퇴된 사용자 전체 화면 차단 오버레이 */
.banned-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.banned-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.banned-icon {
  font-size: 48px;
}

.banned-card h2 {
  font-size: 18px;
  color: #dc2626;
}

.banned-card p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}
