@charset "utf-8";

::-webkit-scrollbar {
  display: none;
}

/* 메인 섹션 */
.section-main {
  padding: 0 0.9375rem 5.46875em;
  box-sizing: border-box;
}

/* 친구 목록 */
.friend_wrap {
  padding: 1.40625rem 0 1.40625rem;
  box-sizing: border-box;
}

.friend_title {
  padding: 10px 0;
}

.friend_title p {
  font-size: 0.9rem;
  font-weight: 600;
}

.arrow_wrap {
  width: 10vw;
  height: 2vw;
}

.nav_title {
  font-size: 15px;
  letter-spacing: -0.1px;
  font-weight: 600;
  position: absolute;
  left: 50%;
  top: 50%;
  overflow: hidden;
  max-width: 52%;
  line-height: 100%;
  min-height: 22px;
  height: auto;
  white-space: nowrap;
  text-overflow: ellipsis;
  transform: translate(-50%, -50%);
}

/* 친구찾기 */
.friend_search {
  width: 100%;
  height: 2.5rem;
  border-bottom: 0.0625rem solid #d9d9d9;
  box-sizing: border-box;
}

.friend_search form {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0.46875rem 0 0.890625rem;
  box-sizing: border-box;
}

.friend_search form input {
  width: 100%;
  height: 100%;
  border: none;
  font-size: 0.859375rem;
  line-height: 0.3125rem;
  letter-spacing: -0.0215625rem;
  font-weight: 300;
  padding: 0 0.625rem 0 0;
  box-sizing: border-box;
}

.friend_search form button {
  width: 0.984375rem;
  height: 0.984375rem;
  background: url(../img/icon/search.png) center center;
  background-size: cover;
  cursor: pointer;
  border: none;
}

/* 프로필 이미지 */
.profile_img {
  min-width: 3.671875rem;
  min-height: 3.671875rem;
}

.profile {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-right: 10px;
}

.friend_list .profile {
  width: 100%;
  padding: 0.34375rem 0;
  cursor: pointer;
}

.profile_wrap {
  display: flex;
  width: 100%;
  word-wrap: break-word;
  flex-direction: row;
  align-items: center;
}

/* 메인 내 프로필 */
.my-profile-section {
  cursor: pointer;
  padding: 10px 0;
}

.main-my-profile {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.myprofile_img {
  width: 3.671875rem;
  height: 3.671875rem;
  border-radius: 50%;
  background: #ccc;
  overflow: hidden;
  margin-right: 20px;
}

.myprofile_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 탭 버튼 */
.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border-radius: 5px;
  transition: all 0.3s;
}

.tab-btn.active {
  background: #0850a3;
  color: #fff;
}

/* 친구 리스트 아이템 */
.friend-li {
  cursor: pointer;
  transition: background-color 0.2s;
}

.friend-li:hover {
  background-color: #f5f5f5;
}

/* 유저프로필 */
.section-myProfile,
.section-userProfile {
  pointer-events: auto;
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  position: fixed;
  top: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
}

.section-myProfile .content,
.section-userProfile .content {
  position: absolute;
  box-sizing: border-box;
  background: #0390d5;
  border-radius: 22px 22px 0px 0px;
  width: 100%;
  height: fit-content;
  min-height: 310px;
  padding: 0 15px;
  bottom: 0;
  z-index: 9999;
}

@keyframes slideInToTop {
  from {
    bottom: -100%;
  }
  to {
    bottom: 0;
  }
}

.section-myProfile[slideToTop="true"] .content,
.section-userProfile[slideToTop="true"] .content {
  animation: slideInToTop 0.3s ease-out;
}

/* 컨텐츠 영역 */
.content {
  width: 100%;
  height: 325px;
}

