/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}:root{--bg-main: #0a0f1d;--bg-sidebar: #060913;--bg-card: rgba(15, 23, 42, .75);--bg-card-hover: rgba(30, 41, 59, .85);--border-color: rgba(255, 255, 255, .08);--border-hover: rgba(56, 189, 248, .3);--primary: #38bdf8;--primary-glow: rgba(56, 189, 248, .25);--primary-dark: #0284c7;--success: #10b981;--success-glow: rgba(16, 185, 129, .2);--warning: #f59e0b;--warning-glow: rgba(245, 158, 11, .2);--danger: #f43f5e;--danger-glow: rgba(244, 63, 94, .2);--text-main: #f1f5f9;--text-muted: #94a3b8;--text-dim: #64748b;--font-sans: "Inter", system-ui, -apple-system, sans-serif;--font-mono: "JetBrains Mono", monospace}*{margin:0;padding:0;box-sizing:border-box}body{background-color:var(--bg-main);color:var(--text-main);font-family:var(--font-sans);min-height:100vh;overflow-x:hidden;background-image:radial-gradient(at 0% 0%,rgba(56,189,248,.07) 0px,transparent 50%),radial-gradient(at 100% 100%,rgba(168,85,247,.05) 0px,transparent 50%);background-attachment:fixed}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:#0003}::-webkit-scrollbar-thumb{background:#ffffff26;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--primary)}.glass-card{background:var(--bg-card);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid var(--border-color);border-radius:14px;transition:all .25s cubic-bezier(.4,0,.2,1)}.glass-card:hover{border-color:var(--border-hover);box-shadow:0 8px 24px -6px #0006,0 0 15px #38bdf80d}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 16px;border-radius:8px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);border:none;font-family:var(--font-sans);outline:none;-webkit-user-select:none;user-select:none}.btn:active{transform:scale(.97)}.btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.btn-primary{background:linear-gradient(135deg,#38bdf8,#0284c7);color:#04121d;font-weight:600;box-shadow:0 2px 10px #38bdf84d}.btn-primary:hover:not(:disabled){filter:brightness(1.1);box-shadow:0 4px 18px #38bdf873;transform:translateY(-1px)}.btn-secondary{background:#ffffff0d;color:var(--text-main);border:1px solid var(--border-color)}.btn-secondary:hover:not(:disabled){background:#ffffff17;border-color:#fff3;color:#fff;transform:translateY(-1px)}.btn-danger{background:#f43f5e26;color:#fb7185;border:1px solid rgba(244,63,94,.3)}.btn-danger:hover:not(:disabled){background:#f43f5e40;color:#fff;border-color:#f43f5e}.btn-success{background:#10b98126;color:#34d399;border:1px solid rgba(16,185,129,.3)}.btn-success:hover:not(:disabled){background:#10b98140;color:#fff;border-color:#10b981}.btn-warning{background:#f59e0b26;color:#fbbf24;border:1px solid rgba(245,158,11,.3)}.btn-warning:hover:not(:disabled){background:#f59e0b40;color:#fff;border-color:#f59e0b}.btn-sm{padding:5px 11px;font-size:12px;border-radius:6px}.badge{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:9999px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.badge-online,.badge-success{background:#10b98126;color:#34d399;border:1px solid rgba(16,185,129,.3)}.badge-offline,.badge-danger{background:#f43f5e26;color:#fb7185;border:1px solid rgba(244,63,94,.3)}.badge-warning{background:#f59e0b26;color:#fbbf24;border:1px solid rgba(245,158,11,.3)}.badge-primary{background:#38bdf826;color:#38bdf8;border:1px solid rgba(56,189,248,.3)}.badge-secondary{background:#ffffff0f;color:var(--text-muted);border:1px solid var(--border-color)}.input{width:100%;padding:10px 14px;background:#0f172ad9;border:1px solid var(--border-color);border-radius:8px;color:var(--text-main);font-size:13px;font-family:var(--font-sans);outline:none;transition:all .2s ease}.input:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-glow);background:#0f172af2}.input::placeholder{color:var(--text-dim)}.select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px;padding-right:36px}.app-layout{display:flex;height:100vh;overflow:hidden}.sidebar{width:260px;background:var(--bg-sidebar);border-right:1px solid var(--border-color);display:flex;flex-direction:column;flex-shrink:0}.main-content{flex:1;overflow-y:auto;padding:28px 36px}.nav-item{display:flex;align-items:center;gap:12px;padding:10px 16px;margin:2px 12px;border-radius:9px;color:var(--text-muted);font-size:13px;font-weight:500;text-decoration:none;cursor:pointer;transition:all .18s ease}.nav-item:hover{background:#ffffff0d;color:var(--text-main);transform:translate(2px)}.nav-item.active{background:#38bdf81f;color:var(--primary);border:1px solid rgba(56,189,248,.25);box-shadow:0 0 16px #38bdf81f;font-weight:600}.gauge-container{display:flex;flex-direction:column;align-items:center;justify-content:center}.inset-box{background:#00000052;border:1px solid rgba(255,255,255,.05);border-radius:10px;box-shadow:inset 0 2px 8px #0006}.table-custom{width:100%;border-collapse:separate;border-spacing:0;text-align:left;font-size:13px}.table-custom thead th{padding:12px 16px;font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:var(--text-dim);border-bottom:1px solid var(--border-color);background:#00000026}.table-custom tbody tr{transition:all .15s ease}.table-custom tbody tr:hover{background:#38bdf808}.table-custom tbody td{padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.04)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#020617d1;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;z-index:50;padding:16px;animation:fadeIn .2s ease-out}.modal-content{background:#0f172a;border:1px solid rgba(255,255,255,.12);border-radius:16px;width:100%;max-width:600px;max-height:90vh;overflow-y:auto;box-shadow:0 25px 50px -12px #000c,0 0 35px #38bdf81f;animation:scaleUp .22s cubic-bezier(.16,1,.3,1)}.terminal-wrapper{background:#060913;border-radius:10px;overflow:hidden;border:1px solid rgba(255,255,255,.1);padding:10px;box-shadow:inset 0 2px 10px #0009}.terminal-wrapper .xterm{padding:4px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fadeIn .25s ease-out}@keyframes scaleUp{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes pulseDot{0%{transform:scale(.95);box-shadow:0 0 #10b981b3}70%{transform:scale(1);box-shadow:0 0 0 6px #10b98100}to{transform:scale(.95);box-shadow:0 0 #10b98100}}.pulse-dot-online{animation:pulseDot 2s infinite}@keyframes pulseWarning{0%{transform:scale(.95);box-shadow:0 0 #f59e0bb3}70%{transform:scale(1);box-shadow:0 0 0 6px #f59e0b00}to{transform:scale(.95);box-shadow:0 0 #f59e0b00}}.pulse-dot-warning{animation:pulseWarning 2s infinite}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.skeleton-shimmer{background:linear-gradient(90deg,#ffffff08 25%,#ffffff14,#ffffff08 75%);background-size:200% 100%;animation:shimmer 1.8s infinite}
