@charset "utf-8";

/*-------------------------------------------------------------------
	EXO.TEN
-------------------------------------------------------------------*/
#sidebar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 30rem;
    height: 100%;
    background: #160b2e;
    flex-direction: column;
}
#sidebar .util {
    display: block;
    position: relative;
    z-index: 1;
    height: 6rem;
    margin-bottom: 3rem;
    padding: 1rem;
    flex-shrink: 0;
}
#sidebar .util .btnUtil {
    display: block;
    position: absolute;
    top: 1rem;
    width: 4rem;
    height: 4rem;
    border-radius: 0.6rem;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
}
#sidebar .util .btnUtil[data-s='flip'] {
    right: calc(100% - 5rem);
    background-image: url(../images/i_flip.svg);
    background-size: 2.61rem;
}
#sidebar .util .btnUtil[data-s='chat'] {
    right: 1rem;
    background-image: url(../images/i_chat.svg);
    background-size: 2.3rem;
}
#sidebar h1 {
    display: flex;
    justify-content: center;
    width: 100%;
}
#sidebar h1 img {
    width: 60%;
}
/* 채팅목록 */
/* h1 {
    font-size: 3.7rem;
    padding: 0 0 0 2rem;
    letter-spacing: -0.2rem;
    background: linear-gradient(90deg, #01ddff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
} */
.sidebar_chatlist {
    padding: 0 0 0 1rem;
}
.sidebar_chatlist {
    display: flex;
    overflow: hidden;
    flex-grow: 1;
    flex-direction: column;
}
.sidebar_chatlist .sidebar_title {
    display: block;
    font-weight: 500;
    font-size: 2.3rem;
    color: #fff;
    flex-shrink: 0;
    padding: 1rem 0;
}
.sidebar_chatlist .date_title {
    color: #a9a9ae;
    font-size: 1.6rem;
    font-weight: 400;
    margin: 0 0 0.3rem 0;
}
.sidebar_chatlist .warp_chat {
    padding: 0 0 3.5rem 0;
}
.sidebar_chatlist .chatList li {
    padding: 0.5rem;
    margin: 0 0.5rem 0.2rem 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar_chatlist .chatList li span {
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
    display: inline-block;
    width: calc(100% - 3rem);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.sidebar_chatlist .chatList li.active,
.sidebar_chatlist .chatList li:hover {
    background: #414570;
    border-radius: 0.5rem;
}

.sidebar_chatlist .chatList button.btn_del {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background: url(../images/i_del.svg) center no-repeat;
    background-size: 0.9rem;
}

.sidebar_chatlist .chatList button.btn_edit {
    display: inline-block;
    width: 2.2rem;
    height: 2.2rem;
    background: url(../images/i_edit_icon.svg) center no-repeat;
    background-size: 1.1rem;
}

.sidebar_chatlist .chatList button.btn_del:hover,
.sidebar_chatlist .chatList button.btn_edit:hover {
    background-color: #160b2e;
    border-radius: 5rem;
}

/* 추가 */
.sidebar.open {
    transform: translateX(0);
}

#content {
    transition: padding-left 0.3s ease;
    margin-left: 0;
}
.content {
    transition: padding-left 0.3s ease;
    margin-left: 0;
}

/* 데스크탑일 때만 콘텐츠가 밀리도록 */
@media (min-width: 1025px) {
    #content.shifted {
        padding-left: 290px;
    }
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    height: 100vh;
    background-color: #160b2e;
    color: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}
.sidebar.open {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.open-sidebar-btn {
    font-size: 1.2rem;
    cursor: pointer;
}

/* 하단 */
.sidebar_footer {
    padding: 0 2rem 3rem;
}
.sidebar_footer .clear-btn {
    margin-top: 10px;
    background: #37354c;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1.6rem;
    cursor: pointer;
    width: 100%;
    margin: 0 0 3rem 0;
}
.sidebar_footer .foot_info {
    text-align: center;
    color: #ceced1;
    font-size: 1.2rem;
}

.sidebar_chatlist {
    overflow-y: auto;
}
.sidebar_chatlist .sidebar_title,
.wrap_all_chat .warp_chat .date_title {
    opacity: 0.8;
}
.wrap_all_chat {
    overflow-x: hidden;
}

/* 대화목록 : 스크롤바 */
.sidebar_chatlist ::-webkit-scrollbar {
    width: 1rem;
}
.sidebar_chatlist ::-webkit-scrollbar-track {
    background: #263856;
    border-radius: 1rem;
}
.sidebar_chatlist ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6567c2, #3d80e3);
    border-radius: 1rem;
}
.sidebar_chatlist ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3d80e3, #8dd1fa);
    cursor: pointer;
}

/*-------------------------------------------------------------------
	@interaction
-------------------------------------------------------------------*/
#sidebar {
    transition: transform 0.4s;
}