/* 사용자 프로필 */
.userInfo {
  box-sizing: border-box;
  padding: 60px 0 22.5px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.userInfo .user_img {
  width: 112px;
  height: 112px;
  background: #fff;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.userInfo .user_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.userInfo .user_name {
  margin-top: 17.5px;
  width: 90%;
}

.userInfo .user_name em {
  font-size: 16.5px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  display: block;
}

.line2 {
  display: block;
  width: 100%;
  height: 1px;
  background: #fff;
}

.userProfile-modal-close button {
  width: 15px;
  height: 20px;
  background-image: url(../img/icon/colse-white.png);
  background-size: 100%;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: 0px 0px;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 20px;
  left: 15px;
}

.profile-favoritebtn {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 20px;
  right: 15px;
  background: none;
  background: url(../img/profile_icon/favorite-off.svg) center center no-repeat;
  background-size: 100%;
  border: none;
  cursor: pointer;
}

/* 채팅,전화걸기 아이콘 */
.icon_wrap {
  margin-top: 16.5px;
  padding-bottom: 30px;
}

.icon_wrap ul {
  display: flex;
  justify-content: center;
}

.icon_wrap ul li {
  width: 100%;
  height: 75px;
}

.icon_wrap ul li .icon_box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: none;
  gap: 9px;
  border: none;
}

.icon_wrap ul li .icon_box .icon {
  width: 27px;
  height: 24.25px;
  background: url(../img/profile_icon/message.png) center center;
  background-size: cover;
}

.icon_wrap ul li .icon_box em {
  font-family: "Noto Sans KR";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 18px;
  text-align: center;
  letter-spacing: -0.078px;
  color: #ffffff;
}

/* 채팅목록 */
.section-chattinglist-li {
  cursor: pointer;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f4f4f4;
}

.section-chattinglist-li:hover {
  background-color: #f9f9f9;
}

.section-chattinglist-li .time {
  min-width: 20%;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.section-chattinglist-li .time p {
  font-size: 11px;
  color: #b8b8b8;
}

.message-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f01947;
  border-radius: 100px;
  color: white;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-top: 5px;
  font-size: 12px;
  font-weight: bold;
  box-sizing: border-box;
}

.message-count span,
.message-count p {
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* 푸터 채팅 아이콘 배지 */
.footer-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #f01947;
  color: white;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-sizing: border-box;
}

/* 채팅창 */
.section-chatting {
  width: 100%;
  height: calc(100vh - 3.515625rem - 3.75rem);
  box-sizing: border-box;
  padding: 0.5rem 0;
  overflow-y: scroll;
  background-color: #a5bdd3;
}

.section-chatting.green {
  background: #cde9f7;
}

.section-chatting ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 1rem;
  box-sizing: border-box;
}

.section-chatting ul li {
  box-sizing: border-box;
  margin: 7px 0.625rem;
}

.user {
  display: flex;
}

.user .user_img {
  width: 2.421875rem;
  height: 2.421875rem;
  border-radius: 50%;
  overflow: hidden;
  background: #ccc;
  flex-shrink: 0;
}

.user .user_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 유저 메세지 */
.message_wrap {
  position: relative;
}

.message_wrap .message {
  word-break: break-all;
  width: fit-content;
  max-width: 60vw;
  margin: 0 0 0 0.8rem;
  padding: 0.578125rem;
  box-sizing: border-box;
  background: #fff;
  font-size: 0.85625rem;
  line-height: 1.3;
  letter-spacing: -0.015625rem;
  font-weight: 400;
  border-radius: 0.703125rem;
  position: relative;
}

.message_wrap .message::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9375rem;
  width: 0;
  height: 0;
  border: 0.75rem solid transparent;
  border-right-color: #fff;
  border-left: 0;
  border-top: 0;
  margin-top: -0.375rem;
  margin-left: -0.625rem;
}

.message_wrap .user_name {
  margin: 0 0 0 0.5rem;
  max-width: 13.28125rem;
  word-wrap: break-word;
}

.message_wrap .user_name em {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 0.828125rem;
  padding-bottom: 2px;
  letter-spacing: -0.015625rem;
}

/* 메세지 생성 시간 */
.time_wrap {
  width: 3.125rem;
  position: absolute;
  bottom: 0;
  left: 100%;
  margin-left: 0.46875rem;
  font-size: 0.5625rem;
  line-height: 0.828125rem;
  letter-spacing: -0.015625rem;
}

.creTime {
  white-space: nowrap;
  color: #666;
}

/* 나의 메세지 */
.my_user {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  padding-right: 0.5rem;
  box-sizing: border-box;
}

.my_user .message_wrap .message {
  background: #ffd656;
  margin: 0;
}

.my_user .message_wrap .message::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 0.9375rem;
  width: 0;
  height: 0;
  border: 0.75rem solid transparent;
  border-left-color: #ffd656;
  border-right: 0;
  border-top: 0;
  margin-top: -0.375rem;
  margin-left: -0.125rem;
}

