@import "tailwindcss";
:root {
--bg: #f5f7fb;
--panel: #ffffff;
--card: #ffffff;
--muted: #667085;
--text: #0f172a;
--primary: #2563eb;
--primary-600: #1d4ed8;
--border: #e5e7eb;
--sidebar: #fafafa;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
background: linear-gradient(180deg, var(--bg), #eef2f7);
color: var(--text);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px 16px 40px;
}
.header {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: 12px;
}
.title { font-size: 22px; font-weight: 700; }
.subtitle { color: var(--muted); font-size: 13px; }
/* Inspector-like responsive layout */
.layout {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
}
@media (min-width: 1000px) {
.layout { grid-template-columns: 300px minmax(0, 1fr); }
}
.sidebar {
background: var(--sidebar);
border: 1px solid var(--border);
border-radius: 12px;
padding: 12px;
max-height: 70vh;
overflow: auto;
}
.tool-list { list-style: none; margin: 0; padding: 0; }
.tool-item {
display: flex;
align-items: center;
padding: 10px 12px;
margin-bottom: 6px;
background: #fff;
border: 1px solid var(--border);
border-radius: 10px;
cursor: pointer;
text-decoration: none;
color: inherit;
}
.tool-item:hover { background: #f8fafc; }
.tool-item.active { outline: 2px solid var(--primary); }
.card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
box-shadow: 0 6px 18px rgba(16,24,40,0.06);
}
.section { padding: 16px; }
.panel { display: flex; flex-direction: column; min-height: 0; }
.panel .section { flex: 0 0 auto; }
.panel .result { flex: 1 1 auto; min-height: 200px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
label { font-size: 13px; color: var(--muted); }
select, textarea, input {
width: 100%;
color: var(--text);
background: var(--panel);
border: 1px solid var(--border);
border-radius: 10px;
padding: 10px 12px;
outline: none;
}
textarea { min-height: 180px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.35; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
appearance: none;
border: 1px solid var(--primary-600);
background: linear-gradient(180deg, var(--primary), var(--primary-600));
color: #fff;
padding: 10px 14px;
border-radius: 10px;
font-weight: 600;
cursor: pointer;
}
.btn.secondary {
background: #fff;
border-color: var(--border);
color: var(--text);
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.result {
background: #fbfdff;
border-top: 1px solid var(--border);
border-radius: 0 0 12px 12px;
padding: 12px 16px;
overflow: auto;
max-height: 50vh;
}
.result pre { white-space: pre-wrap; word-break: break-word; }
.switch {
display: inline-flex;
align-items: center;
gap: 10px;
}
.switch input[type="checkbox"] {
appearance: none;
width: 44px;
height: 24px;
background: #e5e7eb;
border: 1px solid var(--border);
border-radius: 999px;
position: relative;
cursor: pointer;
transition: background-color 0.2s, border-color 0.2s;
}
.switch input[type="checkbox"]::after {
content: "";
position: absolute;
top: 2px;
left: 2px;
width: 20px;
height: 20px;
background: #fff;
border-radius: 999px;
box-shadow: 0 1px 2px rgba(16,24,40,0.2);
transition: transform 0.2s;
}
.switch input[type="checkbox"]:checked {
background: var(--primary);
border-color: var(--primary-600);
}
.switch input[type="checkbox"]:checked::after {
transform: translateX(20px);
}
.badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: #eef2ff;
border: 1px solid var(--border);
border-radius: 999px;
padding: 6px 10px;
font-size: 12px;
color: #475569;
}
.split { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) {
.split { grid-template-columns: 1fr 1fr; }
}
.muted { color: var(--muted); font-size: 12px; }