:root {
  /* 색상 팔레트: 첨부 이미지 계열 */
  --nav-bg: #111827;
  --nav-bg-dark: #020617;
  --nav-active: #2563eb;
  --nav-text: #e5e7eb;
  --nav-text-muted: #9ca3af;

  --body-bg: #edf1f7;
  --header-bg: #ffffff;
  --main-bg: #f3f4f8;
  --panel-bg: #ffffff;

  --border-subtle: #e5e7eb;
  --text-main: #111827;
  --text-sub: #4b5563;
  --text-muted: #9ca3af;

  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow-soft: 0 4px 10px rgba(15, 23, 42, 0.06);
  --transition-fast: 0.16s ease-out;
  
  /* 헤더 높이 - 동적으로 계산되어야 하지만, 안전하게 140px로 설정 */
  --header-height: 140px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--body-bg);
  color: var(--text-main);
  height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow: hidden;
}

/* 상단 헤더 */

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  height: 120px;
  min-height: 120px;
  max-height: 120px;
  gap: 16px;
  z-index: 1000;
  box-sizing: border-box;
}

.header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}

.header-left-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
  overflow: hidden;
}

.logo-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.header-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}

.header-title-top {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #111827;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-title-main {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
}

.logo-text-main {
  display: inline-block;
  color: #123e74;
}

.logo-text-highlight {
  display: inline-block;
  color: #2ecc71;
  font-weight: 700;
}

.header-title-sub {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 0;
  width: 100%;
  max-width: 100%;
  flex-shrink: 1;
  min-width: 0;
}

.header-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 80px;
  min-height: 80px;
  max-height: 80px;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 16px;
}

.header-center-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 10px 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: auto;
  height: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.session-main-line {
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 19px;
  line-height: 19px;
  text-align: center;
}

.session-main-line strong {
  font-weight: 600;
  color: var(--text-main);
}

.session-sub-line {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-height: auto;
  line-height: 18px;
  white-space: normal;
  overflow: visible;
  min-width: 0;
  text-align: center;
  justify-content: center;
}

.session-sub-line > * {
  flex-shrink: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  font-size: 11px;
  color: #1d4ed8;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-sub);
  font-size: 11px;
  padding: 6px 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-ghost:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: var(--text-main);
}

.btn-primary {
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #eff6ff;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transition: var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.btn-primary-inline {
  display: inline-block;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #eff6ff;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 14px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  vertical-align: middle;
  line-height: 1;
}

.user-pill {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* 아래 영역: 좌측 메뉴 + 우측 메인 */

.app-body {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
  margin-top: var(--header-height);
  height: calc(100vh - var(--header-height));
  max-height: calc(100vh - var(--header-height));
}

/* 좌측 메뉴 (다크 사이드바) */

.side-nav {
  width: 240px;
  background: var(--nav-bg);
  color: var(--nav-text);
  display: flex;
  flex-direction: column;
  padding-top: 16px;
  padding-bottom: 16px;
  align-self: stretch;
  overflow-y: hidden;
  overflow-x: hidden;
  flex-shrink: 0;
  height: 100%;
}

.side-nav::-webkit-scrollbar {
  width: 6px;
}

.side-nav::-webkit-scrollbar-track {
  background: transparent;
}

.side-nav::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 3px;
}

.side-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

.side-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 16px 20px;
  gap: 8px;
}

.side-brand {
  font-size: 14px;
  font-weight: 600;
  color: #f9fafb;
  flex: 1;
}

.btn-logout-header {
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 11px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-logout-header:hover {
  background: #0b1220;
}

.side-email {
  padding: 0 20px 12px 20px;
  font-size: 11px;
  color: var(--nav-text-muted);
}

.side-badge {
  margin: 0 20px 16px 20px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 12px;
  color: #f9fafb;
  background: rgba(15, 23, 42, 0.8);
}

.nav-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nav-text-muted);
  margin: 16px 20px 8px 20px;
  font-weight: 500;
}

.nav-section {
  margin-top: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  color: var(--nav-text);
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-item-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

/* Grid 아이콘 (대시보드) */
.nav-item[data-icon="grid"] .nav-item-icon::before,
.nav-item[data-icon="grid"] .nav-item-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
}

.nav-item[data-icon="grid"] .nav-item-icon::before {
  width: 4px;
  height: 4px;
  top: 3px;
  left: 3px;
  box-shadow: 5px 0 0, 0 5px 0, 5px 5px 0;
}

.nav-item[data-icon="grid"] .nav-item-icon::after {
  width: 4px;
  height: 4px;
  bottom: 3px;
  right: 3px;
  box-shadow: -5px 0 0, 0 -5px 0, -5px -5px 0;
}

