.fixed-talk {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.btn-talk {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 14px;
    font-weight: bold;
    background-color: #6633FF;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 51, 255, 0.4);
}
.btn-talk:hover {
    background-color: #5529d4;
}

/* 모달이 오른쪽 하단에서 슬라이드 업되도록 */
.modal-dialog-slide {
    position: fixed;
    bottom: 0;
    right: 20px;
    margin: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    max-width: 400px; /* 넓이 확장 */
    width: 100%;
}




.modal.fade.show .modal-dialog-slide {
    transform: translateY(-4%);
}
#chatRoomDialog {
    transform: translateY(-3%);
}

.chat-modal-content {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    height: 500px;           /* 모달 전체 높이 고정 */
    display: flex;
    flex-direction: column;
}

/* 모달 본문이 남은 공간 채우게 */
.chat-modal-content .modal-body {
    flex-grow: 1;
    overflow: hidden; /* body 자체는 hidden */
    padding: 0;
}

/* 헤더 스타일 */
.chat-modal-content .modal-header {
    background-color: #6633FF;
    color: white;
    border-bottom: none;
    align-items: center;
    padding-top: 9px;
    padding-bottom: 9px;
}
.modal-title{
    font-size: 19px;
    font-weight: bold;
    cursor: default;
}
/* 리스트 부분 스크롤 가능 */
.chat-room-list {
    height: 100%;
    overflow-y: auto;
}

/* 리스트 아이템 스타일 */
#chatRoomList li {
    /*cursor: pointer;*/
    transition: background 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#chatRoomList li:hover {
    background: #f1f0ff;
}

#chatRoomList img {
    border: 2px solid #ddd;
    width: 50px;
    height: 50px;
    object-fit: cover;   /* 비율 유지 + 잘라내기 */
    border-radius: 50%;  /* 동그랗게 */
    margin: 10px 0 10px 12px;
    cursor: pointer;
}

#chatRoomList .fw-bold {
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
}

#chatRoomList .text-muted {
    font-size: 12px;
}

.room-top {
    margin-bottom: 7px;
}

.last-message {
    font-size: 14px;
}
.unread-count {
    font-size: 11px;
    padding: 4px;
}
.room-list-right {
    margin: 10px 12px 10px 0;   /* 프로필과의 간격 */
    display: flex;              /* 내부도 flex */
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;               /* 오른쪽이 남은 영역 차지 */
    cursor: pointer;
}
/* 크롬, 엣지, 사파리 */
.chat-room-list::-webkit-scrollbar {
    width: 8px;
}

.chat-room-list::-webkit-scrollbar-track {
    background: #f4f3ff; /* 연한 보라 배경 */
    border-radius: 10px;
}

.chat-room-list::-webkit-scrollbar-thumb {
    background: #6633FF; /* 테마 색상 */
    border-radius: 10px;
    border: 2px solid #f4f3ff; /* thumb와 track 사이 간격 */
}

.chat-room-list::-webkit-scrollbar-thumb:hover {
    background: #5529d4; /* hover 시 좀 더 진한 보라 */
}

/* 파이어폭스 */
.chat-room-list {
    scrollbar-width: thin;
    scrollbar-color: #6633FF #f4f3ff; /* thumb / track */
}
.modal-close-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(102,51,255,0.22);
    cursor: pointer;
    transition: transform 0.14s ease;
    transform-origin: center center; /* 기준점을 중앙으로 고정 */
    transform: translateZ(0) scale(1); /* GPU 합성 유도 */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: relative;
    vertical-align: middle; /* inline 요소의 baseline 움직임 방지 */
    outline: none;
}

/* 아이콘 크기 조정 */
.modal-close-btn .bi {
    font-size: 33px;
    line-height: 1;
}

/* 호버 / 활성화 효과 */
.modal-close-btn:hover {
    transform: translateZ(0) scale(1.08);
    /*background-color: #5529d4;*/
    /*transform: translateY(-2px);*/
    /*box-shadow: 0 10px 24px rgba(85,41,212,0.22);*/
}

