/* 기본 스타일 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}

/* 채팅 컨테이너 */
.chat-container {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 80vh;
    overflow: hidden;
}

/* 채팅 말풍선 */
.chat-bubble {
    max-width: 75%;
    padding: 12px 18px;
    border-radius: 20px;
    word-wrap: break-word;
    margin: 10px;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* 사용자 말풍선 */
.user-bubble {
    align-self: flex-end;
    background: #007bff;
    color: #fff;
    border-bottom-right-radius: 0;
}

/* 봇 말풍선 */
.bot-bubble {
    align-self: flex-start;
    background: #f1f1f1;
    color: #333;
    border-bottom-left-radius: 0;
}

/* 입력 영역 */
.input-area {
    display: flex;
    padding: 15px;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* 메시지 입력 필드 */
#messageInput {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#messageInput:focus {
    border-color: #007bff;
}

/* 보내기 버튼 */
#send-button {
    padding: 10px 25px;
    margin-left: 10px;
    border: none;
    border-radius: 25px;
    background: #007bff;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#send-button:hover {
    background: #0056b3;
}

#send-button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* 로딩 애니메이션 */
.loading {
    align-self: flex-start;
    background: #f1f1f1;
    color: #333;
    padding: 10px 15px;
    border-radius: 20px;
    font-style: italic;
    opacity: 0.8;
    border-bottom-left-radius: 0;
}

/* 인트로 이미지 */
.intro-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.intro-container img {
    width: 50%;
    min-width: 300px;
}
#loader {
    font-size: 25px;
    text-align: center;

}
