/* ============================================
   ADMIN PAGE STYLES
   ============================================ */

/* 관리자 로그인 */
.admin-body { background: var(--bg); }
.login-overlay {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #1a56db 0%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.login-box {
  background: white;
  border-radius: 20px;
  padding: 48px 40px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
}
.login-logo {
  width: 72px; height: 72px;
  background: var(--primary-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--primary);
  margin: 0 auto 20px;
}
.login-box h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.login-box > p { font-size: 13px; color: var(--gray); margin-bottom: 28px; }
.login-form .form-group { text-align: left; margin-bottom: 16px; }
.login-form .form-group label { font-size: 13px; font-weight: 600; color: var(--dark-2); margin-bottom: 6px; display: block; }
.login-form input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  transition: var(--transition);
}
.login-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,86,219,0.1);
  outline: none;
}
.login-error {
  background: #fee2e2;
  color: var(--danger-dark);
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}
.btn-login {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
  transition: var(--transition);
}
.btn-login:hover { background: var(--primary-dark); }
.back-link {
  display: block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--gray);
  transition: var(--transition);
}
.back-link:hover { color: var(--primary); }

/* ========== 관리자 레이아웃 ========== */
#admin-panel {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* 사이드바 */
.admin-sidebar {
  width: 240px;
  background: var(--dark);
  color: white;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  flex-shrink: 0;
  overflow: hidden;
  z-index: 100;
}
.admin-sidebar.collapsed { width: 64px; }
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.sidebar-title { overflow: hidden; flex: 1; }
.sidebar-main-title { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; }
.sidebar-sub-title { display: block; font-size: 11px; opacity: 0.6; white-space: nowrap; }
.sidebar-toggle {
  background: none;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  padding: 4px;
  flex-shrink: 0;
}
.sidebar-toggle:hover { color: white; }
.sidebar-menu {
  list-style: none;
  padding: 12px 0;
  flex: 1;
  overflow-y: auto;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}