/* 포커스용 접근성 스타일 (키보드 이용자용) */
.modal-close-btn:focus-visible {
    box-shadow: 0 0 0 4px rgba(102,51,255,0.18);
}
/* 모달 헤더 내 기존 버튼 위치나 스타일과 충돌할 경우 간단한 리셋 */
.modal-header .modal-close-btn {
    margin: 0;
}

.text-end {
    text-align: end;
}
.last-message-time {
    margin-bottom: 6px;
}


/* chat.css에 추가 */
.unread-badge {
    position: absolute;
    top: -6px;
    right: -2px;
    min-width: 31px;
    /*height: 22px;*/
    background: #ff2d55;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 45, 85, 0.18);
    z-index: 2;
    border: 2px solid #fff;
    /* 아래 두 줄 추가 또는 수정 */
    padding: 0;
    line-height: 22px;
}
.btn-talk {
    position: relative;
}

/*채팅방 내부 디자인*/
/* 채팅방 모달 */
.chat-room-modal-content {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-room-modal-content .modal-header {
    background-color: #6633FF;
    color: white;
    border-bottom: none;
    padding: 15px 20px;
    min-height: 70px;
    flex-shrink: 0;
    display: flex;
    justify-content: center; /* 가운데 정렬 */
    align-items: center;
    position: relative;
}
.chat-room-modal-content .modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}
.chat-participants-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-align: center;
}

/* 닫기 버튼을 절대 위치로 배치 */
.chat-room-modal-content .modal-header .modal-close-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.participants-images {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.participant-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
    margin-left: -10px;
}

.participant-img:first-child {
    margin-left: 0;
    z-index: 3;
}

.participant-img:nth-child(2) {
    z-index: 2;
}

.participant-img:nth-child(3) {
    z-index: 1;
}

.participants-names {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    min-height: 0;
    /*max-height: calc(600px - 150px); !* 헤더와 입력창 제외한 높이 *!*/
}

.message-item {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.message-item.my-message {
    justify-content: flex-end;
}

.message-item.other-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.message-item.my-message .message-content {
    flex-direction: row-reverse;
}

.message-profile-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

.message-text-area {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.message-item.my-message .message-text-area {
    align-items: flex-end;
}

.message-nickname {
    font-size: 12px;
    font-weight: bold;
    color: #6633FF;
    margin-bottom: 3px;
}

.message-item.my-message .message-nickname {
    color: #666;
}

.message-bubble {
    background-color: white;
    padding: 10px 12px;
    border-radius: 15px;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 14px;
    line-height: 1.4;
}

.message-item.my-message .message-bubble {
    background-color: #6633FF;
    color: white;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.chat-input-container {
    padding: 15px;
    background-color: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.chat-input {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    resize: none;
    max-height: 80px;
}

.chat-input:focus {
    border-color: #6633FF;
}

.chat-send-btn {
    background-color: #6633FF;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-send-btn:hover {
    background-color: #5529d4;
}

.chat-send-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 채팅 메시지 컨테이너 스크롤바 스타일 추가 */
.chat-messages-container::-webkit-scrollbar {
    width: 8px;
}

.chat-messages-container::-webkit-scrollbar-track {
    background: #f4f3ff; /* 연한 보라 배경 */
    border-radius: 10px;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background: #6633FF; /* 테마 색상 */
    border-radius: 10px;
    border: 2px solid #f4f3ff; /* thumb와 track 사이 간격 */
}

.chat-messages-container::-webkit-scrollbar-thumb:hover {
    background: #5529d4; /* hover 시 좀 더 진한 보라 */
}

/* 파이어폭스용 스크롤바 */
.chat-messages-container {
    scrollbar-width: thin;
    scrollbar-color: #6633FF #f4f3ff; /* thumb / track */
}

/* 날짜 구분선 스타일 */
.date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 15px 0;
    position: relative;
}

.date-separator::before {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
    margin-right: 15px;
}

.date-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
    margin-left: 15px;
}

.date-separator-text {
    background: #f8f9fa;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
}

/* 메시지 안읽음 뱃지 스타일 */
.message-bubble-container {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.message-item.my-message .message-bubble-container {
    flex-direction: row-reverse;
}

.message-unread-badge {
    background-color: #ff2d55;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    flex-shrink: 0;
    margin-bottom: 2px;
}
/*여기까지읽으셨습니다.*/
.read-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    position: relative;
}

.read-indicator-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b6b, transparent);
    border-radius: 1px;
}