#sidebar .util .btnUtil {
    transition: background 0.3s;
}
#sidebar .util .btnUtil:focus-visible,
#sidebar .util .btnUtil:hover {
    background-color: rgb(245, 247, 250, 0.1);
}

@media screen and (min-width: 1025px) {
    [data-flip-header='Y'] #sidebar {
        transform: translateX(calc(-100% + 6rem));
    }
    [data-flip-header='Y'] #sidebar .util .btnUtil[data-s='flip'] {
        right: 1rem;
    }
    [data-flip-header='Y'] #sidebar .util .btnUtil[data-s='chat'] {
        top: 5rem;
    }

    #sidebar .listArea {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.4s, visibility 0s 0s;
    }
    [data-flip-header='Y'] #sidebar .listArea {
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.4s, visibility 0s 0.4s;
    }

    #sidebar .foot .notice {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.4s, visibility 0s 0s;
    }
    [data-flip-header='Y'] #sidebar .foot .notice {
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.4s, visibility 0s 0.4s;
    }
}

/*-------------------------------------------------------------------
	분류이름 : 콘텐츠 영역
	분류그룹 : Layout
-------------------------------------------------------------------*/
#content {
    display: block;
    height: 100%;
    position: relative;
}

/* 반응형 : 메뉴 펼치기 버튼  */
#content .m_util {
    width: 10rem;
    height: 5rem;
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
}

#content .m_util .btnUtil {
    display: block;
    position: absolute;
    top: 1rem;
    width: 4rem;
    height: 4rem;
    border-radius: 0.6rem;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
}
#content .m_util .btnUtil[data-s='flip'] {
    right: calc(100% - 5rem);
    background-image: url(../images/i_flip.svg);
    background-size: 2.6rem;
}
#content .m_util .btnUtil[data-s='chat'] {
    right: 0.8rem;
    background-image: url(../images/i_chat.svg);
    background-size: 2.3rem;
}

#content .m_util .btnUtil {
    transition: background 0.3s;
}
#content .m_util .btnUtil:focus-visible,
#content .m_util .btnUtil:hover {
    background-color: rgb(245, 247, 250, 0.1);
}
.new_chat {
    position: absolute;
    top: 20px;
    right: 0;
    background: url(../images/i_chat.svg) no-repeat 50% 50%;
    background-size: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
}
#contain.main {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url(../images/intro_bg.png) center bottom no-repeat;
    background-size: cover;
}
#contain.main::before,
#contain.main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#contain.sub {
    position: relative;
    height: 100%;
}
/*-------------------------------------------------------------------
	@media
-------------------------------------------------------------------*/
@media screen and (max-width: 1200px) {
    #contain::after {
        background-size: 160%;
    }
}
@media screen and (max-width: 1024px) {
    #content {
        padding-left: 0rem;
    }
}
@media screen and (max-width: 600px) {
    #content,
    [data-flip-header='Y'] #content {
        padding-left: 0;
    }
    #contain::after {
        background-size: 180%;
    }
}

@keyframes bg-motion {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
#intro {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
#intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 44%;
    background-color: #160b2e;
}
/* * #contain:has(#intro) {
    background: linear-gradient(-45deg, #0067c7 0%, #2d2675 30%, #0067c7 50%, #163679 70%, #290d45 100%);
    background-size: 600% 600%;
    animation: bg-motion 10s ease-in-out infinite;
}  */

#intro .content {
    position: relative;
    z-index: 100;
    display: block;
    width: 1050px;
}
#intro .content .title {
    display: block;
    margin: 0 0 3rem 0;
    line-height: 1.2;
    font-weight: 600;
    font-size: 3.7rem;
    letter-spacing: -0.01em;
    color: #fff;
    text-align: center;
    position: relative;
    padding: 15rem 0 0 0;
}
#intro .content .title::before {
    content: '';
    width: 13rem;
    height: 13rem;
    display: inline-block;
    background: url(../images/i_bot.svg) center center no-repeat;
    position: absolute;
    top: 0;
    right: calc(50% - (13rem / 2));
    animation-duration: 1s;
    animation: updown_bot 1.3s ease infinite;
}

@keyframes updown_bot {
    0% {
        margin-top: 0rem;
    }
    60% {
        margin-top: 2rem;
    }
    100% {
        margin-top: 0rem;
    }
}

#intro .content .title span {
    display: block;
}
#intro .content .title em {
    background: linear-gradient(90deg, #01ddff, #d7adff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
#intro .content .formArea {
    display: block;
    transform: translateX(3.5rem);
}

.main {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 1.5s infinite ease-in-out, drift 10s infinite alternate ease-in-out;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0;
        transform: scale(0.1);
    }
    50% {
        opacity: 1;
        transform: scale(0.2);
    }
}

@keyframes drift {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px);
    }
}

/* 메인 검색 form */
.main .search_wrap {
    display: block;
    /* transform: translateX(5rem); */
}
.search_wrap .chatForm {
    display: block;
    position: relative;
}

