@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");
* {margin: 0; padding: 0; border: 0; box-sizing: border-box;}

a {text-decoration: none; color: #000;}
li {list-style: none;}

.main_con { display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; }
.main_con .title_con { text-align: center; }
.main_con .width_con { width: 70%; margin-top: 5%; margin-bottom: 5%; }
.bg-video { display: none; }

/* ========== Input / Placeholder ========== */
.main_con .width_con .chat_con textarea { width: 100%; font-size: 20px; font-weight: 400; color: #000; font-family: "Pretendard Variable"; resize: none; border: none; min-height: 120px; background-color: transparent; }
.main_con .width_con .chat_con textarea:focus { outline: none; }
#pre-question::placeholder { color: rgba(0,0,0,.100); opacity: 1; }
#pre-question::-webkit-input-placeholder { color: rgba(0,0,0,.80); }
#pre-question:-ms-input-placeholder { color: rgba(0,0,0,.80); }
#pre-question::-ms-input-placeholder { color: rgba(0,0,0,.80); }

/* ========== Glass (Frosted) Chat Box – 더 투명하게 ========== */
.main_con .width_con .chat_con { display: flex; align-items: flex-end; margin: 40px 0 0 0; padding: 30px; border-radius: 20px; background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%); box-shadow: 0 8px 24px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.05); backdrop-filter: blur(2px) saturate(110%); -webkit-backdrop-filter: blur(16px) saturate(110%); background-clip: padding-box; }
.main_con .width_con .chat_con .extra_bar { display: flex; justify-content: space-between; align-items: center; margin: 0 0 0 10px; }
.main_con .width_con .chat_con .extra_bar .tag_con { display: flex; align-items: center; }
.main_con .width_con .chat_con .extra_bar .tag_con span { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.35); margin: 0 5px 0 0; font-size: 16px; font-weight: 400; color: #000; background: rgba(255,255,255,0.65); }
.main_con .width_con .chat_con .extra_bar a { display: flex; }

/* Hover 강조 */
.main_con .width_con .chat_con:hover { border-color: rgba(255,255,255,0.26); }

