Files
ncuetalk_frontend/style.css
dsyoon 58606b7eab init
2025-12-27 14:07:27 +09:00

1139 lines
28 KiB
CSS

/* prevent horizontal layout shift due to scrollbar */
html, body { overflow-y: scroll; }
:root{
--bg: #fbfbfd;
--surface: #ffffff;
--surface-2: #f6f7fb;
--text: #14151a;
--muted: #5a5f6a;
--border: rgba(20, 21, 26, 0.10);
--shadow: 0 10px 30px rgba(20, 21, 26, 0.10);
--primary: #ff6b4a;
--primary-2: #ff9800;
--primary-soft: rgba(255, 107, 74, 0.12);
--app-sidebar-w: 240px;
--file-sidebar-w: 260px;
--file-sidebar-half: 130px;
--radius: 16px;
}
*{ box-sizing: border-box; }
body{
margin: 0;
padding: 0;
font-family: 'Noto Sans KR', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
background:
radial-gradient(1200px 600px at 15% 5%, rgba(255,152,0,.18), transparent 60%),
radial-gradient(900px 500px at 85% 15%, rgba(255,107,74,.16), transparent 55%),
var(--bg);
color: var(--text);
}
.container {
display: flex;
height: 100dvh;
}
.sidebar {
width: var(--app-sidebar-w);
background:
radial-gradient(600px 260px at 30% 0%, rgba(255,152,0,.22), transparent 60%),
radial-gradient(600px 260px at 70% 0%, rgba(255,107,74,.18), transparent 60%),
linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.82) 100%);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
align-items: stretch;
padding: 20px 14px;
backdrop-filter: blur(10px);
}
.logo {
padding: 10px 12px 14px 12px;
border-radius: calc(var(--radius) + 4px);
border: 1px solid rgba(255, 152, 0, 0.18);
background: rgba(255, 255, 255, 0.72);
box-shadow: 0 10px 20px rgba(20, 21, 26, 0.06);
margin-bottom: 16px;
}
.logo-mark{
font-size: 1.25rem;
font-weight: 900;
letter-spacing: .3px;
color: var(--text);
line-height: 1.1;
}
.logo-sub{
margin-top: 4px;
font-size: .9rem;
color: var(--muted);
letter-spacing: .2px;
}
.menu {
width: 100%;
}
.menu ul {
list-style: none;
padding: 0;
margin: 0;
}
.menu-item {
padding: 12px 12px;
text-align: left;
cursor: pointer;
color: var(--text);
border-radius: 14px;
transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
border: 1px solid transparent;
}
.menu-item.active, .menu-item:hover {
background: rgba(255, 255, 255, 0.65);
border-color: rgba(255, 107, 74, 0.22);
transform: translateY(-1px);
}
.menu-item-label{
font-size: 1.02rem;
font-weight: 800;
letter-spacing: .2px;
}
.menu-item-sub{
margin-top: 2px;
font-size: .86rem;
color: var(--muted);
}
.main-content {
flex: 1;
display: flex;
flex-direction: column;
background: transparent;
min-width: 0;
}
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 18px 24px 12px 24px;
background: linear-gradient(180deg, rgba(251,251,253,.74) 0%, rgba(251,251,253,0) 100%);
backdrop-filter: blur(8px);
}
.page-title {
font-size: 1.3rem;
font-weight: 900;
letter-spacing: -.2px;
}
.login-btn {
background: rgba(255,255,255,.72);
border: 1px solid var(--border);
border-radius: 999px;
padding: 8px 14px;
color: var(--text);
font-size: .95rem;
font-weight: 700;
cursor: pointer;
transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
}
.login-btn:hover {
transform: translateY(-1px);
box-shadow: 0 10px 20px rgba(20,21,26,.10);
border-color: rgba(255, 107, 74, 0.24);
}
.page {
flex: 1;
min-height: 0;
}
/* ---------- shared UI primitives ---------- */
.btn{
appearance: none;
border: 1px solid var(--border);
background: rgba(255,255,255,.82);
color: var(--text);
border-radius: 999px;
padding: 10px 14px;
font-weight: 800;
cursor: pointer;
transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 12px 24px rgba(20,21,26,.10); border-color: rgba(255,107,74,.24); }
.btn:active{ transform: translateY(0); box-shadow: none; }
.btn-primary{
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
color: #fff;
border-color: rgba(255,255,255,.0);
}
.btn-ghost{
background: rgba(255,255,255,.72);
}
.btn-small{
padding: 8px 12px;
font-size: .92rem;
}
.pill-row{ display:flex; gap:10px; flex-wrap:wrap; }
.pill{
font-size: .86rem;
font-weight: 800;
color: rgba(20,21,26,.78);
background: rgba(255,255,255,.72);
border: 1px solid rgba(255,107,74,.18);
padding: 7px 10px;
border-radius: 999px;
}
.tag-row{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 10px; }
.tag{
font-size: .84rem;
font-weight: 800;
color: rgba(20,21,26,.76);
background: rgba(255,255,255,.70);
border: 1px solid var(--border);
padding: 6px 10px;
border-radius: 999px;
}
.link{ color: #1976d2; text-decoration: none; font-weight: 800; }
.link:hover{ text-decoration: underline; }
/* ---------- Home (marketing) ---------- */
.home-hero{
padding: 30px 24px 10px 24px;
}
.home-hero-inner{
max-width: 1100px;
margin: 0 auto;
padding: 32px 26px;
border-radius: 24px;
border: 1px solid rgba(255,107,74,.16);
background:
radial-gradient(900px 380px at 20% 0%, rgba(255,152,0,.20), transparent 60%),
radial-gradient(900px 380px at 80% 0%, rgba(255,107,74,.18), transparent 60%),
rgba(255,255,255,.78);
box-shadow: var(--shadow);
}
.hero-title{
margin: 14px 0 10px 0;
font-size: clamp(2rem, 3.4vw, 3.2rem);
line-height: 1.08;
letter-spacing: -0.8px;
}
.hero-subtitle{
margin: 0;
max-width: 860px;
color: rgba(20,21,26,.74);
line-height: 1.6;
font-size: 1.02rem;
}
.hero-cta{ margin-top: 16px; display:flex; gap: 10px; flex-wrap: wrap; }
.section{
padding: 26px 24px;
}
.section-alt{
background: rgba(255,255,255,.55);
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
}
.section-head{
max-width: 1100px;
margin: 0 auto 14px auto;
}
.section-title{
margin: 0;
font-size: 1.55rem;
font-weight: 950;
letter-spacing: -.4px;
}
.section-desc{
margin: 8px 0 0 0;
color: rgba(20,21,26,.70);
line-height: 1.6;
}
.section-desc-note{ color: rgba(90,95,106,.9); }
.cards{
max-width: 1100px;
margin: 14px auto 0 auto;
display: grid;
gap: 14px;
}
.grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card{
background: rgba(255,255,255,.86);
border: 1px solid var(--border);
border-radius: 18px;
padding: 16px 16px 14px 16px;
box-shadow: 0 10px 24px rgba(20,21,26,.06);
}
.card-kicker{
font-size: .84rem;
font-weight: 900;
letter-spacing: .5px;
color: rgba(20,21,26,.62);
text-transform: uppercase;
}
.card-title{
margin-top: 6px;
font-weight: 950;
font-size: 1.12rem;
letter-spacing: -.2px;
}
.card-body{ margin-top: 10px; color: rgba(20,21,26,.74); line-height: 1.55; }
.list{ margin: 0; padding-left: 18px; }
.list li{ margin: 6px 0; }
.price-row{ margin-top: 10px; display:flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.price{ font-weight: 950; color: var(--text); }
.price-sub{ color: rgba(90,95,106,.9); font-weight: 800; }
.callout{
margin-top: 10px;
padding: 10px 12px;
background: var(--primary-soft);
border: 1px solid rgba(255,107,74,.20);
border-radius: 14px;
color: rgba(20,21,26,.78);
}
.mini-code{
margin: 10px 0 0 0;
padding: 12px 12px;
border-radius: 14px;
background: rgba(20,21,26,.92);
color: #e9ecf4;
overflow: auto;
font-size: .88rem;
line-height: 1.5;
}
.timeline{
max-width: 1100px;
margin: 14px auto 0 auto;
display: grid;
gap: 12px;
}
.timeline-item{
background: rgba(255,255,255,.86);
border: 1px solid var(--border);
border-radius: 18px;
padding: 14px 16px;
}
.timeline-title{ font-weight: 950; }
.timeline-body{ margin-top: 6px; color: rgba(20,21,26,.72); }
.footer-note{
max-width: 1100px;
margin: 18px auto 0 auto;
padding-bottom: 22px;
color: rgba(90,95,106,.85);
font-weight: 700;
}
.form-row{ display:flex; gap: 10px; }
.input, .textarea{
width: 100%;
border: 1px solid var(--border);
border-radius: 14px;
padding: 12px 12px;
background: rgba(255,255,255,.86);
font-size: 1rem;
outline: none;
}
.input:focus, .textarea:focus{ border-color: rgba(255,107,74,.35); box-shadow: 0 0 0 4px rgba(255,107,74,.10); }
.textarea{ margin-top: 10px; resize: vertical; }
.form-actions{ margin-top: 10px; display:flex; gap: 10px; flex-wrap: wrap; }
.info-row{ display:flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed rgba(20,21,26,.12); }
.info-row:last-child{ border-bottom: none; }
.info-k{ width: 80px; font-weight: 900; color: rgba(20,21,26,.70); }
.info-v{ flex: 1; color: rgba(20,21,26,.78); font-weight: 700; }
/* 채팅 화면 */
.page-chat {
justify-content: center;
align-items: center;
position: relative;
}
.chat-center {
position: absolute;
top: 35%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
overflow-y: auto;
max-height: calc(100vh - 200px);
padding: 20px;
width: 100%;
max-width: 800px;
}
.chat-logo-wrapper {
position: relative;
width: 100px;
height: 100px;
margin-bottom: 10px;
}
.chat-logo {
width: 100px;
height: 100px;
background: radial-gradient(circle, #FF9800 70%, #FFE0B2 100%);
border-radius: 50%;
box-shadow: 0 0 16px #FFD180;
position: relative;
z-index: 1;
}
.chat-title {
font-size: 2rem;
font-weight: 700;
color: #222;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
margin: 0;
z-index: 2;
pointer-events: none;
writing-mode: initial;
text-align: center;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.chat-subtitle {
font-size: 0.9rem;
color: #888;
text-align: center;
margin-top: 8px;
}
.chat-input-wrapper {
width: 100%;
max-width: 800px;
display: flex;
flex-direction: column;
align-items: center;
position: absolute;
bottom: 60px;
left: 50%;
transform: translateX(-50%);
z-index: 2;
}
.chat-input-area {
display: flex;
align-items: center;
background: rgba(255,255,255,.90);
border-radius: 24px;
box-shadow: 0 10px 22px rgba(20,21,26,.08);
padding: 8px 16px;
width: 100%;
max-width: 100%;
border: 1px solid rgba(20,21,26,.10);
}
.chat-input {
flex: 1;
border: none;
outline: none;
font-size: 1rem;
padding: 8px 10px;
background: #fff;
color: #222;
resize: none;
min-height: 32px;
max-height: 240px; /* 최대 약 10줄 */
line-height: 1.5;
box-sizing: border-box;
overflow-y: auto;
white-space: pre-wrap;
word-break: break-all;
}
.chat-input:empty:before {
content: attr(data-placeholder);
color: #bbb;
pointer-events: none;
}
.chat-plus, .chat-hash, .chat-send {
background: none;
border: none;
font-size: 1.2rem;
margin-left: 8px;
cursor: pointer;
color: var(--primary);
border-radius: 50%;
width: 32px;
height: 32px;
transition: background 0.2s;
}
.chat-send:disabled {
color: #FF9800;
cursor: not-allowed;
}
.footer {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 18px;
font-size: 0.95rem;
color: #b2b2b2;
}
/* 도구 화면 */
.page-tools {
padding: 24px 32px 0 32px;
flex-direction: column;
align-items: flex-start;
}
.tools-header {
display: flex;
align-items: center;
width: 100%;
margin-bottom: 18px;
}
.tools-title {
font-size: 1.2rem;
font-weight: bold;
margin-right: 24px;
}
.tools-filters {
display: flex;
gap: 10px;
}
.filter-btn {
background: rgba(255,255,255,.82);
border: 1px solid var(--border);
border-radius: 16px;
padding: 6px 16px;
color: rgba(20,21,26,.78);
font-size: 1rem;
cursor: pointer;
transition: background 0.2s, color 0.2s;
}
.filter-btn.active, .filter-btn:hover {
background: var(--primary-soft);
color: var(--text);
font-weight: bold;
border-color: rgba(255,107,74,.22);
}
.tools-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 18px;
width: 100%;
}
.tool-card {
position: relative;
background: rgba(255,255,255,.86);
border-radius: 16px;
padding: 20px;
margin-bottom: 16px;
box-shadow: 0 10px 24px rgba(20,21,26,.06);
cursor: pointer;
transition: all 0.3s ease;
border: 1px solid var(--border);
}
.tool-card:hover {
transform: translateY(-2px);
box-shadow: 0 16px 34px rgba(20,21,26,.10);
border-color: rgba(255,107,74,.22);
}
.tool-card.selected {
border-color: rgba(255,107,74,.55);
background: linear-gradient(135deg, rgba(255,107,74,.08) 0%, rgba(255,255,255,.88) 100%);
box-shadow: 0 18px 44px rgba(255, 107, 74, 0.16);
}
.tool-card:active {
transform: translateY(0);
box-shadow: 0 2px 8px #ffe0d3;
}
.tool-title {
font-size: 1.1rem;
font-weight: bold;
color: #222;
}
.tool-desc {
font-size: 0.98rem;
color: #666;
}
.tool-fav {
position: absolute;
top: 14px;
right: 14px;
font-size: 1.2rem;
color: #FFD6C2;
cursor: pointer;
transition: color 0.2s;
}
.tool-fav.active {
color: var(--primary);
}
@media (max-width: 900px) {
:root{ --app-sidebar-w: 96px; }
.sidebar{ padding: 16px 10px; }
.logo{ padding: 10px 10px 12px 10px; }
.logo-sub{ display:none; }
.menu-item{ text-align:center; padding: 12px 8px; }
.menu-item-sub{ display:none; }
.tools-list {
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.grid-3{ grid-template-columns: 1fr; }
.grid-2{ grid-template-columns: 1fr; }
.home-hero{ padding: 18px 14px 6px 14px; }
.home-hero-inner{ padding: 22px 16px; }
.section{ padding: 18px 14px; }
.chat-input-wrapper { width: calc(95vw - 0px); max-width: calc(95vw - 0px); }
.chat-input-area {
width: 100%;
min-width: 0;
}
.image-preview-area {
width: 100%;
min-width: 0;
}
}
/* 채팅 메시지 스타일 */
.chat-message {
margin: 10px 0;
padding: 10px 15px;
border-radius: 15px;
max-width: 80%;
word-wrap: break-word;
position: relative;
}
.user-message {
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
color: #fff;
margin-left: auto;
border-bottom-right-radius: 5px;
}
.bot-message {
background-color: rgba(255,255,255,.88);
color: rgba(20,21,26,.92);
margin-right: auto;
border-bottom-left-radius: 5px;
border: 1px solid rgba(20,21,26,.10);
}
.bot-message img { display:block; max-width:100%; border-radius:12px; }
.message-content {
margin-bottom: 5px;
line-height: 1.4;
white-space: pre-wrap; /* 입력 줄바꿈 그대로 표시 */
word-break: break-word;
}
.message-time {
font-size: 0.75rem;
opacity: 0.7;
text-align: right;
}
.user-message .message-time {
text-align: left;
}
/* 로딩 애니메이션 */
@keyframes typing {
0%, 20% { opacity: 0; }
50% { opacity: 1; }
100% { opacity: 0; }
}
.bot-message.loading .message-content::after {
content: '...';
animation: typing 1.5s infinite;
}
/* 이미지 미리보기 영역 */
.image-preview-area {
margin-bottom: 8px;
width: 100%;
max-width: 100%;
}
.image-preview-box {
display: flex;
align-items: center;
background: #f8f9fa;
border: 1px solid #eee;
border-radius: 12px;
padding: 8px 12px;
position: relative;
min-width: 120px;
max-width: 220px;
box-shadow: 0 2px 8px #ffe0d3;
}
.image-preview-thumb {
width: 36px;
height: 36px;
object-fit: cover;
border-radius: 8px;
margin-right: 10px;
background: #fff;
border: 1px solid #eee;
}
.image-preview-info {
display: flex;
flex-direction: column;
font-size: 0.95rem;
color: #444;
}
.image-preview-name {
font-weight: 500;
margin-bottom: 2px;
max-width: 100px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.image-preview-size {
font-size: 0.85rem;
color: #888;
}
.image-preview-remove {
position: absolute;
top: 6px;
right: 6px;
background: #fff0ee;
border: none;
color: #FF9800;
font-size: 1.1rem;
border-radius: 50%;
width: 22px;
height: 22px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
}
.image-preview-remove:hover {
background: #FF9800;
color: #fff;
}
/* 도구 채팅 헤더 */
.tool-chat-header {
text-align: center;
margin-bottom: 30px;
padding: 20px;
background: rgba(255, 255, 255, 0.78);
border-radius: 16px;
box-shadow: 0 10px 24px rgba(20,21,26,.06);
border: 1px solid rgba(20,21,26,.10);
}
.tool-chat-title {
font-size: 1.4rem;
font-weight: bold;
color: var(--primary);
margin-bottom: 8px;
}
.tool-chat-desc {
font-size: 0.9rem;
color: #666;
line-height: 1.4;
}
.progress-bar {
width: 60px;
height: 6px;
background: #eee;
border-radius: 3px;
margin-top: 6px;
overflow: hidden;
}
.progress-bar-inner {
width: 100%;
height: 100%;
background: linear-gradient(90deg, #FF9800 0%, #FFD6C2 100%);
animation: progressBarAnim 1s linear infinite;
}
@keyframes progressBarAnim {
0% { transform: translateX(-100%); }
100% { transform: translateX(100%); }
}
.model-toggle-group {
display: flex;
align-items: center;
gap: 4px;
margin-right: 8px;
}
.model-toggle-btn {
background: #FFE0D3;
border: 1.5px solid #FFD6C2;
color: #FF9800;
font-weight: 500;
border-radius: 16px;
padding: 4px 16px;
font-size: 1rem;
cursor: pointer;
transition: background 0.2s, color 0.2s, border 0.2s;
outline: none;
}
.model-toggle-btn.active,
.model-toggle-btn:focus {
background: #FF9800;
color: #fff;
border: 1.5px solid #FF9800;
}
.model-toggle-btn:hover:not(.active) {
background: #FFD6C2;
color: #FF9800;
}
.external-iframe {
width: 100%;
height: 100%;
border: none;
}
/* iframe 모드 시 채팅 영역 전체 확장 */
.chat-center.iframe-mode {
position: absolute;
top: 0;
left: 0;
transform: none;
width: 100%;
max-width: none;
height: 100%;
padding: 0;
}
/* 파일 사이드바 */
.file-sidebar {
position: absolute;
left: 0;
top: 0;
width: var(--file-sidebar-w);
height: 100%;
background: rgba(255,255,255,.82);
border-right: 1px solid rgba(20,21,26,.10);
overflow-y: auto;
z-index: 3;
}
.file-sidebar-header {
padding: 12px;
font-weight: bold;
border-bottom: 1px solid #ffd6c2;
}
.file-list {
list-style: none;
margin: 0;
padding: 0;
}
.file-list li {
padding: 8px 12px;
cursor: pointer;
border-bottom: 1px solid #ffe8d5;
display:flex;
justify-content: space-between;
align-items:center;
}
.file-del-btn{
background:none;
border:none;
color:#ff6b4a;
cursor:pointer;
font-size:1rem;
}
/* (추가) 긴 파일명도 버튼이 가려지지 않도록 처리 */
.file-list li span{
flex:1 1 auto; /* 남는 공간을 차지하면서 필요하면 축소 */
min-width:0; /* flex-shrink 가 동작하도록 최소폭 0 */
overflow:hidden; /* 넘치는 텍스트 숨김 */
text-overflow:ellipsis; /* 말줄임표 표시 */
white-space:nowrap; /* 한 줄 유지 */
}
.file-list li:hover { background: #fff1e6; }
/* 파일 슬라이드 팝업 */
.file-slide {
position: fixed;
left: 220px; /* 옆 사이드바 너비 */
bottom: -60%;
width: calc(100% - 220px);
height: 60%;
background: #ffffff;
box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
border-top-left-radius: 12px;
border-top-right-radius: 12px;
overflow-y: auto;
transition: bottom 0.3s ease;
z-index: 4;
padding: 16px;
}
.file-slide.show { bottom: 0; }
.file-progress {
padding:8px 12px;
color:#aaa;
font-style:italic;
}
@keyframes pulseProgress {
0% { opacity: 0.3; }
50% { opacity: 1; }
100% { opacity: 0.3; }
}
.file-progress {
animation: pulseProgress 1.5s infinite;
}
.file-slide-close {
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 6px; /* 팝업 내부 상단 */
width: 32px;
height: 32px;
background: #fff;
border: 2px solid #ff6b4a;
border-radius: 50%;
font-size: 1.3rem;
line-height: 28px;
text-align: center;
cursor: pointer;
color: #ff6b4a;
font-weight: bold;
z-index: 5;
}
.file-slide-close:hover { background:#ff6b4a; color:#fff; }
.file-slide-content {
white-space: pre-wrap;
font-family: "Noto Sans KR", sans-serif;
}
/* PDF 로딩 오버레이 */
.file-loading-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.85);
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
color: #ff6b4a;
font-style: italic;
z-index: 4; /* iframe 위에 표시 */
animation: pulseProgress 1.5s infinite;
}
/* --- Sidebar fixed width to prevent layout shift --- */
.file-sidebar {
width: var(--file-sidebar-w);
flex: 0 0 var(--file-sidebar-w);
}
.file-sidebar .file-list li {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* --- Community page adjustments --- */
.page-community {
overflow-y: visible; /* use outer body scrollbar only */
overflow-x: hidden;
}
.page-community.active {
display: block !important; /* show only when active; override .page.active flex */
}
#community-img { display:none; }
/* 커뮤니티 내부 레이아웃 */
.community-container { display:flex; height:100%; }
.community-sidebar { width:180px; background:#fff8ef; border-right:1px solid #ffd6c2; }
.community-sidebar ul{ list-style:none; margin:0; padding:0; }
.community-menu-item{ padding:12px 18px; cursor:pointer; color:#333; font-size:1rem; }
.community-menu-item.active,.community-menu-item:hover{ background:#fff1e6; color:#ff9800; font-weight:bold; }
.community-content{ flex:1; overflow-y:auto; }
.newsletter-list{ list-style:none; margin:0; padding:0 0 0 20px; }
.newsletter-list li{ padding:6px 0; }
.newsletter-list a{ color:#007acc; text-decoration:none; font-size:1rem; }
.newsletter-list a:hover{ text-decoration:underline; }
.newsletter-title{ margin:16px 0 8px 20px; font-size:1.4rem; }
.newsletter-content-area{ height: calc(100% - 56px); /* adapt below title */ }
.newsletter-pdf-wrapper{ position:relative; height:100%; }
.newsletter-iframe{ width:100%; height:100%; border:none; }
.newsletter-close{ position:absolute; top:-16px; left:50%; transform:translateX(-50%); width:32px; height:32px; background:#fff; border:2px solid #ff6b4a; border-radius:50%; font-size:1.3rem; line-height:26px; text-align:center; color:#ff6b4a; cursor:pointer; z-index:5; }
.newsletter-close:hover{ background:#ff6b4a; color:#fff; }
/* Lecture styles */
.lecture-title{ margin:16px 0 8px 20px; font-size:1.4rem; }
.lecture-topic{ margin:8px 0 12px 20px; font-size:1.2rem; color:#555; }
.lecture-video-list{ display:flex; flex-wrap:wrap; gap:12px; padding:0 0 0 20px; }
.lecture-video{ width:140px; display:block; }
.lecture-video img{ width:100%; border-radius:8px; box-shadow:0 2px 6px rgba(0,0,0,0.1); }
.lecture-video:hover img{ transform:scale(1.03); transition:transform .2s; }
/* QnA board */
.qna-title-head{ margin:16px 0 8px 20px; font-size:1.4rem; }
.qna-table{ width:calc(100% - 40px); margin:0 20px; border-collapse:collapse; }
.qna-table th,.qna-table td{ border-bottom:1px solid #eee; padding:10px; text-align:left; }
.qna-table th{ background:#fff8ef; font-weight:600; color:#333; }
.qna-table tr:hover td{ background:#fff1e6; }
.qna-title{ color:#007acc; cursor:pointer; }
.qna-title:hover{ text-decoration:underline; }
/* Document Translation styles */
.download-original-link,
.download-result-link {
color: #007acc;
text-decoration: none;
font-weight: bold;
margin-right: 6px;
padding: 2px 6px;
border-radius: 4px;
border: 1px solid #007acc;
font-size: 0.8rem;
display: inline-block;
}
.download-original-link:hover,
.download-result-link:hover {
background: #007acc;
color: #fff;
text-decoration: none;
}
.download-original-link {
background-color: #f8f9fa;
border-color: #6c757d;
color: #6c757d;
}
.download-original-link:hover {
background-color: #6c757d;
color: #fff;
}
.translating {
color: #ff6b4a;
font-weight: bold;
margin-right: 8px;
font-size: 0.8rem;
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
.file-list li.translation-result-item {
display: block !important;
align-items: initial !important;
justify-content: initial !important;
}
.file-item-content { width: 100%; }
.original-file {
font-weight: bold;
color: #333;
margin-bottom: 2px;
font-size: 0.9rem;
}
.result-file {
color: #666;
font-size: 0.85rem;
margin-bottom: 4px;
font-style: italic;
}
/* ------- Loading Overlay for AI뉴스 ------- */
.loading-overlay {
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
background: rgba(255, 255, 255, 0.96);
border: 1px solid #ffd6c2;
border-radius: 16px;
padding: 14px 18px;
z-index: 2000;
box-shadow: 0 8px 22px rgba(0,0,0,.12);
display: flex;
align-items: center;
gap: 10px;
pointer-events: none;
}
.loading-text {
color: #ff6b4a;
font-weight: 700;
letter-spacing: .4px;
animation: textPulse 1.2s ease-in-out infinite;
}
.loading-dots {
display: inline-flex;
gap: 6px;
}
.loading-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #ff6b4a;
animation: loadingBlink 1s infinite ease-in-out;
}
.loading-dot:nth-child(2) { animation-delay: .2s; }
.loading-dot:nth-child(3) { animation-delay: .4s; }
@keyframes loadingBlink {
0%, 80%, 100% { opacity: .25; transform: scale(.85); }
40% { opacity: 1; transform: scale(1); }
}
@keyframes textPulse {
0%, 100% { opacity: .7; }
50% { opacity: 1; }
}
/* When file sidebar is visible, shift chat area and input to the right */
.page-chat.has-file-sidebar .chat-center {
left: calc(50% + var(--file-sidebar-half));
max-width: calc(100% - var(--file-sidebar-w) - 40px);
transform: translate(-50%, -50%);
}
.page-chat.has-file-sidebar .chat-input-wrapper {
left: calc(50% + var(--file-sidebar-half));
max-width: calc(100% - var(--file-sidebar-w) - 40px);
width: calc(100% - var(--file-sidebar-w));
transform: translateX(-50%);
}
/* --- Chat History Panel & Toggle --- */
.chat-history-toggle {
position: absolute;
top: 18px;
left: 18px;
width: 32px;
height: 32px;
padding: 6px;
background: none;
border: none;
cursor: pointer;
z-index: 6;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.chat-history-toggle span {
display: block;
width: 100%;
height: 3px;
background: var(--primary);
border-radius: 2px;
}
.chat-history-panel {
position: absolute;
top: 78px;
left: 0;
width: 360px;
/* 상단 헤더(top)과 하단 입력 영역(bottom) 사이에 꽉 채움 */
bottom: 0px; /* chat-input-wrapper 의 bottom 값과 동일 */
background: #ffffff;
border-right: 1px solid #ffd6c2;
box-shadow: 2px 0 12px rgba(0,0,0,0.05);
z-index: 5;
overflow-y: auto;
display: none; /* 기본 숨김 */
}
.chat-history-panel.show { display: block; }
.chat-history-list { list-style: none; margin: 0; padding: 0; }
.history-item { padding: 10px 14px; border-bottom: 1px solid #ffe8d5; }
.history-content { font-size: 0.95rem; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-time { font-size: 0.8rem; color: #aaa; }
/* 파일 사이드바가 있는 경우 히스토리 패널 위치 보정 */
.page-chat.has-file-sidebar .chat-history-panel { left: 260px; }
.page-chat.has-file-sidebar .chat-history-toggle { left: 278px; }