.search_wrap form fieldset {
    /* 
     */
}

.search_wrap form fieldset .form_inner {
    position: relative;
    align-items: center;
    display: flex;
}

.form_space {
    display: block;
    flex-grow: 1;
    height: auto;
    position: relative;
}

.wrap_textarea {
    /* border-radius: 5rem;
    bottom: 0;
    display: block;
    width: 100%;
    background: #fff;
    border: 1px solid #d2d7e3;*/
    padding: 1.7rem 6.5rem 1.7rem 2.5rem;
}
.wrap_textarea {
    padding: 1.2rem 5rem 1.2rem 3rem;
}
.wrap_textarea textarea {
    width: 100%;
    border: 0;
    outline: none;
    display: block;
    font-size: 16px;
    max-height: calc(2.8rem + 9em);
    resize: none;
    color: #353856;
    scrollbar-gutter: auto;
    scrollbar-width: thin;
}
.search_wrap form fieldset .form_inner textarea::placeholder {
    font-size: 18px;
    font-weight: 400;
    /* line-height: 3rem; */
    color: #414570;
    opacity: 0.7;
}
.search_wrap form fieldset .form_inner textarea:focus {
    outline: none;
}

.wrap_textarea .mension p {
    border-bottom: 1px solid #b9b9b9;
    padding: 1.2rem 0 1.2rem 0;
    color: #4170fc;
    font-weight: 500;
    margin: 0 1.5rem 0 1.5rem;
}

.main .m_center {
    width: calc(100% - (6rem));
}
.search_tip {
    color: #e0dfe8;
    text-align: center;
    margin: 1.5rem 0;
    font-size: 1.3rem;
    opacity: 0.5;
    letter-spacing: -0.5px;
}
.search_tip.sub {
    color: #263856;
    margin: 0;
}
[data-mension='open'],
.mension[data-select='open'] {
    display: block;
}
[data-mension='close'],
.mension[data-select='close'] {
    display: none;
}

.in_search {
    position: absolute;
    bottom: 7rem;
    left: 0;
    width: 15rem;
    z-index: 9;
    border-radius: 0.8rem;
    background: #fff;
}
.in_search ul {
    padding: 1rem;
}
.in_search ul li a {
    display: block;
    padding: 1rem;
    text-align: center;
}
.in_search ul li a:hover {
    background: #dbe0eb;
    border-radius: 0.8rem;
}
.form_inner .attach {
    width: 5rem;
    height: 5rem;
}
.btn_attach {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 5rem;
    background-color: #747795;
    display: inline-block;
    cursor: pointer;
    color: #4b5563;
}
.btn_attach {
    background-image: url('../images/i_upload.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 45%;
}
.btn_attach:hover {
    filter: brightness(1.06);
}
.btn_attach:active {
    transform: translateY(0.5px);
}
.btn_attach:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
.form_inner .form_space {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, 0);
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(90deg, #da71f4, #a660ff, #59b9ff);
    background-clip: content-box, border-box;
    background-origin: border-box;
    border-radius: 5rem;
}
.form_inner .submit {
    display: block;
    position: absolute;
    right: 0.7rem;
}
.btn_submit {
    position: relative;
    border-radius: 50%;
    display: block;
    height: 4.5rem;
    width: 4.5rem;
}
.sub .btn_submit {
    height: 3.5rem;
    width: 3.5rem;
}
.btn_submit {
    background-color: transparent;
}
.btn_submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #4c72fc 0%, #8f6be1 100%);
    border-radius: 50%;
    /* background-image: url(../images/i_send_bg.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; */
}
.btn_submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
}
.btn_submit::after {
    background-image: url(../images/i_send.png);
    background-size: 2.5rem;
    background-position: 40% 50%;
}
.sub .btn_submit::after {
    background-size: 2rem;
    background-position: 38% 52%;
}
.btn_submit.load::after {
    background-image: url(../images/loader.gif);
    background-size: 5rem;
}

.btn_submit::before {
    animation: spin 4s infinite linear;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 검색 결과 화면 */
.conHead {
    position: absolute;
    top: 1rem;
    right: 3rem;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 6rem;
}
.conHead .btnQuit {
    position: relative;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 5rem;
    font-size: 1.3rem;
    height: 3.5rem;
    margin-left: auto;
    padding: 0 1.5rem 0 3.7rem;
    color: #fff;
}
.btn_quit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 10px 45px;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 50px;
    background-color: transparent;
    box-shadow: inset 0 0 0 2px #4c72fc, 0 0 10px 0 #8f6be1;
    color: #fff;
}
.btn_quit:hover {
    background: #160b2e;
}
.conHead .btn_quit::before {
    content: '';
    position: absolute;
    top: 13px;
    left: 17px;
    width: 2.8rem;
    height: 3.5rem;
    background: url(../images/i_logout.svg) center center no-repeat;
    background-size: 100%;
}
.conHead .btnQuit:hover {
    background: #0067c7;
}

