body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

/* ✅ 채팅 컨테이너 */
#chat-container {
    width: 380px;
    max-width: 90%;
    background: white;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid #ddd;
}

/* ✅ 채팅 헤더 */
#chat-header {
    background-color: #f2f2f2;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

/* ✅ 채팅 메시지 박스 */
#chat-box {
    height: 500px;
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    background-color: #fafafa;
}

/* ✅ 메시지 컨테이너 */
.message-container {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

/* ✅ AI 메시지 (왼쪽 정렬) */
.bot-container {
    flex-direction: row;
}

/* ✅ 사용자 메시지 (오른쪽 정렬) */
.user-container {
    flex-direction: row-reverse;
}

/* ✅ 공통 말풍선 스타일 */
.message {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 15px;
    word-wrap: break-word;
    white-space: pre-wrap;
    font-size: 14px;
}

/* ✅ 사용자 메시지 스타일 */
.user-message {
    align-self: flex-end;
    background-color: #ffeb3b;
    color: black;
    border-bottom-right-radius: 0;
}

/* ✅ AI 메시지 스타일 */
.bot-message {
    align-self: flex-start;
    background-color: white;
    color: black;
    border-bottom-left-radius: 0;
    border: 1px solid #ddd;
}

/* ✅ 출처와 신고 버튼 컨테이너 */
.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    color: gray;
}

/* ✅ 출처 스타일 */
.message-source {
    font-size: 14px;
    color: gray;
}

/* ✅ 신고 버튼 스타일 */
.report-button {
    background-color: red;
    color: white;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.report-button:hover {
    background-color: #c9c9c8;
    transform: scale(1.05);
}

.report-button:active {
    background-color: #a71d2a;
    transform: scale(0.98);
}

/* ✅ 신고된 답변 경고 메시지 */
.report-warning {
    margin-top: 8px;
    padding: 6px 10px;
    background-color: #ffe5e5;
    color: #d8000c;
    border-radius: 4px;
    font-size: 14px;
}

/* ✅ 입력창 스타일 */
#input-container {
    display: flex;
    padding: 10px;
    background: #ffffff;
    border-top: 1px solid #ddd;
}

input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    outline: none;
    background: #f2f2f2;
}

/* ✅ 전송 버튼 */
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    margin-left: 5px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* ✅ 스크롤바 스타일 */
#chat-box::-webkit-scrollbar {
    width: 8px;
}
#chat-box::-webkit-scrollbar-track {
    background: transparent;
}
#chat-box::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease-in-out;
}
#chat-box::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* ✅ 챗봇 말풍선 안의 이미지 크기 조절 */
.bot-message img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: 10px;
    display: block;
    margin: 5px auto;
    cursor: pointer;
}

/* ✅ 이미지 모달 */
#imageModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

/* ✅ 모달 내부 이미지 */
#modalImage {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* ✅ 닫기 버튼 */
#closeModal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* ✅ 필터 버튼 */
.filter-container {
    text-align: center;
    margin-bottom: 15px;
}

.filter-button {
    padding: 8px 15px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin: 5px;
    background-color: #007bff;
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.filter-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.filter-button.active {
    background-color: #0056b3;
}
.report-success {
    background-color: #ffdddd; /* 연한 빨간색 배경 */
    border-left: 5px solid #ff4444; /* 왼쪽 빨간색 테두리 */
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    font-weight: bold;
    color: #d8000c;
}
