/* ═══════════════════════════════════════════════════════════ 노코딩 Python+ – Global Styles ═══════════════════════════════════════════════════════════ */ /* ── Reset & base ────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --blue: #2563EB; --blue-dk: #1D4ED8; --blue-lt: #EFF6FF; --purple: #7C3AED; --green: #059669; --amber: #D97706; --red: #DC2626; --bg: #F1F5F9; --card: #FFFFFF; --border: #E2E8F0; --text: #0F172A; --muted: #64748B; --sidebar: 260px; --header: 60px; --radius: 10px; --shadow: 0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04); } html { font-size: 15px; } body { font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; } /* ── Header ──────────────────────────────────────────────── */ .app-header { height: var(--header); background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dk) 100%); color: #fff; display: flex; align-items: center; padding: 0 24px; gap: 12px; position: fixed; top: 0; left: 0; right: 0; z-index: 100; box-shadow: 0 2px 8px rgba(37,99,235,.35); } .app-header .logo { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; } .app-header .logo span { color: #93C5FD; } .app-header .subtitle { font-size: 0.8rem; opacity: .75; margin-top: 1px; } .header-spacer { flex: 1; } .api-status { font-size: 0.78rem; padding: 3px 10px; border-radius: 20px; background: rgba(255,255,255,.15); display: flex; align-items: center; gap: 5px; } .api-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #86EFAC; } .api-status .dot.error { background: #FCA5A5; } /* ── Layout ──────────────────────────────────────────────── */ .app-layout { display: flex; flex: 1; margin-top: var(--header); } /* ── Sidebar ─────────────────────────────────────────────── */ .sidebar { width: var(--sidebar); min-height: calc(100vh - var(--header)); background: var(--card); border-right: 1px solid var(--border); padding: 28px 16px; position: fixed; top: var(--header); bottom: 0; left: 0; overflow-y: auto; z-index: 50; } .sidebar-label { font-size: 0.7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; padding-left: 6px; } .steps-nav { display: flex; flex-direction: column; gap: 2px; } .step-item { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 8px; cursor: default; transition: background .15s; position: relative; } .step-item.clickable { cursor: pointer; } .step-item.clickable:hover { background: var(--blue-lt); } .step-item.active { background: var(--blue-lt); } .step-num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; flex-shrink: 0; background: var(--border); color: var(--muted); transition: background .2s, color .2s; } .step-item.active .step-num { background: var(--blue); color: #fff; } .step-item.done .step-num { background: var(--green); color: #fff; } .step-item.done .step-num::before { content: '✓'; } .step-text { font-size: 0.88rem; } .step-item.active .step-text { font-weight: 700; color: var(--blue); } .step-item.done .step-text { color: var(--green); } /* connector line between steps */ .step-connector { width: 2px; height: 12px; background: var(--border); margin-left: 23px; border-radius: 2px; } /* ── Main content ────────────────────────────────────────── */ .main-content { flex: 1; margin-left: var(--sidebar); padding: 32px 36px; min-height: calc(100vh - var(--header)); } /* ── Section visibility ──────────────────────────────────── */ .content-section { display: none; } .content-section.active { display: block; } /* ── Card ────────────────────────────────────────────────── */ .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-bottom: 20px; } .card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; } .card-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; line-height: 1.6; } /* ── Buttons ─────────────────────────────────────────────── */ .btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; transition: background .15s, opacity .15s, transform .1s; text-decoration: none; } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: .5; cursor: not-allowed; } .btn-primary { background: var(--blue); color: #fff; } .btn-primary:hover:not(:disabled) { background: var(--blue-dk); } .btn-secondary { background: var(--blue-lt); color: var(--blue); } .btn-secondary:hover:not(:disabled) { background: #DBEAFE; } .btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); } .btn-ghost:hover:not(:disabled) { background: var(--bg); } .btn-danger { background: #FEF2F2; color: var(--red); } .btn-sm { padding: 6px 14px; font-size: 0.82rem; } .btn-lg { padding: 13px 28px; font-size: 1rem; } /* ── Landing section ─────────────────────────────────────── */ .hero { text-align: center; padding: 60px 20px 40px; } .hero-badge { display: inline-block; background: var(--blue-lt); color: var(--blue); font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 18px; letter-spacing: .04em; } .hero h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.25; margin-bottom: 16px; letter-spacing: -0.5px; } .hero h1 .accent { color: var(--blue); } .hero p { font-size: 1.05rem; color: var(--muted); max-width: 560px; margin: 0 auto 32px; line-height: 1.7; } .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; } .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; } .feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: left; } .feature-card .icon { font-size: 1.6rem; margin-bottom: 10px; } .feature-card h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; } .feature-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; } /* ── Upload section ──────────────────────────────────────── */ .drop-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 56px 24px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; } .drop-zone:hover, .drop-zone.dragover { border-color: var(--blue); background: var(--blue-lt); } .drop-zone .upload-icon { font-size: 2.8rem; margin-bottom: 14px; } .drop-zone h3 { font-weight: 700; margin-bottom: 6px; } .drop-zone p { font-size: 0.85rem; color: var(--muted); } .drop-zone input[type=file] { display: none; } .file-meta { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--blue-lt); border-radius: 8px; margin-top: 16px; } .file-meta .file-icon { font-size: 1.6rem; } .file-meta .file-info { flex: 1; } .file-meta .file-name { font-weight: 700; font-size: 0.9rem; } .file-meta .file-stats { font-size: 0.8rem; color: var(--muted); } /* ── Preview section ─────────────────────────────────────── */ .meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; } .meta-item { background: var(--bg); border-radius: 8px; padding: 14px 16px; text-align: center; } .meta-item .num { font-size: 1.6rem; font-weight: 800; color: var(--blue); } .meta-item .label { font-size: 0.78rem; color: var(--muted); margin-top: 2px; } .col-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; } .badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.76rem; font-weight: 600; padding: 3px 10px; border-radius: 12px; } .badge-num { background: #DBEAFE; color: #1D4ED8; } .badge-cat { background: #D1FAE5; color: #065F46; } .badge-text { background: #F3F4F6; color: #374151; } .badge-date { background: #EDE9FE; color: #5B21B6; } .badge-miss { background: #FEF3C7; color: #92400E; } .preview-table-wrap { overflow: auto; max-height: 360px; border: 1px solid var(--border); border-radius: 8px; } .preview-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; } .preview-table th { background: #F8FAFC; padding: 10px 12px; text-align: left; font-weight: 700; border-bottom: 2px solid var(--border); white-space: nowrap; position: sticky; top: 0; } .preview-table td { padding: 7px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; } .preview-table tr:hover td { background: var(--blue-lt); } .preview-table .type-tag { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 400; } /* ── Analysis section ────────────────────────────────────── */ .analysis-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; } @media (max-width: 900px) { .analysis-layout { grid-template-columns: 1fr; } } /* Chat panel */ .chat-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; height: 680px; box-shadow: var(--shadow); } .chat-header { padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 0.92rem; display: flex; align-items: center; gap: 8px; } .chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; } /* Message bubbles */ .msg { display: flex; flex-direction: column; max-width: 88%; } .msg.user { align-self: flex-end; align-items: flex-end; } .msg.system { align-self: flex-start; align-items: flex-start; } .msg-bubble { padding: 10px 14px; border-radius: 14px; font-size: 0.88rem; line-height: 1.6; } .msg.user .msg-bubble { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; } .msg.system .msg-bubble { background: var(--bg); color: var(--text); border-bottom-left-radius: 4px; } .msg-time { font-size: 0.72rem; color: var(--muted); margin-top: 3px; padding: 0 2px; } /* Status message */ .msg-status { align-self: center; font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; } /* Chat suggestions */ .suggestions { padding: 10px 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px; } .suggestion-chip { font-size: 0.78rem; padding: 4px 11px; border-radius: 16px; background: var(--blue-lt); color: var(--blue); border: 1px solid #BFDBFE; cursor: pointer; transition: background .15s; } .suggestion-chip:hover { background: #DBEAFE; } /* Chat input */ .chat-input-row { padding: 12px 14px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: flex-end; } .chat-input { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px; font-size: 0.88rem; font-family: inherit; outline: none; line-height: 1.5; max-height: 120px; overflow-y: auto; transition: border-color .15s; } .chat-input:focus { border-color: var(--blue); } /* Results panel */ .results-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-height: 300px; } .results-panel-header { padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 0.92rem; } .results-empty { text-align: center; padding: 60px 24px; color: var(--muted); } .results-empty .empty-icon { font-size: 2.5rem; margin-bottom: 12px; } /* Tabs */ .tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); padding: 0 16px; overflow-x: auto; } .tab-btn { padding: 11px 16px; font-size: 0.85rem; font-weight: 600; cursor: pointer; border: none; background: transparent; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s, border-color .15s; } .tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); } .tab-btn:hover:not(.active) { color: var(--text); } .tab-pane { display: none; padding: 20px; } .tab-pane.active { display: block; } /* ── Result table (pandas output) ────────────────────────── */ .result-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; } .result-table th { background: #F8FAFC; padding: 8px 12px; text-align: left; font-weight: 700; border-bottom: 2px solid var(--border); } .result-table td { padding: 7px 12px; border-bottom: 1px solid var(--border); } .result-table tr:hover td { background: var(--blue-lt); } .table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 16px; } .table-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 8px; color: var(--muted); } /* ── Charts ──────────────────────────────────────────────── */ .chart-img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 12px; } /* ── Interpretation block ────────────────────────────────── */ .interp-block { background: linear-gradient(135deg, #EFF6FF, #F5F3FF); border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0; padding: 18px 20px; font-size: 0.92rem; line-height: 1.8; color: var(--text); } /* ── Log / code block ────────────────────────────────────── */ .log-block { background: #0F172A; color: #E2E8F0; border-radius: 8px; padding: 16px; font-family: 'Consolas', 'Courier New', monospace; font-size: 0.8rem; line-height: 1.7; overflow: auto; max-height: 420px; margin-bottom: 14px; } .log-section-title { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 6px; } .log-pill { display: inline-block; font-size: 0.75rem; padding: 2px 10px; border-radius: 12px; background: var(--bg); color: var(--text); border: 1px solid var(--border); margin: 2px; } /* ── Download section ────────────────────────────────────── */ .download-list { display: flex; flex-direction: column; gap: 10px; } .download-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); transition: border-color .15s; } .download-item:hover { border-color: var(--blue); } .download-icon { font-size: 1.6rem; } .download-info { flex: 1; } .download-name { font-weight: 700; font-size: 0.9rem; } .download-type { font-size: 0.78rem; color: var(--muted); } /* ── Progress / loading ──────────────────────────────────── */ .spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; } @keyframes spin { to { transform: rotate(360deg); } } .progress-bar-wrap { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin: 10px 0; } .progress-bar { height: 100%; background: var(--blue); border-radius: 2px; animation: progress-indeterminate 1.4s ease-in-out infinite; } @keyframes progress-indeterminate { 0% { transform: translateX(-100%) scaleX(.3); } 50% { transform: translateX(0%) scaleX(.7); } 100% { transform: translateX(100%) scaleX(.3); } } /* ── Status badges ───────────────────────────────────────── */ .status-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 12px; } .status-pending { background: #F3F4F6; color: var(--muted); } .status-running { background: #DBEAFE; color: var(--blue); } .status-completed { background: #D1FAE5; color: var(--green); } .status-error { background: #FEE2E2; color: var(--red); } /* ── Alert / notice ──────────────────────────────────────── */ .alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 8px; font-size: 0.86rem; line-height: 1.6; margin-bottom: 14px; } .alert-info { background: var(--blue-lt); color: #1E40AF; border: 1px solid #BFDBFE; } .alert-warn { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; } .alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; } .alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; } /* ── Collapsible code block ──────────────────────────────── */ details.code-toggle summary { cursor: pointer; user-select: none; font-size: 0.82rem; font-weight: 600; color: var(--blue); padding: 4px 0; list-style: none; } details.code-toggle summary::before { content: '▶ '; } details.code-toggle[open] summary::before { content: '▼ '; } /* ── Divider ─────────────────────────────────────────────── */ hr.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; } /* ── Tooltip helper ──────────────────────────────────────── */ [data-tip] { position: relative; cursor: help; } [data-tip]::after { content: attr(data-tip); position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%); background: #1E293B; color: #fff; font-size: 0.76rem; padding: 4px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; } [data-tip]:hover::after { opacity: 1; } /* ── Scrollbar styling ───────────────────────────────────── */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: #94A3B8; } /* ── Utility classes ─────────────────────────────────────── */ .flex { display: flex; } .items-center{ align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .mb-12 { margin-bottom: 12px; } .mb-20 { margin-bottom: 20px; } .mt-12 { margin-top: 12px; } .text-sm { font-size: 0.85rem; } .text-muted { color: var(--muted); } .font-bold { font-weight: 700; } .hidden { display: none !important; }