#sub_warp {
    position: relative;
    z-index: 1;
    display: block;
    height: 100%;
    overflow: hidden;
    padding: 2rem;
}
.basic_content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.chatbox {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* background: #e8ecf5; */
    border-radius: 1.5rem;
}
.basic_content .chatArea {
    display: block;
    flex-grow: 1;
    overflow: hidden;
    /* padding-bottom: 2.4rem; */
    border-radius: 1.5rem 1.5rem 0 0;
    background: #e8ecf5;
}
.basic_content .search_wrap {
    display: block;
    flex-shrink: 0;
    margin-top: auto;
    padding: 0 2rem;
    background: #e8ecf5;
    border-radius: 0 0 1.5rem 1.5rem;
}

.chatMessages {
    display: block;
    /* height: 100%; */
    scroll-behavior: smooth;
    box-sizing: border-box;
}
.chat_box {
    width: 100%;
    display: flex;
    justify-content: space-between;
}
.chat_wrap {
    display: block;
    padding: 0 1rem;
    /* padding-bottom: 50vh; max-width: 100rem; margin: 0 auto;*/
}
#blockDetailPanel {
    display: none;
    flex-wrap: wrap;
    /* flex-basis: min-content;
    min-width: 500px; */
    flex-direction: column;
    width: 500px;
    border-radius: 1rem;
    margin: 0 1rem;
    border: 1px solid #e3e6ed;
}
#blockDetailPanel:not([hidden]) {
    display: flex;
}
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 50px;
    padding: 1rem 2rem;
    background: #414570;
    border-radius: 1rem 1rem 0 0;
}
.panel-header h2 {
    color: #fff;
    font-size: 17px;
}
.btn-close-panel {
    background: url(../images/btn-close.png) no-repeat;
    width: 15px;
    height: 15px;
    background-size: cover;
}
.panel-content {
    width: 100%;
    padding: 2rem;
    line-height: 1.2;
    overflow-y: auto;
    flex: 1;
}
.panel-content h3 {
    font-size: 16px;
    color: #4170fc;
    padding-bottom: 1.5rem;
}
.block-detail-item li {
    padding: 5px 0;
}
.block-detail-item li dl {
    display: flex;
    font-size: 14px;
    font-weight: 400;
    color: #353856;
}
.block-detail-item li dl dt {
    width: 30%;
}
.block-detail-item li dl dd {
    width: 70%;
}
.message_pair {
    width: var(--content-max-width);
}
.message_User {
    display: flex;
    flex-direction: column;
}
.message_User p {
    align-self: flex-end;
    background-color: #4170fc;
    border-radius: 2rem 0 2rem 2rem;
    box-shadow: 0 2px 5px 0 #0000000d;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    padding: 1.2rem 2.2rem;
    margin-bottom: 2.4rem;
    display: inline-block;
    max-width: 55%;
}

.message_Bot {
    position: relative;
    background-color: #ecf0f9;
    border-radius: 0 2rem 2rem 2rem;
    /* box-shadow: 0 2px 5px 0 #0000000d; */
    display: block;
    padding: 2rem;
    width: 100%;
    margin-bottom: 2.4rem;
}
.message_Bot h4 {
    position: absolute;
    top: -1.8rem;
    font-size: 14px;
    font-weight: 600;
    color: #353856;
    padding: 0 0 0 2rem;
    letter-spacing: -0.5px;
}
.message_Bot h4::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -2.7rem;
    width: 66px;
    height: 86px;
    background: url(../images/bot01.png) center center no-repeat;
    background-size: contain;
}

.answer {
    color: #4b4b4b;
    font-size: 1.4rem;
    line-height: 2.6rem;
    white-space: pre-wrap;
}

.answer .bottom_point {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d6d7e1;
    padding-bottom: 10px;
    margin-bottom: 17px;
}

/* 툴팁 */
.tooltip {
    position: relative;
    display: inline-block;
}
.tooltip-button {
    padding: 5px;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
}
.tooltip-button:hover {
    background: #eee;
}
.tooltip-button img {
    width: 2.5rem;
    opacity: 0.5;
}
.tooltip-text {
    position: absolute;
    top: 70%; /* 아래에 위치 */
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: #333;
}
.tooltip:hover .tooltip-text {
    opacity: 1;
    pointer-events: auto;
}

