| |
| |
| |
|
|
| :root { |
| --bg-primary: #0f1117; |
| --bg-secondary: #1a1d27; |
| --bg-tertiary: #242736; |
| --bg-card: #1e2130; |
| --bg-input: #2a2d3e; |
| --bg-hover: #2f3245; |
| --border-color: #2e3144; |
| --border-light: #3a3d52; |
| --text-primary: #e8eaed; |
| --text-secondary: #9ca0b0; |
| --text-muted: #6b7084; |
| --accent: #6c5ce7; |
| --accent-hover: #7c6ff0; |
| --accent-secondary: #00b4d8; |
| --success: #00c853; |
| --success-bg: rgba(0, 200, 83, 0.12); |
| --warning: #ffd600; |
| --warning-bg: rgba(255, 214, 0, 0.12); |
| --error: #ff1744; |
| --error-bg: rgba(255, 23, 68, 0.12); |
| --info: #448aff; |
| --info-bg: rgba(68, 138, 255, 0.12); |
| --gold: #ffd700; |
| --silver: #c0c0c0; |
| --bronze: #cd7f32; |
| --sidebar-width: 280px; |
| --header-height: 56px; |
| --radius: 8px; |
| --radius-sm: 4px; |
| --radius-lg: 12px; |
| --shadow: 0 2px 8px rgba(0,0,0,0.3); |
| --shadow-lg: 0 8px 32px rgba(0,0,0,0.4); |
| --transition: 0.2s ease; |
| --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; |
| --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; |
| } |
|
|
| |
| |
| |
| *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } |
| html { font-size: 14px; scroll-behavior: smooth; } |
| body { |
| font-family: var(--font); |
| background: var(--bg-primary); |
| color: var(--text-primary); |
| line-height: 1.6; |
| min-height: 100vh; |
| overflow-x: hidden; |
| } |
| a { color: var(--accent); text-decoration: none; transition: color var(--transition); } |
| a:hover { color: var(--accent-hover); } |
| code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-tertiary); padding: 2px 6px; border-radius: var(--radius-sm); } |
| pre { font-family: var(--font-mono); } |
| ul { list-style: none; } |
| img { max-width: 100%; } |
| h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; color: var(--text-primary); } |
| h1 { font-size: 1.75rem; } |
| h2 { font-size: 1.4rem; } |
| h3 { font-size: 1.15rem; } |
| h4 { font-size: 1rem; } |
|
|
| |
| |
| |
| .app-layout { display: flex; min-height: 100vh; } |
| .main-content { |
| flex: 1; |
| margin-left: var(--sidebar-width); |
| padding: 0; |
| display: flex; |
| flex-direction: column; |
| min-height: 100vh; |
| } |
| .content-header { |
| display: flex; |
| align-items: center; |
| gap: 12px; |
| padding: 16px 32px; |
| border-bottom: 1px solid var(--border-color); |
| background: var(--bg-secondary); |
| position: sticky; |
| top: 0; |
| z-index: 10; |
| } |
| .content-body { padding: 24px 32px; flex: 1; } |
|
|
| |
| |
| |
| .sidebar { |
| width: var(--sidebar-width); |
| background: var(--bg-secondary); |
| border-right: 1px solid var(--border-color); |
| height: 100vh; |
| position: fixed; |
| top: 0; |
| left: 0; |
| overflow-y: auto; |
| z-index: 100; |
| display: flex; |
| flex-direction: column; |
| transition: transform var(--transition); |
| } |
| .sidebar-header { |
| padding: 20px 20px 12px; |
| border-bottom: 1px solid var(--border-color); |
| display: flex; |
| align-items: baseline; |
| gap: 8px; |
| } |
| .sidebar-logo { font-size: 1.3rem; font-weight: 700; color: var(--accent); letter-spacing: -0.5px; } |
| .sidebar-subtitle { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; } |
| .sidebar-nav { padding: 8px 0; flex: 1; } |
| .nav-section { margin-bottom: 4px; } |
| .nav-section-title { |
| display: block; |
| padding: 8px 20px 4px; |
| font-size: 0.65rem; |
| font-weight: 700; |
| text-transform: uppercase; |
| letter-spacing: 1.2px; |
| color: var(--text-muted); |
| } |
| .nav-item { |
| display: flex; |
| align-items: center; |
| gap: 10px; |
| padding: 8px 20px; |
| color: var(--text-secondary); |
| font-size: 0.85rem; |
| transition: all var(--transition); |
| border-left: 3px solid transparent; |
| cursor: pointer; |
| } |
| .nav-item:hover { background: var(--bg-hover); color: var(--text-primary); } |
| .nav-item.active, .nav-item[aria-current="page"] { |
| background: var(--bg-tertiary); |
| color: var(--accent); |
| border-left-color: var(--accent); |
| } |
| .nav-icon { font-size: 0.9rem; width: 20px; text-align: center; } |
| .mobile-menu-btn { display: none; } |
|
|
| |
| |
| |
| ::-webkit-scrollbar { width: 6px; } |
| ::-webkit-scrollbar-track { background: transparent; } |
| ::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; } |
| ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); } |
| .sidebar::-webkit-scrollbar { width: 4px; } |
|
|
| |
| |
| |
| .card { |
| background: var(--bg-card); |
| border: 1px solid var(--border-color); |
| border-radius: var(--radius); |
| padding: 20px; |
| margin-bottom: 16px; |
| transition: box-shadow var(--transition); |
| } |
| .card:hover { box-shadow: var(--shadow); } |
| .card-header { |
| display: flex; |
| justify-content: space-between; |
| align-items: center; |
| margin-bottom: 16px; |
| } |
| .card-header h3 { margin: 0; } |
|
|
| |
| |
| |
| .data-table { width: 100%; border-collapse: collapse; } |
| .data-table thead { border-bottom: 2px solid var(--border-color); } |
| .data-table th { |
| text-align: left; |
| padding: 10px 12px; |
| font-size: 0.75rem; |
| font-weight: 700; |
| text-transform: uppercase; |
| letter-spacing: 0.8px; |
| color: var(--text-muted); |
| white-space: nowrap; |
| } |
| .data-table td { |
| padding: 10px 12px; |
| font-size: 0.85rem; |
| color: var(--text-secondary); |
| border-bottom: 1px solid var(--border-color); |
| vertical-align: middle; |
| } |
| .data-table tbody tr:hover { background: var(--bg-hover); } |
| .data-table tbody tr:last-child td { border-bottom: none; } |
| .data-table tbody tr.rank-1 { background: rgba(255, 215, 0, 0.04); } |
| .data-table tbody tr.rank-2 { background: rgba(192, 192, 192, 0.04); } |
| .data-table tbody tr.rank-3 { background: rgba(205, 127, 50, 0.04); } |
|
|
| |
| |
| |
| .btn { |
| display: inline-flex; |
| align-items: center; |
| gap: 6px; |
| padding: 8px 16px; |
| font-size: 0.85rem; |
| font-weight: 500; |
| font-family: var(--font); |
| border: 1px solid var(--border-color); |
| border-radius: var(--radius); |
| background: var(--bg-tertiary); |
| color: var(--text-primary); |
| cursor: pointer; |
| transition: all var(--transition); |
| white-space: nowrap; |
| line-height: 1.4; |
| } |
| .btn:hover { background: var(--bg-hover); border-color: var(--border-light); } |
| .btn:active { transform: translateY(1px); } |
| .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; } |
| .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); } |
| .btn-danger { background: var(--error); border-color: var(--error); color: #fff; } |
| .btn-danger:hover { background: #e6003b; border-color: #e6003b; } |
| .btn-sm { padding: 4px 10px; font-size: 0.78rem; } |
| .btn:disabled { opacity: 0.5; cursor: not-allowed; } |
|
|
| |
| |
| |
| .form-group { margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; } |
| .form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); } |
| .input, .select, .textarea { |
| font-family: var(--font); |
| font-size: 0.85rem; |
| padding: 8px 12px; |
| background: var(--bg-input); |
| border: 1px solid var(--border-color); |
| border-radius: var(--radius); |
| color: var(--text-primary); |
| transition: border-color var(--transition); |
| outline: none; |
| width: 100%; |
| } |
| .input:focus, .select:focus, .textarea:focus { border-color: var(--accent); } |
| .input-sm { padding: 4px 8px; font-size: 0.8rem; } |
| .select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca0b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; } |
| .textarea { resize: vertical; min-height: 80px; line-height: 1.5; } |
| .help-text { font-size: 0.75rem; color: var(--text-muted); } |
| .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } |
| .form-actions { display: flex; gap: 8px; margin-top: 8px; } |
| .range { width: 100%; accent-color: var(--accent); } |
| .range-value { font-size: 0.8rem; color: var(--text-secondary); } |
| .file-input-row { display: flex; gap: 8px; align-items: center; } |
| .file-input-row .input { flex: 1; } |
| .checkbox-group { display: flex; flex-direction: column; gap: 6px; } |
| .checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; } |
| .checkbox-label input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; } |
| .toggle-label { display: flex; align-items: center; gap: 8px; cursor: pointer; } |
| .toggle-text { font-size: 0.85rem; color: var(--text-secondary); } |
| .search-bar { max-width: 320px; } |
|
|
| |
| |
| |
| .badge { |
| display: inline-flex; |
| align-items: center; |
| padding: 2px 8px; |
| font-size: 0.72rem; |
| font-weight: 600; |
| border-radius: 100px; |
| background: var(--bg-tertiary); |
| color: var(--text-secondary); |
| border: 1px solid var(--border-color); |
| text-transform: uppercase; |
| letter-spacing: 0.3px; |
| } |
| .badge-success { background: var(--success-bg); color: var(--success); border-color: transparent; } |
| .badge-warning { background: var(--warning-bg); color: var(--warning); border-color: transparent; } |
| .badge-error { background: var(--error-bg); color: var(--error); border-color: transparent; } |
| .badge-info { background: var(--info-bg); color: var(--info); border-color: transparent; } |
|
|
| |
| |
| |
| .status-indicator { |
| display: inline-block; |
| width: 10px; |
| height: 10px; |
| border-radius: 50%; |
| flex-shrink: 0; |
| } |
| .status-indicator.green { background: var(--success); box-shadow: 0 0 6px var(--success); } |
| .status-indicator.yellow { background: var(--warning); box-shadow: 0 0 6px var(--warning); } |
| .status-indicator.red { background: var(--error); box-shadow: 0 0 6px var(--error); } |
| .status-indicator.gray { background: var(--text-muted); } |
| .status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } |
| .status-dot.idle { background: var(--text-muted); } |
| .status-dot.connected { background: var(--success); } |
| .status-dot.error { background: var(--error); } |
|
|
| |
| |
| |
| .modal-backdrop { |
| position: fixed; |
| top: 0; left: 0; right: 0; bottom: 0; |
| background: rgba(0, 0, 0, 0.6); |
| z-index: 200; |
| backdrop-filter: blur(4px); |
| } |
| .modal-backdrop-inner { |
| position: absolute; |
| top: 0; left: 0; right: 0; bottom: 0; |
| z-index: 1; |
| } |
| .modal-container { position: fixed; z-index: 201; } |
| .modal { |
| position: fixed; |
| top: 0; left: 0; right: 0; bottom: 0; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| z-index: 202; |
| } |
| .modal-content { |
| background: var(--bg-card); |
| border: 1px solid var(--border-color); |
| border-radius: var(--radius-lg); |
| width: 90%; |
| max-width: 520px; |
| max-height: 85vh; |
| overflow-y: auto; |
| z-index: 2; |
| box-shadow: var(--shadow-lg); |
| position: relative; |
| } |
| .modal-lg { max-width: 680px; } |
| .modal-header { |
| display: flex; |
| justify-content: space-between; |
| align-items: center; |
| padding: 16px 20px; |
| border-bottom: 1px solid var(--border-color); |
| } |
| .modal-header h3 { margin: 0; } |
| .modal-body { padding: 20px; } |
|
|
| |
| |
| |
| .toast-container { |
| position: fixed; |
| top: 16px; |
| right: 16px; |
| z-index: 300; |
| display: flex; |
| flex-direction: column; |
| gap: 8px; |
| pointer-events: none; |
| } |
| .toast { |
| pointer-events: auto; |
| padding: 12px 16px; |
| border-radius: var(--radius); |
| background: var(--bg-card); |
| border: 1px solid var(--border-color); |
| box-shadow: var(--shadow-lg); |
| min-width: 280px; |
| max-width: 400px; |
| animation: toastIn 0.3s ease; |
| display: flex; |
| align-items: center; |
| gap: 10px; |
| font-size: 0.85rem; |
| } |
| .toast.toast-success { border-left: 3px solid var(--success); } |
| .toast.toast-error { border-left: 3px solid var(--error); } |
| .toast.toast-warning { border-left: 3px solid var(--warning); } |
| .toast.toast-info { border-left: 3px solid var(--info); } |
| @keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } } |
| @keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(20px); } } |
|
|
| |
| |
| |
| .tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border-color); } |
| .tab-btn { |
| padding: 8px 20px; |
| background: transparent; |
| border: none; |
| border-bottom: 2px solid transparent; |
| color: var(--text-secondary); |
| font-size: 0.85rem; |
| font-weight: 500; |
| cursor: pointer; |
| transition: all var(--transition); |
| font-family: var(--font); |
| } |
| .tab-btn:hover { color: var(--text-primary); } |
| .tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); } |
|
|
| |
| |
| |
| .collapsible { cursor: pointer; user-select: none; } |
| .collapsible:hover { opacity: 0.8; } |
| .collapse-icon { transition: transform var(--transition); font-size: 0.7rem; } |
| .collapsible.open .collapse-icon { transform: rotate(180deg); } |
| .section-body { padding-top: 12px; } |
|
|
| |
| |
| |
| .pagination { |
| display: flex; |
| align-items: center; |
| gap: 4px; |
| padding: 12px 0 0; |
| border-top: 1px solid var(--border-color); |
| margin-top: 12px; |
| } |
| .pagination-info { margin-left: auto; font-size: 0.8rem; color: var(--text-muted); } |
|
|
| |
| |
| |
| .spinner { |
| width: 24px; |
| height: 24px; |
| border: 3px solid var(--border-color); |
| border-top-color: var(--accent); |
| border-radius: 50%; |
| animation: spin 0.6s linear infinite; |
| } |
| @keyframes spin { to { transform: rotate(360deg); } } |
| .htmx-indicator { opacity: 0; transition: opacity 0.2s; } |
| .htmx-request .htmx-indicator { opacity: 1; } |
| .htmx-request.htmx-indicator { opacity: 1; } |
|
|
| |
| |
| |
| .stat-cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; } |
| .stat-card { display: flex; align-items: center; gap: 16px; } |
| .stat-card-icon { |
| font-size: 1.5rem; |
| width: 48px; |
| height: 48px; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| background: var(--bg-tertiary); |
| border-radius: var(--radius); |
| flex-shrink: 0; |
| } |
| .stat-card-body { display: flex; flex-direction: column; } |
| .stat-card-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; } |
| .stat-card-value { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; } |
| .stat-card-change { font-size: 0.72rem; font-weight: 600; } |
| .stat-card-change.up { color: var(--success); } |
| .stat-card-change.down { color: var(--error); } |
|
|
| |
| |
| |
| .analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } |
| .pie-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } |
| .pie-label { width: 80px; font-size: 0.8rem; color: var(--text-secondary); flex-shrink: 0; } |
| .pie-bar-track { flex: 1; height: 20px; background: var(--bg-tertiary); border-radius: 10px; overflow: hidden; } |
| .pie-bar-fill { height: 100%; border-radius: 10px; transition: width 0.6s ease; } |
| .pie-value { width: 40px; text-align: right; font-size: 0.8rem; color: var(--text-muted); } |
| .hourly-bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; } |
| .hourly-bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; } |
| .hourly-bar { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.6s ease; opacity: 0.8; } |
| .hourly-bar:hover { opacity: 1; } |
| .hourly-label { font-size: 0.65rem; color: var(--text-muted); } |
| .forecast-data { display: flex; flex-direction: column; gap: 10px; } |
| .forecast-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-color); } |
| .forecast-item:last-child { border-bottom: none; } |
| .forecast-label { font-size: 0.85rem; color: var(--text-secondary); } |
| .forecast-value { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); } |
| .forecast-value.projected { color: var(--accent); } |
| .trending-list { display: flex; flex-direction: column; gap: 8px; } |
| .trending-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-color); } |
| .trending-item:last-child { border-bottom: none; } |
| .trending-rank { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--bg-tertiary); border-radius: 50%; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); } |
| .trending-model { flex: 1; font-size: 0.85rem; color: var(--text-primary); } |
| .trending-change { font-size: 0.78rem; font-weight: 600; } |
| .trending-change.up { color: var(--success); } |
| .trending-change.down { color: var(--error); } |
|
|
| |
| |
| |
| .provider-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; } |
| .provider-card { } |
| .provider-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } |
| .provider-card-header h3 { font-size: 1.05rem; flex: 1; } |
| .uptime-badge { font-size: 0.72rem; color: var(--text-muted); background: var(--bg-tertiary); padding: 2px 8px; border-radius: 100px; } |
| .provider-stats { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; } |
| .provider-stat { display: flex; justify-content: space-between; font-size: 0.82rem; } |
| .provider-stat-label { color: var(--text-muted); } |
| .provider-stat-value { color: var(--text-secondary); font-weight: 500; } |
| .provider-stat-value.healthy { color: var(--success); } |
| .provider-stat-value.degraded { color: var(--warning); } |
| .provider-stat-value.down { color: var(--error); } |
| .provider-actions { display: flex; gap: 8px; } |
| .providers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; } |
| .provider-details, .webhook-details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; } |
| .provider-detail, .webhook-detail { display: flex; flex-direction: column; gap: 2px; } |
| .detail-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; } |
| .detail-value { font-size: 0.85rem; color: var(--text-secondary); } |
| .preset-params { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; } |
| .param-row { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 4px 0; } |
| .param-label { color: var(--text-muted); } |
| .param-value { color: var(--text-secondary); font-weight: 500; } |
| .preset-system-prompt { margin-bottom: 12px; } |
| .prompt-preview { font-size: 0.82rem; color: var(--text-muted); font-style: italic; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| .presets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; } |
|
|
| |
| |
| |
| .toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; } |
| .toggle-switch input { opacity: 0; width: 0; height: 0; } |
| .toggle-slider { |
| position: absolute; |
| top: 0; left: 0; right: 0; bottom: 0; |
| background: var(--bg-tertiary); |
| border-radius: 22px; |
| transition: var(--transition); |
| border: 1px solid var(--border-color); |
| } |
| .toggle-slider::before { |
| content: ''; |
| position: absolute; |
| width: 16px; height: 16px; |
| left: 2px; bottom: 2px; |
| background: var(--text-muted); |
| border-radius: 50%; |
| transition: var(--transition); |
| } |
| .toggle-switch input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); } |
| .toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); background: #fff; } |
|
|
| |
| |
| |
| .webhook-card { } |
| .webhook-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } |
| .webhook-actions { display: flex; gap: 8px; margin-top: 12px; } |
|
|
| |
| |
| |
| .playground-content { min-height: 400px; } |
| .chat-messages { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; max-height: 500px; overflow-y: auto; padding: 12px; background: var(--bg-primary); border-radius: var(--radius); border: 1px solid var(--border-color); } |
| .message { display: flex; flex-direction: column; gap: 4px; } |
| .message-role { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); } |
| .message-content { font-size: 0.9rem; line-height: 1.6; color: var(--text-primary); padding: 10px 14px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border-color); } |
| .message.assistant .message-content { border-left: 3px solid var(--accent); } |
| .message.user .message-content { border-left: 3px solid var(--accent-secondary); } |
| .chat-controls { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; flex-wrap: wrap; } |
| .chat-params { display: flex; gap: 16px; align-items: center; } |
| .chat-input-row { display: flex; gap: 8px; align-items: flex-end; } |
| .chat-input { flex: 1; } |
| .send-btn { height: fit-content; } |
| .jsonl-textarea { font-family: var(--font-mono); font-size: 0.8rem; } |
|
|
| |
| |
| |
| .realtime-page { display: grid; grid-template-columns: 1fr 300px; gap: 20px; } |
| .realtime-controls { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; } |
| .realtime-mic-btn { display: flex; align-items: center; gap: 8px; padding: 12px 24px; font-size: 1rem; } |
| .mic-icon { font-size: 1.2rem; } |
| .realtime-status { display: flex; align-items: center; gap: 8px; } |
| .realtime-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; } |
| .realtime-transcript { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 16px; min-height: 200px; max-height: 400px; overflow-y: auto; } |
| .transcript-placeholder { color: var(--text-muted); font-style: italic; } |
| .realtime-sidebar { display: flex; flex-direction: column; gap: 16px; } |
| .realtime-sidebar .card { margin-bottom: 0; } |
| .session-history { display: flex; flex-direction: column; gap: 8px; } |
| .session-item { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: var(--radius); cursor: pointer; transition: background var(--transition); } |
| .session-item:hover { background: var(--bg-hover); } |
| .session-item.active { background: var(--bg-tertiary); } |
| .session-date { font-size: 0.8rem; color: var(--text-secondary); } |
| .session-duration { font-size: 0.78rem; color: var(--text-muted); } |
|
|
| |
| |
| |
| .conversations-layout { display: grid; grid-template-columns: 320px 1fr; gap: 16px; min-height: 600px; } |
| .conversations-sidebar .card { margin-bottom: 0; height: 100%; display: flex; flex-direction: column; } |
| .session-list { flex: 1; overflow-y: auto; margin-top: 8px; } |
| .session-preview { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; } |
| .session-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); } |
| .session-snippet { font-size: 0.75rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| .session-time { font-size: 0.7rem; color: var(--text-muted); flex-shrink: 0; } |
| .conversation-detail { display: flex; flex-direction: column; } |
| .conversation-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); } |
| .message-list { display: flex; flex-direction: column; gap: 12px; flex: 1; overflow-y: auto; } |
| .message-row { display: flex; } |
| .message-row.user { justify-content: flex-end; } |
| .message-row.assistant { justify-content: flex-start; } |
| .message-row.system { justify-content: center; } |
| .message-bubble { max-width: 75%; padding: 12px 16px; border-radius: var(--radius-lg); font-size: 0.85rem; line-height: 1.5; } |
| .user-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; } |
| .assistant-bubble { background: var(--bg-tertiary); color: var(--text-primary); border-bottom-left-radius: 4px; border: 1px solid var(--border-color); } |
| .system-bubble { background: var(--warning-bg); color: var(--warning); border: 1px solid transparent; font-size: 0.8rem; max-width: 100%; text-align: center; } |
| .message-meta { display: flex; justify-content: space-between; margin-bottom: 4px; } |
| .message-role-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.8; } |
| .message-time { font-size: 0.68rem; opacity: 0.7; } |
| .message-text { word-break: break-word; } |
| .message-tokens { font-size: 0.68rem; margin-top: 6px; opacity: 0.6; } |
|
|
| |
| |
| |
| .endpoint-card { margin-bottom: 20px; } |
| .endpoint-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } |
| .endpoint-method { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; } |
| .endpoint-method.post { background: var(--info-bg); color: var(--info); } |
| .endpoint-method.get { background: var(--success-bg); color: var(--success); } |
| .endpoint-path { font-size: 0.85rem; } |
| .code-block-wrapper { position: relative; margin-top: 8px; } |
| .code-block { |
| background: var(--bg-primary); |
| border: 1px solid var(--border-color); |
| border-radius: var(--radius); |
| padding: 16px; |
| overflow-x: auto; |
| font-size: 0.8rem; |
| line-height: 1.6; |
| color: var(--text-primary); |
| } |
| .code-block code { background: none; padding: 0; font-size: inherit; } |
| .copy-btn { position: absolute; top: 8px; right: 8px; opacity: 0.7; } |
| .copy-btn:hover { opacity: 1; } |
| .docs-content { max-width: 860px; } |
| .doc-section { margin-bottom: 12px; } |
| .doc-section .section-body { padding: 16px; } |
| .doc-section .section-body h4 { margin: 16px 0 6px; } |
| .doc-section .section-body h4:first-child { margin-top: 0; } |
| .doc-section .section-body p { margin-bottom: 10px; color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; } |
| .doc-section .section-body ul { margin: 8px 0; padding-left: 20px; } |
| .doc-section .section-body ul li { list-style: disc; margin-bottom: 4px; font-size: 0.85rem; color: var(--text-secondary); } |
|
|
| |
| |
| |
| .filter-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; } |
| .filter-row .form-group { margin-bottom: 0; min-width: 140px; flex: 1; max-width: 200px; } |
| .filter-actions { display: flex; gap: 8px; margin-bottom: 16px; } |
|
|
| |
| |
| |
| .rank-cell { text-align: center; } |
| .medal { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 0.72rem; font-weight: 700; } |
| .medal.gold { background: var(--gold); color: #000; } |
| .medal.silver { background: var(--silver); color: #000; } |
| .medal.bronze { background: var(--bronze); color: #fff; } |
|
|
| |
| |
| |
| .backup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } |
| .json-preview { margin: 12px 0; } |
| .json-preview .code-block { max-height: 300px; overflow-y: auto; } |
|
|
| |
| |
| |
| .batch-form .jsonl-textarea { min-height: 200px; } |
|
|
| |
| |
| |
| .admin-sections { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; } |
| .admin-section { padding: 0; } |
| .admin-section .section-header { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; } |
| .admin-section .section-body { padding: 0 20px 20px; } |
| .admin-section .form-group { max-width: 400px; } |
|
|
| |
| |
| |
| .cache-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; } |
| .cache-status { margin-top: 8px; } |
|
|
| |
| |
| |
| .health-actions { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; } |
|
|
| |
| |
| |
| .finetuning-form { max-width: 600px; } |
|
|
| |
| |
| |
| .status-page .provider-cards { margin-top: 0; } |
|
|
| |
| |
| |
| .password-form { max-width: 400px; } |
|
|
| |
| |
| |
| .empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); } |
| .empty-state-icon { font-size: 2rem; margin-bottom: 12px; } |
|
|
| |
| |
| |
| @media (max-width: 1024px) { |
| .analytics-grid { grid-template-columns: 1fr; } |
| .backup-grid { grid-template-columns: 1fr; } |
| .conversations-layout { grid-template-columns: 1fr; } |
| .realtime-page { grid-template-columns: 1fr; } |
| } |
| @media (max-width: 768px) { |
| .sidebar { |
| transform: translateX(-100%); |
| width: 280px; |
| } |
| .sidebar.open { transform: translateX(0); } |
| .main-content { margin-left: 0; } |
| .mobile-menu-btn { display: inline-flex; } |
| .content-header { padding: 12px 16px; } |
| .content-body { padding: 16px; } |
| .stat-cards-row { grid-template-columns: 1fr 1fr; } |
| .provider-cards { grid-template-columns: 1fr; } |
| .form-row { grid-template-columns: 1fr; } |
| .filter-row .form-group { min-width: 100%; max-width: 100%; } |
| .realtime-stats { grid-template-columns: 1fr 1fr; } |
| .presets-grid { grid-template-columns: 1fr; } |
| .providers-grid { grid-template-columns: 1fr; } |
| .cache-actions { grid-template-columns: 1fr; } |
| } |
| @media (max-width: 480px) { |
| .stat-cards-row { grid-template-columns: 1fr; } |
| .realtime-stats { grid-template-columns: 1fr; } |
| .chat-params { flex-direction: column; align-items: stretch; } |
| .modal-content { width: 96%; } |
| } |
|
|
| |
| |
| |
| @media print { |
| .sidebar { display: none; } |
| .main-content { margin-left: 0; } |
| .card { break-inside: avoid; box-shadow: none; } |
| } |
|
|