/**
 * 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,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.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}.terminal-container{display:flex;flex-direction:column;height:100%;padding:10px;background-color:#1a1a2e}.terminal-wrapper{flex:1;background-color:#0d0d0d;border-radius:4px;overflow:hidden;min-height:0}.arrow-controls{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px;margin-top:8px}.arrow-row{display:flex;gap:8px;justify-content:center}.arrow-btn{width:60px;height:60px;border:none;border-radius:12px;background:linear-gradient(145deg,#0f3460,#16213e);color:#e94560;font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s ease;box-shadow:0 4px 6px #0000004d;-webkit-tap-highlight-color:transparent}.arrow-btn:active{background:linear-gradient(145deg,#16213e,#0f3460);transform:scale(.95);box-shadow:0 2px 4px #0003}.arrow-icon{display:block;font-size:20px}@media (min-width: 768px){.arrow-controls{display:none}}*{margin:0;padding:0;box-sizing:border-box}html,body,#root{height:100%;width:100%}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;background-color:#1a1a2e;color:#eee}.app-container{display:flex;flex-direction:column;height:100vh}.header{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background-color:#16213e;border-bottom:1px solid #0f3460}.header h1{font-size:1.2rem;color:#e94560}.session-list{display:flex;gap:10px;align-items:center}.terminal-container{flex:1;padding:10px;overflow:hidden}.terminal-wrapper{height:100%;background-color:#0d0d0d;border-radius:4px;overflow:hidden}.control-panel{display:flex;gap:10px;padding:10px 20px;background-color:#16213e;border-top:1px solid #0f3460}.btn{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;transition:background-color .2s}.btn-primary{background-color:#e94560;color:#fff}.btn-primary:hover{background-color:#d63850}.btn-secondary{background-color:#0f3460;color:#fff}.btn-secondary:hover{background-color:#1a4a7a}.btn-danger{background-color:#dc3545;color:#fff}.btn-danger:hover{background-color:#c82333}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000}.modal{background-color:#16213e;padding:24px;border-radius:8px;min-width:400px;max-width:500px}.modal h2{margin-bottom:20px;color:#e94560}.form-group{margin-bottom:16px}.form-group label{display:block;margin-bottom:6px;font-size:.9rem;color:#aaa}.form-group input{width:100%;padding:10px;border:1px solid #0f3460;border-radius:4px;background-color:#1a1a2e;color:#eee;font-size:.9rem}.form-group input:focus{outline:none;border-color:#e94560}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.session-badge{padding:4px 8px;border-radius:4px;font-size:.75rem;font-weight:600}.session-badge.active{background-color:#28a745;color:#fff}.session-badge.idle{background-color:#6c757d;color:#fff}.session-badge.crashed{background-color:#dc3545;color:#fff}.session-selector{display:flex;gap:8px;align-items:center}.session-selector select{padding:8px 12px;border:1px solid #0f3460;border-radius:4px;background-color:#1a1a2e;color:#eee;font-size:.9rem}.status-indicator{display:flex;align-items:center;gap:6px;font-size:.85rem;color:#888}.status-dot{width:8px;height:8px;border-radius:50%;background-color:#28a745}.status-dot.offline{background-color:#6c757d}.login-container{display:flex;align-items:center;justify-content:center;height:100vh;background-color:#1a1a2e}.login-card{background-color:#16213e;padding:40px;border-radius:8px;width:100%;max-width:400px;box-shadow:0 4px 20px #0000004d}.login-card h1{font-size:1.5rem;color:#e94560;margin-bottom:8px;text-align:center}.login-subtitle{color:#888;font-size:.9rem;text-align:center;margin-bottom:30px}.login-card .form-group{margin-bottom:20px}.login-card .btn-full{width:100%;margin-top:10px}.login-card .error-message{background-color:#dc354533;border:1px solid #dc3545;color:#dc3545;padding:10px;border-radius:4px;margin-bottom:16px;font-size:.85rem}