/* 결과 탭 디자인 */
.tab_result {
    border-top: 1px solid #dcdcdc;
    padding-top: 2.5rem;
    padding-bottom: 3.2rem;
}
.tabs {
    display: flex;
    margin-bottom: 16px;
}
.tab {
    padding: 0.3rem 1.5rem 0.1rem 1.5rem;
    font-size: 1.3rem;
    cursor: pointer;
    border: 1px solid #ccc;
    margin-right: 4px;
    border-radius: 0.5rem;
}
.tab.active {
    background: #f2f6ff;
    border: 1px solid #4170fc;
    color: #4170fc;
    font-weight: 500;
    position: relative;
    padding: 0.3rem 1.5rem 0.1rem 3rem;
}
.tab.active::before {
    content: '';
    position: absolute;
    bottom: 0.3rem;
    left: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: url(../images/i_check.svg) center center no-repeat;
    background-size: contain;
}
.tab-content {
    padding: 1rem 0 0 0;
    transition: opacity 0.3s ease;
}

.link {
    position: relative;
    padding: 0 0 0 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}
.link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: url(../images/i_link.svg) center center no-repeat;
    background-size: contain;
}

.gray_box {
    background: #f2f4f7;
    padding: 2rem 3rem;
    border-radius: 0.5rem;
}
.gray_box ul li {
    line-height: 3rem;
}

#sub_warp .search_wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 2rem 0 1rem;
    background: #e8ecf5;
}
#sub_warp .search_wrap .chatForm {
    position: fixed;
    bottom: 2rem;
    width: 100rem;
    padding: 0 3rem;
}
#sub_warp .search_wrap .search_tip {
    color: #6e6e6e;
    font-size: 1.3rem;
}
/* #sub_warp .search_wrap textarea::placeholder {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 3rem;
    color: #6e6e6e;
} */

/* 메인 검색창 스크롤바 */
.wrap_textarea ::-webkit-scrollbar {
    width: 1rem; /* 스크롤바 너비 */
}
.wrap_textarea ::-webkit-scrollbar-track {
    background: #fff;
    border-radius: 1rem;
}
.wrap_textarea ::-webkit-scrollbar-thumb {
    background: #d2d7e3;
    border-radius: 1rem;
}
.wrap_textarea ::-webkit-scrollbar-thumb:hover {
    background: #aaaaab;
    cursor: pointer;
}

.search_mode_banner {
    font-size: 1.4rem;
    color: #dddddd;
    background-color: #ffffff0d;
    border: 1px solid #444860;
    border-radius: 0.6rem;
    margin-top: 1.5rem;
    padding: 1.2rem;
    text-align: center;
    line-height: 1.6;
}
.search_mode_banner strong {
    color: #01ddff;
}

.arrow {
    width: 10px;
    height: 10px;
    border: solid 2px #333;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease-in-out;
}
.arrow.up {
    transform: rotate(225deg);
}

/*-------------------------------------------------------------------
	새로운 기능으로 추가한 코드들 
-------------------------------------------------------------------*/

/* 사용자 질문 말풍선 */
.message-user-bubble {
    max-width: 80%;
    word-break: break-word;
    white-space: normal;
    margin-left: auto;
}

/* 질문 시간 표시 */
.chat-date {
    font-size: 12px;
    color: #cce0ff;
    float: right;
}

/* 피드백 버튼 효과 (좋아요, 별로예요 공통) */
.feedback-active {
    border-radius: 8px;
    transform: scale(1.15);
    transition: all 0.2s ease;
}

/* 복사 버튼 눌림 효과 */
.feedback-copy-active {
    transform: scale(1.15);
    transition: all 0.2s ease;
}

/* 추천 질문 박스 공통 스타일 */
.gray-box-default {
    word-break: break-all;
    white-space: normal;
}

/* 문서 아이템 */
.doc-item {
    margin-bottom: 1.5rem;
}

/* 문서 출처 상단 라인 */
.top-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

/* 문서 출처 왼쪽 그룹 */
.left-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

/* 토글 버튼 공통 */
.toggle-btn {
    color: #1a0dab;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

/* 회색 박스 안 본문 내용 */
.content-box {
    display: none;
    margin-top: 0.75rem;
    word-break: break-all;
    white-space: pre-wrap;
}

/* 하단 툴팁 및 시간 영역 */
.bottom-point {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-top: 16px;
    margin-bottom: 24px;
}

/* 메신저/댓글 팝업 공통 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-box {
    background: #fff;
    padding: 24px 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 15px;
}

/* 드롭다운 */
.mode-dropdown {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 9999;
    font-size: 14px;
    min-width: 150px;
}
.mode-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    color: #333;
    font-weight: 500;
}
.mode-dropdown-item:hover {
    background: #f2f6ff;
    color: #4170fc;
}

/* hybrid 요약 블록 내부 */
.hybrid-title-block {
    margin-bottom: 18px;
}
.hybrid-title-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}
.hybrid-title-index {
    font-weight: bold;
    margin-right: 8px;
}
.hybrid-title-text {
    font-size: 16px;
}
.hybrid-title-content {
    margin-left: 32px;
}

/* chat_guide */
.chat_guide {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
}
.chat_guide summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
}
.chat_guide ul {
    list-style: disc;
    padding-left: 20px;
}

