*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #0f1117; --surface: #1a1d27; --border: #2a2d3a; --accent: #7c3aed; --accent2: #a78bfa; --text: #e2e8f0; --muted: #64748b; --green: #22c55e; --red: #ef4444; --yellow: #f59e0b; --mono: 'Fira Code', 'Cascadia Code', 'Consolas', monospace; } body { font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; } .app { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; } header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; } h1 { font-size: 1.6rem; font-weight: 700; color: var(--accent2); } nav { display: flex; gap: .5rem; } .tab-btn { padding: .45rem 1.1rem; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; font-size: .9rem; transition: all .15s; } .tab-btn:hover { color: var(--text); border-color: var(--accent); } .tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); } .tab { display: none; } .tab.active { display: block; } /* FORM */ .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.5rem; } .form-group { display: flex; flex-direction: column; gap: .4rem; } .form-group.full { grid-column: 1 / -1; } label { font-size: .85rem; color: var(--muted); font-weight: 500; } .hint { font-weight: 400; font-size: .78rem; } input[type=url], input[type=text], input[type=number], select, textarea { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: .55rem .75rem; font-size: .9rem; outline: none; transition: border-color .15s; width: 100%; } input:focus, select:focus, textarea:focus { border-color: var(--accent); } textarea { font-family: var(--mono); resize: vertical; } .range-row { display: flex; align-items: center; gap: .75rem; } .range-row input[type=range] { flex: 1; accent-color: var(--accent); } .range-row input[type=number] { width: 80px; flex-shrink: 0; } .btn-primary { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: .65rem 2rem; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .15s, opacity .15s; } .btn-primary:hover { background: #6d28d9; } .btn-primary:disabled { opacity: .5; cursor: not-allowed; } .btn-secondary { background: transparent; color: var(--accent2); border: 1px solid var(--accent); border-radius: 6px; padding: .4rem 1rem; font-size: .85rem; cursor: pointer; transition: background .15s; } .btn-secondary:hover { background: rgba(124,58,237,.15); } /* RESULT */ .result-header { display: flex; align-items: center; gap: 1rem; margin: 2rem 0 1rem; } .result-header h2 { font-size: 1.1rem; } .badge { font-size: .75rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; } .badge.running { background: rgba(245,158,11,.15); color: var(--yellow); } .badge.completed{ background: rgba(34,197,94,.15); color: var(--green); } .badge.failed { background: rgba(239,68,68,.15); color: var(--red); } #output-log { background: #0a0c12; border: 1px solid var(--border); border-radius: 8px; padding: 1rem; font-family: var(--mono); font-size: .8rem; line-height: 1.6; max-height: 400px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; color: #a5f3fc; } /* SUMMARY CARDS */ .summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-top: .75rem; } .summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; } .summary-card .label { font-size: .75rem; color: var(--muted); margin-bottom: .3rem; } .summary-card .value { font-size: 1.2rem; font-weight: 700; font-family: var(--mono); } .summary-card .value.good { color: var(--green); } .summary-card .value.bad { color: var(--red); } .summary-card .value.info { color: var(--accent2); } /* HISTORY */ .history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; } .history-item { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: .75rem; display: grid; grid-template-columns: 1fr auto; gap: .5rem; cursor: pointer; transition: border-color .15s; } .history-item:hover { border-color: var(--accent); } .history-item .row1 { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; } .history-item .url { font-weight: 600; word-break: break-all; } .history-item .meta { font-size: .8rem; color: var(--muted); } .history-item .actions { display: flex; align-items: flex-start; gap: .5rem; } .history-item .btn-del { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: .2rem; border-radius: 4px; transition: color .15s; } .history-item .btn-del:hover { color: var(--red); } .history-summary { font-size: .8rem; color: var(--muted); margin-top: .4rem; font-family: var(--mono); } .empty { color: var(--muted); font-size: .9rem; } /* Detail modal / inline */ #history-detail { margin-top: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1.2rem; } #history-detail pre { background: #0a0c12; border: 1px solid var(--border); border-radius: 6px; padding: .75rem; font-family: var(--mono); font-size: .78rem; max-height: 350px; overflow-y: auto; white-space: pre-wrap; color: #a5f3fc; margin-top: .75rem; } @media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-group.full { grid-column: 1; } }