.my_user .message_wrap {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 2px;
}

.my_user .time_wrap {
  position: static;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 2px;
  margin-left: 0;
  text-align: right;
}

/* 읽지 않은 사람 수 (노란색 배지) */
.unread-count {
  color: #E5B800;
  font-size: 9px;
  font-weight: bold;
  line-height: 1;
}

.my_user .time_wrap .creTime {
  font-size: 10px;
  color: #888;
  line-height: 1;
}

/* 상대방 메시지의 읽지 않은 수 */
.user .time_wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.user .time_wrap .unread-count {
  color: #E5B800;
  font-size: 9px;
  font-weight: bold;
}

/* 메시지 내 링크 */
.msg-link {
  color: #0066cc;
  text-decoration: underline;
  word-break: break-all;
}

.msg-link:hover {
  color: #004499;
}

/* 메시지 wrapper (미리보기를 아래에 표시하기 위함) */
.my_user_wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
}

.user_wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* URL 미리보기 */
.url-preview-container {
  width: 100%;
  max-width: 250px;
  margin-top: 5px;
}

.my_user_wrapper .url-preview-container {
  margin-right: 0.5rem;
}

.user_wrapper .url-preview-container {
  margin-left: calc(2.421875rem + 0.8rem);
}

.url-preview {
  margin-top: 5px;
  max-width: 250px;
}

.url-preview-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.url-preview-link:hover {
  background: #ebebeb;
}

.url-preview-content {
  display: flex;
  flex-direction: column;
}

.url-preview-image {
  width: 100%;
  max-height: 120px;
  overflow: hidden;
}

.url-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.url-preview-text {
  padding: 8px 10px;
}

.url-preview-site {
  font-size: 10px;
  color: #888;
  margin-bottom: 2px;
}