/* ======================================= */
/* tab추가 */
/* ======================================= */
.intro_logo {
    position: absolute;
    top: -11rem;
    left: 0;
    display: flex;
    justify-content: start;
    align-items: center;
    width: fit-content;
}
.intro_logo h1 {
    display: block;
    width: 468px;
    height: 210px;
    background: url(../images/logo_customs.png) no-repeat left top;
    transform: translateX(20px);
}

#mainTabs {
    display: flex;
    justify-content: end;
}
#mainTabs button {
    padding: 1.5rem 3rem;
    margin-left: 0.1rem;
    border-radius: 1rem 1rem 0 0;
    background: #a4a7bc;
    color: #3d4b69;
    font-size: 1.8rem;
}
#mainTabs button.on {
    background: #ecf0f9;
    color: #3f457b;
    font-weight: 600;
}
.tab_con {
    background: #ecf0f9;
    padding: 5rem 10rem 10rem;
    border-radius: 1rem 0 1rem 1rem;
}
.description {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 3rem 5rem;
}
.description .txt {
    text-align: center;
}
.description .txt strong {
    font-size: 3rem;
}
.description .txt p {
    padding-top: 1.5rem;
    font-size: 1.8rem;
    font-weight: 400;
    color: #414570;
    letter-spacing: -0.5px;
}
.add_image {
    position: absolute;
    top: -8rem;
    left: -3.5rem;
    padding: 1rem;
    border-radius: 1rem;
    z-index: 1000000;
}
.add_image ul {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 6.4rem;
}
.add_image ul li {
    display: flex;
    align-items: center;
    width: 11rem;
    height: 3rem;
}
.add_image ul li a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.5rem 0.5rem 0.5rem 3rem;
    background: #9a9ec1 url(../images/image.png) no-repeat 10% 50%;
    background-size: 15%;
    color: #fff;
    border-radius: 5rem;
    font-size: 1.3rem;
}
.add_image ul li a:hover {
    background: #171b3e url(../images/image.png) no-repeat 10% 50%;
    background-size: 15%;
}

/* sub */
#chatTabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.1rem;
}
#chatTabs button {
    padding: 1rem 5rem;
    background: #747795;
    border-radius: 1rem 1rem 0 0;
    font-size: 1.7rem;
    font-weight: 600;
    color: #fff;
}
#chatTabs button.on {
    background: #fff;
    color: #272a49;
}

/* ======================================= */
/* 251113_sub */
/* ======================================= */

:root {
    --sidebar-width: 290px;
    --minimized-sidebar-width: 60px;
    --search-height: 60px;
    --padding-size: 15px;
    --header-height: 60px;
    --button-margin: 15px;
    --content-max-width: 900px;
}
body.sub {
    background-image: url(../images/subbg_left.png), url(../images/subbg_right.png);
    background-position: left bottom, right top;
    background-repeat: no-repeat;
    background-color: #160b2e;
}
#area_1 {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    color: white;
    z-index: 10;
    transition: width 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 0 var(--padding-size);
}

#area_1.collapsed {
    width: var(--minimized-sidebar-width);
    padding-left: 0;
    padding-right: 0;
}
.sidebar-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 var(--padding-size);
}

.sidebar-middle {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0;
    padding-top: 0;
    scrollbar-gutter: auto;
    scrollbar-width: thin;
    scrollbar-color: #37354c #080412;
}
.sidebar-middle::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.sidebar-middle::-webkit-scrollbar-track {
    background: #080412;
}
.sidebar-middle::-webkit-scrollbar-thumb {
    background: #37354c;
    border-radius: 5px;
}

.sidebar_footer {
    flex-shrink: 0;
    padding: var(--padding-size);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
#main-content-wrapper {
    position: relative;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    height: 100%;
    transition: margin-left 0.3s ease-in-out;
    padding: 30px 30px 30px 0;
    display: flex;
    flex-direction: column;
}

#main-content-wrapper.full-width {
    margin-left: var(--minimized-sidebar-width);
    width: calc(100% - var(--minimized-sidebar-width));
}

#area_1.collapsed .sidebar-header,
#area_1.collapsed .sidebar-middle,
#area_1.collapsed .sidebar_footer {
    opacity: 0;
    transition: opacity 0.1s;
    pointer-events: none;
    padding: 0;
    height: 0;
}

