:root { --primary-color: #FB7F0D; --secondary-color: #ff9a8b; --accent-color: #FF6B6B; --background-color: #FFFFFF; --card-bg: #ffffff; --text-color: #334155; --border-radius: 18px; --shadow: 0 8px 30px rgba(251, 127, 13, 0.08); } /* ── 전역 스타일 ── */ body { font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif; background-color: var(--background-color); color: var(--text-color); line-height: 1.6; margin: 0; padding: 0; } .gradio-container { width: 100%; margin: 0 auto; padding: 20px; background-color: var(--background-color); } /* ── 섹션 스타일 ── */ .custom-section-group, .gr-block.gr-group { background-color: var(--background-color) !important; box-shadow: none !important; } .custom-section-group::before, .custom-section-group::after, .gr-block.gr-group::before, .gr-block.gr-group::after { display: none !important; content: none !important; } /* 섹션 프레임 */ .custom-frame { background-color: var(--card-bg); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: var(--border-radius); padding: 20px; margin: 10px 0; box-shadow: var(--shadow); } /* 접을 수 있는 섹션 */ .collapsible-section { margin-bottom: 10px; } .collapsible-header { background-color: var(--primary-color); color: white; padding: 10px 15px; border-radius: var(--border-radius); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.3s; } .collapsible-header:hover { background-color: var(--secondary-color); } .collapsible-content { display: none; padding: 15px; background-color: var(--card-bg); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 0 0 var(--border-radius) var(--border-radius); margin-top: -5px; } .collapsible-content.active { display: block; } /* 두 버튼에 공통으로 적용할 스타일 */ .execution-button { font-size: 18px !important; padding: 10px 20px !important; height: 45px !important; width: 100% !important; border-radius: 30px !important; margin: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; text-align: center !important; color: white !important; border: none !important; transition: transform 0.3s ease !important; } /* 각 버튼별 고유 색상 */ .primary-button { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important; box-shadow: 0 4px 8px rgba(251, 127, 13, 0.25) !important; } .secondary-button { background: linear-gradient(135deg, #6c757d, #495057) !important; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25) !important; } .execution-button:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25) !important; } /* 실행 버튼 컨테이너 */ .execution-section { margin-top: 20px; padding: 15px; background-color: #f9f9f9; border-radius: 8px; border: 1px solid #e5e5e5; } /* ── 컴포넌트 스타일 ── */ /* 버튼 스타일 */ .custom-button { border-radius: 30px !important; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important; color: white !important; font-size: 18px !important; padding: 10px 20px !important; border: none; box-shadow: 0 4px 8px rgba(251, 127, 13, 0.25); transition: transform 0.3s ease; } .custom-button:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(251, 127, 13, 0.3); } /* 작은 버튼 */ .custom-button-small { border-radius: 20px !important; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important; color: white !important; font-size: 14px !important; padding: 8px 15px !important; border: none; box-shadow: 0 2px 6px rgba(251, 127, 13, 0.25); transition: transform 0.3s ease; } .custom-button-small:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(251, 127, 13, 0.3); } /* 리셋 버튼 */ .reset-button { border-radius: 30px !important; background: linear-gradient(135deg, #6c757d, #495057) !important; color: white !important; font-size: 16px !important; padding: 8px 16px !important; border: none; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); transition: transform 0.3s ease; margin-top: 20px; } .reset-button:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); } /* 입력 필드 스타일 */ .gr-input, .gr-text-input, .gr-sample-inputs { border-radius: var(--border-radius) !important; border: 1px solid #dddddd !important; padding: 12px !important; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05) !important; transition: all 0.3s ease !important; } .gr-input:focus, .gr-text-input:focus { border-color: var(--primary-color) !important; outline: none !important; box-shadow: 0 0 0 2px rgba(251, 127, 13, 0.2) !important; } /* 체크박스와 라디오 버튼 스타일 */ input[type="checkbox"], input[type="radio"] { accent-color: var(--primary-color); } /* 드롭다운 스타일 */ .gr-dropdown { border-radius: var(--border-radius) !important; border: 1px solid #dddddd !important; padding: 12px !important; transition: all 0.3s ease !important; } .gr-dropdown:focus { border-color: var(--primary-color) !important; outline: none !important; box-shadow: 0 0 0 2px rgba(251, 127, 13, 0.2) !important; } /* ── 섹션 제목 스타일 ── */ .section-title { display: flex; align-items: center; font-size: 20px; font-weight: 700; color: #333333; margin-bottom: 10px; padding-bottom: 5px; border-bottom: 2px solid var(--primary-color); font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif; } .section-title img, .section-title i { margin-right: 10px; font-size: 20px; color: var(--primary-color); } /* 서브 섹션 제목 */ .subsection-title { font-size: 18px; font-weight: 600; color: #444444; margin: 15px 0 8px 0; } /* ── 테이블 스타일 ── */ .styled-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0; padding: 0; font-size: 14px; } .styled-table th, .styled-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #dddddd; overflow: hidden; text-overflow: ellipsis; } .styled-table th { background-color: var(--primary-color); color: white; font-weight: bold; position: sticky; top: 0; white-space: nowrap; } .styled-table tbody tr:nth-of-type(even) { background-color: #f3f3f3; } .styled-table tbody tr:hover { background-color: #f0f0f0; } .styled-table tbody tr:last-of-type { border-bottom: 2px solid var(--primary-color); } /* 데이터 컨테이너 */ .data-container { max-height: 600px; overflow-y: auto; border-radius: var(--border-radius); border: 1px solid #e5e5e5; margin-top: 15px; } /* 스크롤바 스타일 */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.05); border-radius: 10px; } ::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 10px; } /* ── 분석 결과 스타일 ── */ .analysis-result { margin-top: 30px; border: 1px solid #ddd; border-radius: 5px; padding: 15px; background-color: #f9f9f9; } .result-header { font-weight: bold; margin-bottom: 15px; color: var(--primary-color); font-size: 16px; } .summary-box { background-color: #f5f5f5; border-left: 4px solid var(--primary-color); padding: 10px 15px; margin-bottom: 20px; font-size: 14px; } .summary-title { font-weight: bold; margin-bottom: 5px; } .recommendation-box { background-color: #e7f7f3; border-radius: 5px; padding: 15px; margin-bottom: 25px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .recommendation-title { font-weight: bold; font-size: 16px; color: var(--primary-color); margin-bottom: 10px; } .recommendation-item { padding: 6px 0; border-bottom: 1px solid #e0e0e0; } .recommendation-item:last-child { border-bottom: none; } /* ── 키워드 태그 스타일 ── */ .keyword-tag-container { margin-top: 20px; padding: 10px; border: 1px solid #ddd; border-radius: 5px; background-color: #f9f9f9; } .keyword-tag { display: inline-block; background-color: var(--primary-color); color: white; padding: 5px 10px; margin: 5px; border-radius: 15px; font-size: 12px; } .category-tag { display: inline-block; background-color: #2c7fb8; color: white; padding: 5px 10px; margin: 5px; border-radius: 15px; font-size: 12px; } /* ── 레이아웃 유틸리티 ── */ .hidden-section { display: none; } /* 섹션 표시/숨김 제어 */ .section-visible { display: block; animation: fadeIn 0.5s ease-out; } /* 애니메이션 효과 */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .fade-in { animation: fadeIn 0.5s ease-out; } /* 반응형 조정 */ @media (max-width: 768px) { .grid-container { grid-template-columns: 1fr; } }