@charset "utf-8";

/*
	CSS 초기화
	EXO.TEN

    웹폰트 넥슨Lv2고딕
*/

/* @font-face {
    font-family: 'NexsonGothic';
    font-weight: 600;
    src: local('NexsonGothic Bold'), url(../font/NexonGothicBold.woff) format('woff');
}
@font-face {
    font-family: 'NexsonGothic';
    font-weight: 500;
    src: local('NexsonGothic Medium'), url(../font/NexonGothicMedium.woff) format('woff');
}
@font-face {
    font-family: 'NexsonGothic';
    font-weight: 400;
    src: local('NexsonGothic'), url(../font/NexonGothic.woff) format('woff');
}
@font-face {
    font-family: 'NexsonGothic';
    font-weight: 300;
    src: local('NexsonGothic Light'), url(../font/NexonGothicLight.woff) format('woff');
} */
@font-face {
    font-family: 'Pretendard Variable';
    font-weight: 45 920;
    font-style: normal;
    font-display: swap;
    src: url('../font/PretendardVariable.woff2') format('woff2-variations');
}

/*
	CSS 초기화 
*/

/* ------ font ------ */
html {
    font-size: 65%;
}
body {
    font-size: 1.6rem;
    line-height: 1.5;
    background: #160b2e;
}
* {
    line-height: 1.5;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}
html,
body {
    color: var(--color-gray-90);
    word-break: keep-all;
    overflow-wrap: break-word;
    font-family: 'Pretendard Variable', sans-serif;
    font-weight: normal;
    height: 100%;
    overflow: hidden;
    overflow-x: hidden;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    -o-text-size-adjust: none;
}

body,
div,
p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
li,
dl,
dt,
dd,
table,
th,
td,
form,
fieldset,
legend,
input,
textarea,
a,
button,
select,
span,
strong,
em,
label,
::before,
::after {
    margin: 0px;
    padding: 0px;
    line-height: inherit;
    box-sizing: border-box;
}
header,
footer,
article,
aside,
details,
figcaption,
figure,
hgroup,
main,
menu,
nav,
section {
    display: block;
    margin: 0px;
    padding: 0px;
}
pre {
    font-family: inherit;
}
table,
th,
td {
    border-spacing: 0px;
    border-collapse: collapse;
}
img,
fieldset {
    max-width: 100%;
    border: 0px;
}
em {
    font-style: normal;
}

ul,
ol,
dl,
dt,
dd {
    list-style: none;
}

a,
a:link,
a:visited,
a:active,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
}

input,
textarea,
select,
button {
    border: 0;
    font-family: inherit;
}
input[type='text'],
input[type='tel'],
input[type='password'],
input[type='file'],
input[type='number'],
input[type='email'],
input[type='date'],
input[type='search'],
select,
textarea {
    vertical-align: middle;
    -webkit-box-shadow: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: inherit;
    transition: background-color 5000s ease-in-out 0s;
} /* 자동완성 */
input[type='text']::-ms-clear {
    display: none;
}
input[type='number'] {
    -moz-appearance: textfield;
}
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}
button,
input[type='button'],
input[type='submit'] {
    cursor: pointer;
}
/* IE 10, 11의 네이티브 화살표 숨기기 */
select::-ms-expand {
    display: none;
}

.blind {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    clip: rect(0 0 0 0);
}
.hide,
.skip,
.sr-only {
    position: absolute;
    height: 0;
    font-size: 0;
    width: 0;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0, 0, 0, 0);
}
.hidden,
legend {
    width: 0;
    height: 0;
    line-height: 0;
    font-size: 0px;
    float: left;
    position: absolute;
    visibility: hidden;
    overflow: hidden;
}

html,
body {
    height: 100%;
}
#root {
    height: 100%;
}
#wrap {
    height: 100%;
}
#all_wrap {
    height: 100%;
}

/* 스크롤 전파 방지 */
.prevent-scroll {
    overscroll-behavior: contain;
    -ms-scroll-chaining: none;
}

/* 스크롤바 커스텀 */
@media (hover: hover) and (pointer: fine) {
    .scrollbar-custom::-webkit-scrollbar {
        width: 6px;
        height: 6px;
        box-sizing: content-box;
    }
    .scrollbar-custom::-webkit-scrollbar-thumb {
        background: #5e656f;
    }
    .scrollbar-custom::-webkit-scrollbar-track {
        padding: 0 0.6rem;
        background: #333333;
    }
}