#area_1 .sidebar-header {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 150px;
}
#area_1 .sidebar-header h1 {
    display: flex;
    justify-content: center;
    width: 80%;
    padding: 70px 0 0;
}
.toggle-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    transition: background-color 0.3s;
}
.toggle-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
/* #area_1 ul {
    list-style: none;
    padding: 0;
    margin: 5px 0;
}
#area_1 li {
    margin: 2px 0;
    padding: 5px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
}
#area_1 li span {
    line-height: 1.2;
}
#area_1 li:hover {
    background-color: #414570;
}
#area_1 li.active {
    background-color: #414570;
}
.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
} */
#area_2 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    height: 100%;
    background-color: white;
    padding: 3rem;
    max-width: none;
    margin: 0;
    align-items: center;
    border-radius: 20px;
}
#area_3 {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    flex-grow: 1;
    height: 0;
    overflow-y: auto;
    width: 100%;
    margin-bottom: 10px;
}
#area_3::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
#area_3::-webkit-scrollbar-track {
    background: transparent;
}
#area_3::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    border: 2px solid transparent;
}
#area_3:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.4);
}
#area_4 {
    position: relative;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    max-width: var(--content-max-width);
    width: 100%;
}
#area_4 .chatForm {
    width: 100%;
}
/* #area_4 .wrap_textarea {
    padding: 10px 70px 10px 10px;
} */
#search_textarea {
    flex-grow: 1;
    max-height: 200px;
    overflow-y: auto;
    resize: none;
    border: none;
    outline: none;
    font-size: 14px;
    line-height: 1.2;
}
#toggle-button {
    position: fixed;
    top: var(--button-margin);
    z-index: 100;
    left: calc(var(--button-margin));
    background: url(../images/i_flip.svg) no-repeat 50% 50%;
    background-size: 2.6rem;
    border: none;
    cursor: pointer;
    transition: left 0.3s ease-in-out, background-color 0.3s;
}
#main-content-wrapper.full-width #toggle-button {
    left: var(--button-margin);
}

.btn-import-block {
    position: relative;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    padding: 0 23px 0 15px;
    height: 36px;
    position: relative;
    font-style: normal;
    align-items: center;
    /* background: linear-gradient(to right, #4c72fc 0%, #8f6be1 100%); */
    background-color: #414570;
    border-radius: 3px 1px 1px 3px;
}
.btn-import-block::after {
    position: absolute;
    content: ' ';
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 18px 9px 18px 0;
    border-color: transparent #ecf0f9 transparent transparent;
}

.btn-hs-info {
    position: relative;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    padding: 0 23px 0 15px;
    height: 36px;
    position: relative;
    font-style: normal;
    align-items: center;
    background-color: #414570;
    border-radius: 3px 1px 1px 3px;
}
.btn-hs-info::after {
    position: absolute;
    content: ' ';
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 18px 9px 18px 0;
    border-color: transparent #ecf0f9 transparent transparent;
}

.panel-placeholder {
    font-size: 1.4rem;
    text-align: center;
}

@media (max-width: 1800px) {
    .chat_box {
        flex-wrap: wrap;
        justify-content: center;
    }
    .message_pair,
    .chat_wrap {
        width: 100%;
    }
    #blockDetailPanel {
        width: 100%;
        max-width: 100%;
    }
    .block-detail-item li dl dt {
        width: 15%;
    }
    .block-detail-item li dl dd {
        width: 85%;
    }
}
@media (max-width: 1200px) {
    #main-content-wrapper {
        padding: 60px 30px 30px 0;
    }
    #chatTabs {
        justify-content: space-between;
        gap: 0;
    }
    #chatTabs button {
        width: 33.2%;
        line-height: 1.2;
        padding: 1rem;
    }
    #area_2 {
        border-radius: 0 0 20px 20px;
    }
    .conHead {
        top: 0;
    }
    .block-detail-item li dl dt {
        width: 25%;
    }
    .block-detail-item li dl dd {
        width: 75%;
    }
}
@media (max-width: 1100px) {
    #intro {
        padding-top: 5rem;
    }
    #intro .content {
        max-width: 90%;
    }
    .intro_logo h1 {
        background-size: 70%;
        background-position: left 25%;
        transform: none;
    }
    .tab_con {
        padding: 5rem 5rem 10rem;
    }
}

@media (max-width: 900px) {
    .intro_logo {
        position: relative;
        top: 3rem;
        left: calc(50% - 176px);
        justify-content: center;
    }
}