.read-indicator-text {
    background: #fff;
    color: #ff6b6b;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    border: 2px solid #ff6b6b;
    position: absolute;
    white-space: nowrap;
}

/* 빈 채팅방 메시지 스타일 */
#emptyRoomMsg {
    padding: 30px 15px;
    border: none;
    background: linear-gradient(135deg, #f8f9ff 0%, #f1f0ff 100%);
    border-radius: 12px;
    margin: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

#emptyRoomMsg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    /*background: linear-gradient(90deg, #6633FF, #8b5cf6, #6633FF);*/
    border-radius: 12px 12px 0 0;
}

#emptyRoomMsg .empty-icon {
    font-size: 28px;
    color: #6633FF;
    margin-bottom: 10px;
    display: block;
    opacity: 0.8;
}

#emptyRoomMsg .empty-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    text-align: center;
}

#emptyRoomMsg .empty-subtitle {
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.4;
}


#chatRoomModal div.chat-input-container {
    z-index: 30; /* 새 메시지 알림보다 위에 */
}
/* 새 메시지 알림 모달 - 채팅방 내부용 (개선된 버전) */
.new-message-notification {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(102, 51, 255, 0.15), 0 -1px 3px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    margin: 0;
    cursor: pointer;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
    border-top: 3px solid #6633FF;
    border-left: 1px solid rgba(102, 51, 255, 0.1);
    border-right: 1px solid rgba(102, 51, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* 배경 그라데이션 효과 */
.new-message-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    transparent,
    rgba(102, 51, 255, 0.05),
    transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.new-message-notification:hover::before {
    left: 100%;
}

.new-message-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.new-message-notification:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f1f0ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 -6px 25px rgba(102, 51, 255, 0.2), 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.notification-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.notification-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6633FF;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102, 51, 255, 0.2);
}

.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-sender {
    color: #6633FF;
    font-weight: 700;
    margin-bottom: 3px;
    font-size: 14px;
    letter-spacing: -0.3px;
}

.notification-message {
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    max-width: 200px;
}

.notification-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.notification-icon {
    color: #6633FF;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.new-message-notification:hover .notification-icon {
    transform: translateY(-2px);
}

.notification-hint {
    font-size: 10px;
    color: #999;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

/* 펄스 애니메이션 효과 */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 -4px 20px rgba(102, 51, 255, 0.15), 0 -1px 3px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 -4px 25px rgba(102, 51, 255, 0.25), 0 -1px 5px rgba(0, 0, 0, 0.15);
    }
}

.new-message-notification.show {
    animation: pulseGlow 2s ease-in-out infinite;
}

.new-message-notification:hover {
    animation: none;
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .new-message-notification {
        padding: 12px 16px;
        border-radius: 12px 12px 0 0;
    }

    .notification-content {
        gap: 10px;
    }

    .notification-left {
        gap: 10px;
    }

    .notification-profile-img {
        width: 35px;
        height: 35px;
    }

    .notification-sender {
        font-size: 13px;
    }

    .notification-message {
        font-size: 12px;
        max-width: 150px;
    }

    .notification-icon {
        font-size: 16px;
    }

    .notification-hint {
        font-size: 9px;
    }
}

/* chat-input-container와 자연스럽게 연결 */
.chat-input-container {
    border-top: 1px solid #eee;
    position: relative;
    z-index: 30;
}


/* 모달 z-index 조정 */
#chatRoomModal {
    z-index: 1055;
}

/* 프로필 모달이 다른 모달들보다 위에 오도록 */
#profileImageModal {
    z-index: 1070 !important;
}

#profileImageModal .modal-backdrop {
    z-index: 1065 !important;
}

.unread-count-badge{
    color:white;
}




#profileImageModalImg {
    max-width: 70vw;   /* 화면 너비의 최대 70% */
    max-height: 70vh;  /* 화면 높이의 최대 70% */
    object-fit: contain; /* 비율 유지 + 잘리면 안됨 */
    margin: 0 auto;
}