/* ============================================================
*  Padding
* ============================================================ */
.pt_00 {
    padding-top: 0px !important;
}
.pt_05 {
    padding-top: 5px !important;
}
.pt_10 {
    padding-top: 10px !important;
}
.pt_15 {
    padding-top: 15px !important;
}
.pt_20 {
    padding-top: 20px !important;
}
.pt_25 {
    padding-top: 25px !important;
}
.pt_30 {
    padding-top: 30px !important;
}
.pt_35 {
    padding-top: 35px !important;
}
.pt_40 {
    padding-top: 40px !important;
}
.pt_45 {
    padding-top: 45px !important;
}
.pt_50 {
    padding-top: 50px !important;
}

.pr_00 {
    padding-right: 0px !important;
}
.pr_05 {
    padding-right: 5px !important;
}
.pr_10 {
    padding-right: 10px !important;
}
.pr_15 {
    padding-right: 15px !important;
}
.pr_20 {
    padding-right: 20px !important;
}
.pr_25 {
    padding-right: 25px !important;
}
.pr_30 {
    padding-right: 30px !important;
}
.pr_35 {
    padding-right: 35px !important;
}
.pr_40 {
    padding-right: 40px !important;
}
.pr_45 {
    padding-right: 45px !important;
}
.pr_50 {
    padding-right: 50px !important;
}

.pb_00 {
    padding-bottom: 0px !important;
}
.pb_05 {
    padding-bottom: 5px !important;
}
.pb_10 {
    padding-bottom: 10px !important;
}
.pb_15 {
    padding-bottom: 15px !important;
}
.pb_20 {
    padding-bottom: 20px !important;
}
.pb_25 {
    padding-bottom: 25px !important;
}
.pb_30 {
    padding-bottom: 30px !important;
}
.pb_35 {
    padding-bottom: 35px !important;
}
.pb_40 {
    padding-bottom: 40px !important;
}
.pb_45 {
    padding-bottom: 45px !important;
}
.pb_50 {
    padding-bottom: 50px !important;
}

.pl_00 {
    padding-left: 0px !important;
}
.pl_05 {
    padding-left: 5px !important;
}
.pl_10 {
    padding-left: 10px !important;
}
.pl_15 {
    padding-left: 15px !important;
}
.pl_20 {
    padding-left: 20px !important;
}
.pl_25 {
    padding-left: 25px !important;
}
.pl_30 {
    padding-left: 30px !important;
}
.pl_35 {
    padding-left: 35px !important;
}
.pl_40 {
    padding-left: 40px !important;
}
.pl_45 {
    padding-left: 45px !important;
}
.pl_50 {
    padding-left: 50px !important;
}

/* ============================================================
*  Margin
* ============================================================ */
.mt_00 {
    margin-top: 0px !important;
}
.mt_05 {
    margin-top: 5px !important;
}
.mt_10 {
    margin-top: 10px !important;
}
.mt_15 {
    margin-top: 15px !important;
}
.mt_20 {
    margin-top: 20px !important;
}
.mt_25 {
    margin-top: 25px !important;
}
.mt_30 {
    margin-top: 30px !important;
}
.mt_35 {
    margin-top: 35px !important;
}
.mt_40 {
    margin-top: 40px !important;
}
.mt_45 {
    margin-top: 45px !important;
}
.mt_50 {
    margin-top: 50px !important;
}
.mt_100 {
    margin-top: 100px !important;
}

.mr_00 {
    margin-right: 0px !important;
}
.mr_05 {
    margin-right: 5px !important;
}
.mr_10 {
    margin-right: 10px !important;
}
.mr_15 {
    margin-right: 15px !important;
}
.mr_20 {
    margin-right: 20px !important;
}
.mr_25 {
    margin-right: 25px !important;
}
.mr_30 {
    margin-right: 30px !important;
}
.mr_35 {
    margin-right: 35px !important;
}
.mr_40 {
    margin-right: 40px !important;
}
.mr_45 {
    margin-right: 45px !important;
}
.mr_50 {
    margin-right: 50px !important;
}

