@charset "UTF-8";
@import url("./reset.css"); /* css 초기화 - normalize */
@import url("./variables.css"); /* css 변수 */

/* 공통 스타일 css - default css 241023 */
/* 기본 브라우저 폰트 사이즈 설정 */
html {
    height: 100%;
    font-size: 62.5%;
}
body {
    overflow: hidden;
    height: 100%;
    background: var(--bg-color1);
    font-size: 1.6rem;
    -webkit-font-smoothing: antialiased;
}
body,
button,
input,
select,
td,
textarea,
th {font-family: var(--main-font);}
a * {user-select: none;}
a, a:visited {color: var(--grey-100);}

/* z-index */
/* skip-nav: 100
prompt, modal: 10 */

/* skipnav */
.skip_nav {
    position:relative;
    z-index:100;
}
.skip_nav a {
    display:block;
    position:absolute;
    left:-110px;
    width:110px;
    padding:10px 0;
    background: var(--bg-color4);
    font-weight: 600;
    color: var(--grey-700);
    text-align: center;
    outline:0;
}
.skip_nav a:focus {left: 0}

/* logo */
.logo {
    flex-shrink: 0;
    font-weight: 600;
}
.logo_inner {
    display: block;
    align-items: center;
    width: 219px;
    height: 40px;
    background: url("../images/img/logo_default.png");
    transition: all .1s ease-in-out;
}
.logo_inner:hover {background: url("../images/img/logo_hover.png");}

