/**
 * 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}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Noto Sans KR,Malgun Gothic,Apple SD Gothic Neo,sans-serif;background:#fff;color:#333}.sidebar{position:fixed;top:0;left:0;width:220px;height:100vh;background:#f5f0e8;color:#333;display:flex;flex-direction:column;z-index:100;border-right:1px solid #e2e8f0}.sidebar-header{padding:16px;border-bottom:2px solid #c9c2b6}.sidebar-header h1{font-size:14px;color:#dc2626;font-weight:700}.sidebar-nav{flex:1;padding:4px 0;overflow-y:auto}.menu-group{margin-bottom:6px}.menu-group-title{padding:12px 16px 4px;font-size:13px;font-weight:700;color:#6b7280}.sidebar-nav .side-link{display:block;padding:7px 16px 7px 24px;color:#6b7280;text-decoration:none;font-size:14px;font-weight:500;transition:all .15s}.sidebar-nav .side-link:before{content:"●";margin-right:8px;color:#d1d5db;font-size:8px;vertical-align:middle}.sidebar-nav .side-link:hover{color:#111827}.sidebar-nav .side-link:hover:before{color:#6b7280}.sidebar-nav .side-link.active{color:#1d4ed8;font-weight:700}.sidebar-nav .side-link.active:before{color:#1d4ed8;font-size:10px}.sidebar-footer{padding:12px 16px;border-top:1px solid #e5e7eb;font-size:11px;color:#9ca3af}.sidebar-footer .user-info{margin-bottom:6px;color:#475569}.sidebar-footer a{color:#dc2626;text-decoration:none;font-size:12px}.main-content{margin-left:220px;padding:20px 30px;min-height:100vh}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:15px;border-bottom:2px solid #e2e8f0}.page-header h2{font-size:22px;color:#1e293b}.card{background:#f5f0e8;border-radius:8px;box-shadow:0 1px 3px #0000000f;padding:20px;margin-bottom:20px}.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;padding-bottom:10px;border-bottom:1px solid #e2e8f0}.card-header h3{font-size:16px;color:#334155}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px;margin-bottom:20px}.stat-card{background:#f5f0e8;border-radius:8px;padding:20px;box-shadow:0 1px 3px #0000000f;text-align:center}.stat-card .stat-value{font-size:32px;font-weight:700;color:#2563eb}.stat-card .stat-label{font-size:13px;color:#64748b;margin-top:5px}.stat-card.green .stat-value{color:#16a34a}.stat-card.orange .stat-value{color:#ea580c}.stat-card.purple .stat-value{color:#9333ea}.table-wrap{overflow:auto;max-height:calc(100vh - 320px);min-height:200px}table{width:100%;border-collapse:collapse;font-size:13px}thead th{background:#ede8df;padding:10px 12px;text-align:left;font-weight:600;color:#5c5345;border-bottom:2px solid #d9d0c2;white-space:nowrap;position:sticky;top:0;z-index:10}tbody td{padding:9px 12px;border-bottom:1px solid #ede8df;vertical-align:middle}tbody tr{background:#fff}tbody tr:hover{background:#f5f0e8}.btn{display:inline-block;padding:8px 16px;border:none;border-radius:5px;font-size:13px;cursor:pointer;text-decoration:none;color:#fff;transition:opacity .2s}.btn:hover{opacity:.85}.btn-primary{background:#2563eb}.btn-success{background:#16a34a}.btn-danger{background:#dc2626}.btn-secondary{background:#64748b}.btn-sm{padding:5px 10px;font-size:12px}.form-group{margin-bottom:15px}.form-group label{display:block;margin-bottom:5px;font-size:13px;font-weight:600;color:#475569}.form-group input,.form-group select,.form-group textarea{width:100%;padding:8px 12px;border:1px solid #cbd5e1;border-radius:5px;font-size:13px;color:#334155}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.search-bar{display:flex;gap:8px;align-items:center;margin-bottom:15px}.search-bar select,.search-bar input{padding:8px 12px;border:1px solid #cbd5e1;border-radius:5px;font-size:13px}.search-bar input{flex:1;max-width:300px}.pagination{display:flex;justify-content:center;gap:5px;margin-top:20px}.pagination a,.pagination span{display:inline-block;padding:6px 12px;border:1px solid #e2e8f0;border-radius:4px;text-decoration:none;font-size:13px;color:#475569}.pagination a:hover{background:#f1f5f9}.pagination .active{background:#2563eb;color:#fff;border-color:#2563eb}.alert{padding:12px 16px;border-radius:5px;margin-bottom:15px;font-size:13px}.alert-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.alert-success{background:#f0fdf4;color:#166534;border:1px solid #bbf7d0}.login-wrap{display:flex;justify-content:center;align-items:center;min-height:100vh;background:#1e293b}.login-box{background:#fff;border-radius:10px;padding:40px;width:380px;box-shadow:0 4px 20px #0000004d}.login-box h2{text-align:center;margin-bottom:5px;color:#1e293b}.login-box .subtitle{text-align:center;color:#64748b;font-size:13px;margin-bottom:25px}.login-box .btn{width:100%;padding:12px;font-size:15px}.iframe-wrap{width:100%;height:calc(100vh - 120px)}.iframe-wrap iframe{width:100%;height:100%;border:1px solid #e2e8f0;border-radius:8px}.badge{display:inline-block;padding:3px 8px;border-radius:10px;font-size:11px;font-weight:600}.badge-green{background:#dcfce7;color:#166534}.badge-red{background:#fef2f2;color:#991b1b}.badge-blue{background:#dbeafe;color:#1e40af}.badge-gray{background:#f1f5f9;color:#475569}
