/* --- 컬러 및 기본 설정 (기존과 동일) --- */
:root {
    --bg-dark: #e8e3f3;
    --c-body-pink: #FFEBF0;
    --c-mint: #a7f3d0;
    --c-cream: #fffbeb;
    --c-lavender: #e9d5ff;
    --c-knob-blue: #bae6fd;
    --c-knob-yellow: #fde68a;
    --c-knob-pink: #fbcfe8;
    --c-heart-red: #ff90a4;
    --c-shadow-light: rgba(255, 255, 255, 0.6);
    --c-shadow-dark: rgba(0, 0, 0, 0.15);
    --c-text-grey: #71717a;
    --c-input-bg: #fff; /* 입력창 배경 */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body, html { height: 100%; font-family: 'Noto Sans JP', 'M PLUS Rounded 1c', sans-serif; background-color: #fffbfb; }

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--bg-dark);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

/* --- 채팅 화면 --- */
.chat-screen {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.message { display: flex; margin-bottom: 10px; animation: fadeIn 0.3s ease; }
.message.bot { justify-content: flex-start; }
.message.user { justify-content: flex-end; }
.bubble {
    padding: 12px 18px;
    border-radius: 20px;
    max-width: 70%;
    font-size: 18px;
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.message.bot .bubble { background-color: #ffc4d0; color: #333; border-bottom-left-radius: 5px; }
.message.user .bubble { background-color: var(--c-cream); color: #333; border-bottom-right-radius: 5px; }

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

/* --- 신디사이저 본체 --- */
.synth-container {
    background-color: var(--c-body-pink);
    padding: 25px 35px;
    display: flex;
    justify-content: center;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5); /* 입체감 추가 */
}

.synth-body {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Grid Layouts (기존 유지) */
.row-top { display: grid; grid-template-columns: 100px 37px 1fr 243px; gap: 20px; align-items: center; height: 80px; }
.row-middle-1 { display: grid; grid-template-columns: 85px 1fr; gap: 15px; }
.num-key-row { display: grid; grid-template-columns: repeat(13, 1fr) 1.5fr 2fr 2fr; gap: 8px; }
.row-middle-2 { display: grid; grid-template-columns: 135px 1fr 160px; gap: 15px; position: relative; }
.side-pad-left { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 8px; }
.main-keys-area { display: flex; flex-direction: column; gap: 15px; }
.circle-btn-row { display: flex; justify-content: space-between; padding: 0 10px; position: relative; bottom: 43px;}
.circle-group { display: flex; gap: 10px; }
.piano-key-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; height: 100px; }

/* ★ 4단: 하단 컨트롤 섹션 (수정됨) ★ */
.row-bottom-section {
    display: flex;
    gap: 15px;
    margin-top: -5px; /* 시각적 밸런스 조정 */
    align-items: center;
    width: 100%;
}

.nav-btn-group {
    display: grid;
    grid-template-columns: repeat(3, 40px);
    gap: 8px;
    width: 135px; /* 위쪽 side-pad-left와 너비 맞춤 */
}

/* ★ 입력창 스타일 */
.chat-input-wrapper {
    flex: 1; /* 남은 공간 모두 차지 */
    display: flex;
}

.synth-input-bar {
    width: 100%;
    height: 40px;
    background-color: var(--c-input-bg);
    border: 3px solid transparent;
    border-radius: 12px;
    padding: 0 20px;
    font-family: 'Noto Sans JP', 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    color: #555;
    outline: none;
    /* 안쪽 그림자로 움푹 파인 액정 느낌 */
    box-shadow: inset 2px 2px 5px var(--c-shadow-dark), 0 1px 0 #fff;
    transition: all 0.2s;
}

.synth-input-bar::placeholder { color: #ccc; }
.synth-input-bar:focus {
    background-color: #fff;
    border-color: var(--c-mint); /* 포커스 시 민트색 테두리 */
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.1), 0 0 10px rgba(167, 243, 208, 0.5);
}


/* --- 컴포넌트 디자인 (버튼, 노브 등 - 기존 유지) --- */
.speaker-grill { width: 100%; height: 100%; background-image: radial-gradient(var(--c-text-grey) 20%, transparent 20%); background-size: 8px 8px; border-radius: 50%; opacity: 0.3; }
.screen-display { background-color: #fff; border: 4px solid #333; border-radius: 10px; height: 100%; display: flex; justify-content: center; align-items: center; box-shadow: inset 2px 2px 5px var(--c-shadow-dark); background-image: repeating-linear-gradient(45deg, #e0f2fe 0px, #e0f2fe 10px, #fce7f3 10px, #fce7f3 20px); }
.screen-text { font-family: 'Noto Sans JP', 'Courier New', monospace; font-weight: bold; color: #555; text-align: center; font-size: 14px; background: rgba(255,255,255,0.8); padding: 5px 10px; border-radius: 5px;
  /* ★ [추가/수정] 내용물이 중앙에 오도록 설정 */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; /* 내용이 바뀌어도 박스 크기 유지 */
  min-height: 45px;
}

.knob { width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 5px 0 var(--c-shadow-dark), inset 0 2px 3px var(--c-shadow-light); cursor: pointer; transition: all 0.1s; position: relative; }
.knob:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--c-shadow-dark); }
.knob.blue { border-radius: 14px; background-color: var(--c-knob-blue); width: 140px; position: relative; right: 118px; }
.knob.blue-glitter { background: radial-gradient(circle at 30% 30%, #fff, var(--c-knob-blue)); }
.knob.yellow-glitter { background: radial-gradient(circle at 30% 30%, #fff, var(--c-knob-yellow)); }
.knob.pink-glitter { background: radial-gradient(circle at 30% 30%, #fff, var(--c-knob-pink)); }
.knob-section-right { display: flex; gap: 15px; }
.blue { background-color: #bae6fd;}
.btn { border: none; font-family: 'Noto Sans JP', 'M PLUS Rounded 1c', sans-serif; font-weight: bold; color: var(--c-text-grey); box-shadow: 0 4px 0 var(--c-shadow-dark), inset 0 1px 1px var(--c-shadow-light); transition: all 0.1s; display: flex; justify-content: center; align-items: center; font-size: 14px; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--c-shadow-dark); }
.square { border-radius: 8px; height: 40px; width: 100%; }
.pill { border-radius: 20px; height: 40px; width: 100%; }
.circle { border-radius: 50%; width: 35px; height: 35px; font-size: 10px;}
.piano { border-radius: 0 0 10px 10px; height: 107%; font-size: 12px; align-items: flex-end; padding-bottom: 10px; position: relative; bottom: 48px;}
.mint { background-color: var(--c-mint); }
.cream { background-color: var(--c-cream); }
.lavender { background-color: var(--c-lavender); }
#company-info-btn,
#company-info-view-btn { white-space: nowrap; font-size: 12px; padding: 0 12px; }
.heart-btn-area { display: flex; justify-content: center; align-items: flex-end; }
.heart-shape { width: 140px; height: 120px; background-color: var(--c-heart-red); color: white; font-size: 18px; font-weight: 800; border-radius: 30px 30px 50px 50px; box-shadow: 0 8px 0 rgba(255, 100, 150, 0.4), inset 0 5px 10px rgba(255,255,255,0.3); }
.heart-shape:active { transform: translateY(5px); box-shadow: 0 3px 0 rgba(255, 100, 150, 0.4); }


/* 1. 버튼 자체: 내용물을 세로(column)로 정렬 */
.column-btn {
    display: flex !important;
    flex-direction: column !important; /* 위에서 아래로 쌓기 */
    justify-content: flex-end !important; /* 내용물을 버튼 하단으로 내리기 */
    align-items: center !important;    /* 좌우 가운데 정렬 (아이콘 밀림 방지) */
    padding-bottom: 12px !important;   /* 하단 여백 */
    gap: 6px;                       /* 글자 뭉치와 하트 아이콘 사이 간격 */
}

/* 2. 텍스트(MBTI): 한 글자씩 강제 줄바꿈 */
.column-text {
    /* 글자를 세로로 돌리는 최신 CSS 속성 */
    writing-mode: vertical-rl; 
    text-orientation: upright; /* 알파벳도 눕지 않고 똑바로 서게 함 */
    
    /* 기존의 억지 줄바꿈 속성 제거 및 초기화 */
    width: auto;
    min-width: auto;
    word-break: normal;
    white-space: nowrap; /* 줄바꿈 없이 한 줄로 길게 */
    
    font-size: 11px;
    font-weight: 800; /* 조금 더 굵게 */
    letter-spacing: 1px; /* 글자 간격 조정 */
    line-height: 1;
    color: var(--c-text-grey);            /* 줄바꿈 허용 */
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 10px; /* 높이 고정 */
    padding: 0 5px;
}

/* 점 3개 스타일 */
.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #a7f3d0; /* var(--c-mint) 민트색 */
    border-radius: 50%;
    opacity: 0.6;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

/* 점들이 순서대로 뛰도록 딜레이 설정 */
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

/* 점프 애니메이션 정의 */
@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); } /* 작아짐 */
    40% { transform: scale(1); }           /* 커짐 */
}

/* --- Daily Modal Style --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content h3 {
    color: #555;
    font-size: 18px;
    margin-bottom: 5px;
}

.modal-content textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    resize: none;
    font-family: 'Noto Sans JP', 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.modal-content textarea:focus {
    border-color: var(--c-mint);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-buttons button {
    width: 120px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin-left: 5px;
}

/* 읽기 전용 박스 (어제 일기) 스타일 */
.readonly-box {
    width: 100%;
    min-height: 60px;
    max-height: 100px;
    padding: 12px;
    background-color: #f1f5f9; /* 회색 톤 */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #64748b;
    overflow-y: auto;
    white-space: pre-wrap; /* 줄바꿈 유지 */
}

/* 텍스트 영역 스타일 재정의 */
.modal-content textarea {
    height: 100px; /* 기본 높이 */
    padding: 12px;
    font-size: 15px;
}

/* daily_card Style */
/* 전체 카드 컨테이너 */
.daily-card {
    background-color: #ffffff;
    border-radius: 16px;
    /* width: 100%;  width를 100%로 주어 말풍선 크기에 맞춤 */
    max-width: 100%; /* 600px 제한 대신 부모 컨테이너에 맞춤 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 10px 0; /* 상하 여백 조정 */
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-align: left; /* 챗봇이 우측 정렬이라도 카드 내용은 좌측 정렬 */
}
  
/* --- 유저 섹션 스타일 --- */
.user-section {
  padding: 24px;
}
  
.card-title {
  margin: 0 0 20px 0;
  font-size: 1.1rem;
  color: #333;
  border-bottom: 2px solid #7960e7;
  padding-bottom: 12px;
}
  
.info-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.info-row:last-child {
  margin-bottom: 0;
}
  
.icon {
  font-size: 1.4rem;
  margin-right: 12px;
  min-width: 24px; /* 아이콘 정렬 유지 */
}
  
.text-group {
  display: flex;
  flex-direction: column;
}
  
.label {
  font-size: 0.75rem;
  color: #888;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase; /* 대문자로 깔끔하게 */
}

.value {
  font-size: 0.95rem;
  color: #222;
  margin: 0;
  line-height: 1.6;
}
  
/* --- 상사 코멘트 섹션 스타일 --- */
.boss-section {
  background-color: #f0f7ff; /* 연한 파란색 배경 */
  padding: 20px 24px;
  border-top: 1px solid #e1ecf4;
  position: relative;
}
  
/* 왼쪽에 강조 선을 넣어 '인용/피드백' 느낌 주기 */
.boss-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: #4a90e2; /* 진한 파란색 포인트 */
}
  
.boss-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
  
.boss-icon {
  font-size: 1.2rem;
  margin-right: 8px;
}
  
.boss-title {
  font-size: 0.85rem;
  font-weight: bold;
  color: #0056b3;
}
  
.boss-content {
  margin: 0;
  font-size: 0.95rem;
  color: #334e68;
  line-height: 1.6;
}


/* --- ai 코멘트 섹션 스타일 --- */
.ai-section {
  background-color: #f0f7ff; /* 연한 파란색 배경 */
  padding: 20px 24px;
  border-top: 1px solid #e1ecf4;
  position: relative;
}
  
/* 왼쪽에 강조 선을 넣어 '인용/피드백' 느낌 주기 */
.ai-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: #4a90e2; /* 진한 파란색 포인트 */
}
  
.ai-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
  
.ai-icon {
  font-size: 1.2rem;
  margin-right: 8px;
}
  
.ai-title {
  font-size: 0.85rem;
  font-weight: bold;
  color: #0056b3;
}
  
.ai-content {
  margin: 0;
  font-size: 0.95rem;
  color: #334e68;
  line-height: 1.6;
}


/* --- advice 섹션 스타일 --- */
.advice-section {
  background-color: #f0f7ff; /* 연한 파란색 배경 */
  padding: 20px 24px;
  border-top: 1px solid #e1ecf4;
  position: relative;
}
  
/* 왼쪽에 강조 선을 넣어 '인용/피드백' 느낌 주기 */
.advice-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: #4a90e2; /* 진한 파란색 포인트 */
}
  
.advice-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
  
.advice-icon {
  font-size: 1.2rem;
  margin-right: 8px;
}
  
.advice-title {
  font-size: 0.85rem;
  font-weight: bold;
  color: #0056b3;
}
  
.advice-content {
  margin: 0;
  font-size: 0.95rem;
  color: #334e68;
  line-height: 1.6;
}


/* keyboard toggle button */
.toggle-handle {
  width: 100%;
  height: 24px;
  background-color: transparent;
  color: #000000;
  text-align: center;
  line-height: 24px;
  cursor: pointer;
  font-size: 33px;
  transition: background 0.3s;
  z-index: 10;
  /* box-shadow: 0 -2px 5px rgba(0,0,0,0.1); */
  position: relative;
  top: 28px;
}

/* .toggle-handle:hover {
  background-color: #ff90a4;
} */

/* --- [추가] 컴팩트 모드 (채팅창 확장) --- */
/* 1. 채팅창 영역 확장 */
.app-container.compact-mode #component-chat {
  flex: 10 !important;
}

/* 2. 키보드 버튼들이 있는 위쪽 2줄 숨기기 */
/* .row-middle-1 과 .row-middle-2 클래스를 직접 지정해서 숨김 */
.app-container.compact-mode .row-middle-1,
.app-container.compact-mode .row-middle-2 {
  display: none !important;
}

.func-group-left {
  display: grid;
  gap: 15px;
}

/* 3. 맨 아래줄(.row-bottom-section)은 숨기지 않음! */
/* 대신 그 안에 있는 '왼쪽 버튼 그룹(.nav-btn-group)'만 숨김 */
.app-container.compact-mode .nav-btn-group {
  display: none !important;
}

/* 4. 입력창을 감싸는 줄(.row-bottom-section)이 화면에 꽉 차게 설정 */
.app-container.compact-mode .row-bottom-section {
  display: flex !important;
  width: 100% !important;
  padding: 10px; /* 여백이 필요하면 조정 */
  box-sizing: border-box;
}

/* 5. 입력창(.chat-input-wrapper) 강제 표시 및 확장 */
.app-container.compact-mode .chat-input-wrapper {
  display: block !important; /* 또는 flex */
  width: 100% !important;    /* 옆에 버튼들이 사라졌으니 넓게 씀 */
  visibility: visible !important;
}

/* --- [NEW] Daily Diary Accordion Style --- */

/* 모달 내부 스크롤 영역 */
.diary-scroll-area {
  padding: 10px 15px 20px 15px; /* 모바일 고려 패딩 */
  max-height: 60vh; /* 너무 길어지면 내부 스크롤 */
  overflow-y: auto;
  background-color: #f8f9fa; /* 연한 회색 배경 */
  border-radius: 0 0 20px 20px;
}

/* 스크롤바 디자인 (크롬/사파리) */
.diary-scroll-area::-webkit-scrollbar { width: 6px; }
.diary-scroll-area::-webkit-scrollbar-thumb { background-color: var(--c-lavender); border-radius: 10px; }
.diary-scroll-area::-webkit-scrollbar-track { background-color: transparent; }

/* 아코디언 카드 (아이템) */
.accordion-item {
  background-color: #fff;
  border-radius: 15px;
  margin-bottom: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  overflow: hidden;
}

/* 호버 및 활성 상태 */
.accordion-item:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.accordion-item.active { border-color: var(--c-mint); box-shadow: 0 4px 15px rgba(167, 243, 208, 0.4); }

/* 헤더 (날짜 표시줄) - 클릭 영역 */
.accordion-header {
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  user-select: none; /* 텍스트 선택 방지 */
}

.accordion-date {
  font-size: 16px;
  font-weight: 800;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
}

.accordion-date i { color: var(--c-lavender); font-size: 18px; }

/* 화살표 아이콘 회전 애니메이션 */
.accordion-icon {
  color: #ccc;
  transition: transform 0.3s ease;
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--c-mint);
}