/* layout */
body,
.layout_wrap,
.main_inner,
.prompt_wrap,
.prompt,
.img {width: 100%;}
.layout_wrap,
.main,
.main_inner,
.home_section,
.left_sidebar,
.img {height: 100%;}
.layout_wrap {
    display: flex;
    overflow: hidden;
}
.top_btn_wrap {display: none;}
.top_btn_wrap .btn_expand_menu {
    background: url("../images/svg/menu.svg");
}
.left_sidebar {
    justify-content: space-between;
    position: fixed;
    width: 290px;
    padding: 24px 22px;
    border-right: var(--border);
    background: var(--bg-color2);
}
.btn_collapse {
    display: none;
    background: url("../images/svg/collapse.svg") center no-repeat;
}
.left_sidebar .en_tit {
    font-size: 18px;
    color: var(--grey-300);
}
.left_sidebar .btn_new_chat:hover,
.left_sidebar .left_sidebar_history:hover .en_tit {color: var(--hover-color);}
.left_sidebar .btn_new_chat:hover,
.left_sidebar .left_sidebar_history:hover {background: var(--bg-color2);}
.left_sidebar_center {
    flex: 1;
    height: auto;
}
.left_sidebar_footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: var(--border);
}
.btn_new_chat, .left_sidebar_history {
    width: 100%;
    border: var(--border);
    border-radius: var(--basic-radius);
    background: var(--bg-color1);
}
.btn_new_chat {
    display: block;
    position: relative;
    padding: 7px 13px 7px 45px;
    margin: 32px 0 0;
}
.btn_new_chat::before {
    display: block;
    position: absolute;
    left: 13px;
    top: 50%;
    width: 24px;
    height: 24px;
    background-image: url("../images/svg/new.svg");
    transform: translateY(-50%);
    content: '';
}
.left_sidebar_history {
    overflow-y: hidden;
    max-height: calc(100% - 20px);
    padding: 7px 0;
    margin: 20px 0 0;
}
.left_sidebar_history .tit_wrap,
.left_sidebar_history .input_wrap {margin: 0 12px;}
.left_sidebar .input {
    margin: 16px 0;
    padding: 7.5px 46px 7.5px 14px;
    border-radius: 8px;
    outline: none;
}
.dropdown_content .input_wrap .ico_search,
.apt_search .ico_search {
    position: absolute;
    right: 14px;
    background: url("../images/svg/search.svg") center / contain no-repeat;
}
.history_list {
    gap: 16px;
    max-height: 220px;
    border: 12px solid transparent;
    border-width: 0 6px 12px 12px;
    font-size: 14px;
    color: var(--grey-300);
    text-indent: 6px;
}
.history_item .link {
    display: block;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 194px;
    color: var(--grey-300);
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-all;
}
.styleguide_img_list {display: none;}
.styleguide_img_list .img_wrap {
    overflow: hidden;
    width: 100%;
    height: 145px;
    margin-bottom: 12px;
    border-radius: var(--basic-radius);
    background: var(--grey-300);
}
.styleguide_img_list li:last-of-type .img_wrap {margin-bottom: 0;}
.styleguide_img_list .img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}
.btn_go_styleguide, .btn_go_styleguide_small {
    display: block;
    position: relative;
    transition: all 100ms linear;
}
.btn_go_styleguide {
    width: 100%;
    padding: 12px 14px 17px;
    border-radius: var(--basic-radius);
    background: var(--purple-400);
    color: var(--grey-100);
}
.btn_go_styleguide_small {background: url("../images/img/banner_styleguide3x.png") center / contain no-repeat;}
.btn_go_styleguide::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 14px;
    width: 64px;
    height: 60px;
    background: url("../images/img/img_terrian2x.png") 0 0 / cover;
    transform: translateY(-50%);
    content: '';
}
.btn_go_styleguide .btn_tit {
    font-size: 16px;
    font-weight: 700;
}
.btn_go_styleguide .go_now {
    display: flex;
    align-items: center;
    margin: 4px 0 0;
    font-size: 14px;
}
.btn_go_styleguide .go_now::before {
    position: relative;
    align-items: center;
    width: 20px;
    height: 20px;
    margin-right: 4px;
    background-image: url("../images/svg/arrow-right.svg");
    color: #e9ecef;
    content: '';
}
.btn_go_styleguide:hover {background: #e1d2ff;}
.btn_go_styleguide:hover .btn_tit {color: var(--purple-400)}
.btn_go_styleguide:hover .go_now {color: var(--purple-300);}
.btn_go_styleguide:hover .go_now::before {background: url("../images/svg/arrow_right_hover2.svg");}
.dropdown_wrap .ico,
.accordion .ico {background: url("../images/svg/chevron_down.svg");}
.main {
    flex: 1 1;
    position: relative;
    width: calc(100% - 290px);
    margin-left: 290px;
}
.main_inner {
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}
.main,
.main_inner {transition: all 250ms ease-in-out;}
.home_section {
    flex: 1;
    align-items: center;
    margin: 0 150px 0 20px;
}
.home_section .home_inner, .home {flex: 1;}
.home {width: 996px;}
.home_msg {
    flex-direction: column;
    position: relative;
    top: 50%;
    color: var(--grey-100);
    transform: translate(0, -11.5%);
}
.home_msg::before {
    display: block;
    width: 163px;
    height: 132px;
    background: url("../images/img/logo_onboarding.png") center / cover;
    content: '';
}
.home_msg .txt {
    margin: 16px 0 18px;
    font-size: 18px;
    word-break: break-all;
}
.btn_wrap {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 866px;
    height: 377px;
    transform: translateX(-50%);
}
.type_btn_list {
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 15px;
    transform: translate(-95%,-50%);
}
.chat_type {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: url("../images/img/img_type1.png") center / cover no-repeat;
}
.chat_type:last-of-type {
    margin-left: 20px;
    background: url("../images/img/img_type2.png") center / cover no-repeat;
}
.chat_type:hover {background: url("../images/img/img_type1_hover.png") center / cover no-repeat;}
.chat_type:last-of-type:hover {background: url("../images/img/img_type2_hover.png") center / cover no-repeat;}
.chat_type.on,
.chat_type.on:focus:not(:focus-visible) {
    outline: var(--border2);
    border-radius: var(--basic-radius);
}
.prompt_section {
    width: 996px;
    padding: 62px 0 16px;
    padding: 44px 0 16px;
}
.prompt_wrap {
    position: relative;
    padding: 18px 20px 12px;
    border-radius: var(--basic-radius);
    border: var(--border);
    background: var(--bg-color2);
    z-index: 10;
}
.prompt_wrap.on {border-color: var(--hover-color);}
.prompt_wrap.on .btn_submit {background-image: url("../images/svg/send_pro.svg");}
.prompt {
    min-height: 53px;
    max-height: 235px;
    padding: 0;
    outline: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: 'SUIT Variable', sans-serif;
    color: var(--grey-100);
}
/* .prompt:disabled */
.prompt_wrap.disabled {border-color: var(--border-color);}
.prompt:disabled::placeholder {color: var(--grey-700);}
.prompt::placeholder {
    font-family: 'SUIT Variable', sans-serif;
    font-size: 18px;
    color: var(--grey-700);
}
.prompt_btn {
    align-items: center;
    width: 100%;
    height: 30px;
    background: var(--bg-color2);
}
.prompt_btn .ico {transition: left 250ms linear;}
.prompt_btn_left .ico {margin-right: var(--ico-margin);}
.prompt_btn_left .ico:nth-of-type(1) {background-image: url("../images/svg/filter.svg");}
.prompt_btn_left .custom_input.ico {background-image: url("../images/svg/image.svg");}
.prompt_btn_left .ico:nth-of-type(2) {background-image: url("../images/svg/voice.svg");}
.prompt_btn_left .ico:nth-of-type(1):hover,
.prompt_wrap.on .prompt_btn_left .ico:nth-of-type(1) {background-image: url("../images/svg/filter_hover.svg");}
.prompt_btn_left .custom_input.ico:hover,
.prompt_wrap.on .prompt_btn_left .custom_input.ico {background-image: url("../images/svg/image_hover.svg");}
.prompt_btn_left .ico:nth-of-type(2):hover,
.prompt_wrap.on .prompt_btn_left .ico:nth-of-type(2) {background-image: url("../images/svg/voice_hover.svg");}
.prompt_btn_right .btn_submit {background-image: url("../images/svg/send.svg");}
.prompt_wrap .prompt_btn_right .btn_stop {display: none;}
.prompt_btn_right .btn_submit:hover {background-image: url("../images/svg/send_hover.svg");}

/* submit 버튼 클릭 후 active클래스 추가 */
.prompt_wrap.active .btn_submit {display: none;}
.prompt_wrap.active .btn_stop {
    display: block;
    background-image: url("../images/img/pause.png");;
}
.prompt_wrap.active .prompt_btn_right .btn_stop:hover {background-image: url("../images/img/pause_hover.png");}
.prompt_input_file {
    display: none;
    appearance: none;
}
.toggle_wrap {
    gap: 2px;
    align-items: center;
    display: inline-flex;
    margin-right: 14px;
    cursor: pointer;
}
.toggle_wrap .en_tit {
    margin-left: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-700);
}
.btn_toggle {
    position: relative;
    width: 48px;
    height: 22px;
    border: 1px solid rgba(73, 80, 87, 0.5);
    border-radius: 30px;
    appearance: none;
}
.btn_toggle::before {
    position: absolute;
    left: 2px;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(73, 80, 87, 0.5);
    transform: translateY(-50%);
    transition: left 250ms linear;
    content: "";
}
/* pro 토글 버튼 hover 상태 */
.btn_toggle:hover,
.prompt_wrap.on .btn_toggle {border-color: var(--border-color);}
.btn_toggle:hover::before,
.prompt_wrap.on .btn_toggle::before {background: var(--bg-color3);}
/* pro 토글 버튼 disabled 상태 */
.btn_toggle:disabled {border-color: var(--border-color);}
.btn_toggle:disabled::before {
    background: var(--bg-color3);
    left: 2px;
}
.btn_toggle:disabled + .en_tit {color: var(--grey-700);}
/* pro 토글 버튼 checked 상태 */
.prompt_wrap.on .btn_toggle:checked {border-color: var(--color-white);}
.prompt_wrap.on .btn_toggle:checked::before {
    background: var(--bg-color4);
    left: 28px;
}
.prompt_wrap.on .btn_toggle:checked + .en_tit {color: var(--color-white);}
.llm_select {
    position: absolute;
    top: 0px;
    width: 328px;
    height: 133px;
    padding: 8px;
    border: var(--border);
    border-radius: var(--border-radius);
    background: var(--bg-color1);
    transition: all 150ms linear;
    opacity: 0;
    z-index: -1;
}
.llm_select_inner {
    overflow-y: auto;
    height: 120px;
    padding: 10px;
}
.llm_select.show {
    top: -71px;
    opacity: 1;
    z-index: auto;
}
.llm_select .tit {
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 500;
    color: var(--grey-200);
}
.llm_type {
    width: 271px;
    margin-bottom: 12px
}
.llm_type:last-of-type {margin-bottom: 0;}
.llm_type:nth-of-type(1) .llm_name .ico {background: url("../images/svg/naver.svg") center / contain no-repeat;}
.llm_type:nth-of-type(2) .llm_name .ico {background: url("../images/svg/gpt.svg") center / contain no-repeat;}
.llm_name {align-items: center;}
.llm_name .ico {
    display: inline-block;
    margin-right: 4px;
}
.llm_type .input {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}
.llm_type .custom_radio {
    border: var(--border);
    border-radius: 50%;
    background: url("../images/svg/check.svg") center;
}
.llm_type:hover .custom_radio {
    border-color: var(--hover-color);
    background-image: url("../images/svg/check_hover.svg");
}
.llm_type .input:checked + .type_inner .custom_radio {
    border: none;
    background: url("../images/svg/check_on.svg");
}
.llm_name {color: var(--grey-700);}
.info_txt {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 12px 0 0;
    color: var(--grey-500);
    text-align: center;
    white-space: nowrap;
}

