F23ASFGGD / style.css
ssboost's picture
Create style.css
ffd401c verified
: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;
}
/* ν‘Έν„° μˆ¨κΉ€ μ„€μ • */
footer {
visibility: hidden;
}
.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;
}
}