/* :root를 복사하여 사용하세요. */
:root {
    /* 말풍선 */
    --bubble-left-bg: rgb(241, 245, 249);
    --bubble-left-text: rgb(0, 0, 0);
    --bubble-right-bg: rgb(22, 22, 22);
    --bubble-right-text: rgb(255, 255, 255);
    /* 로딩 */
    --loading-border-color: #3cc1ff;
    /* 전송 버튼 */
    --btn-bg: #007bff;
    --btn-text: #ffffff;
    --btn-hover-bg: #0056b3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "MinSans", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100dvh;
}

p {
    margin-bottom: 0;
}

.chat-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.chat-footer {
    width: 100%;
    padding: 8px;
    background-color: rgb(249, 250, 252);
}
.chat-footer p{
    margin: 0;
    font-size: xx-small;
    color: rgb(132, 132, 132);
    text-align: center;
}

.chat-box {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.message {
    display: flex;
    margin: 10px 0;
}

.message.left {
    justify-content: flex-start;
}

.message.right {
    justify-content: flex-end;
}

.messageFAQ {
    display: flex;
    margin: 3px 0;
    cursor : pointer;
}

.messageFAQ.left {
    justify-content: flex-start;
}

.messageFAQ.right {
    justify-content: flex-end;
}

.logo {
    width: 30px;
    height: 30px;
}

.left .logo-box {
    align-content: flex-start;
    margin-top: -8px;
    margin-right: 5px;
}

.bubble {
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    word-break: break-word;
    max-width: 75%;
}

.left .bubble {
    box-sizing: border-box;
    overflow-wrap: anywhere;
    padding: 10px 15px;
    border-radius: 2px 10px 10px 10px;
    font-size: 13.5px;
    transition: width 200ms linear;
    background-color: var(--bubble-left-bg);
    color: var(--bubble-left-text);
}

.right .bubble {
    box-sizing: border-box;
    overflow-wrap: anywhere;
    padding: 10px 15px;
    border-radius: 10px 10px 2px;
    font-size: 13.5px;
    transition: width 200ms linear;
    white-space: pre-wrap;
    background-color: var(--bubble-right-bg);
    color: var(--bubble-right-text);
}

.input-container {
    display: flex;
    padding: 10px;
    background: #f0f0f0;
    border-top: 1px solid #ddd;
}

.input-container input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    outline: none;
    font-size: 16px;
}

.input-container button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 16px;
    background: var(--btn-bg);
    color: var(--btn-text);
}

.input-container button:hover {
    background: var(--btn-hover-bg);
}


.ai-loader {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 3em;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.ai-loader,
.ai-loader:before,
.ai-loader:after {
    animation: 1s infinite ease-in-out;
}
.ai-loader:before,
.ai-loader:after {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.ai-loader-black {
    background-color: #333;
}

.loading_pulse {
    width: 30px;
    height: 30px;
    margin: 5px auto;
    border: 5px solid var(--loading-border-color);
    border-radius: 50%;
    animation: load 1.5s ease-in-out infinite;
}
.dnone{
    opacity: 0;
}
.refer{
    color:#6b7280;
    padding: 0px 3px;
    background-color: white;
    font-size: .75rem;
}

.refer a {
    color: #6b7280;
    text-decoration: none;
}

.anchor{
    color:#6b7280;
    padding: 0px 3px;
    background-color: white;
    font-size: .75rem;
}

.anchor a {
    color: #6b7280;
    text-decoration: none;
}

@keyframes load {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}