/* llm_type hover */
.llm_select .llm_type:hover .llm_name {color: var(--hover-color);}
.llm_type:nth-of-type(1):hover .llm_name .ico {background-image: url("../images/svg/naver_hover.svg");}
.llm_type:nth-of-type(2):hover .llm_name .ico {background-image: url("../images/svg/gpt_hover.svg");}

/* llm_type checked상태 */
.llm_type .input:checked + .type_inner .llm_name {color: var(--grey-100);}
.llm_type:nth-of-type(1) .input:checked + .type_inner .ico {background-image: url("../images/svg/naver_on.svg");}
.llm_type:nth-of-type(2) .input:checked + .type_inner .ico {background-image: url("../images/svg/gpt_on.svg");}
.main_right_section {
    position: absolute;
    right: 0;
    bottom: 34px;
    width: 362px;
    margin: 0 32px 0 43px;
}

/* default effect */
.left_sidebar {
    overflow-y: auto;
    left: 0;
    margin-left: 0;
    transition: all 250ms ease-in-out;
}
.layout_wrap.active .btn_go_styleguide {margin-bottom: 20px;}
.layout_wrap.active .left_sidebar_footer .styleguide_img_list {display: block;}
.main.expand {
    justify-content: center;
    margin-left: 0;
}
.main.active {margin-left: 0;}
.left_sidebar.hide {margin-left: -290px;}
.left_sidebar_history.on {height: auto;}
.dropdown_wrap.active button,
.accordion.active .ico {background: url("../images/svg/chevron_up.svg");}
.dropdown_content,
.accordion_content {
    overflow: hidden;
    height: 0;
    transition: all 250ms ease-in-out;
}
.dropdown_wrap.active .dropdown_content,
.accordion.active .accordion_content {
    overflow: visible;
    height: auto;
}

