/* Layout */
.layout {
display: grid;
grid-template-columns: 280px 1fr 320px;
height: 100vh;
background: #f8f9fa;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
gap: 0;
}
/* Sidebar */
.sidebar {
border-right: 1px solid #e2e8f0;
padding: 20px;
overflow-y: auto;
background: #fff;
box-shadow: 2px 0 6px rgba(0,0,0,0.03);
}
.sidebar h2 {
font-weight: 700;
margin-bottom: 16px;
font-size: 18px;
color: #111827;
}
.toolBtn {
width: 100%;
text-align: left;
padding: 10px 12px;
border-radius: 10px;
border: 1px solid #e5e7eb;
background: #fff;
margin-bottom: 10px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
flex-direction: column;
}
.toolBtn:hover {
border-color: #0ea5e9;
background: #f0f9ff;
}
.active {
background: #e0f2fe;
border-color: #0ea5e9;
}
.toolName {
font-weight: 600;
color: #1f2937;
}
.toolDesc {
font-size: 12px;
color: #6b7280;
margin-top: 2px;
}
.empty {
color: #6b7280;
font-style: italic;
}
/* Main content */
.main {
padding: 24px;
display: grid;
grid-template-rows: auto auto 1fr;
gap: 16px;
background: #f9fafb;
overflow-y: auto;
}
.main h1 {
font-size: 24px;
font-weight: 700;
margin: 0;
color: #111827;
}
.description {
margin-top: 4px;
color: #4b5563;
}
.paramsHeader {
display: flex;
justify-content: space-between;
align-items: center;
}
.modeToggle {
display: flex;
gap: 8px;
}
.modeBtn {
padding: 6px 12px;
border-radius: 8px;
border: 1px solid #0ea5e9;
background: #fff;
color: #0ea5e9;
cursor: pointer;
font-weight: 500;
transition: background 0.2s ease;
}
.modeBtn:hover {
background: #e0f2fe;
}
/* JSON Editor */
.jsonEditor {
width: 100%;
height: 180px;
margin-top: 8px;
padding: 12px;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
border-radius: 10px;
border: 1px solid #e5e7eb;
background: #fff;
box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
resize: vertical;
}
/* Forms */
.form {
display: grid;
gap: 12px;
margin-top: 12px;
}
.formField {
display: flex;
flex-direction: column;
gap: 6px;
}
.formField label {
font-weight: 600;
color: #111827;
}
.required {
color: #ef4444;
}
.formField input {
padding: 8px 10px;
border-radius: 8px;
border: 1px solid #e5e7eb;
width: 100%;
box-sizing: border-box;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.formField input:focus {
outline: none;
border-color: #0ea5e9;
box-shadow: 0 0 0 2px rgba(14,165,233,0.2);
}
/* Run Button */
.runBtn {
margin-top: 12px;
width: 100%;
padding: 12px 16px;
border-radius: 10px;
border: 1px solid #0ea5e9;
background: #0ea5e9;
color: #fff;
font-weight: 600;
cursor: pointer;
transition: background 0.2s ease;
}
.runBtn:hover:not(:disabled) {
background: #0284c7;
}
.runBtn:disabled {
background: #bae6fd;
cursor: default;
}
/* Response */
.response {
overflow: auto;
border: 1px solid #e5e7eb;
border-radius: 10px;
padding: 16px;
background: #fff;
box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.response h3 {
margin-top: 0;
color: #111827;
}
.response pre {
white-space: pre-wrap;
margin: 0;
font-size: 14px;
line-height: 1.5;
color: #1f2937;
}
/* Connection Panel */
.connection {
border-left: 1px solid #e2e8f0;
padding: 20px;
display: flex;
flex-direction: column;
background: #fff;
box-shadow: -2px 0 6px rgba(0,0,0,0.03);
}
.connection h2 {
font-weight: 700;
margin-bottom: 16px;
font-size: 18px;
}
.connection input {
padding: 8px 10px;
border-radius: 8px;
border: 1px solid #e5e7eb;
margin-bottom: 14px;
}
.connectBtn,
.disconnectBtn {
padding: 10px 14px;
border-radius: 10px;
cursor: pointer;
font-weight: 600;
color: #fff;
transition: background 0.2s ease;
}
.connectBtn {
border: 1px solid #0ea5e9;
background: #0ea5e9;
}
.connectBtn:hover {
background: #0284c7;
}
.disconnectBtn {
border: 1px solid #b91c1c;
background: #b91c1c;
}
.disconnectBtn:hover {
background: #991b1b;
}
.btnRow {
display: flex;
gap: 10px;
margin-bottom: 14px;
}
.status {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 14px;
}
.statusDot {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%;
}
.green {
background: #22c55e;
}
.red {
background: #ef4444;
}
/* Logs */
.logs {
flex: 1;
overflow-y: auto;
border: 1px solid #e5e7eb;
border-radius: 10px;
padding: 12px;
font-family: monospace;
font-size: 13px;
background: #f3f4f6;
white-space: pre-wrap;
box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
/* Scrollbar Styling */
.sidebar::-webkit-scrollbar,
.main::-webkit-scrollbar,
.connection::-webkit-scrollbar,
.logs::-webkit-scrollbar {
width: 8px;
}
.sidebar::-webkit-scrollbar-thumb,
.main::-webkit-scrollbar-thumb,
.connection::-webkit-scrollbar-thumb,
.logs::-webkit-scrollbar-thumb {
background-color: rgba(0,0,0,0.2);
border-radius: 4px;
}
.sidebar::-webkit-scrollbar-track,
.main::-webkit-scrollbar-track,
.connection::-webkit-scrollbar-track,
.logs::-webkit-scrollbar-track {
background: transparent;
}
.sidebar ul {
list-style: none; /* removes bullets */
padding: 0; /* removes default left padding */
margin: 0; /* removes default margin */
}
.sidebar li {
margin: 0; /* optional, clean spacing */
}