.menu-item:hover { background: rgba(255,255,255,0.08); }
.menu-item.active { background: var(--primary); }
.menu-item i { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.menu-separator { height: 1px; background: rgba(255,255,255,0.1); margin: 8px 16px; }
.admin-sidebar.collapsed .menu-item span,
.admin-sidebar.collapsed .sidebar-title { display: none; }
.admin-sidebar.collapsed .menu-item { justify-content: center; padding: 14px; }

/* 메인 영역 */
.admin-main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* 상단 바 */
.admin-topbar {
  background: var(--white);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-menu-btn {
  background: none;
  color: var(--dark);
  font-size: 18px;
  padding: 4px;
}
.admin-topbar h2 { font-size: 18px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.admin-badge {
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.btn-logout-top {
  background: none;
  color: var(--gray);
  font-size: 18px;
  padding: 4px 8px;
}
.btn-logout-top:hover { color: var(--danger); }

/* 탭 콘텐츠 */
.tab-content {
  padding: 24px;
  flex: 1;
}

/* ========== 대시보드 ========== */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon.green { background: #d1fae5; color: var(--success); }
.stat-icon.orange { background: #ffedd5; color: var(--orange); }
.stat-icon.red { background: #fee2e2; color: var(--danger); }
.stat-info { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--dark); line-height: 1; }
.stat-label { font-size: 12px; color: var(--gray); }
.dashboard-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.dashboard-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--dark);
}
.activity-table-wrap { overflow-x: auto; }
.activity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.activity-table th {
  background: var(--bg);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--dark-2);
  border-bottom: 2px solid var(--border);
}
.activity-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}
.no-data { text-align: center; color: var(--gray); }
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quick-btn {
  background: var(--primary-light);
  color: var(--primary);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.quick-btn:hover { background: var(--primary); color: white; }
.quick-btn.danger { background: #fee2e2; color: var(--danger); }
.quick-btn.danger:hover { background: var(--danger); color: white; }

/* ========== 섹션 헤더 ========== */
.section-header { margin-bottom: 20px; }
.section-header h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.section-header p { font-size: 13px; color: var(--gray); }

/* ========== 폼 카드 ========== */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.form-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

/* ========== 업로드 존 ========== */
.upload-zone {
  border: 2px dashed var(--gray-lighter);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.upload-zone i { font-size: 48px; margin-bottom: 12px; display: block; }
.btn-upload {
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
}
.analysis-section { margin-top: 16px; }
.uploaded-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.uploaded-preview img {
  width: 80px; height: 60px;
  object-fit: cover;
  border-radius: 6px;
}
.upload-info { flex: 1; }
.btn-clear {
  background: none;
  color: var(--danger);
  font-size: 16px;
  padding: 4px;
}
.analysis-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-analyze {
  background: var(--purple);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}
.btn-analyze:hover { opacity: 0.9; }

/* ========== 지도 편집기 ========== */
.map-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.map-editor-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tool-btn {
  width: 36px; height: 36px;
  background: var(--bg);
  color: var(--dark-2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: var(--transition);
  border: 2px solid transparent;
}
.tool-btn:hover { background: var(--primary-light); color: var(--primary); }
.tool-btn.active { background: var(--primary); color: white; border-color: var(--primary-dark); }
.tool-separator { width: 1px; height: 24px; background: var(--border); margin: 0 4px; }
#floor-select {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}
.btn-save-map {
  background: var(--success);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.map-canvas-container {
  position: relative;
  background: #f0f4f8;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
#map-canvas {
  display: block;
  cursor: crosshair;
  max-width: 100%;
}
.canvas-hint {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.9);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--gray);
  pointer-events: none;
}
.node-properties {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 12px;
  border: 1px solid var(--border);
}
.node-properties h5 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.prop-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.prop-row label { font-size: 12px; font-weight: 600; width: 50px; color: var(--gray); flex-shrink: 0; }
.prop-row input, .prop-row select, .prop-row textarea {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
}
.prop-actions { display: flex; gap: 8px; }
.btn-update {
  background: var(--primary);
  color: white;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.btn-delete-node {
  background: #fee2e2;
  color: var(--danger);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* ========== QR 관리 ========== */
.qr-top-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.btn-generate {
  background: var(--orange);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}
.btn-print {
  background: var(--dark-2);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}
.qr-list-container {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.qr-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.qr-filter-bar select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.qr-item-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--bg);
  position: relative;
}
.qr-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.qr-item-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.qr-item-title { font-size: 13px; font-weight: 700; }
.qr-item-meta { font-size: 11px; color: var(--gray); margin-bottom: 10px; }
.qr-item-actions { display: flex; gap: 6px; }
.btn-qr-view {
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.btn-qr-edit {
  background: var(--bg);
  color: var(--dark-2);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
}
.btn-qr-delete {
  background: #fee2e2;
  color: var(--danger);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.no-data-msg {
  text-align: center;
  color: var(--gray);
  padding: 40px;
  font-size: 14px;
}
.qr-display .modal-content { max-width: 320px; }
.qr-modal-body { text-align: center; padding: 20px 24px; }
#qr-code-display {
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 200px;
}
#qr-code-display canvas,
#qr-code-display img {
  display: block !important;
  margin: 0 auto;
  max-width: 200px;
  max-height: 200px;
}
.qr-label { font-size: 13px; color: var(--dark-2); margin-bottom: 10px; font-weight: 600; }
/* QR URL 미리보기 박스 */
.qr-url-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 14px;
  max-width: 100%;
  overflow: hidden;
}
.qr-url-text {
  flex: 1;
  font-size: 10px;
  color: #475569;
  word-break: break-all;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Courier New', monospace;
}
.btn-copy-url {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-copy-url:hover { background: var(--primary); color: white; }
.qr-actions { display: flex; gap: 10px; justify-content: center; }
.btn-preview-guide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 3px 10px rgba(16,185,129,0.25);
}
.btn-preview-guide:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.btn-download {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

/* ========== 경로 편집기 ========== */
.route-editor-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  height: calc(100vh - 200px);
}
.route-list-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.panel-header h4 { font-size: 15px; font-weight: 700; }
.route-type-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.route-type-tab {
  flex: 1;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  background: none;
  color: var(--gray);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.route-type-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.route-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.route-list-item {
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 4px;
  transition: var(--transition);
  border: 2px solid transparent;
}
.route-list-item:hover { background: var(--bg); }
.route-list-item.selected {
  background: var(--primary-light);
  border-color: var(--primary);
}
.route-item-name { font-size: 13px; font-weight: 600; }
.route-item-type {
  font-size: 11px;
  color: var(--gray);
  margin-top: 2px;
}
.route-edit-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-y: auto;
  padding: 20px;
}
.no-route-selected {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--gray);
}
.no-route-selected i { font-size: 48px; margin-bottom: 12px; }
.no-route-selected p { font-size: 14px; }
.route-edit-form h4 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.steps-editor {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.steps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.steps-header h5 { font-size: 14px; font-weight: 700; }
.steps-list { display: flex; flex-direction: column; gap: 8px; }
.step-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.step-num {
  width: 24px; height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-fields { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.step-fields select, .step-fields input, .step-fields textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
}
.step-delete-btn {
  background: #fee2e2;
  color: var(--danger);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
}
.route-description-preview {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.route-description-preview h5 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}
.description-box {
  font-size: 13px;
  line-height: 1.8;
  color: var(--dark-2);
  background: white;
  padding: 12px;
  border-radius: 8px;
  min-height: 60px;
}
.btn-generate-desc {
  background: var(--primary);
  color: white;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
}
.form-actions { display: flex; gap: 10px; margin-top: 16px; }
.btn-delete { background: #fee2e2; color: var(--danger); padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; }

/* ========== 모니터링 ========== */
.monitoring-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  margin-bottom: 16px;
}
.monitoring-map-panel, .monitoring-user-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.monitoring-controls { display: flex; gap: 8px; align-items: center; }
.monitoring-controls select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
}
.btn-refresh {
  background: var(--primary-light);
  color: var(--primary);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
#monitoring-canvas {
  display: block;
  max-width: 100%;
  background: #f0f4f8;
}
.monitoring-legend {
  display: flex;
  gap: 16px;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--dark-2);
  border-top: 1px solid var(--border);
}
.legend-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}
.legend-dot.blue { background: var(--primary); }
.legend-dot.orange { background: var(--orange); }
.legend-dot.red { background: var(--danger); }
.user-count-badge {
  background: var(--primary);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.user-list { overflow-y: auto; max-height: 400px; padding: 8px; }
.user-list-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.user-item-id { font-weight: 700; color: var(--dark); }
.user-item-loc { color: var(--gray); margin-top: 2px; }
.user-item-time { color: var(--gray-light); font-size: 10px; }
.alert-log-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.alert-log-section h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.alert-log {
  background: #0f172a;
  border-radius: var(--radius-sm);
  padding: 12px;
  max-height: 200px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}
.log-entry {
  display: flex;
  gap: 10px;
  padding: 3px 0;
}
.log-time { color: #94a3b8; }
.log-entry.info .log-msg { color: #7dd3fc; }
.log-entry.warning .log-msg { color: #fde68a; }
.log-entry.danger .log-msg { color: #fca5a5; }
.log-entry.success .log-msg { color: #86efac; }

/* ========== 화재 연동 탭 ========== */
.fire-connection-status, .fire-link-section {
  margin-bottom: 12px;
}
.fire-link-section label { font-size: 13px; font-weight: 600; color: var(--dark-2); margin-bottom: 6px; display: block; }
.status-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-dot.online { background: var(--success); }
.status-dot.offline { background: var(--gray-lighter); }
.status-dot.error { background: var(--danger); }
.fire-connection-status {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.toggle-row:last-child { border-bottom: none; }
.btn-start {
  background: var(--success);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}
.fire-log {
  background: #0f172a;
  border-radius: var(--radius-sm);
  padding: 12px;
  max-height: 160px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

/* 스키마틱 미리보기 */
.schematic-container { overflow-x: auto; }
.schematic-actions { display: flex; gap: 10px; margin-top: 12px; }
.btn-apply { background: var(--success); color: white; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.btn-edit { background: var(--primary-light); color: var(--primary); padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; }

/* 반응형 */
@media (max-width: 900px) {
  .route-editor-layout { grid-template-columns: 1fr; }
  .monitoring-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .admin-sidebar { position: absolute; height: 100%; }
  .admin-sidebar:not(.collapsed) { box-shadow: var(--shadow-lg); }
}
