:root{--primary:#2563eb;--primary-dark:#1d4ed8;--primary-light:#3b82f6;--secondary:#64748b;--success:#22c55e;--danger:#ef4444;--warning:#f59e0b;--bg:#f8fafc;--bg-card:#fff;--text:#1e293b;--text-secondary:#64748b;--border:#e2e8f0;--code-bg:#1e293b;--sidebar-width:280px;--tester-width:400px}*{box-sizing:border-box;margin:0;padding:0}body{background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;line-height:1.6;overflow-x:hidden}.app-container{flex-direction:column;min-height:100vh;display:flex}.app-header{background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;padding:1.5rem 2rem;box-shadow:0 2px 8px #0000001a}.header-content h1{margin-bottom:.5rem;font-size:1.75rem;font-weight:600}.subtitle{opacity:.9;font-size:.875rem}.subtitle code{background:#fff3;border-radius:4px;padding:.25rem .5rem;font-size:.8rem}.config-panel{background:#fffbeb;border-bottom:1px solid #fcd34d;padding:1rem 2rem}.config-panel h3{color:#92400e;margin-bottom:.75rem;font-size:.875rem;font-weight:600}.three-column-layout{grid-template-columns:var(--sidebar-width)1fr var(--tester-width);flex:1;min-height:0;display:grid}@media (max-width:1400px){.three-column-layout{grid-template-columns:var(--sidebar-width)1fr 0}.tester-sidebar{width:var(--tester-width);z-index:1000;transition:transform .3s;top:0;bottom:0;right:0;transform:translate(100%);position:fixed!important}.tester-sidebar.visible{transform:translate(0);box-shadow:-4px 0 20px #00000026}}.tree-sidebar{border-right:1px solid var(--border);background:#fff;height:calc(100vh - 200px);position:sticky;top:0;overflow-y:auto}.sidebar-header{border-bottom:1px solid var(--border);background:#f8fafc;padding:1.25rem}.sidebar-header h2{color:var(--text);font-size:.95rem;font-weight:600}.api-tree{padding:.5rem 0}.tree-section{margin-bottom:.25rem}.tree-section-header{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.5rem;padding:.75rem 1.25rem;transition:background .15s;display:flex}.tree-section-header:hover{background:#f8fafc}.tree-icon{color:var(--text-secondary);width:12px;font-size:.65rem;transition:transform .2s;display:inline-block}.tree-icon.expanded{transform:rotate(90deg)}.tree-section-title{flex:1;font-size:.875rem;font-weight:600}.tree-count{color:var(--text-secondary);background:#f1f5f9;border-radius:12px;padding:.125rem .5rem;font-size:.75rem;font-weight:500}.tree-items{margin:0;padding:0;list-style:none}.tree-item{cursor:pointer;border-left:3px solid #0000;align-items:center;gap:.5rem;padding:.65rem 1.25rem .65rem 2.5rem;transition:all .15s;display:flex}.tree-item:hover{background:#f8fafc}.tree-item.active{border-left-color:var(--primary);background:#eff6ff}.tree-item.active .tree-item-name{color:var(--primary);font-weight:500}.tree-item-name{color:var(--text);flex:1;font-size:.85rem}.method-tag{text-transform:uppercase;border-radius:3px;padding:.125rem .4rem;font-size:.65rem;font-weight:600}.method-tag.post{color:#1d4ed8;background:#dbeafe}.method-tag.get{color:#166534;background:#dcfce7}.doc-main{background:#fff;height:calc(100vh - 200px);overflow-y:auto}.doc-content{max-width:900px;margin:0 auto;padding:2rem}.doc-header{justify-content:space-between;align-items:flex-start;gap:2rem;margin-bottom:2rem;display:flex}.doc-title-section h1{margin-bottom:.5rem;font-size:1.75rem;font-weight:600}.doc-description{color:var(--text-secondary);font-size:.95rem}.btn-test{white-space:nowrap;flex-shrink:0}.doc-endpoint{border:1px solid var(--border);background:#f8fafc;border-radius:8px;align-items:center;gap:1rem;margin-bottom:2rem;padding:1rem 1.5rem;display:flex}.method-badge{text-transform:uppercase;border-radius:4px;padding:.35rem .75rem;font-size:.75rem;font-weight:600}.method-badge.post{color:#1d4ed8;background:#dbeafe}.endpoint-path{color:var(--text);border:1px solid var(--border);background:#fff;border-radius:4px;flex:1;padding:.5rem .75rem;font-family:Monaco,Menlo,monospace;font-size:.875rem}.encoding-badge{color:var(--text-secondary);border:1px solid var(--border);background:#fff;border-radius:4px;padding:.25rem .75rem;font-size:.75rem}.doc-section{margin-bottom:2.5rem}.doc-section-title{color:var(--text);margin-bottom:1rem;font-size:1.1rem;font-weight:600}.params-table-container{border:1px solid var(--border);border-radius:8px;overflow:hidden}.params-table{border-collapse:collapse;width:100%;font-size:.875rem}.params-table th{text-align:left;text-transform:uppercase;color:var(--text-secondary);border-bottom:1px solid var(--border);background:#f8fafc;padding:.75rem 1rem;font-size:.75rem;font-weight:600}.params-table td{border-bottom:1px solid var(--border);vertical-align:top;padding:1rem}.params-table tr:last-child td{border-bottom:none}.params-table tr:hover{background:#f8fafc}.param-name{color:var(--primary);font-family:Monaco,Menlo,monospace;font-size:.85rem;font-weight:500}.param-meta{color:var(--text-secondary);margin-top:.25rem;font-size:.75rem}.type-badge{color:var(--text-secondary);background:#f1f5f9;border-radius:4px;padding:.25rem .5rem;font-size:.75rem;font-weight:500}.required-badge{color:var(--success);font-size:1rem;font-weight:600}.optional-badge{color:var(--text-secondary)}.param-desc{color:var(--text);line-height:1.5}.param-notes{color:var(--text-secondary);margin-top:.5rem;font-size:.8rem;line-height:1.4}.param-options{color:var(--text-secondary);background:#f8fafc;border-radius:4px;margin-top:.5rem;padding:.5rem;font-size:.8rem}.notes-list{background:#f0f9ff;border:1px solid #bae6fd;border-radius:8px;padding:1rem}.note-item{color:#0c4a6e;gap:.5rem;padding:.5rem 0;font-size:.875rem;line-height:1.5;display:flex}.note-bullet{color:#0ea5e9;font-weight:600}.code-example{background:var(--code-bg);border-radius:8px;padding:1rem;overflow-x:auto}.code-example pre{margin:0}.code-example code{color:#e2e8f0;font-family:Monaco,Menlo,monospace;font-size:.85rem;line-height:1.6}.tester-sidebar{border-left:1px solid var(--border);background:#fff;height:calc(100vh - 200px);overflow-y:auto}.tester-placeholder{justify-content:center;align-items:center;height:100%;display:flex}.placeholder-content{text-align:center;color:var(--text-secondary)}.placeholder-icon{opacity:.5;margin-bottom:1rem;font-size:3rem}.placeholder-content p{font-size:.875rem;line-height:1.6}.tester-panel{flex-direction:column;height:100%;display:flex}.tester-header{border-bottom:1px solid var(--border);background:#f8fafc;justify-content:space-between;align-items:center;padding:1.25rem;display:flex}.tester-header h2{font-size:.95rem;font-weight:600}.btn-close{cursor:pointer;color:var(--text-secondary);background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;width:28px;height:28px;font-size:1.25rem;transition:all .15s;display:flex}.btn-close:hover{color:var(--text);background:#e2e8f0}.tester-content{flex:1;padding:1.25rem;overflow-y:auto}.tester-form,.form-section{margin-bottom:1.5rem}.form-section-title{text-transform:uppercase;border-bottom:2px solid var(--border);margin-bottom:1rem;padding-bottom:.5rem;font-size:.8rem;font-weight:600}.required-section{color:var(--danger)}.optional-section{color:var(--text-secondary)}.tester-form-group{margin-bottom:1rem}.tester-label{color:var(--text);margin-bottom:.5rem;font-size:.8rem;font-weight:500;display:block}.required-mark{color:var(--danger);margin-left:.25rem}.form-input,.form-select,.form-textarea,.form-file{border:1px solid var(--border);border-radius:6px;width:100%;padding:.625rem;font-family:inherit;font-size:.85rem;transition:all .15s}.form-input:focus,.form-select:focus,.form-textarea:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #2563eb1a}.form-textarea{resize:vertical;min-height:70px}.input-disabled{cursor:not-allowed;background:#f1f5f9}.field-hint{color:var(--text-secondary);margin-top:.25rem;font-size:.75rem;line-height:1.3;display:block}.alert{border-radius:6px;margin-bottom:1rem;padding:.75rem;font-size:.8rem;line-height:1.4}.alert-warning{color:#92400e;background:#fef3c7;border:1px solid #fcd34d}.btn-submit{justify-content:center;width:100%}.spinner{border:2px solid #ffffff4d;border-top-color:#fff;border-radius:50%;width:14px;height:14px;animation:.8s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.response-section{border-top:1px solid var(--border);margin-top:1.5rem;padding-top:1.5rem}.response-header{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.response-header h3{font-size:.9rem;font-weight:600}.response-meta{gap:.5rem;display:flex}.status-badge,.time-badge{border-radius:4px;padding:.25rem .5rem;font-size:.75rem;font-weight:500}.status-badge.success{color:#166534;background:#dcfce7}.status-badge.error{color:#991b1b;background:#fee2e2}.time-badge{color:var(--text-secondary);background:#f1f5f9}.response-body{background:var(--code-bg);border-radius:6px;max-height:400px;padding:1rem;overflow:auto}.response-body pre{margin:0}.response-body code{color:#e2e8f0;white-space:pre-wrap;word-break:break-all;font-family:Monaco,Menlo,monospace;font-size:.8rem;line-height:1.5}.btn{cursor:pointer;border:none;border-radius:8px;align-items:center;gap:.5rem;padding:.75rem 1.25rem;font-size:.875rem;font-weight:500;transition:all .15s;display:inline-flex}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-dark)}.btn-primary:disabled{background:var(--secondary);cursor:not-allowed;opacity:.6}.form-row{grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:.5rem;display:grid}.form-group{margin-bottom:1rem}.form-group label{color:var(--text);margin-bottom:.5rem;font-size:.875rem;font-weight:500;display:block}.form-group input,.form-group select{border:1px solid var(--border);border-radius:6px;width:100%;padding:.625rem;font-size:.875rem;transition:all .15s}.form-group input:focus,.form-group select:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #2563eb1a}.form-group small{color:var(--text-secondary);margin-top:.25rem;font-size:.75rem;display:block}.empty-state{text-align:center;height:100%;color:var(--text-secondary);flex-direction:column;justify-content:center;align-items:center;padding:3rem;display:flex}.empty-icon{opacity:.3;margin-bottom:1rem;font-size:4rem}.empty-state h3{color:var(--text);margin-bottom:.5rem;font-size:1.25rem}.empty-state p{font-size:.95rem}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#f1f5f9}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#94a3b8}