/* User 아이콘 */
.nav-item[data-icon="user"] .nav-item-icon::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.nav-item[data-icon="user"] .nav-item-icon::after {
  content: '';
  width: 10px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-top: none;
  border-radius: 0 0 10px 10px;
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
}

/* Chat 아이콘 (우측 설명 영역과 동일한 스타일) */
.nav-item[data-icon="chat"] .nav-item-icon::before {
  content: '';
  width: 12px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: absolute;
  top: 2px;
  left: 4px;
}

.nav-item[data-icon="chat"] .nav-item-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  position: absolute;
  bottom: 1px;
  left: 7px;
}

/* Package 아이콘 (추천 상품) */
.nav-item[data-icon="package"] .nav-item-icon::before {
  content: '';
  width: 12px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  position: absolute;
  top: 3px;
  left: 3px;
}

.nav-item[data-icon="package"] .nav-item-icon::after {
  content: '';
  width: 12px;
  height: 2px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  position: absolute;
  top: 6px;
  left: 3px;
}

/* Document 아이콘 */
.nav-item[data-icon="document"] .nav-item-icon::before {
  content: '';
  width: 10px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
  position: absolute;
  top: 2px;
  left: 4px;
}

.nav-item[data-icon="document"] .nav-item-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid currentColor;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  position: absolute;
  top: 5px;
  left: 2px;
}

/* Clock 아이콘 */
.nav-item[data-icon="clock"] .nav-item-icon::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
}

.nav-item[data-icon="clock"] .nav-item-icon::after {
  content: '';
  width: 1.5px;
  height: 4px;
  background: currentColor;
  position: absolute;
  top: 5px;
  left: 9px;
  transform-origin: bottom;
}

/* Limit 아이콘 (상담 사용량 조회) */
.nav-item[data-icon="limit"] .nav-item-icon::before {
  content: '';
  width: 12px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  position: absolute;
  top: 4px;
  left: 3px;
}

.nav-item[data-icon="limit"] .nav-item-icon::after {
  content: '';
  width: 6px;
  height: 1.5px;
  background: currentColor;
  position: absolute;
  bottom: 5px;
  left: 6px;
  box-shadow: 0 -2px 0;
}

/* Card 아이콘 (결제 관리) */
.nav-item[data-icon="card"] .nav-item-icon::before {
  content: '';
  width: 12px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  position: absolute;
  top: 4px;
  left: 3px;
}

.nav-item[data-icon="card"] .nav-item-icon::after {
  content: '';
  width: 8px;
  height: 1.5px;
  background: currentColor;
  position: absolute;
  bottom: 5px;
  left: 5px;
}

/* Database 아이콘 (DB 구축) */
.nav-item[data-icon="database"] .nav-item-icon::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 3px;
}

.nav-item[data-icon="database"] .nav-item-icon::after {
  content: '';
  width: 12px;
  height: 1.5px;
  background: currentColor;
  position: absolute;
  bottom: 2px;
  left: 3px;
  box-shadow: 0 -3px 0, 0 -6px 0;
}

/* Chart 아이콘 (API 사용량 조회) */
.nav-item[data-icon="chart"] .nav-item-icon::before {
  content: '';
  width: 10px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  position: absolute;
  top: 4px;
  left: 3px;
}

.nav-item[data-icon="chart"] .nav-item-icon::after {
  content: '';
  width: 2px;
  height: 6px;
  background: currentColor;
  position: absolute;
  bottom: 4px;
  left: 5px;
  box-shadow: 3px 0 0 0, 6px 0 0 0;
}

/* Download 아이콘 (내보내기) */
.nav-item[data-icon="download"] .nav-item-icon::before {
  content: '';
  width: 12px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-top: none;
  border-radius: 0 0 3px 3px;
  position: absolute;
  bottom: 2px;
  left: 3px;
}

.nav-item[data-icon="download"] .nav-item-icon::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid currentColor;
  box-shadow: 0 -6px 0 -4px currentColor;
}

/* 아이콘 색상 설정 */
.nav-item .nav-item-icon {
  color: var(--nav-text-muted);
}

.nav-item.active .nav-item-icon {
  color: #bfdbfe;
}

.nav-item:hover {
  background: #1f2937;
}

.nav-item.active {
  background: var(--nav-active);
}

.nav-item-label {
  white-space: nowrap;
}

.nav-footer {
  margin-top: 16px;
  padding: 0 16px;
}