.mb_00 {
    margin-bottom: 0px !important;
}
.mb_05 {
    margin-bottom: 5px !important;
}
.mb_10 {
    margin-bottom: 10px !important;
}
.mb_15 {
    margin-bottom: 15px !important;
}
.mb_20 {
    margin-bottom: 20px !important;
}
.mb_25 {
    margin-bottom: 25px !important;
}
.mb_30 {
    margin-bottom: 30px !important;
}
.mb_35 {
    margin-bottom: 35px !important;
}
.mb_40 {
    margin-bottom: 40px !important;
}
.mb_45 {
    margin-bottom: 45px !important;
}
.mb_50 {
    margin-bottom: 50px !important;
}

.ml_00 {
    margin-left: 0 !important;
}
.ml_05 {
    margin-left: 5px !important;
}
.ml_10 {
    margin-left: 10px !important;
}
.ml_15 {
    margin-left: 15px !important;
}
.ml_17 {
    margin-left: 17px !important;
}
.ml_18 {
    margin-left: 18px !important;
}
.ml_20 {
    margin-left: 20px !important;
}
.ml_25 {
    margin-left: 25px !important;
}
.ml_30 {
    margin-left: 30px !important;
}
.ml_35 {
    margin-left: 35px !important;
}
.ml_40 {
    margin-left: 40px !important;
}
.ml_45 {
    margin-left: 45px !important;
}
.ml_50 {
    margin-left: 50px !important;
}

.m_auto {
    margin: 0 auto !important;
}
.h_auto {
    height: auto !important;
}
.w_auto {
    width: auto !important;
}
/* 우측 상단 고정 컨테이너 (전역 레이아웃 영향 차단) */
#admin-login-anchor {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 10000 !important;
    pointer-events: none; /* 부모는 클릭 막음 → 밑 요소 클릭 가능 */
}

/* 실제 클릭 가능한 버튼 */
#admin-login-anchor .admin-login-btn {
    all: unset; /* 전역 버튼/링크 스타일 싹 제거 */
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 8px 14px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    background: #444 !important;
    color: #fff !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    pointer-events: auto; /* 자식만 클릭 허용 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#admin-login-anchor .admin-login-btn:hover {
    background: #222 !important;
}

.logo {
    height: 80px; /* 세로 고정 */
    width: auto; /* 가로는 비율 유지 */
    max-width: 160px; /* 2:1 비율 → 70px 높이에 맞는 가로 */
    display: block;
    margin: 0;
}

/* 1) 입력줄을 가로 정렬 + 잘림 방지 */
.chatForm .form_inner {
    display: flex !important;
    align-items: center;
    gap: 5px;
}
.chatForm .form_space {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: visible !important;
}
.chatForm .wrap_textarea {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    position: relative !important;
}

/* 2) +버튼 컨테이너를 위로(겹침 방지) */
.chatForm .left_tool {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    z-index: 1000 !important;
}

/* 3) +버튼(이미 common.css에 있으나, 확실히 보이도록 보강) */
.btn_add_image {
    position: relative !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #555 !important;
    border-radius: 8px !important;
    background: #fff !important;
    cursor: pointer !important;
    text-indent: 0 !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    visibility: visible !important;
    opacity: 1 !important;
    outline: 2px solid rgba(255, 0, 0, 0.25) !important; /* 진단용, 보이면 나중에 지우세요 */
}
/* 폰트크기 0으로 죽는 전역 규칙 회피(+는 가상요소로 그리기) */
.btn_add_image::after {
    content: '+';
    font-weight: 900 !important;
    font-size: 26px !important;
    line-height: 1 !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
}
@media (prefers-color-scheme: dark) {
    .btn_add_image {
        background: #1b1b1b !important;
        border-color: #444 !important;
    }
    .btn_add_image::after {
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }
}

/* 4) 혹시 textarea 상단 배지(.mension)가 덮고 있다면 오버레이 제거 */
.chatForm .wrap_textarea .mension {
    position: static !important;
    pointer-events: none !important;
    background: transparent !important;
}

/* 업로드 썸네일 크기 제한 */
.message_User .img_bubble,
.message_Bot .img_bubble {
    max-width: 200px; /* 원하는 최대 너비 */
    max-height: 200px; /* 원하는 최대 높이 */
    border-radius: 8px;
    overflow: hidden;
}

.message_User .img_bubble img,
.message_Bot .img_bubble img {
    width: 100%;
    height: auto;
    object-fit: cover; /* 넘칠 경우 잘라내기 */
    display: block;
}
