ul,ol{ padding-left: 30px;}
button {
    background: none;
    border: 0;
    cursor: pointer;
}
#chat-window { 
    height: 400px; 
    border: 1px solid #ccc; 
    overflow-y: scroll; 
    padding: 10px; 
    margin-bottom: 10px; 
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.ai { color: green; font-weight: bold; }

#chat-header {
    display: flex;
    justify-content: space-between; /* 양 끝으로 배치 */
    align-items: center;           /* 세로 중앙 정렬 */
    padding: 10px 20px;            /* 헤더 전체 여백 조정 */
    background: #fff;
    border-bottom: 1px solid #eee;
}

body {
    font-family: Arial, sans-serif;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: sans-serif;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: 100vh;
}
h5 {
    /* padding: 20px;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    color: #000;
    margin: 0 5px 0 0; */
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    color: #000;
}

button.reset-button {
    margin: 0;                     /* 불필요한 마진 제거 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: #555;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50px;
    padding: 8px 15px;             /* 크기에 맞게 살짝 조정 */
    cursor: pointer;
}
.chat-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.messages {
    /* max-height: 400px; */
    margin-bottom: 20px;
    flex: 1;            /* 남는 공간을 모두 차지함 */
    overflow-y: auto;   /* 내용이 길어지면 여기에만 스크롤 생성 */
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    height: 100vh;
    padding: 16px;
}
.message {
    border-radius: 20px;
    margin: 10px;
    max-width: 80%;
    width: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-all;
}
.user {
    background-color: #e1f5fe;
    /* text-align: right; */
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    
}
.assistant {
    background-color: #fff;
    align-self: flex-start;
    border-top-left-radius: 2px;
    margin-top: 0;
}
.input-container {
    display: flex;
    flex: 1;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    align-items: center;
    overflow: hidden;
}
/* .input-container input { */
.input-container input, .input-container textarea {
    width: calc(100% - 24px);
    font-size: 13px;
    border: none;
    outline: none;
    padding: 12px 12px 0;
    background: none;
    resize: none;
    overflow-y: auto;
}
/* .input-container input:disabled {
    background-color: #eee;
    border: 1px solid #ddd;
} */
.input-container button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 10px;
}
.input-container button:disabled {
    /* background-color: #aaa; */
    cursor: not-allowed;
}
.chat-form-t .input-container button img {
    width: 14px;
    display: block;
}
.chat-form {
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
}
.chat-form .chat-form-t {
    display: flex;
    align-items: center;
    padding: 4px 16px;
}
.chat-form-t .chat-form-menu {
    display: flex;
    margin: 0 8px 0 0;
}
.chat-form-t .chat-form-bt {
    display: flex;
    margin: 0 0 0 8px;
}
.chat-form-t .chat-form-menu button img {
    width: 16px;
    display: block;
}
.chat-form-t .chat-form-bt button img {
    height: 16px;
    display: block;
}
.chat-form-t .chat-form-bt button+button {
    margin: 0 0 0 4px;
}
.chat-form-t .chat-form-bt button {
    width: 34px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e5e5e5;
    border-radius: 50px;
}

/* 로딩 애니메이션 스타일 */
.typing {
    display: flex;
    align-self: flex-start;
    width: auto;
    padding: 10px;
    background: #f1f1f1;
    border-radius: 8px;
    margin-bottom: 10px;
    margin-left: 10px;
}
.dot {
    display: inline-block;
    width: 8px; height: 8px;
    margin-right: 3px;
    background: #888;
    border-radius: 50%;
    animation: wave 1.3s linear infinite;
}
.dot:nth-child(2) { animation-delay: -1.1s; }
.dot:nth-child(3) { animation-delay: -0.9s; }

@keyframes wave {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-7px); }
}

button.option-button {
    margin: 0 0 10px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: #555;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50px;
    padding: 10px 18px;
}

.message.assistant button {
    margin-top: 20px;
}

/* 페르소나 */
.persona {
    display: flex;
    align-items: center;
    /* padding: 0 0 8px; */
}

.persona .persona-img {
    background: linear-gradient(90deg, #D81E25 0%, #993682 33%, #614989 66%, #354D77 100%);
}

.persona .persona-img {
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    border-radius: 50px;
    margin-right: 5px;
}