@media (max-width: 768px) {
    #area_3,
    #area_4 {
        max-width: none;
    }
    #area_1 {
        width: var(--minimized-sidebar-width);
        pointer-events: none;
    }
    #area_1:not(.collapsed) {
        width: var(--sidebar-width);
        pointer-events: auto;
        background: #160b2e;
    }
    #area_1.collapsed {
        width: var(--minimized-sidebar-width);
        padding-left: 0;
        padding-right: 0;
    }
    #main-content-wrapper {
        margin-left: 0;
        width: 100%;
        padding: 60px 10px 10px;
    }
    #main-content-wrapper.full-width {
        margin-left: 0;
        width: 100%;
    }
    #toggle-button {
        left: var(--button-margin);
    }
    #intro .tab_con {
        padding: 2rem;
    }
    .main .search_wrap {
        transform: none;
    }
    .search_wrap form fieldset {
        width: 100%;
    }
    .search_wrap form fieldset .form_inner {
        align-items: end;
    }
    .sub .wrap_textarea {
        padding: 0;
        border-radius: 1rem;
    }
    .wrap_textarea textarea {
        border-radius: 0;
        padding: 0;
    }
    .form_inner .form_space {
        border-radius: 1rem;
    }
    .sub .form_inner .submit {
        right: 0.5rem;
        bottom: 0.3rem;
    }
    .btn_submit::after {
        background-size: 2rem;
    }
    .description {
        padding: 5rem 0;
    }
    .chatMessages {
        padding: 2rem 0;
    }
    .sub .form_inner .attach {
        width: 4.5rem;
        height: 5.5rem;
    }
    #intro {
        padding-top: 3rem;
    }
    /* #main-content-wrapper.full-width {
        margin-top: 6rem;
    } */
    .conHead {
        right: 1rem;
    }
    .sub .wrap_textarea {
        padding: 1.2rem 4.5rem 1.2rem 1.2rem;
    }
    .btn_submit {
        width: 4rem;
        height: 4rem;
    }
    .sub .btn_submit {
        height: 3.3rem;
        width: 3.3rem;
    }
    .sub .form_inner .submit {
        right: 0.45rem;
        bottom: 0.45rem;
    }
    .btn_submit::before {
        animation: none;
        border-radius: 7px;
    }
    .btn_attach {
        border-radius: 7px;
    }
    .form_inner .submit {
        right: 0.57rem;
        bottom: 0.55rem;
    }
    .sub .btn_submit {
        height: 4.5rem;
        width: 4rem;
    }
    .sub .btn_submit::after {
        background-position: 45% 50%;
    }
    .wrap_textarea {
        padding: 1.2rem 4.5rem 1.2rem 1.2rem;
    }
}

@media (max-width: 560px) {
    #main-content-wrapper {
        padding: 60px 0 0 !important;
    }
    #intro {
        padding: 0;
    }
    #intro .tab_con {
        padding: 1rem;
    }
    #intro .content .title {
        font-size: 2.8rem;
        font-weight: 500;
    }
    .main #intro {
        background: none;
    }
    .main .m_center {
        width: 100%;
    }
    .search_tip {
        font-size: 1.3rem;
    }
    #mainTabs button {
        padding: 1rem 1.5rem;
        font-size: 1.5rem;
        line-height: 1.2;
    }
    #mainTabs button:first-child {
        margin: 0;
    }
    .tooltip-button {
        padding: 4px;
    }
    .answer .bottom_point {
        position: relative;
        display: block;
    }
    .answer .bottom_point p.date {
        text-align: right;
    }
    .description .txt strong {
        font-size: 2.5rem;
    }
    .description .txt p {
        font-size: 1.5rem;
    }
    .search_wrap form fieldset .form_inner textarea::placeholder {
        font-size: 14px;
    }
    .wrap_textarea textarea {
        font-size: 14px;
    }
    #chatTabs button {
        font-size: 1.5rem;
    }
    /* .message_Bot h4 {
        top: 0;
    } 
    .message_Bot {
        padding: 3rem 2rem 2rem;
    }*/
    #area_2 {
        padding: 2rem;
    }
    .block-detail-item li dl dt {
        width: 35%;
    }
    .block-detail-item li dl dd {
        width: 65%;
    }
    .sub .form_inner .attach {
        height: 5rem;
    }
    .sub .btn_submit {
        height: 4rem;
    }
}
@media (max-width: 420px) {
    #mainTabs {
        justify-content: space-between;
    }
    #mainTabs button {
        width: 33%;
    }
    #intro .tab_con {
        border-radius: 0 0 1rem 1rem;
    }
    .chatForm .form_inner {
        gap: 2px;
    }
    .wrap_textarea {
        padding: 1rem 4.2rem 1rem 1rem;
    }
    /* .form_inner .submit {
        right: 0.3rem;
        bottom: 0.3rem;
    } */
    .description {
        padding: 3rem 0 2rem;
    }
    #intro .tab_con {
        padding: 1rem 1rem 5rem;
    }
    #area_1 .sidebar-header h1 {
        width: 70%;
    }
    #area_2 {
        padding: 10px;
    }
    .add_image {
        left: -2rem;
    }
    /* #area_4 {
        position: fixed;
        bottom: 2rem;
        width: 92%;
        max-width: var(--content-max-width);
    } */
    .panel-header {
        height: 40px;
    }
    .panel-header h2 {
        font-size: 14px;
    }
    .panel-content h3 {
        padding-bottom: 1rem;
    }
    .message_Bot h4::before {
        background-size: 80%;
        bottom: -1rem;
    }
    .form_inner .attach {
        width: 3.5rem;
        height: 4rem;
    }
    .btn_submit,
    .sub .btn_submit {
        width: 3.2rem;
        height: 3.2rem;
    }
    .sub .form_inner .attach {
        width: 4rem;
        height: 4.5rem;
    }
}
