/* Modern color scheme */ :root { /* 주요 브랜드 컬러 */ --primary: #0066cc; /* 메인 브랜드 컬러 */ --secondary: #3385ff; /* 밝은 액센트 */ --accent: #66a3ff; /* 부드러운 포인트 컬러 */ --tertiary: #5d2e8c; /* 포인트 컬러 */ /* 배경 컬러 */ --background: #f7f9fc; /* 메인 배경 */ --surface: #ffffff; /* 카드 배경 */ /* 텍스트 컬러 */ --text-primary: #2c3e50; /* 주요 텍스트 */ --text-secondary: #546e7a; /* 부가 텍스트 */ --text-tertiary: #78909c; /* 덜 중요한 텍스트 */ /* 기능성 컬러 */ --success: #34c759; /* 성공/확인 */ --warning: #ff9500; /* 경고/주의 */ --error: #ff3b30; /* 오류/삭제 */ /* 중립 컬러 */ --neutral-100: #f8f9fa; --neutral-200: #e9ecef; --neutral-300: #dee2e6; --neutral-400: #ced4da; /* 그림자 및 효과 */ --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08); --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1); --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.12); /* 둥근 모서리 */ --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; } body { font-family: 'Inter', system-ui, sans-serif; background: var(--background); color: var(--text-primary); line-height: 1.5; } .left_header { display: flex; flex-direction: column; justify-content: center; align-items: center; background: linear-gradient(135deg, var(--surface), var(--neutral-100)); backdrop-filter: blur(10px); border-radius: 24px; padding: 2rem; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); border: 1px solid var(--neutral-200); text-align: center; margin-bottom: 2rem; } .left_header img { width: 180px; margin-bottom: 1rem; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .left_header h1 { margin: 0.5rem 0; font-weight: 600; color: var(--text-primary); } /* 패널 레이아웃 조정 - 높이 일치 */ .equal-height-container { display: flex; min-height: 900px; } .equal-height-col { display: flex; flex-direction: column; height: 100%; } /* 좌측 패널 상단 헤더 */ .render_header { height: 30px; width: 100%; padding: 5px 16px; background: linear-gradient(to right, var(--neutral-100), var(--neutral-200)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top: 0; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--neutral-300); } .header_btn { display: inline-block; height: 10px; width: 10px; border-radius: 50%; margin-right: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); } .render_header > .header_btn:nth-child(1) { background-color: var(--error); } .render_header > .header_btn:nth-child(2) { background-color: var(--warning); } .render_header > .header_btn:nth-child(3) { background-color: var(--success); } .right_content { height: 870px; /* 헤더(30px)를 제외한 높이 */ display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--surface); border-radius: 0 0 var(--radius-lg) var(--radius-lg); } .history_chatbot button { background: none; border: none; } footer, .footer, div[class*="footer"], #footer { display: none !important; } /* 우측 상단 버튼 영역 */ .right-top-buttons { margin-bottom: 15px; background: linear-gradient(to right, var(--neutral-100), var(--neutral-200)); padding: 15px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--neutral-300); } /* 상단 메뉴 버튼과 하단 액션 버튼 구분 */ .setting-buttons { display: flex; gap: 8px; padding: 8px 0; justify-content: space-between; border-bottom: 2px dashed var(--neutral-300); padding-bottom: 12px; margin-bottom: 12px; } .setting-buttons .ant-btn { background: linear-gradient(135deg, var(--surface), var(--neutral-100)); border: 1px solid var(--neutral-300); color: var(--text-primary); font-weight: 600; box-shadow: var(--shadow-sm); min-width: 100px; height: 38px; border-radius: var(--radius-lg); } .setting-buttons .ant-btn:hover { background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200)); transform: translateY(-2px); box-shadow: var(--shadow-md); } .action-buttons { margin-top: 5px; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 8px; } .action-buttons .ant-btn { min-width: 80px; height: 40px; font-weight: 600; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.85em; } .action-buttons .ant-btn-primary { background: linear-gradient(to right, var(--primary), var(--secondary)); border: none; color: white; } .action-buttons .ant-btn-primary:hover { background: linear-gradient(to right, var(--secondary), var(--primary)); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3); } .action-buttons .ant-btn-default { background: var(--surface); border: 1px solid var(--neutral-300); color: var(--text-primary); } .action-buttons .ant-btn-default:hover { border-color: var(--secondary); color: var(--secondary); transform: translateY(-2px); box-shadow: var(--shadow-md); } /* 각 버튼 스타일 커스텀 - 클래스 기반 */ .send-btn { background: linear-gradient(to right, var(--primary), var(--secondary)) !important; border: none !important; color: white !important; } .boost-btn { background: linear-gradient(to right, var(--tertiary), #9966cc) !important; border: none !important; color: white !important; } .execute-btn { background: linear-gradient(to right, var(--success), #66d9a8) !important; border: none !important; color: white !important; } .deploy-btn { background: linear-gradient(to right, var(--warning), #ffcc66) !important; border: none !important; color: white !important; } .clear-btn { background: linear-gradient(to right, #f44336, #ff7961) !important; border: none !important; color: white !important; } /* 메뉴 버튼 추가 스타일 */ .code-btn, .history-btn, .template-btn { transition: all 0.3s ease; } .code-btn:hover, .history-btn:hover, .template-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } #component-0 textarea, .gradio-container textarea, .ant-input-textarea-large textarea { /* 텍스트 영역 높이 조정 */ height: 790px !important; /* 버튼들이 상단으로 이동하여 높이 조정 */ min-height: 300px !important; resize: vertical !important; border: 2px solid var(--neutral-200); border-radius: var(--radius-lg); transition: all 0.3s; background: var(--surface); color: var(--text-primary); padding: 1rem; flex-grow: 1; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03); } #component-0 textarea:focus, .gradio-container textarea:focus, .ant-input-textarea-large textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(102, 163, 255, 0.2); } .right_panel { position: relative; height: 900px; display: flex; flex-direction: column; padding-top: 0; } .panel { display: flex; flex-direction: column; height: 900px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--neutral-300); overflow: hidden; } .input-panel { display: flex; flex-direction: column; margin-top: 0; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--neutral-300); box-shadow: var(--shadow-lg); padding: 15px; height: 870px; /* 버튼 영역 제외한 높이 */ overflow: hidden; } .html_content { flex: 1; height: 870px; /* 헤더(30px)를 제외한 높이 */ border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05); background: var(--surface); } .ant-input-textarea { display: flex; flex-direction: column; flex: 1; } /* 우측 박스 텍스트 폰트 크기 20% 감소 */ .input-panel textarea, .input-panel .ant-input-textarea-large textarea, .input-panel .help-text { font-size: 0.8em; /* 기본 폰트 크기에서 20% 감소 */ } /* 도움말 텍스트 스타일 */ .help-text { padding: 8px 12px; background-color: var(--neutral-100); border-radius: var(--radius-md); color: var(--text-secondary); font-style: italic; margin-top: 8px; border-left: 3px solid var(--accent); } /* 탭 컨텐츠 높이 조정 */ .ant-tabs-content { height: 100%; } .ant-tabs-tabpane { height: 100%; display: flex; flex-direction: column; } /* Drawer customization */ .ant-drawer-content-wrapper { border-radius: 16px 0 0 16px; } .ant-drawer-header { background: linear-gradient(to right, var(--primary), var(--tertiary)); color: white; border-radius: 16px 0 0 0; } .ant-drawer-title { color: white; font-weight: 600; letter-spacing: 0.5px; } .ant-drawer-close { color: white; } .ant-drawer-body { background: var(--surface); } .session-drawer .chatbot { height: calc(100vh - 200px); overflow-y: auto; } .session-history { height: 700px; overflow-y: auto; padding: 1rem; } .prompt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; padding: 1.5rem; } .prompt-card { background: var(--surface); border-radius: var(--radius-lg); padding: 1.25rem; cursor: pointer; transition: all 0.3s; box-shadow: var(--shadow-sm); min-height: 300px; border: 1px solid var(--neutral-200); } .prompt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } /* Custom scrollbar */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: var(--neutral-100); border-radius: 4px; } ::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--neutral-400); } /* Responsive adjustments */ @media (max-width: 768px) { .left_header { padding: 1rem; } .prompt-grid { grid-template-columns: 1fr; } .setting-buttons { flex-wrap: wrap; } .action-buttons { flex-wrap: wrap; } .setting-buttons .ant-btn, .action-buttons .ant-btn { min-width: calc(50% - 8px); margin: 4px; } } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .fade-in { animation: fadeIn 0.5s ease-out; } /* 배포 결과 영역 */ [label="배포 결과"] { margin-top: 15px; padding: 12px; background-color: var(--neutral-100); border-radius: var(--radius-md); border-left: 3px solid var(--primary); } /* 배포 결과 스타일 */ .deploy-result-container { margin-top: 15px; width: 100%; } .deploy-result-title { font-weight: bold; margin-bottom: 5px; color: var(--text-primary); } .deploy-result-box { background-color: var(--neutral-100); border: 1px solid var(--neutral-300); border-radius: var(--radius-md); padding: 12px; min-height: 60px; overflow-wrap: break-word; word-wrap: break-word; word-break: break-all; } .deploy-success { color: var(--success); padding: 10px; background-color: rgba(52, 199, 89, 0.1); border-radius: var(--radius-md); } .deploy-url { margin: 10px 0; font-weight: bold; } .deploy-url a { color: var(--primary); text-decoration: underline; } /* 배포 관련 추가 스타일 */ .deployment-status-area { position: relative; bottom: 0; left: 0; width: 100%; background-color: var(--neutral-100); border-top: 1px solid var(--neutral-300); border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 10px 15px; margin-top: -5px; z-index: 10; } .deployment-status-content { width: 100%; } .status-bar { display: flex; align-items: center; padding: 10px 12px; border-radius: var(--radius-md); animation: fadeIn 0.3s ease-out; } .status-bar.success { background-color: rgba(52, 199, 89, 0.1); border-left: 4px solid var(--success); } .status-bar.error { background-color: rgba(255, 59, 48, 0.1); border-left: 4px solid var(--error); } .status-bar.loading { background-color: rgba(90, 200, 250, 0.1); border-left: 4px solid #5ac8fa; } .status-icon { font-size: 1.2em; margin-right: 10px; } .status-text { font-weight: 500; } .status-link { margin-left: 5px; color: var(--primary); text-decoration: underline; font-weight: 600; } /* 모달 스타일 */ .deploy-modal-content { padding: 20px; } .deploy-success h3, .deploy-error h3, .deploy-loading h3 { margin-top: 0; display: flex; align-items: center; } .deploy-url-box { background-color: var(--neutral-100); border: 1px solid var(--neutral-300); border-radius: var(--radius-md); padding: 12px; margin: 15px 0; display: flex; justify-content: space-between; align-items: center; word-break: break-all; } .deploy-url-box a { color: var(--primary); font-weight: 600; text-decoration: none; flex: 1; } .copy-btn { background-color: var(--primary); color: white; border: none; border-radius: var(--radius-sm); padding: 5px 10px; margin-left: 10px; cursor: pointer; font-size: 0.8em; transition: all 0.2s; } .copy-btn:hover { background-color: var(--secondary); transform: translateY(-2px); } .error-details { background-color: #ffeeee; border-radius: var(--radius-sm); padding: 10px; font-family: monospace; font-size: 0.9em; overflow-x: auto; white-space: pre-wrap; margin-top: 10px; } .loading-spinner { margin: 20px auto; width: 40px; height: 40px; border: 4px solid rgba(0, 102, 204, 0.2); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* 모달 오버라이드 스타일 */ .ant-modal-content { border-radius: var(--radius-lg) !important; overflow: hidden; } .ant-modal-header { background: linear-gradient(to right, var(--primary), var(--secondary)); padding: 16px 24px; border-bottom: 1px solid var(--neutral-300); } .ant-modal-title { color: white !important; font-weight: 600; } .ant-modal-close { color: white !important; } /* 배포 알림이 항상 보이도록 z-index 조정 */ #deploy-modal { z-index: 1500 !important; } .deploy-error { color: var(--error); padding: 10px; background-color: rgba(255, 59, 48, 0.1); border-radius: var(--radius-md); /* 배포 결과 컴포넌트 스타일링 */ .deploy-result { margin-top: 10px; max-height: 90px; overflow-y: auto; background-color: var(--neutral-100); padding: 10px; border-radius: var(--radius-md); border-left: 3px solid var(--primary); } /* 입력 패널과 우측 패널의 높이 일치 */ .input-panel { height: 870px !important; max-height: 870px !important; overflow: hidden; display: flex; flex-direction: column; } .input-panel textarea { flex-grow: 1; height: calc(100% - 120px) !important; /* 도움말 텍스트와 배포 결과 공간 확보 */ min-height: 300px !important; } /* 배포 결과 영역의 링크 색상 지정 */ #deploy-result a { color: var(--primary); font-weight: bold; text-decoration: underline; } /* 텍스트 영역의 오버플로우 조정 */ .input-panel .ant-input-textarea { flex: 1; display: flex; flex-direction: column; } .input-panel .ant-input-textarea-large { flex: 1; }