/* 프로필 모달 스타일 */
/* 심플 프로필 모달 스타일 */
.simple-profile-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(102, 51, 255, 0.2);
    background: linear-gradient(135deg, #6633FF 0%, #8b5cf6 100%);
    max-width: min(90vw, 600px);  /* 최대 600px까지 허용 */
    max-height: min(90vh, 700px); /* 최대 700px까지 허용 */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-profile-body {
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.profile-image-overlay {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
    max-width: 100%;
    max-height: 100%;
}

.simple-profile-image {
    display: block;
    max-width: min(85vw, 550px);  /* 가로 최대값 증가 */
    max-height: min(80vh, 650px); /* 세로 최대값 증가 */
    min-width: 250px;   /* 최소 너비 설정 */
    min-height: 200px;  /* 최소 높이 설정 */
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.profile-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(102, 51, 255, 0.7), rgba(102, 51, 255, 0.95));
    padding: 40px 20px 20px 20px;
    color: white;
    text-align: center;
    border-radius: 0 0 15px 15px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.overlay-nickname {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.overlay-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    margin-bottom: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    max-height: 40px;
    overflow-y: auto;
    word-wrap: break-word;
}

.overlay-message:empty::before {
    /*content: "상태메시지가 없습니다";*/
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-size: 12px;
}

/* 상태메시지 스크롤바 (오버레이용) */
.overlay-message::-webkit-scrollbar {
    width: 3px;
}

.overlay-message::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.overlay-message::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.overlay-message::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 모달 배경 클릭 시 닫히도록 */
.simple-profile-modal .modal-body {
    cursor: pointer;
}

/* 모달 컨텐츠 투명 배경 */
.simple-profile-modal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* 오버플로우 방지 */
.simple-profile-modal {
    width: fit-content;
    height: fit-content;
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .simple-profile-modal {
        margin: 10px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 15px;
    }

    .simple-profile-image {
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 100px);
        min-width: 200px;
        min-height: 150px;
        border-radius: 12px;
    }

    .profile-overlay-info {
        padding: 25px 15px 15px 15px;
        border-radius: 0 0 12px 12px;
        min-height: 60px;
    }

    .overlay-nickname {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .overlay-message {
        font-size: 12px;
        max-height: 30px;
    }
}

/* 태블릿 대응 */
@media (max-width: 768px) {
    .simple-profile-modal {
        max-width: min(95vw, 500px);
        max-height: min(95vh, 600px);
    }

    .simple-profile-image {
        max-width: min(90vw, 450px);
        max-height: min(85vh, 550px);
        min-width: 220px;
        min-height: 170px;
    }

    .overlay-nickname {
        font-size: 20px;
    }

    .overlay-message {
        font-size: 13px;
    }
}

/* 아주 작은 이미지 대응 */
@media (min-width: 769px) {
    .simple-profile-image {
        min-width: 300px;
        min-height: 250px;
    }
}

.participant-img,
.message-profile-img {
    cursor : pointer;
}

/* 새 메시지 알림 모달 */
.new-message-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 9999;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(102, 51, 255, 0.2);
    border: 2px solid rgba(102, 51, 255, 0.1);
    padding: 16px 20px;
    min-width: 320px;
    max-width: 400px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    user-select: none;
}

.new-message-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.new-message-toast:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 51, 255, 0.25);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-profile-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #6633FF;
    flex-shrink: 0;
}

.toast-message-info {
    flex: 1;
    min-width: 0;
}

.toast-nickname {
    font-size: 14px;
    font-weight: 700;
    color: #6633FF;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.toast-message {
    font-size: 13px;
    color: #333;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.toast-icon {
    color: #6633FF;
    font-size: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* 메시지 흔들림 애니메이션 */
@keyframes messageShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.message-shake {
    animation: messageShake 0.6s ease-in-out;
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .new-message-toast {
        left: 10px;
        right: 10px;
        transform: translateY(-100px);
        min-width: auto;
        max-width: none;
    }

    .new-message-toast.show {
        transform: translateY(0);
    }

    .new-message-toast:hover {
        transform: translateY(-2px);
    }
}