/* 스크롤 처리 */
@supports selector(::-webkit-scrollbar) {
    .history_list,
    .prompt,
    .llm_select_inner {
        overflow-x: hidden;
        overflow-y: auto;
    }
    .history_list::-webkit-scrollbar,
    .prompt::-webkit-scrollbar,
    .llm_select_inner::-webkit-scrollbar,
    .left_sidebar::-webkit-scrollbar {
        width: 6px;
    }
    .left_sidebar::-webkit-scrollbar {
        width: 14px;
    }
    .left_sidebar::-webkit-scrollbar-thumb {
        border: 4px solid #171717;
    }
    .history_list::-webkit-scrollbar {
        border-radius: 15px;
        background: var(--bg-color3);
    }
    .history_list::-webkit-scrollbar-thumb,
    .prompt::-webkit-scrollbar-thumb,
    .llm_select_inner::-webkit-scrollbar-thumb,
    .left_sidebar::-webkit-scrollbar-thumb {
        border-radius: 15px;
        cursor: default;
        background: var(--bg-color3);
    }
    .history_list::-webkit-scrollbar-thumb {background: #adb5bd;}
}

@media screen and (max-width: 1919px) {
    .layout_wrap {min-width: 320px;}
    .home_section {margin: 0 7.813vw 0 1.042vw;}
    .prompt_section, .home {
        width: 62.25%;
        min-width: 640px;
    }
}
@media screen and (max-width: 1440px) {
    .left_sidebar_header .logo,
    .left_sidebar_history .tit_wrap,
    .new_chat_txt, .home_msg .txt {display: none;}
    .top_btn_wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin: 16px 20px;
        z-index: 10;
    }
    .logo_mobile .logo_inner {
        width: 100px;
        height: 16px;
        background :url("../images/img/logo_txt_mobile.png") center / cover no-repeat;
    }
    .left_sidebar {
        left: -290px;
        overflow-y: auto;
        padding: 16px 10px 20px 20px;
        z-index: 20;
    }
    .left_sidebar_header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .left_sidebar_center {
        flex: none;
        height: calc(100% - 136px);
    }
    .btn_new_chat {
        margin: 0;
        padding: 0;
        border: none;
    }
    .btn_new_chat::before {
        left: auto;
        right: 0;
        border: var(--border);
        border-radius: 50%;
        background-size: 20px 20px;
        background-position: center;
    }
    .left_sidebar.expand {left: 0;}
    .left_sidebar.collapse {left: -290px;}
    .btn_collapse {display: block;}
    .left_sidebar_history,
    .dropdown_wrap.active .dropdown_content {height: 100%;}
    .left_sidebar_history,
    .history_list {max-height: none;}
    .left_sidebar_history {
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
    }
    .left_sidebar_history .input_wrap {
        justify-content: start;
        margin: 0 0 10px;
    }
    .history_list {
        height: calc(100% - 80px);
        border-width: 0 2px 2px 0;
    }
    .left_sidebar .input {
        max-width: 221px;
        border-radius: 100px;
    }
    .dropdown_content .input_wrap .ico_search {right: 52px;}
    .left_sidebar_footer {margin: 20px 10px 0 0;}
    .btn_go_styleguide {margin-bottom: 0;}
    .main {
        width: 100%;
        height: calc(100% - 52px);
        margin: 0;
        padding: 16px 0;
    }
    .main_inner {padding: 0 20px;}
    .layout_wrap {
        position: relative;
        flex-wrap: wrap;
    }
    .layout_wrap.dim::before {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        content: '';
        background: rgba(0, 0, 0, .5);
        z-index: 20;
    }
    .home_section {margin: 0;}
}
@media screen and (max-width: 1023px) {
    .toggle_wrap,
    .prompt_btn_left .ico:nth-of-type(2) {display: none;}
    .home,
    .prompt_section {
        width: 100%;
        min-width: 0;
    }
    .home_msg {
        height: auto;
        transform: translate(0, calc(-50% + 33px));
    }
    .home_msg::before {
        width: 138px;
        height: 96px;
        background: url("../images/img/logo_default_mobile3x.png") center / contain no-repeat;
    }
    .prompt_section {
        min-width: 0;
        padding: 20px 0 0;
    }
    .textarea_wrap {
        position: relative;
        width: calc(100% - 131px);
        min-width: 60%;
        height: 32px;
        margin: 0 auto;
        z-index: 10;
    }
    .prompt_wrap {
        padding: 9px 22.5px;
        border-radius: 500px;
    }
    .prompt_btn {
        position: absolute;
        top: 50%;
        left: 0;
        padding: 0 22.5px;
        background: transparent;
        transform: translateY(-50%);
    }
    .btn_type {height: 32px;}
    .prompt_btn_left .ico {margin-right: 4px;}
    .prompt {
        height: auto !important;
        min-height: 0;
        padding: 7.5px 4px;
    }
    .prompt,
    .llm_select,
    .llm_select .tit {font-size: 14px;}
    .prompt::placeholder {font-size: inherit;}
    .llm_select {
        left: 0;
        width: 180px;
        height: auto;
        border-radius: 6px;
    }
    .llm_select_inner {
        height: auto;
        padding: 4px;
    }
    .llm_select .tit {margin-bottom: 12px;}
    .llm_type {
        width: 100%;
        margin-bottom: 8px;
    }
    .llm_name .ico {
        width: 18px;
        height: 18px;
    }
    .llm_select.show {top: -102px;}
    .info_txt {
        display: block;
        margin: 8px auto 0;
        font-size: 12px;
        line-height: 1.33;
    }

    /* hover 취소 */
    .llm_type:hover .custom_radio {
        border-color: #495057;
        background-image: url("../css/../images/svg/check.svg");
    }
    .llm_select .llm_type:hover .llm_name {color: #495057;}
    .llm_type:nth-of-type(1):hover .llm_name .ico {background-image: url("../css/../images/svg/naver.svg");}
    .llm_type:nth-of-type(2):hover .llm_name .ico {background-image: url("../css/../images/svg/gpt.svg");}
}