/* 챗봇 모달 전체 배경 */
.chatbot-modal {
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.25);
    display: flex; align-items: center; justify-content: center;
}

/* 챗봇 모달 박스 */
.chatbot-modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(75,108,183,0.18);
    width: 480px; /* PC에서 더 넓게 */
    max-width: 95vw;
    min-height: 480px; max-height: 80vh;
    display: flex; flex-direction: column;
    overflow: hidden;
    position: relative;
}

@media (max-width: 600px) {
    .chatbot-modal-content {
        width: 95vw;
        min-width: unset;
    }
}

/* 닫기 버튼 */
.chatbot-modal-close {
    position: absolute; right: 18px; top: 14px;
    font-size: 1.7rem; color: #4b6cb7; cursor: pointer;
    z-index: 2;
}

/* 헤더 */
.chatbot-modal-header {
    background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
    color: #fff;
    padding: 18px 24px 12px 24px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* 대화 영역 */
.chatbot-modal-body {
    flex: 1;
    padding: 18px 16px 12px 16px;
    overflow-y: auto;
    background: #f5f6fa;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 메시지 버블 */
.chatbot-msg {
    margin-bottom: 12px;
    display: flex;
}
.chatbot-msg.user { justify-content: flex-end; }
.chatbot-msg.bot { justify-content: flex-start; }

.chatbot-bubble {
    max-width: 80%;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(75,108,183,0.07);
    word-break: break-word;
    overflow-wrap: anywhere;
}
.chatbot-msg.user .chatbot-bubble {
    background: #4b6cb7;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chatbot-msg.bot .chatbot-bubble {
    background: #fff;
    color: #222;
    border-bottom-left-radius: 4px;
    border: 1px solid #e0e6f7;
}

/* 입력 영역 */
.chatbot-modal-footer {
    display: flex;
    padding: 12px 16px 16px 16px;
    background: #f5f6fa;
    border-top: 1px solid #e0e6f7;
}
.chatbot-input {
    flex: 1;
    border: 1px solid #cfd8dc;
    border-radius: 16px;
    padding: 8px 14px;
    font-size: 1rem;
    outline: none;
    margin-right: 8px;
    background: #fff;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.chatbot-send-btn {
    background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 8px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.chatbot-send-btn:hover {
    background: linear-gradient(90deg, #182848 0%, #4b6cb7 100%);
}
.chatbot-bubble a {
    color: #2a5db0;
    text-decoration: underline;
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* 버튼 스타일 추가 */
.chatbot-btn {
    background: none;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    padding: 4px 12px;
    cursor: pointer;
    transition: background 0.15s;
    box-shadow: none;
}
.chatbot-btn:hover, .chatbot-btn:focus {
    background: #f5f6fa;
}
