* { box-sizing: border-box; margin: 0; padding: 0; } html { font-size: 16px; line-height: 1.5; } body { font-family: 'IBM Plex Sans', 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--ink); padding: 20px; height: 480px; width: 800px; overflow: hidden; position: relative; } .header { background: rgba(34, 40, 49, 0.8); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 12px; padding: 16px 24px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; } .brand { font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace; font-size: 20px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 12px; } .status-bar { display: flex; gap: 16px; align-items: center; } .status-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(255, 255, 255, 0.05); border-radius: 8px; border: 1px solid var(--border); font-size: 14px; } .status-indicator { width: 10px; height: 10px; border-radius: 50%; } .status-online { background: var(--accent); } .status-warning { background: var(--warning); } .status-error { background: var(--danger); } .main-content { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; height: calc(480px - 80px); } .control-panel { background: rgba(34, 40, 49, 0.8); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 16px; } .panel-title { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 600; color: var(--primary); margin-bottom: 8px; } .device-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; } .device-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 8px; padding: 12px; cursor: pointer; transition: all 0.2s ease; position: relative; } .device-card:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } .device-card.selected { border-color: var(--primary); background: rgba(88, 227, 138, 0.05); } .device-icon { width: 36px; height: 36px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--primary); } .device-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; } .device-status { font-size: 12px; color: var(--muted); } .device-power { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; } .power-on { color: var(--accent); } .power-off { color: var(--muted); } .visualization-panel { background: rgba(34, 40, 49, 0.8); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; } .chart-container { flex: 1; position: relative; margin: 20px 0; background: rgba(255, 255, 255, 0.02); border-radius: 8px; border: 1px solid var(--border); overflow: hidden; } .chart-title { font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 600; margin-bottom: 12px; } .chart-canvas { width: 100%: height: 100%; } .controls-footer { display: flex; gap: 12px; margin-top: 20px; } .btn { padding: 12px 24px; border: none; border-radius: 8px; font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: 56px; } .btn-primary { background: var(--primary); color: var(--bg); } .btn-primary:hover { background: oklch(0.88 0.18 145); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(88, 227, 138, 0.3); } .btn-secondary { background: rgba(255, 255, 255, 0.05); color: var(--ink); border: 1px solid var(--border); } .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); } .loading-skeleton { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent); animation: loading 1.5s infinite; } @keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } .selected-indicator { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; border: 2px solid var(--primary); border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; } .device-card.selected .selected-indicator { opacity: 1; }