/* 폴백: backdrop-filter 미지원 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .main_con .width_con .chat_con { background: rgba(255,255,255,0.16); box-shadow: 0 8px 24px rgba(0,0,0,0.16); } }



.sections {padding: 0 0 0 220px; font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;}

.sections .main_con {background:#fff; min-height: calc(100vh - 20px); margin: 10px 0 0 20px; padding: 32px 16px; border-radius: 10px; border: 1px solid #E0E0E0; overflow: hidden;}
.sections .main_con.edge {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.sections .main_con .fn_bar {display: flex; justify-content: space-between; align-items: center; margin: 0 0 20px 0; width: 100%;}
.sections .main_con .fn_bar .cols {display: flex; align-items: center;}
.sections .main_con .fn_bar .cols a {}
.sections .main_con .fn_bar .cols a:nth-child(1) {margin: 0 10px 0 0;}
.sections .main_con .fn_bar .cols a span {}

.cb-sidemenu {
  position: fixed; top: 10px; left: 10px;
  width: 220px; height: calc(100vh - 20px);
  background: #fbfbfb;
  border-right: 1px solid #ededed;
  z-index: 1200;
  display: flex; flex-direction: column;
  padding: 0px 15px;
  overflow-y: auto;
    border-radius: 10px;
    border: 1px solid #E0E0E0;
}
.cb-menu-admin-name{
    color: #383838;
    font-size: 1.07rem;
    margin: 0 auto;
    margin-bottom: 10px;
    text-align: center;
	font-weight: 900;
}
.cb-sidemenu-inner { display: flex; flex-direction: column; padding: 20px 0 20px 0; height: 100%; gap: 5px; align-items: stretch; }
.cb-menu-group-title { color: #383838; font-size: 1.00rem; padding: 4px 14px 4px 12px; border-radius: 0 24px 24px 0; text-decoration: none; transition: background 0.13s, color 0.13s; display: block;}
.cb-sidemenu-link { color: #383838; font-size: 1.00rem; margin: 0 0 20px 0; text-decoration: none; transition: background 0.13s, color 0.13s; display: block;}
.cb-sidemenu-link span {display: none;}
.cb-sidemenu-link:hover, .cb-sidemenu-link.active { background: #efefef; color: #383838; border-radius: 5px; }
.cb-sidemenu-section { margin: 16px 0 0 0; padding: 0; border-top: 1px solid #4456782a; }
.cb-sidemenu-section-title { font-size: 0.98rem; color: #b9c6d7; padding: 16px 24px 5px 24px; font-weight: 700; letter-spacing: 0.01em; }

.cb-navbar.mobile-navbar { display: none; position: fixed; top: 0; z-index: 3000; width: 100%; background: #fff;}
.cb-navbar-inner { display: flex; justify-content: space-between; align-items: center; height: 50px; padding: 0 10px;}
.cb-navbar-hamburger { background: none; border: none; width: 38px; height: 38px; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer;}
.cb-navbar-hamburger span { display: block; width: 23px; height: 3px; margin: 3px 0; background: #fff; border-radius: 2px; transition: all 0.2s; }
.cb-navbar-title { color: #fff; font-weight: 700; font-size: 1.16rem; margin-left: 12px; letter-spacing: 0.03em; }
.cb-mobile-menu-overlay { overflow-y: auto; position: fixed; top: 0; left: -300px; width: 300px; height: 100vh; z-index: 10000; border-radius: 0 20px 20px 0; border: 1px solid #D9D9D9; background: #FFF; box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.25); transition: left 300ms ease-out;}
.cb-mobile-menu-overlay.active {left: 0;}
@keyframes menuFadeIn { from { opacity: 0; } to { opacity: 1; } }
.cb-mobile-menu-content { display: flex; flex-direction: column; align-items: flex-start; margin: 50px 0 0 0; padding: 30px 20px; }
.cb-mobile-menu-content .cb-menu-admin-logo {}
.cb-mobile-menu-content span {font-size: 20px; font-weight: 700;}
.cb-mobile-menu-close {
  background: none;
  border: none;
  color: #000;
  font-size: 2.0rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: absolute;
  top: 10px;
  right: 20px;
  margin: 0;
  z-index: 5001;
  box-shadow: none;
  cursor: pointer;
}
.cb-mobile-menu-close span {font-size: 32px;}
.cb-mobile-menu-close span,
.cb-mobile-menu-close .icon {
  margin-right: 0;
}
.cb-mobile-menu-group-title { color: #383838; font-size: 1.14rem; font-weight: 600; text-decoration: none; margin: 7px 0; padding: 4px 0; border-bottom: 1px solid #ededed; width: 100%; display: block; transition: color 0.15s; }
.cb-mobile-menu-link { color: #383838; font-size: 1.14rem; font-weight: 600; text-decoration: none; margin: 0 0 10px 0; padding: 10px 0; width: 100%; display: block; transition: color 0.15s; }
.cb-mobile-menu-link span {display: none;}
.cb-mobile-menu-link:hover, .cb-mobile-menu-link.active { color: #000; }
.cb-mobile-menu-section { margin-top: 28px; width: 100%; }
.cb-mobile-menu-section-title { color: #b9c6d7; font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; margin-top: 12px; }

.cb-menu-admin-logo span {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    word-break: keep-all;
    text-align: center;
    line-height: 1.4;
}

/* ========== Breakpoints ========== */
/* 태블릿 */
@media (max-width: 1000px) { .main_con .width_con { width: 100%; } .main_con .title_con h2 { font-size: 32px; } .sections .main_con .bg-video { object-position: 50% 0%; } }

@media (max-width: 900px) {
  .cb-sidemenu { display: none !important; }
  .cb-navbar.mobile-navbar { display: block; }
  .sections {padding: 0;}
    .sections .main_con {margin: 50px 0 0 0; border: none;}
    .sections .main_con .fn_bar {display: none;}
}

/* 모바일 */
@media (max-width: 767px) { .main_con .title_con h2 { font-size: 25px; }}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}

/* WebKit(Chromium, Safari, Edge) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e0e0e0;
}

/* 스크롤 영역이 따로 있는 요소에도 확실히 적용 (채팅 박스/입력창) */
.cb-chatbot-box,
.cb-chat-input {
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}
.cb-chatbot-box::-webkit-scrollbar,
.cb-chat-input::-webkit-scrollbar { width: 10px; height: 10px; }
.cb-chatbot-box::-webkit-scrollbar-thumb,
.cb-chat-input::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 8px; }
.cb-chatbot-box::-webkit-scrollbar-track,
.cb-chat-input::-webkit-scrollbar-track { background: transparent; }