.url-preview-title {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.url-preview-desc {
  font-size: 11px;
  color: #666;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.url-preview-loading {
  padding: 10px;
  font-size: 11px;
  color: #888;
  text-align: center;
}

/* 스켈레톤 로딩 UI */
.url-preview-skeleton {
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.skeleton-image {
  width: 100%;
  height: 80px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 4px;
  width: 100%;
}

.skeleton-line.short {
  width: 40%;
  height: 10px;
}

.skeleton-line.medium {
  width: 70%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 미리보기 등장 애니메이션 */
.url-preview {
  animation: fadeIn 0.2s ease-out;
}

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

/* 채팅 input */
.chatting_input_wrap {
  width: 100%;
  height: 3.75rem;
  background: #fff;
  padding: 0.390625rem;
  box-sizing: border-box;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
}

.chatting_input_wrap form {
  height: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  position: relative;
}

.chatting_input_plusicon {
  min-width: 2.1875rem;
  min-height: 2.1875rem;
  font-size: 1.6rem;
  text-align: center;
  line-height: 2rem;
  box-sizing: border-box;
  cursor: pointer;
}

.chatting_input_wrap form input {
  width: 100%;
  height: 2.1875rem;
  border: none;
  background: #f5f5f5;
  padding: 0 50px 0 10px;
  box-sizing: border-box;
  font-size: 15px;
  color: #000;
  letter-spacing: -0.03125rem;
  font-weight: 300;
  border-radius: 5px;
}

.chatting_input_wrap form input:focus {
  outline: none;
}

.inputBtn {
  width: 28px;
  height: 27px;
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.inputBtn img {
  width: 100%;
  height: 100%;
}

/* 플러스 메뉴 */
.plus_nav {
  display: none;
}

.chatting_input_wrap.plus {
  bottom: 176.9px;
}

.chatting_input_wrap.plus .plus_nav {
  width: 100%;
  display: block;
  background: #fff;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1001;
  border-top: 1px solid #d0d0d0;
  box-sizing: border-box;
  padding: 20px;
}

.plus_nav ul {
  display: grid;
  grid-template-columns: repeat(4, 48px);
  justify-content: space-between;
  grid-column-gap: 20.5px;
  grid-row-gap: 28px;
}

.plus_nav ul li {
  width: 48px;
  height: 48px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.plus_nav ul li .text {
  position: absolute;
  bottom: -20px;
  color: #454545;
  font-size: 12px;
  font-family: "Noto Sans KR";
  line-height: 18px;
}

.plus_nav ul li:nth-child(1) {
  background: #f6cdc5;
}
.plus_nav ul li:nth-child(2) {
  background: #8ec3c6;
}
.plus_nav ul li:nth-child(3) {
  background: #f18da4;
}
.plus_nav ul li:nth-child(4) {
  background: #f0bf6a;
}
.plus_nav ul li:nth-child(5) {
  background: #b8e08d;
}
.plus_nav ul li:nth-child(6) {
  background: #a5bdd3;
}

.plus_nav ul li:nth-child(1) .icon {
  width: 29.5px;
  height: 27px;
  background: url(../img/chatting_plus/1.png) center center;
  background-size: cover;
}
.plus_nav ul li:nth-child(2) .icon {
  width: 26.5px;
  height: 21.5px;
  background: url(../img/chatting_plus/2.png) center center;
  background-size: cover;
}
.plus_nav ul li:nth-child(3) .icon {
  width: 23.5px;
  height: 26px;
  background: url(../img/chatting_plus/3.png) center center;
  background-size: cover;
}
.plus_nav ul li:nth-child(4) .icon {
  width: 20.5px;
  height: 27px;
  background: url(../img/chatting_plus/4.png) center center;
  background-size: cover;
}
.plus_nav ul li:nth-child(5) .icon {
  width: 24px;
  height: 25.5px;
  background: url(../img/chatting_plus/5.png) center center;
  background-size: cover;
}
.plus_nav ul li:nth-child(6) .icon {
  width: 18.75px;
  height: 26.5px;
  background: url(../img/chatting_plus/6.png) center center;
  background-size: cover;
}

/* 설정 화면 */
.section-tsetting {
  font-size: 0.9375rem;
  letter-spacing: -0.125rem;
  padding: 0 0.9375rem 5.46875em;
}

.friend-managementwarp {
  display: flex;
  align-items: center;
  height: 60px;
  border-bottom: 1px solid #f4f4f4;
}

.friend-managementwarp > span {
  font-weight: 500;
  font-size: 16px;
  line-height: 18px;
  letter-spacing: 0.6px;
  color: #454545;
}

.block-friendwarp {
  margin: 11px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.block-friendwarp > span {
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  letter-spacing: -0.8px;
  color: #454545;
  margin: 11px 0;
}

.logout {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  margin-top: 20px;
}

.logout span {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  line-height: 18px;
  letter-spacing: 0.6px;
  color: #e43737;
}

/* 채팅방 생성 모달 */
.section-create-chatting-room {
  pointer-events: auto;
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  position: fixed;
  top: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.2);
}

.section-create-chatting-room .content {
  position: absolute;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 22px 22px 0px 0px;
  width: 100%;
  height: calc(100% - 4.115625rem);
  padding: 1.40625rem 15px;
  bottom: 0;
  z-index: 9999;
}

.section-create-chatting-room .content .create-chatting-room-modal-close {
  padding: 4px 10px;
}

.section-create-chatting-room .content .create-chatting-room-modal-close button {
  background-image: url(../img/icon/close-black.svg);
  background-color: transparent;
  background-repeat: no-repeat;
  background-position-x: 0px;
  background-position-y: 0px;
  border: none;
  cursor: pointer;
  padding: 20px;
}

.section-create-chatting-room .content .friend_wrap {
  height: 100%;
  padding: 0;
  padding-bottom: 1.40625rem;
}

.section-create-chatting-room .content .friend_list {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 10px;
}

.section-create-chatting-room .content .friend_list .title {
  width: 100%;
  height: fit-content;
  padding: 2vh 6px;
  font-family: "Noto Sans KR";
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.6px;
  color: #454545;
  box-sizing: border-box;
}

.section-create-chatting-room .content .friend_list .friend_search_btn {
  box-sizing: border-box;
  width: 90%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0px 7px;
  background: #ffffff;
  border: 1px solid #0850a3;
  border-radius: 50px;
  font-family: "Noto Sans KR";
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  line-height: 21px;
  text-align: center;
  letter-spacing: -0.32px;
  color: #0850a3;
  margin-top: 0.5rem;
  margin-bottom: 1.40625rem;
  cursor: pointer;
}

.section-create-chatting-room .content > .friend_wrap > .friend_list > form {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.section-create-chatting-room .content ul {
  width: 100%;
  height: 100%;
  overflow: scroll;
}

.section-create-chatting-room .content ul li .profile {
  width: inherit;
  margin-right: 0;
  padding: 10px 0;
  border-bottom: 1px solid #f4f4f4;
}

.section-create-chatting-room .content ul li .profile .btn_wrap {
  padding-right: 18px;
  align-items: center;
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}

.section-create-chatting-room .content ul li input[type="checkbox"] {
  position: inherit;
  display: none;
}

.section-create-chatting-room .content ul li input[type="checkbox"] + label {
  display: inline-block;
  width: 24px;
  height: 24px;
  position: relative;
  border: none;
  cursor: pointer;
  background: url(../img/check_off.svg);
  background-position: center;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

.section-create-chatting-room .content ul li input[type="checkbox"]:checked + label {
  background: url(../img/check_on.svg);
  background-position: center;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

/* 파일/이미지 메시지 스타일 */
.file-message .message.file-type {
  padding: 0;
  background: transparent;
  max-width: 250px;
}

.file-message .message.file-type::before {
  display: none;
}

/* 파일 업로드 진행 상태 */
.file-upload-progress {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  min-width: 180px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.file-upload-progress .file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.file-upload-progress .file-icon {
  font-size: 20px;
}

.file-upload-progress .file-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.file-upload-progress .file-size {
  font-size: 11px;
  color: #888;
}

.file-upload-progress .progress-bar {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.file-upload-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0850a3, #0390d5);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.file-upload-progress .progress-text {
  font-size: 11px;
  color: #666;
  text-align: center;
  display: block;
}

/* 이미지 메시지 */
.image-message {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.image-message a {
  display: block;
}

.image-message .chat-image {
  max-width: 280px;
  max-height: 350px;
  min-width: 120px;
  min-height: 80px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  background: #f0f0f0;
  cursor: pointer;
  transition: transform 0.2s;
}

.image-message .chat-image:hover {
  transform: scale(1.02);
}

/* 동영상 메시지 */
.video-message {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  max-width: 280px;
  background: #000;
}

.video-message video {
  max-width: 280px;
  max-height: 350px;
  min-width: 150px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
  background: #000;
}

.video-message video::-webkit-media-controls {
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

/* 동영상 썸네일 (재생 전) */
.video-thumbnail-wrapper {
  position: relative;
  cursor: pointer;
  max-width: 280px;
}

.video-thumbnail-wrapper .video-thumbnail {
  max-width: 280px;
  max-height: 350px;
  min-width: 150px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  background: #000;
}

.video-thumbnail-wrapper .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.video-thumbnail-wrapper:hover .play-button {
  background: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-thumbnail-wrapper .play-button::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 22px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 5px;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

/* 파일 메시지 */
.file-message-content {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.file-download-link {
  display: flex;
  align-items: center;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  gap: 10px;
  transition: background 0.2s;
}

.file-download-link:hover {
  background: #f5f5f5;
}

.file-download-link .file-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.file-download-link .file-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.file-download-link .file-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-download-link .file-size {
  font-size: 11px;
  color: #888;
}

.file-download-link .download-icon {
  font-size: 18px;
  color: #0850a3;
  flex-shrink: 0;
}

/* 파일 업로드 에러 */
.file-error {
  background: #fff5f5;
  border: 1px solid #ffcdd2;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-error .error-icon {
  font-size: 18px;
}

.file-error .error-text {
  font-size: 12px;
  color: #c62828;
}

/* 내 메시지의 파일 스타일 조정 */
.my_user .file-upload-progress,
.my_user .file-message-content {
  background: #ffd656;
}

.my_user .file-upload-progress .progress-bar {
  background: rgba(0, 0, 0, 0.1);
}

.my_user .file-download-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* 이미지 로딩 상태 */
.image-message .chat-image.loading {
  min-width: 100px;
  min-height: 100px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

/* 파일 메시지 시간 및 읽음 표시 위치 조정 */
.file-message .message_wrap .time_wrap {
  position: static;
  margin-top: 4px;
}

.file-message .my_user .message_wrap {
  align-items: flex-end;
}

.file-message .my_user .time_wrap {
  margin-right: 0;
}

/* 유틸리티 클래스 */
.dis-none {
  display: none !important;
}