.btn-logout {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 13px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-logout:hover {
  background: #0b1220;
}

.logout-icon {
  width: 20px;
  height: 16px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

.logout-icon::before {
  content: '[';
  font-size: 16px;
  line-height: 1;
  color: currentColor;
  font-weight: 400;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.logout-icon::after {
  content: '→';
  font-size: 13px;
  line-height: 1;
  color: currentColor;
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
}

/* 우측 메인 영역 */

.main-area {
  flex: 1;
  background: var(--main-bg);
  padding: 20px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  align-self: stretch;
  min-height: 0;
  height: 100%;
}

/* 메인 내용은 큰 패널 하나만 사용 (카드 남발 X) */

.main-panel {
  background: var(--panel-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
  min-height: 280px;
}

.panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.panel-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.panel-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.panel-body {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-sub);
}

.panel-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 8px;
}

.panel-box {
  font-size: 13px;
}

.panel-box h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.panel-list {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
}

.panel-list li {
  margin-bottom: 4px;
}

/* 업무 플로우 섹션 */
.workflow-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding: 40px 0;
}

.workflow-start-text {
  text-align: center;
  margin-bottom: 0;
}

.workflow-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.workflow-description {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.5;
}

.workflow-menu-reference {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3f4f6;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 4px 8px;
  margin: 0 2px;
}

.workflow-menu-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

/* User 아이콘 (workflow-description용) */
.workflow-menu-icon-user::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--text-sub);
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.workflow-menu-icon-user::after {
  content: '';
  width: 10px;
  height: 5px;
  border: 1.5px solid var(--text-sub);
  border-top: none;
  border-radius: 0 0 10px 10px;
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
}

/* Chat 아이콘 (workflow-description용) */
.workflow-menu-icon-chat::before {
  content: '';
  width: 12px;
  height: 9px;
  border: 1.5px solid var(--text-sub);
  border-radius: 3px;
  position: absolute;
  top: 2px;
  left: 3px;
}

.workflow-menu-icon-chat::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid var(--text-sub);
  position: absolute;
  bottom: 1px;
  left: 6px;
}

.workflow-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
}

.workflow-arrow svg {
  width: 40px;
  height: 40px;
}

.workflow-final-box {
  width: 100%;
  max-width: 600px;
  min-height: 120px;
  border: 3px solid #2563eb;
  border-radius: 16px;
  background: transparent;
  margin-top: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.workflow-box-item {
  text-align: center;
}

.workflow-box-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.workflow-box-description {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

@media (max-width: 960px) {
  .panel-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-wrap: nowrap;
    align-items: center;
  }
  .header-left {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
  }
  .header-center {
    order: 3;
    min-width: 0;
    overflow: hidden;
  }
  .header-right {
    order: 2;
    flex-shrink: 0;
  }
  .session-sub-line {
    font-size: 10px;
  }
  .session-main-line {
    font-size: 12px;
  }
  .header-title-top {
    font-size: 12px;
  }
  .header-title-main {
    font-size: 20px;
  }
  .header-title-sub {
    font-size: 11px;
  }
}

/* 플로팅 AI 대화창 스타일 */
.floating-chat-window {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 380px;
  height: 600px;
  background-color: #E0F7FA;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 10000;
  overflow: hidden;
}

.floating-chat-header {
  background: linear-gradient(135deg, #4DD0E1 0%, #26C6DA 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
}

.floating-chat-header:active {
  cursor: grabbing;
}

.floating-chat-header > div > div > div:first-child {
  color: #ffffff;
}

.floating-chat-header > div > div > div:last-child {
  color: rgba(255, 255, 255, 0.9);
}

.floating-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background-color: #E0F7FA;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-chat-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.floating-chat-message.ai-message {
  align-self: flex-start;
}

.floating-chat-message.user-message {
  align-self: flex-end;
}

.floating-message-content {
  background-color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.floating-chat-message.user-message .floating-message-content {
  background-color: #4682B4;
  color: #ffffff;
}

.floating-message-text {
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.floating-message-time {
  font-size: 11px;
  color: #868e96;
  margin-top: 4px;
  padding: 0 4px;
}

.floating-chat-message.user-message .floating-message-time {
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}

.floating-chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.floating-chat-input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  outline: none;
}

.floating-chat-input:focus {
  border-color: #4682B4;
}

.floating-chat-send-btn {
  width: 36px;
  height: 36px;
  border: none;
  background-color: #4682B4;
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.floating-chat-send-btn:hover {
  background-color: #5a9bd4;
}

.floating-chat-close-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  border-radius: 50%;
  flex-shrink: 0;
}

.floating-chat-close-btn i {
  font-size: 18px;
}

.floating-chat-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .floating-chat-window {
    width: calc(100% - 40px);
    height: calc(100vh - 100px);
    right: 20px;
    bottom: 20px;
  }
}