/* 내용 영역 (슬라이드 애니메이션) */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out; /* 부드러운 슬라이드 */
  background-color: #fafafa;
  border-top: 1px solid #f0f0f0;
}

/* 내용이 펼쳐졌을 때 */
.accordion-item.active .accordion-body {
  max-height: 1000px; /* 충분히 큰 값 설정 */
  transition: max-height 0.5s ease-in;
}

/* 내용 내부 패딩 */
.accordion-content-box {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 라벨 스타일 */
.info-label {
  font-size: 12px;
  font-weight: bold;
  color: var(--c-text-grey);
  text-transform: uppercase;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 텍스트 박스 스타일 */
.info-text {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #eee;
}

/* AI 피드백 강조 스타일 */
.boss-feedback-highlight {
  background-color: #e0f2fe;
  border: 1px solid var(--c-knob-blue);
  padding: 12px;
  border-radius: 10px;
}
.boss-feedback-highlight .info-text {
  background: transparent;
  border: none;
  padding: 0;
  color: #4a90e2; 
}

/* AI 피드백 강조 스타일 */
.ai-feedback-highlight {
  background-color: #f0fdf4;
  border: 1px solid var(--c-mint);
  padding: 12px;
  border-radius: 10px;
}
.ai-feedback-highlight .info-text {
  background: transparent;
  border: none;
  padding: 0;
  color: #065f46;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
  font-size: 18px;
  color: #444;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-modal-btn {
  width: 32px;
  height: 32px;
  border: none;
  background-color: var(--c-lavender); 
  color: #fff;
  border-radius: 50%; 
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  box-shadow: 0 3px 0 rgba(0,0,0,0.1);
}

.close-modal-btn:hover {
  background-color: var(--c-heart-red); 
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 5px 10px rgba(255, 144, 164, 0.4);
}

.close-modal-btn:active {
  transform: scale(0.9);
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

.pointer {
  cursor:pointer
}

/* --- Boss & Auth Styles --- */

/* 비밀번호 입력창 강조 */
#boss-password-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* 쉐이크 애니메이션 (비밀번호 틀렸을 때) */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
.shake-animation {
  animation: shake 0.3s ease-in-out;
}

/* --- 채팅창에 표시될 Boss Feedback Card 스타일 --- */
.boss-card-container {
  background-color: #fff;
  border: 1px solid #e0f2fe;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  font-family: 'Noto Sans JP', 'M PLUS Rounded 1c', sans-serif;
  min-width: 280px;
}

/* 카드 상단: 날짜 및 주제 */
.bc-header {
  background-color: #f0f9ff;
  padding: 15px 20px;
  border-bottom: 1px solid #e0f2fe;
}
.bc-title {
  font-size: 14px;
  font-weight: 800;
  color: #0369a1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.bc-subject {
  font-size: 16px;
  color: #334155;
  font-weight: bold;
}

/* 카드 하단: 코멘트 */
.bc-body {
  padding: 20px;
  background-color: #fff;
  position: relative;
}
/* 왼쪽에 파란색 세로선 포인트 */
.bc-body::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background-color: #0ea5e9;
}

.bc-grade-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.bc-badge {
  background-color: #e0f2fe;
  color: #0284c7;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  margin-right: 10px;
}
.bc-comment {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  white-space: pre-wrap; /* 줄바꿈 반영 */
}