/* ── Reset & Base ─────────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --blue-bright: #20c4f4; --blue-mid: #008dd2; --ink: #1A1A1A; --ink-soft: #4A5568; --ink-muted: #8A9BB0; --border: #C8E8F8; --surface: #FFFFFF; --surface-2: #F0F8FD; --blue-pale: #E6F6FD; --sidebar-w: 220px; --radius: 8px; } html, body { height: 100%; font-family: 'DM Sans', sans-serif; background: var(--surface-2); color: var(--ink); font-size: 14px; line-height: 1.5; } .app { display: flex; height: 100vh; overflow: hidden; } /* Sidebar */ .sidebar { width: var(--sidebar-w); background: #0d1117; display: flex; flex-direction: column; flex-shrink: 0; } .sidebar-logo { padding: 18px 14px 14px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; } .sidebar-logo svg { width: 52px; height: 52px; display: block; } .sidebar-divider { height: 1px; background: linear-gradient(90deg, rgba(32,196,244,.2), transparent); margin: 0 14px; } .sidebar-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; } .nav-label { font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.2); padding: 10px 10px 5px; } .nav-item { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 6px; color: rgba(255,255,255,.45); text-decoration: none; font-size: 13px; font-weight: 400; transition: background .15s, color .15s; border: none; background: none; width: 100%; text-align: left; cursor: pointer; } .nav-item:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.75); } .nav-item.active { background: rgba(0,141,210,.25); color: #fff; font-weight: 500; border-left: 2px solid var(--blue-bright); padding-left: 10px; } .nav-icon { width: 15px; height: 15px; flex-shrink: 0; opacity: .6; } .nav-item.active .nav-icon { opacity: 1; } .sidebar-footer { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.05); } .sidebar-url { font-family: 'DM Mono', monospace; font-size: 9.5px; color: rgba(255,255,255,.2); display: block; } /* Main */ .main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; } /* Header */ .page-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; } .page-header h1 { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; } .page-subtitle { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; } .header-badge { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 500; color: var(--blue-mid); background: var(--blue-pale); border: 1px solid var(--border); padding: 5px 12px; border-radius: 20px; } .badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #aaa; transition: background .3s; } .header-badge.connected .badge-dot { background: #22c55e; } .header-badge.error .badge-dot { background: #ef4444; } /* Tabs */ .mode-tabs { display: flex; padding: 0 28px; background: var(--surface); border-bottom: 2px solid var(--border); flex-shrink: 0; } .mode-tab { display: flex; align-items: center; gap: 7px; padding: 10px 16px; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; color: var(--ink-muted); cursor: pointer; transition: color .15s, border-color .15s; } .mode-tab:hover { color: var(--ink-soft); } .mode-tab.active { color: var(--blue-mid); border-bottom-color: var(--blue-bright); } /* Panels */ .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 20px 28px 0; flex-shrink: 0; } section.panel { overflow-y: auto; flex: 1; margin-bottom: 70px; } .panel-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--blue-pale) 0%, var(--surface) 70%); } .panel-head-icon { width: 30px; height: 30px; background: var(--blue-mid); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .panel-head h2 { font-size: 13.5px; font-weight: 600; color: var(--ink); } .panel-head p { font-size: 12px; color: var(--ink-muted); margin-top: 1px; } .panel-body { padding: 18px; } /* Fields */ .field-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; } .field-group { display: flex; flex-direction: column; gap: 5px; } .field-group.flex-1 { flex: 1; min-width: 160px; } .field-label { font-size: 11px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; } .optional { font-weight: 400; color: var(--ink-muted); text-transform: none; letter-spacing: 0; font-size: 10.5px; } .required { color: #ef4444; } .field-input { height: 38px; padding: 0 11px; border: 1.5px solid var(--border); border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 13.5px; color: var(--ink); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; } .field-input:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(32,196,244,.15); } .field-input::placeholder { color: var(--ink-muted); } .radio-group { display: flex; gap: 16px; } .radio-option { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13.5px; color: var(--ink-soft); user-select: none; } .radio-option input[type="radio"] { accent-color: var(--blue-mid); width: 15px; height: 15px; cursor: pointer; } .radio-option:has(input:checked) { color: var(--ink); font-weight: 500; } /* Buttons */ .btn-primary { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: var(--blue-mid); color: #fff; border: none; border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s; } .btn-primary:hover { background: #006fab; } .btn-primary:disabled { background: var(--border); color: var(--ink-muted); cursor: not-allowed; } .btn-ghost { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; background: none; color: var(--ink-soft); border: 1.5px solid var(--border); border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; cursor: pointer; transition: all .15s; } .btn-ghost:hover { border-color: var(--blue-bright); color: var(--blue-mid); background: var(--blue-pale); } .btn-sm { height: 27px; font-size: 11.5px; padding: 0 9px; } .btn-add-row { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 10px; height: 36px; background: none; border: 1.5px dashed var(--border); border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; color: var(--ink-muted); cursor: pointer; transition: all .15s; } .btn-add-row:hover { border-color: var(--blue-bright); color: var(--blue-mid); background: var(--blue-pale); } .btn-del-row { background: none; border: none; color: var(--ink-muted); cursor: pointer; padding: 4px; border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: color .15s, background .15s; } .btn-del-row:hover { color: #ef4444; background: #fff0f0; } /* Result bar */ .result-bar { display: flex; align-items: center; justify-content: space-between; padding: 11px 18px; background: var(--blue-pale); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 10px; } .result-bar-left { display: flex; align-items: center; gap: 10px; } .result-chip { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--blue-mid); color: #fff; padding: 3px 8px; border-radius: 4px; } .result-title { font-weight: 600; font-size: 13.5px; color: var(--ink); } .result-sub { font-size: 12px; color: var(--ink-muted); } .result-bar-right { display: flex; align-items: center; gap: 8px; } .count-pill { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500; color: var(--blue-mid); background: #cceeff; padding: 3px 9px; border-radius: 10px; } /* Table */ .table-wrap { overflow-x: auto; } .data-table { width: 100%; border-collapse: collapse; font-size: 13px; } .data-table thead th { padding: 9px 14px; text-align: left; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-muted); background: #f7fbfe; border-bottom: 1px solid var(--border); } .data-table tbody tr { border-bottom: 1px solid #eef5fb; transition: background .1s; } .data-table tbody tr:last-child { border-bottom: none; } .data-table tbody tr:hover { background: #f0f9ff; } .data-table tbody tr.row-selected { background: var(--blue-pale); } .data-table td { padding: 9px 14px; color: var(--ink-soft); vertical-align: middle; } .td-name { font-weight: 500; color: var(--ink) !important; } .td-id { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--ink-muted) !important; } .data-table input[type="checkbox"] { accent-color: var(--blue-mid); width: 15px; height: 15px; cursor: pointer; } .inline-input { width: 100%; height: 30px; padding: 0 8px; border: 1.5px solid transparent; border-radius: 4px; font-family: 'DM Sans', sans-serif; font-size: 13px; background: transparent; color: var(--ink); outline: none; transition: border-color .15s, background .15s; } .inline-input:focus { border-color: var(--blue-bright); background: var(--surface); box-shadow: 0 0 0 2px rgba(32,196,244,.1); } .inline-input::placeholder { color: #b8cdd8; font-style: italic; } /* State messages */ .state-msg { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; color: var(--ink-muted); text-align: center; font-size: 13px; } .state-msg.error { color: #dc2626; } /* Generate bar */ .generate-bar { position: fixed; bottom: 0; left: var(--sidebar-w); right: 0; background: var(--surface); border-top: 2px solid var(--border); padding: 12px 28px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 -4px 20px rgba(0,141,210,.08); z-index: 100; } .generate-summary { font-size: 13px; color: var(--ink-soft); } .generate-summary strong { color: var(--ink); } .generate-summary .warn { color: #dc2626; } .btn-generate { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 24px; background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-mid) 100%); color: #fff; border: none; border-radius: 7px; font-family: 'DM Sans', sans-serif; font-size: 13.5px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 10px rgba(0,141,210,.35); transition: transform .1s, box-shadow .1s; } .btn-generate:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,141,210,.45); } .btn-generate:disabled { background: var(--border); color: var(--ink-muted); box-shadow: none; cursor: not-allowed; transform: none; } /* Spinner */ .spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; } @keyframes spin { to { transform: rotate(360deg); } } /* Toast */ .toast-container { position: fixed; bottom: 70px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; } .toast { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 7px; font-size: 13px; box-shadow: 0 4px 16px rgba(0,0,0,.15); animation: toastIn .2s ease; max-width: 320px; color: #fff; } .toast.success { background: #166534; } .toast.error { background: #991b1b; } .toast.info { background: var(--blue-mid); } @keyframes toastIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } } .hidden { display: none !important; } ::-webkit-scrollbar { width: 5px; height: 5px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--blue-bright); }