@charset "utf-8";

html, body {
    --top-guide-height: 70px;
    --top-option-height: 50px;
    --input-msg-height: 60px;
}

#helperWrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding-top: 0 !important;
    width: 100%;
    height: 100%
}

.pdf-box {
	--ai-tit-height: calc(var(--top-guide-height) - 32px);
    flex-grow: 1;
    height: 100vh;
    width: 70%; 
    display: inline-block;
}

.pdf-box iframe {
    width: 100%;
    height: 100%;
}

#helperWrapper #outerContainer.pdf-box .ai-tit-h1 {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: var(--ai-tit-height);
    padding: 0 20px;
    background-color: var(--color-blue-deep);
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
}

.inactive {
    position: relative;
    opacity: 0.5;
    cursor: default;
}

.text-option-box {
    gap: 4px;
    position: absolute;
    height: 40px;
    padding: 0 6px;
    background-color: var(--color-sky);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(var(--color-basic-rgb),0.3);
}

.text-option-box .btns {
    font-size: 1.2rem;
}

.text-option-box .inactive-box {
    position: relative;
}

.txt-tooltip {
    display: none;
    position: absolute;
    width: var(--txt-tooltip-width);
    padding: 10px;
    background-color: var(--color-background);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(var(--color-basic-rgb),0.2);
    font-size: 1.2rem;
    z-index: 300;
}

.text-option-box .inactive-box .txt-tooltip {
    bottom: 40px;
}

.txt-tooltip:before {
    position: absolute;
    bottom: -4px;
    left: calc(50% - 4px);
    width: 8px;
    height: 8px;
    background-color: var(--color-background);
    transform: rotate(45deg);
    content: '';
}

.inactive-box:hover .txt-tooltip {
    display: block;
}

#viewerAbstact .btns.side-round {
	border-radius: 16px;
}

.ai-helper-chat .text-option-box2 {
    width: 100%;
    height: 50px;
    bottom: var(--input-msg-height);
    left: 0;
    padding: 0;
    border-top: 1px solid rgba(var(--color-basic-rgb),0.15);
    background-color: rgba(var(--color-basic-rgb),0.1);
    border-radius: 0px;
    box-shadow: none;
}

@keyframes blink-effect {
  50% {
    opacity: 0;
  }
}

.ai-helper-chat .blink {
  animation: blink-effect 1s step-end infinite;
}

/* AI Helper */
.ai-helper-chat {
    --top-guide-height: 70px;
    --top-option-height: 50px;
    --input-msg-height: 60px;

    position: relative;
    flex-shrink: 0;
    width: 30%;
    min-width: 450px;
    height: 100vh;
    background-color: var(--color-background);
}

.ai-helper-chat.mode-side-slide {
    position: fixed;
    top: 0;
    right: -1000px;
    width: 550px;
    z-index: 3000;
    transition: .2s ease-in-out;
}

.ai-helper-chat.mode-side-slide .ahc-box {
    position: relative;
    background-color: var(--color-background);
    box-shadow: 0px 5px 15px rgba(var(--color-basic-rgb),0.15);
}

.ai-helper-chat.mode-side-slide.helper-open {
    right: 0;
}

/* AI Helper // 선택된 텍스트 */
.ai-helper-chat.mode-side-slide .choice-drag-txt {
    position: absolute;
    top: 0;
    left: 20px;
    overflow-y: auto;
    width: 500px;
    height: 100%;
    background-color: var(--table-header-bg);
    box-shadow: 0px 5px 15px rgba(var(--color-basic-rgb),0.15);
    transition: .2s ease-out;
    transition-delay: 0s;
    z-index: -1;
}

.ai-helper-chat.mode-side-slide.helper-open .choice-drag-txt {
    left: -500px;
    transition-delay: .2s;
}

.ai-helper-chat.mode-side-slide .choice-drag-txt h3 {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: var(--top-guide-height);
    padding: 0 20px;
    background-color: var(--color-blue-middle);
    color: var(--color-white);
}

.ai-helper-chat.mode-side-slide .choice-drag-txt h3 em {
    font-size: 2rem;
}

.ai-helper-chat.mode-side-slide .choice-drag-txt .cdt-box {
    padding: 20px;
    font-size: 1.4rem;
    font-weight: var(--font-weight-light);
}


/* AI Helper // 최상단 제목 */
.ai-helper-chat .top-guide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: var(--top-guide-height);
    padding: 0 20px;
    background: #2f68c2 url("../../img/aihelper/ai_helper_top_bg.png") no-repeat right center/auto 100%;
    color: var(--color-white);
}

.ai-helper-chat .top-guide em {
    font-weight: var(--font-weight-bold);
    font-size: 1.8rem;
}

.ai-helper-chat .top-guide span {
    font-size: 1.4rem;
    font-weight: var(--font-weight-light);
}

.ai-helper-chat .top-guide .ai-helper-btn {
    position: absolute;
    top: calc(50% - 17px);
    right: 20px;
    width: 34px;
    height: 34px;
    background-color: rgba(var(--color-white-rgb),0.6);
    font-size: 2rem;
    border-radius: 50%;
    box-shadow: inset 0 0 0 rgba(var(--color-basic-rgb),0);
    transition: .3s;
}

.ai-helper-chat .top-guide .ai-helper-btn:hover {
    background-color: rgba(var(--color-white-rgb),1);
    color: var(--color-blue);
    box-shadow: inset 0 2px 4px rgba(var(--color-basic-rgb),0.1);
}

/* AI Helper // 상단 옵션 */
.ai-helper-chat .top-option {
    position: relative;
    height: var(--top-option-height);
    padding: 0 20px;
    border-bottom: 1px solid var(--color-gray-light);
    background-color: var(--color-background);
}

.ai-helper-chat .top-option .right-area {
    gap: 4px;
}

.ai-helper-chat .top-option .right-area .btns {
    position: relative;
}

.ai-helper-chat .top-option .right-area .openai-key-btn {
    padding-right: 5px;
    gap: 10px;
    font-size: 1.3rem;
}

.ai-helper-chat .top-option .right-area .btns .tooltip {
    display: none;
    position: absolute;
    top: 38px;
    left: calc(50% - var(--tooltip-width) / 2);
    width: var(--tooltip-width);
    height: 24px;
    line-height: 24px;
    background-color: var(--color-blue);
    color: var(--color-white);
    font-size: 1.2rem;
    border-radius: 12px;
    z-index: 100px;
}

.ai-helper-chat .top-option .right-area .btns .tooltip:before {
    position: absolute;
    top: -4px;
    left: calc(50% - 4px);
    width: 8px;
    height: 8px;
    background-color: var(--color-blue);
    transform: rotate(45deg);
    content: '';
}

.ai-helper-chat .top-option .right-area .btns:hover .tooltip {
    display: block;
}


/* AI Helper // 채팅 폼 */
.chat-msg-box {
    position: relative;
    height: calc(100vh - var(--top-guide-height) - var(--top-option-height) - var(--input-msg-height));
    padding: 10px;
}

.mode-side-slide .chat-msg-box {
    height: calc(100vh - var(--top-guide-height) - var(--top-option-height));
}

.chat-msg-box.in-text-option {
    padding-bottom: 60px;
}

.chat-msg-box .chat-con {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
    font-size: 1.2rem;
}

.chat-msg-box .chat-con:not(:first-child) {
    margin-top: 20px;
}

.chat-msg-box .chat-con .user-ico {
    flex-shrink: 0;
}

.chat-msg-box .chat-con .user-ico em {
    display: block;
    overflow: hidden;
    width: 50px;
    font-size: 0;
    border-radius: 50%;
}

.chat-msg-box .chat-con .msg-box .name {
    font-weight: var(--font-weight-semibold);
    font-size: 1.3rem;
}

.chat-msg-box .chat-con .msg-box .comment {
    padding: 10px;
    margin-top: 5px;
    background-color: rgba(var(--color-basic-rgb),0.05);
    border-radius: 0 5px 5px 5px;
}

.chat-msg-box .chat-con .msg-box .comment.first {
    background-color: var(--color-sky);
}

.chat-msg-box .chat-con .time {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    color: var(--color-gray);
    opacity: 0.6;
}

.chat-msg-box .chat-con.right-msg {
    flex-direction: row-reverse;
}

.chat-msg-box .chat-con.right-msg .user-ico {
    display: none;
}

.chat-msg-box .chat-con.right-msg .msg-box .comment {
    border-radius: 5px 0 5px 5px;
    background-color: var(--color-blue);
    color: var(--color-white);
}


/* AI Helper // 채팅 입력 */
.chat-msg-input {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    height: var(--input-msg-height);
    padding: 0 10px;
    background-color: rgb(244, 244, 247);
}

.chat-msg-input .msg-input {
    flex-grow: 1;
    height: 44px;
    line-height: 44px;
    padding-left: 6px;
    font-size: 1.3rem;
    border: none;
}

.chat-msg-input .choice-question {
    display: none;
    position: absolute;
    bottom: var(--input-msg-height);
    left: 10px;
    right: 60px;
    padding: 5px;
    background-color: var(--color-background);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(var(--color-basic-rgb),0.15);
}

.chat-msg-input .choice-question ul li .cq-btn {
    display: block;
    width: 100%;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 1.3rem;
    text-align: left;
    transition: .2s;
}

.chat-msg-input .choice-question ul li .cq-btn:hover {
    background-color: rgba(var(--color-basic-rgb),0.03);
    color: var(--color-blue);
    font-weight: var(--font-weight-semibold);
}

.chat-msg-input .msg-btn {
    width: 44px;
    height: 44px;
    line-height: 42px;
    font-size: 1.8rem;
}

#outerContainer #sidebarContainer {
	background-color: #fff;
}
#outerContainer #viewerContainer {
	background-color: var(--color-sky);
}

#outerContainer #toolbarContainer {
	background-color: #d6e2f2;
}

#outerContainer #sidebarResizer, 
#outerContainer #viewAttachments,
#outerContainer #viewLayers,
#outerContainer #openFile {
	display: none;
}

#outerContainer #toolbarContainer .dropdownToolbarButton > select {
	background-color: #fff;
}

.flex-center2 {display: flex;align-items: center;justify-content: center;}

.txt-caption {
	font-size: 1.3rem;
}

.modal {
	z-index: 99999 !important;
}

#openai-key-action-message {
	position:absolute;left:200px;color:#a22;
}

.comment span.hdwrd {
    color: #0085d8;
    text-decoration: none;
    font-weight: bold;
}

.comment  span.hdwrd:hover {
    cursor: pointer;
    text-decoration: underline;
}

.arti-list a.active {
	font-weight:bold;	
}

#outerContainer #article-body-command {
	width: 244px;	
}

#outerContainer {
	color: black;	
}

#sidebarContainer .treeItem > a {
	color: #555;
} 

#outerContainer #sidebarContainer #toobarSidebar {
	background-color: rgba(245,246,247,1);
} 

/* -------------------------------- */
@media screen and (min-width: 639px) {
}

@media screen and (min-width: 767px) {
}

@media screen and (min-width: 979px) {
}

@media screen and (min-width:1239px) {
}

@media screen and (min-width:1339px) {
}

@media screen and (min-width:1439px) {
}

@media screen and (min-width:1639px) {
}

@media screen and (min-width:1839px) {
}