/* ============================================ Panel Framework Styles ============================================ */ /* ----- Overlay Backdrop ----- */ .panel-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: transparent; z-index: 1000; transition: background 0.3s ease; pointer-events: none; touch-action: none; /* Prevent touch events from reaching the canvas */ } .panel-overlay-visible { background: var(--shadow-xl); pointer-events: auto; } /* ----- Sidebar Panel ----- */ .panel-sidebar { position: fixed; top: 0; bottom: 0; width: 360px; background: var(--bg-card); box-shadow: -4px 0 16px var(--shadow); z-index: 1001; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; max-width: 90vw; touch-action: auto; /* Allow normal touch interactions within panels */ } .panel-sidebar-right { right: 0; transform: translateX(100%); } .panel-sidebar-left { left: 0; transform: translateX(-100%); } .panel-sidebar-visible { transform: translateX(0); } /* Panel Header */ .panel-header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border-default); } .panel-title { margin: 0; font-size: var(--text-xl); font-weight: 600; color: var(--slate-12); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .panel-close { background: none; border: none; color: var(--text-muted); font-size: var(--text-3xl); line-height: 1; cursor: pointer; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-control); transition: background 0.2s, color 0.2s; flex-shrink: 0; margin-left: var(--space-3); } .panel-close:hover { background: var(--bg-hover); color: var(--slate-12); } .panel-close:active { background: var(--bg-active); } /* Panel Content */ .panel-content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: var(--space-5); touch-action: pan-y; /* Allow vertical scrolling, prevent horizontal manipulation */ -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */ } /* Panel Content Scrollbar Styling */ .panel-content::-webkit-scrollbar { width: 8px; } .panel-content::-webkit-scrollbar-track { background: var(--bg-input); } .panel-content::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-control); } .panel-content::-webkit-scrollbar-thumb:hover { background: var(--border-strong); } /* ----- Modal Dialog ----- */ .modal-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: transparent; z-index: 2000; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; pointer-events: none; } .modal-backdrop-visible { background: var(--overlay-strong); pointer-events: auto; } .modal-container { background: var(--bg-card); border-radius: var(--radius-card); box-shadow: 0 8px 32px var(--shadow-xl); width: 600px; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0; transform: scale(0.95) translateY(-20px); } .modal-container-visible { opacity: 1; transform: scale(1) translateY(0); } /* Modal Header */ .modal-header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6) var(--space-4); border-bottom: 1px solid var(--border-default); } .modal-title { margin: 0; font-size: var(--text-lg); font-weight: 600; color: var(--slate-12); } .modal-close { background: none; border: none; color: var(--text-muted); font-size: var(--text-3xl); line-height: 1; cursor: pointer; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-control); transition: background 0.2s, color 0.2s; flex-shrink: 0; margin-left: var(--space-3); } .modal-close:hover { background: var(--border-default); color: var(--slate-12); } /* Modal Content */ .modal-content { flex: 1; overflow-y: auto; padding: var(--space-5) var(--space-6); min-height: 0; } /* Modal Footer */ .modal-footer { flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); padding: var(--space-4) var(--space-6) var(--space-5); border-top: 1px solid var(--border-default); } .modal-btn { padding: 10px var(--space-5); border-radius: var(--radius-control); font-size: var(--text-sm); font-weight: 500; cursor: pointer; border: none; transition: background 0.2s, transform 0.1s; } .modal-btn:active { transform: translateY(1px); } .modal-btn-cancel { background: var(--border-default); color: var(--slate-11); } .modal-btn-cancel:hover { background: var(--border-strong); color: var(--slate-12); } .modal-btn-confirm { background: var(--blue-10); color: var(--bg-card); } .modal-btn-confirm:hover { background: var(--blue-10); } /* ----- Toast Notifications ----- */ #toast-container { position: fixed; bottom: var(--space-5); right: var(--space-5); z-index: 3000; display: flex; flex-direction: column; gap: var(--space-250); pointer-events: none; } /* Safe area support for toast notifications */ @supports (padding: max(0px)) { #toast-container { /* Adjust bottom position to account for safe area */ bottom: calc(20px + env(safe-area-inset-bottom)); right: calc(20px + env(safe-area-inset-right)); } } .toast { background: var(--bg-hover); border: 1px solid var(--border-strong); border-radius: var(--radius-card); padding: var(--space-3) var(--space-4); min-width: 280px; max-width: 400px; box-shadow: 0 4px 16px var(--shadow-lg); display: flex; align-items: center; gap: var(--space-3); pointer-events: auto; transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0; transform: translateY(20px); } .toast-visible { opacity: 1; transform: translateY(0); } .toast-dismissed { opacity: 0; transform: translateX(100%); } .toast-icon { font-size: var(--text-lg); flex-shrink: 0; width: 24px; text-align: center; } .toast-message { flex: 1; font-size: var(--text-sm); color: var(--slate-12); line-height: 1.4; } .toast-dismiss { background: none; border: none; color: var(--text-muted); font-size: var(--text-lg); line-height: 1; cursor: pointer; padding: 0 4px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-control); transition: background 0.2s, color 0.2s; flex-shrink: 0; } .toast-dismiss:hover { background: var(--border-default); color: var(--slate-12); } /* Toast Type Variants */ .toast-success { border-color: var(--ok-border); background: linear-gradient(135deg, var(--ok-muted), var(--ok-bg)); } .toast-success .toast-icon { color: var(--ok); } .toast-info { border-color: var(--blue-border); background: linear-gradient(135deg, var(--blue-muted), var(--blue-muted)); } .toast-info .toast-icon { color: var(--blue-10); } .toast-warning { border-color: var(--warn-border); background: linear-gradient(135deg, var(--warn-muted), var(--warn-bg)); } .toast-warning .toast-icon { color: var(--warn); } .toast-error { border-color: var(--alert-border); background: linear-gradient(135deg, var(--alert-muted), var(--alert-bg)); } .toast-error .toast-icon { color: var(--alert); } /* ----- Panel Content Common Styles ----- */ /* Form Groups */ .panel-form-group { margin-bottom: var(--space-4); } .panel-form-group label { display: block; font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-150); font-weight: 500; } .panel-form-group input[type="text"], .panel-form-group input[type="number"], .panel-form-group input[type="password"], .panel-form-group input[type="email"], .panel-form-group input[type="url"], .panel-form-group select, .panel-form-group textarea { width: 100%; padding: 10px var(--space-3); background: var(--border-subtle); border: 1px solid var(--border-strong); border-radius: var(--radius-control); color: var(--slate-12); font-size: var(--text-sm); font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; } .panel-form-group input:focus, .panel-form-group select:focus, .panel-form-group textarea:focus { outline: none; border-color: var(--blue-10); box-shadow: 0 0 0 3px var(--blue-muted); } .panel-form-group input::placeholder, .panel-form-group textarea::placeholder { color: var(--slate-7); } .panel-form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: var(--space-8); } /* Range Slider */ .panel-form-group input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: var(--bg-hover); border-radius: var(--radius-control); outline: none; margin: var(--space-250); } .panel-form-group input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; background: var(--blue-10); border-radius: 50%; cursor: pointer; transition: transform 0.1s; } .panel-form-group input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); } .panel-form-group input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; background: var(--blue-10); border-radius: 50%; cursor: pointer; border: none; } .panel-form-range-value { font-size: var(--text-sm); color: var(--blue-10); font-weight: 500; text-align: right; margin-top: calc(-1 * var(--space-2)); margin-bottom: var(--space-2); } /* Checkbox */ .panel-form-checkbox { display: flex; align-items: center; gap: var(--space-250); cursor: pointer; padding: 6px 0; } .panel-form-checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blue-10); cursor: pointer; flex-shrink: 0; } .panel-form-checkbox label { margin: 0; cursor: pointer; flex: 1; } /* Section Headers */ .panel-section { margin-bottom: var(--space-5); } .panel-section-header { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--text-muted); margin-bottom: var(--space-3); padding-bottom: var(--space-150); border-bottom: 1px solid var(--bg-hover); } /* Buttons */ .panel-btn { padding: 10px var(--space-5); border-radius: var(--radius-control); font-size: var(--text-sm); font-weight: 500; cursor: pointer; border: none; transition: background 0.2s, transform 0.1s; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); } .panel-btn:active { transform: translateY(1px); } .panel-btn-primary { background: var(--blue-10); color: var(--bg-card); } .panel-btn-primary:hover { background: var(--blue-10); } .panel-btn-secondary { background: var(--bg-hover); color: var(--slate-11); border: 1px solid var(--border-strong); } .panel-btn-secondary:hover { background: var(--border-strong); color: var(--slate-12); } .panel-btn-danger { background: var(--alert-muted); color: var(--alert); border: 1px solid var(--alert-border); } .panel-btn-danger:hover { background: var(--alert-border); } .panel-btn-full { width: 100%; } .panel-btn-group { display: flex; gap: var(--space-250); margin-top: var(--space-4); } /* Info Cards */ .panel-info-card { background: var(--border-subtle); border-radius: var(--radius-card); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-3); } .panel-info-card-title { font-size: var(--text-sm); font-weight: 600; color: var(--slate-12); margin-bottom: var(--space-1); } .panel-info-card-value { font-size: var(--text-lg); font-weight: 600; color: var(--blue-10); } .panel-info-card-subtitle { font-size: var(--text-2xs); color: var(--text-muted); margin-top: var(--space-1); } /* Divider */ .panel-divider { border: none; border-top: 1px solid var(--bg-hover); margin: var(--space-5); } /* Loading State */ .panel-loading { display: flex; align-items: center; justify-content: center; padding: var(--space-10); color: var(--text-muted); } .panel-loading-spinner { width: 32px; height: 32px; border: 3px solid var(--blue-muted); border-top-color: var(--blue-10); border-radius: 50%; animation: panel-spin 0.8s linear infinite; margin-right: var(--space-3); } @keyframes panel-spin { to { transform: rotate(360deg); } } /* Empty State */ .panel-empty { text-align: center; padding: var(--space-10) var(--space-5); color: var(--text-muted); } .panel-empty-icon { font-size: var(--text-5xl); margin-bottom: var(--space-3); opacity: 0.5; } .panel-empty-text { font-size: var(--text-sm); } /* ----- Security Panel Components ----- */ /* Security Status Indicator */ #security-status-indicator { display: flex; align-items: center; gap: var(--space-2); padding: 6px var(--space-3); border-radius: var(--radius-modal); cursor: pointer; transition: background 0.2s; font-size: var(--text-sm); font-weight: 500; } #security-status-indicator:hover { background: var(--border-default); } .security-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); box-shadow: 0 0 8px currentColor; } .security-status-indicator.mode-disarmed .security-status-dot { background: var(--text-muted); box-shadow: 0 0 8px var(--text-muted); } .security-status-indicator.mode-learning .security-status-dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); } .security-status-indicator.mode-armed .security-status-dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); } .security-status-indicator.mode-alert .security-status-dot { background: var(--alert); box-shadow: 0 0 8px var(--alert); animation: security-pulse 1s ease-in-out infinite; } @keyframes security-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .security-status-text { color: var(--slate-11); } .security-status-indicator.mode-alert .security-status-text { color: var(--alert); } /* Security Dialog Overlay */ #security-dialog-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: transparent; z-index: 2000; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; pointer-events: none; } #security-dialog-overlay.visible { background: var(--overlay-strong); pointer-events: auto; } #security-dialog { background: var(--bg-card); border-radius: var(--radius-card); box-shadow: 0 8px 32px var(--shadow-xl); width: 480px; max-width: 90vw; padding: var(--space-6); opacity: 0; transform: scale(0.95); transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); } #security-dialog-overlay.visible #security-dialog { opacity: 1; transform: scale(1); } #security-dialog h2 { margin: 0; font-size: var(--text-lg); font-weight: 600; color: var(--slate-12); } #security-dialog p { margin: 0; font-size: var(--text-sm); color: var(--slate-11); line-height: var(--lh-body); } #security-dialog .learning-warning { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: var(--radius-card); padding: var(--space-3); margin-bottom: var(--space-5); font-size: var(--text-sm); color: var(--warn); display: flex; align-items: center; gap: var(--space-250); } #security-dialog .learning-warning::before { content: '⚠'; font-size: var(--text-xl); } #security-dialog-buttons { display: flex; gap: var(--space-3); justify-content: flex-end; } /* Alert Banner */ #alert-banner { position: fixed; top: 0; left: 0; right: 0; background: linear-gradient(135deg, var(--alert), var(--alert-muted)); color: var(--text-on-accent); padding: var(--space-4) var(--space-5); z-index: 5000; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); box-shadow: 0 4px 20px var(--alert-border); transform: translateY(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); } #alert-banner.visible { transform: translateY(0); } .alert-banner-content { flex: 1; display: flex; align-items: center; gap: var(--space-4); } .alert-banner-icon { font-size: var(--text-3xl); animation: alert-shake 0.5s ease-in-out infinite; } @keyframes alert-shake { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } } .alert-banner-message { flex: 1; } .alert-banner-title { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-1); } .alert-banner-subtitle { font-size: var(--text-sm); opacity: 0.9; } .alert-banner-actions { display: flex; gap: var(--space-250); } .alert-banner-btn { padding: 10px var(--space-4); border-radius: var(--radius-control); font-size: var(--text-sm); font-weight: 500; cursor: pointer; border: none; transition: background 0.2s; } .alert-banner-btn-acknowledge { background: var(--border-strong); color: var(--text-on-accent); } .alert-banner-btn-acknowledge:hover { background: var(--slate-7); } .alert-banner-btn-view { background: var(--slate-12); color: var(--alert); } .alert-banner-btn-view:hover { background: var(--slate-12); } /* Security Card Panel Content */ .security-card-section { margin-bottom: var(--space-6); } .security-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); } .security-card-title { font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; } .security-status-display { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); background: var(--border-subtle); border-radius: var(--radius-card); margin-bottom: var(--space-4); } .security-status-badge { flex: 1; } .security-status-badge-label { font-size: var(--text-xs); color: var(--text-muted); margin-bottom: var(--space-1); } .security-status-badge-value { font-size: var(--text-xl); font-weight: 600; color: var(--slate-12); } .security-status-badge.value-disarmed { color: var(--text-muted); } .security-status-badge.value-learning { color: var(--warn); } .security-status-badge.value-armed { color: var(--ok); } .security-status-badge.value-alert { color: var(--alert); } .security-status-icon { font-size: var(--text-4xl); } /* Learning Progress Bar */ .learning-progress-container { margin-top: var(--space-4); } .learning-progress-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2); } .learning-progress-text { font-size: var(--text-xs); color: var(--text-muted); } .learning-progress-percent { font-size: var(--text-sm); font-weight: 600; color: var(--warn); } .learning-progress-bar { height: 8px; background: var(--bg-hover); border-radius: var(--radius-control); overflow: hidden; } .learning-progress-fill { height: 100%; background: linear-gradient(90deg, var(--warn), var(--warn)); border-radius: var(--radius-control); transition: width 0.5s ease; width: 0%; } .learning-ready-badge { display: inline-flex; align-items: center; gap: var(--space-150); padding: var(--space-1) 10px; background: var(--ok-muted); border-radius: var(--radius-card); font-size: var(--text-2xs); font-weight: 600; color: var(--ok); margin-top: var(--space-2); } /* Anomaly Stats Grid */ .security-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-4); } .security-stat-card { background: var(--border-subtle); border-radius: var(--radius-card); padding: var(--space-3); text-align: center; } .security-stat-value { font-size: var(--text-3xl); font-weight: 600; color: var(--blue-10); } .security-stat-label { font-size: var(--text-2xs); color: var(--text-muted); margin-top: var(--space-1); text-transform: uppercase; } .security-last-event { background: var(--border-subtle); border-radius: var(--radius-card); padding: var(--space-3); } .security-last-event-label { font-size: var(--text-2xs); color: var(--text-muted); margin-bottom: var(--space-1); } .security-last-event-value { font-size: var(--text-sm); color: var(--slate-11); } .security-last-event-time { font-size: var(--text-2xs); color: var(--text-muted); margin-top: var(--space-1); } /* Arm/Disarm Button */ .security-arm-btn { width: 100%; padding: var(--space-350); border-radius: var(--radius-card); font-size: var(--text-md); font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: var(--space-250); } .security-arm-btn.disarmed { background: var(--ok-muted); color: var(--ok); border: 1px solid var(--ok-border); } .security-arm-btn.disarmed:hover { background: var(--ok-border); } .security-arm-btn.armed { background: var(--alert-muted); color: var(--alert); border: 1px solid var(--alert-border); } .security-arm-btn.armed:hover { background: var(--alert-border); } .security-arm-btn:disabled { opacity: 0.5; cursor: not-allowed; } /* Anomaly Timeline */ .anomaly-timeline-controls { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); } .anomaly-timeline-filter { flex: 1; padding: var(--space-2) var(--space-3); background: var(--border-subtle); border: 1px solid var(--border-strong); border-radius: var(--radius-control); color: var(--slate-11); font-size: var(--text-sm); cursor: pointer; transition: all 0.2s; } .anomaly-timeline-filter:hover { background: var(--border-default); } .anomaly-timeline-filter.active { background: var(--blue-muted); border-color: var(--blue-border); color: var(--blue-10); } .anomaly-timeline-list { display: flex; flex-direction: column; gap: var(--space-3); } .anomaly-timeline-item { background: var(--border-subtle); border-radius: var(--radius-card); padding: var(--space-3); border-left: 3px solid transparent; cursor: pointer; transition: background 0.2s; } .anomaly-timeline-item:hover { background: var(--border-default); } .anomaly-timeline-item.type-unusual_hour { border-left-color: var(--warn); } .anomaly-timeline-item.type-unknown_ble { border-left-color: var(--blue-9); } .anomaly-timeline-item.type-motion_during_away { border-left-color: var(--alert); } .anomaly-timeline-item.type-unusual_dwell { border-left-color: var(--blue-10); } .anomaly-item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-150); } .anomaly-item-type { font-size: var(--text-sm); font-weight: 600; color: var(--slate-12); } .anomaly-item-time { font-size: var(--text-2xs); color: var(--text-muted); } .anomaly-item-details { font-size: var(--text-xs); color: var(--slate-11); line-height: 1.4; } .anomaly-item-status { display: inline-block; padding: 2px var(--space-2); border-radius: var(--radius-card); font-size: var(--text-3xs); font-weight: 600; margin-top: var(--space-150); } .anomaly-item-status.active { background: var(--alert-muted); color: var(--alert); } .anomaly-item-status.acknowledged { background: var(--ok-muted); color: var(--ok); } .anomaly-timeline-empty { text-align: center; padding: var(--space-8) var(--space-5); color: var(--text-muted); } .anomaly-timeline-empty-icon { font-size: var(--text-4xl); margin-bottom: var(--space-2); opacity: 0.5; } .anomaly-timeline-empty-text { font-size: var(--text-sm); } /* Responsive */ @media (max-width: 600px) { .panel-sidebar { width: 100%; max-width: 100%; } .modal-container { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; border-radius: 0; } #toast-container { left: var(--space-250); right: var(--space-250); bottom: var(--space-250); } .toast { min-width: 0; width: 100%; } /* Security panel responsive adjustments */ #security-dialog { width: 100%; max-width: 100%; border-radius: var(--radius-card) var(--radius-card) 0 0; margin: 0; position: fixed; bottom: 0; transform: translateY(100%); } #security-dialog-overlay.visible #security-dialog { transform: translateY(0); } #alert-banner { flex-direction: column; align-items: stretch; padding: var(--space-3) var(--space-4); } .alert-banner-content { margin-bottom: var(--space-3); } .alert-banner-actions { justify-content: stretch; } .alert-banner-btn { flex: 1; } .security-stats-grid { grid-template-columns: 1fr; } .anomaly-timeline-controls { flex-wrap: wrap; } .anomaly-timeline-filter { flex: 1 1 calc(50% - 4px); } } /* ============================================ Authentication Overlay Styles ============================================ */ #auth-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, var(--bg-card) 0%, var(--blue-3) 100%); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: var(--space-5); } .auth-modal { background: var(--bg-card); border-radius: var(--radius-modal); box-shadow: 0 20px 60px var(--shadow-xl); width: 100%; max-width: 440px; padding: var(--space-10); text-align: center; } .auth-header h1 { margin: 0; font-size: var(--text-2xl); font-weight: 600; color: var(--slate-12); } .auth-header p { margin: 0; font-size: var(--text-md); color: var(--text-secondary); } .auth-body { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); } .auth-instruction { font-size: var(--text-sm); color: var(--slate-11); margin: 0; } .auth-hint { font-size: var(--text-xs); color: var(--text-muted); margin: 0; } .auth-error { background: var(--alert-bg); border: 1px solid var(--alert-border); border-radius: var(--radius-control); padding: 10px var(--space-4); font-size: var(--text-sm); color: var(--alert); margin: 0; } .pin-inputs { display: flex; gap: var(--space-2); justify-content: center; } .pin-digit { width: 44px; height: 56px; background: var(--border-subtle); border: 2px solid var(--border-strong); border-radius: var(--radius-card); color: var(--slate-12); font-size: var(--text-3xl); font-weight: 600; text-align: center; transition: all 0.2s; } .pin-digit:focus { outline: none; border-color: var(--blue-10); box-shadow: 0 0 0 3px var(--blue-muted); background: var(--border-default); } .pin-digit::placeholder { color: var(--slate-6); } .auth-button { padding: 14px var(--space-8); border-radius: var(--radius-card); font-size: var(--text-md); font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; min-width: 160px; } .auth-button:disabled { opacity: 0.4; cursor: not-allowed; } .auth-button.primary { background: var(--blue-10); color: var(--bg-card); } .auth-button.primary:hover:not(:disabled) { background: var(--blue-10); transform: translateY(-1px); box-shadow: 0 4px 12px var(--blue-border); } .auth-button.secondary { background: var(--bg-hover); color: var(--slate-11); border: 1px solid var(--border-strong); } .auth-button.secondary:hover { background: var(--border-strong); color: var(--slate-12); } /* Responsive adjustments */ @media (max-width: 480px) { .auth-modal { padding: var(--space-8) var(--space-6); } .auth-header h1 { font-size: var(--text-3xl); } .pin-digit { width: 38px; height: 48px; font-size: var(--text-lg); } .auth-button { width: 100%; min-width: 0; } } /* ============================================ Detection Explainability Panel Styles ============================================ */ /* Explainability Loading */ .explainability-loading { display: flex; align-items: center; justify-content: center; padding: var(--space-10); gap: var(--space-3); color: var(--text-muted); } .explainability-loading .panel-loading-spinner { margin-right: 0; } /* Confidence Gauge */ .explainability-confidence { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); background: var(--border-subtle); border-radius: var(--radius-card); margin-bottom: var(--space-5); } .confidence-gauge { position: relative; width: 64px; height: 64px; flex-shrink: 0; } .confidence-ring { width: 100%; height: 100%; transform: rotate(-90deg); } .confidence-ring-bg { fill: none; stroke: var(--bg-hover); stroke-width: 3; } .confidence-ring-fill { fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 0.5s ease, stroke 0.3s ease; } .confidence-value { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: var(--text-base); font-weight: 600; color: var(--slate-12); } .confidence-label { font-size: var(--text-sm); color: var(--text-secondary); } /* Section Styles */ .explainability-section { margin-bottom: var(--space-5); } .section-title { font-size: var(--text-sm); font-weight: 600; color: var(--slate-12); margin-bottom: var(--space-3); } .section-header { font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--bg-hover); } .toggle-icon { font-size: var(--text-xs); color: var(--text-muted); transition: transform 0.2s ease; } .explainability-section.collapsed .toggle-icon { transform: rotate(-90deg); } .section-content { padding-top: var(--space-3); } /* Links Table */ .links-table { width: 100%; border-collapse: collapse; font-size: var(--text-xs); } .links-table th { text-align: left; padding: var(--space-2) 10px; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--bg-hover); font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: 0.5px; } .links-table td { padding: var(--space-2) 10px; border-bottom: 1px solid var(--border-subtle); } .links-table tr:last-child td { border-bottom: none; } .links-table-detailed { margin-top: var(--space-2); font-size: var(--text-2xs); } .link-cell { font-family: var(--font-mono); } .link-id { color: var(--blue-10); font-size: var(--text-2xs); } .deltarms-cell { font-family: var(--font-mono); color: var(--slate-11); } .zone-cell { text-align: center; } .zone-badge { display: inline-block; padding: 2px var(--space-2); border-radius: var(--radius-control); font-size: var(--text-3xs); font-weight: 600; color: var(--bg-card); } .weight-cell { font-family: var(--font-mono); color: var(--text-secondary); text-align: right; } .contribution-cell { font-family: var(--font-mono); color: var(--text-muted); text-align: right; } .contributing-cell { text-align: center; } .contributing-badge { display: inline-block; padding: var(--space-half) var(--space-150); border-radius: var(--radius-control); font-size: var(--text-2xs); font-weight: 600; background: var(--ok-border); color: var(--ok); } .contributing-badge.contributing-no { background: var(--border-strong); color: var(--text-muted); } .links-table-detailed tr.contributing-yes { background: var(--ok-bg); } .links-table-detailed tr.contributing-no { opacity: 0.7; } /* BLE Match Card */ .ble-match-card { background: var(--border-subtle); border-radius: var(--radius-card); padding: var(--space-3); } .ble-match-header { display: flex; align-items: center; gap: var(--space-250); margin-bottom: var(--space-3); } .ble-match-indicator { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; } .ble-match-name { flex: 1; font-size: var(--text-md); font-weight: 600; color: var(--slate-12); } .ble-match-confidence { font-size: var(--text-2xs); font-weight: 600; padding: 3px var(--space-2); border-radius: var(--radius-control); background: var(--blue-muted); color: var(--blue-10); } .ble-match-details { display: flex; flex-direction: column; gap: var(--space-150); } .ble-match-detail { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); } .ble-match-detail .detail-label { color: var(--text-muted); min-width: 70px; } .ble-match-detail .detail-value { color: var(--slate-11); font-family: var(--font-mono); } /* Footer */ .explainability-footer { padding-top: var(--space-4); border-top: 1px solid var(--bg-hover); } /* Blob Context Menu */ .blob-context-menu { position: fixed; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius-card); padding: 8px 0; min-width: 200px; z-index: 10000; box-shadow: 0 8px 32px var(--shadow-xl); animation: context-menu-fade-in 0.15s ease-out; } @keyframes context-menu-fade-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } } .blob-context-menu-item { padding: 10px var(--space-4); cursor: pointer; display: flex; align-items: center; gap: var(--space-250); font-size: var(--text-sm); color: var(--slate-11); transition: background 0.2s, color 0.2s; } .blob-context-menu-item:hover { background: var(--blue-muted); color: var(--blue-10); } .blob-context-menu-item:first-child { border-radius: var(--radius-card) var(--radius-card) 0 0; } .blob-context-menu-item:last-child { border-radius: 0 0 var(--radius-card) var(--radius-card); } .blob-context-menu-divider { height: 1px; background: var(--bg-hover); margin: var(--space-1); } .blob-context-menu-icon { font-size: var(--text-base); width: 20px; text-align: center; } /* Explainability Sidebar Specific */ #explainability-sidebar { background: var(--bg-card); } /* Responsive */ @media (max-width: 600px) { .explainability-confidence { flex-direction: column; text-align: center; } .confidence-gauge { width: 80px; height: 80px; } .confidence-value { font-size: var(--text-xl); } .links-table { font-size: var(--text-2xs); } .links-table th, .links-table td { padding: var(--space-150) var(--space-150); } } /* ── Automation Builder ───────────────────────────────────────────────────── */ .automation-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-default); margin-bottom: var(--space-3); } .automation-header h3 { margin: 0; font-size: var(--text-md); font-weight: 600; } .volume-tools { display: flex; gap: var(--space-150); align-items: center; } .volume-tools button { padding: var(--space-1) 10px; font-size: var(--text-xs); border: 1px solid var(--border-strong); border-radius: var(--radius-control); background: var(--border-subtle); color: var(--slate-11); cursor: pointer; transition: background 0.15s; } .volume-tools button:hover { background: var(--bg-active); color: var(--text-on-accent); } .trigger-card { background: var(--border-subtle); border: 1px solid var(--border-default); border-radius: var(--radius-control); padding: 10px var(--space-3); margin-bottom: var(--space-2); transition: border-color 0.15s; position: relative; } .trigger-card:hover { border-color: var(--border-strong); } .trigger-card-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); } .trigger-card-title { font-size: var(--text-sm); font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .trigger-card-meta { font-size: var(--text-2xs); color: var(--text-muted); margin-top: var(--space-1); } .trigger-card-actions { display: flex; gap: var(--space-150); align-items: center; flex-shrink: 0; } .error-badge { display: inline-flex; align-items: center; gap: var(--space-075); padding: var(--space-half) var(--space-175); font-size: var(--text-3xs); font-weight: 600; border-radius: var(--radius-control); background: var(--alert-bg); color: var(--alert); text-transform: uppercase; letter-spacing: 0.3px; } .disabled-badge { display: inline-flex; align-items: center; gap: var(--space-075); padding: var(--space-half) var(--space-175); font-size: var(--text-3xs); font-weight: 600; border-radius: var(--radius-control); background: var(--warn-bg); color: var(--warn); text-transform: uppercase; letter-spacing: 0.3px; } .warning-badge { display: inline-flex; align-items: center; gap: var(--space-075); padding: var(--space-half) var(--space-175); font-size: var(--text-3xs); font-weight: 600; border-radius: var(--radius-control); background: var(--warn-muted); color: var(--warn); text-transform: uppercase; letter-spacing: 0.3px; } .btn { display: inline-flex; align-items: center; justify-content: center; padding: 5px var(--space-3); font-size: var(--text-xs); font-weight: 500; border: 1px solid var(--bg-active); border-radius: var(--radius-control); background: var(--border-subtle); color: var(--slate-11); cursor: pointer; transition: background 0.15s, color 0.15s; white-space: nowrap; } .btn:hover { background: var(--bg-active); color: var(--text-on-accent); } .btn-sm { padding: 3px var(--space-2); font-size: var(--text-2xs); } .btn-primary { background: var(--blue-muted); border-color: var(--blue-border); color: var(--blue-11); } .btn-primary:hover { background: var(--blue-border); color: var(--blue-12); } .btn-secondary { background: var(--border-subtle); border-color: var(--bg-active); color: var(--text-secondary); } .btn-secondary:hover { background: var(--bg-active); color: var(--text-on-accent); } .btn-danger { background: var(--alert-bg); border-color: var(--alert-border); color: var(--alert); } .btn-danger:hover { background: var(--alert-border); } .btn-warning { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn); } .btn-warning:hover { background: var(--warn-border); } .toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; } .toggle-switch input { opacity: 0; width: 0; height: 0; } .toggle-switch .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-active); border-radius: var(--radius-card); transition: background 0.2s; } .toggle-switch .slider:before { content: ''; position: absolute; width: 16px; height: 16px; left: var(--space-half); bottom: var(--space-half); background: var(--slate-11); border-radius: 50%; transition: transform 0.2s, background 0.2s; } .toggle-switch input:checked + .slider { background: var(--blue-border); } .toggle-switch input:checked + .slider:before { transform: translateX(16px); background: var(--blue-11); } .action-item { display: flex; align-items: center; gap: var(--space-2); padding: 6px var(--space-2); background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-control); font-size: var(--text-xs); margin-bottom: var(--space-150); } .action-item .action-type { font-weight: 500; color: var(--blue-11); min-width: 55px; } .action-item .action-detail { flex: 1; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .action-item .action-remove { cursor: pointer; color: var(--text-muted); font-size: var(--text-sm); padding: 0 2px; } .action-item .action-remove:hover { color: var(--alert); } .form-control { width: 100%; padding: var(--space-150) var(--space-250); font-size: var(--text-sm); background: var(--border-subtle); border: 1px solid var(--bg-active); border-radius: var(--radius-control); color: var(--text-secondary); box-sizing: border-box; transition: border-color 0.15s; } .form-control:focus { outline: none; border-color: var(--blue-9); } .form-control::placeholder { color: var(--text-muted); } .form-group { margin-bottom: var(--space-250); } .form-group label { display: block; font-size: var(--text-xs); font-weight: 500; color: var(--text-secondary); margin-bottom: var(--space-1); } .text-muted { color: var(--text-muted); font-size: var(--text-2xs); } .volume-shape-info { padding: 6px var(--space-2); background: var(--border-subtle); border: 1px dashed var(--border-strong); border-radius: var(--radius-control); font-size: var(--text-xs); color: var(--text-muted); } .trigger-log { margin-top: var(--space-2); max-height: 200px; overflow-y: auto; } .trigger-log-entry { display: flex; align-items: center; gap: var(--space-2); padding: 4px 0; font-size: var(--text-2xs); border-bottom: 1px solid var(--border-subtle); } .trigger-log-entry .log-status { font-weight: 600; min-width: 30px; } .trigger-log-entry .log-status.ok { color: var(--ok); } .trigger-log-entry .log-status.err { color: var(--alert); } .trigger-log-entry .log-url { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); } .trigger-log-entry .log-time { color: var(--slate-7); font-size: var(--text-3xs); flex-shrink: 0; } /* ============================================ Change PIN Modal Styles ============================================ */ .panel-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--overlay-strong); z-index: 2000; display: flex; align-items: center; justify-content: center; animation: panel-fade-in 0.2s ease-out; } @keyframes panel-fade-in { from { opacity: 0; } to { opacity: 1; } } .panel-modal { background: var(--bg-card); border-radius: var(--radius-card); box-shadow: 0 8px 32px var(--shadow-xl); width: 400px; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; animation: panel-slide-up 0.3s cubic-bezier(0.4, 0, 0.2, 1); } @keyframes panel-slide-up { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } } .panel-modal-header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6) var(--space-4); border-bottom: 1px solid var(--bg-hover); } .panel-modal-header h2 { margin: 0; font-size: var(--text-xl); font-weight: 600; color: var(--slate-12); } .panel-modal-close { background: none; border: none; color: var(--text-muted); font-size: var(--text-3xl); line-height: 1; cursor: pointer; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-control); transition: background 0.2s, color 0.2s; flex-shrink: 0; } .panel-modal-close:hover { background: var(--bg-hover); color: var(--slate-12); } .panel-modal-body { flex: 1; overflow-y: auto; padding: var(--space-5) var(--space-6); } .panel-input { width: 100%; padding: 10px var(--space-3); background: var(--border-subtle); border: 1px solid var(--border-strong); border-radius: var(--radius-control); color: var(--slate-12); font-size: var(--text-sm); font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; } .panel-input:focus { outline: none; border-color: var(--blue-10); box-shadow: 0 0 0 3px var(--blue-muted); } .panel-input::placeholder { color: var(--slate-7); } .panel-modal-actions { flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); padding: var(--space-4) var(--space-6) var(--space-5); border-top: 1px solid var(--bg-hover); } .panel-error { background: var(--alert-bg); border: 1px solid var(--alert-border); border-radius: var(--radius-control); padding: 10px var(--space-4); font-size: var(--text-sm); color: var(--alert); margin-bottom: var(--space-4); } /* Responsive adjustments for change PIN modal */ @media (max-width: 480px) { .panel-modal { width: 100%; max-width: 100%; border-radius: var(--radius-card) var(--radius-card) 0 0; margin: 0; position: fixed; bottom: 0; transform: translateY(100%); } .panel-modal-overlay.visible .panel-modal { transform: translateY(0); } .panel-modal-actions { flex-direction: column; } .panel-modal-actions .panel-btn { width: 100%; } } /* ============================================ Pre-Deployment Simulator Styles ============================================ */ /* Simulator Panel */ .simulator-panel { position: fixed; top: var(--space-10); right: 0; bottom: 0; width: 360px; background: var(--bg-card); box-shadow: -4px 0 16px var(--shadow); z-index: 100; display: flex; flex-direction: column; overflow-y: auto; } .simulator-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--bg-hover); flex-shrink: 0; } .simulator-header h2 { margin: 0; font-size: var(--text-base); font-weight: 600; color: var(--slate-12); } .sim-close-btn { background: none; border: none; color: var(--text-muted); font-size: var(--text-xl); cursor: pointer; padding: var(--space-1); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-control); transition: background 0.2s, color 0.2s; } .sim-close-btn:hover { background: var(--bg-hover); color: var(--slate-12); } .simulator-content { flex: 1; overflow-y: auto; padding: var(--space-4); } .sim-section { margin-bottom: var(--space-5); padding-bottom: var(--space-4); border-bottom: 1px solid var(--bg-hover); } .sim-section:last-child { border-bottom: none; } .sim-section h3 { margin: 0; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); } /* Space Controls */ .sim-space-controls { display: flex; flex-direction: column; gap: var(--space-250); margin-bottom: var(--space-3); } .sim-space-controls label { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-sm); color: var(--slate-11); } .sim-space-controls input[type="number"] { width: 80px; padding: var(--space-150) var(--space-250); background: var(--border-subtle); border: 1px solid var(--border-strong); border-radius: var(--radius-control); color: var(--slate-12); font-size: var(--text-sm); text-align: right; } /* Tool Buttons */ .sim-tools { display: flex; gap: var(--space-2); margin-top: var(--space-3); } .sim-tool-btn { flex: 1; padding: var(--space-250); background: var(--border-subtle); border: 1px solid var(--border-strong); border-radius: var(--radius-control); color: var(--slate-11); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; } .sim-tool-btn:hover { background: var(--bg-hover); color: var(--slate-12); } .sim-tool-btn.active { background: var(--blue-muted); border-color: var(--blue-border); color: var(--blue-10); } /* General Buttons */ .sim-btn { padding: var(--space-2) var(--space-4); background: var(--bg-hover); border: 1px solid var(--border-strong); border-radius: var(--radius-control); color: var(--slate-11); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: all 0.2s; } .sim-btn:hover { background: var(--border-strong); color: var(--slate-12); } .sim-btn:disabled { opacity: 0.5; cursor: not-allowed; } .sim-btn-primary { background: var(--blue-muted); border-color: var(--blue-border); color: var(--blue-10); } .sim-btn-primary:hover:not(:disabled) { background: var(--blue-border); } .sim-btn-danger { background: var(--alert-bg); border-color: var(--alert-border); color: var(--alert); } .sim-btn-danger:hover { background: var(--alert-border); } /* Node List */ .sim-node-list { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); } .sim-node-list .sim-btn { flex: 1; } /* Walker Controls */ .sim-walker-controls { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); flex-wrap: wrap; } .sim-walker-controls select { flex: 1; min-width: 120px; padding: var(--space-2) var(--space-3); background: var(--border-subtle); border: 1px solid var(--border-strong); border-radius: var(--radius-control); color: var(--slate-12); font-size: var(--text-sm); cursor: pointer; } .sim-walker-controls .sim-btn { flex: 0 0 auto; } /* Items List (Nodes/Walkers) */ .sim-items-list { max-height: 200px; overflow-y: auto; } .sim-item { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); background: var(--border-subtle); border-radius: var(--radius-control); margin-bottom: var(--space-150); } .sim-item-name { flex: 1; font-size: var(--text-sm); color: var(--slate-12); } .sim-item-position { font-size: var(--text-2xs); color: var(--text-muted); font-family: var(--font-mono); } .sim-item-delete { padding: var(--space-1) var(--space-2); background: var(--alert-bg); border: none; border-radius: var(--radius-control); color: var(--alert); font-size: var(--text-2xs); cursor: pointer; transition: background 0.2s; } .sim-item-delete:hover { background: var(--alert-border); } /* GDOP Controls */ .sim-gdop-controls { display: flex; align-items: center; gap: var(--space-3); } .sim-gdop-controls label { display: flex; align-items: center; gap: var(--space-150); font-size: var(--text-sm); color: var(--slate-11); cursor: pointer; } .sim-gdop-controls input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue-10); cursor: pointer; } /* Simulation Controls */ .sim-controls { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); } .sim-controls .sim-btn { flex: 1; } /* Progress Bar */ .sim-progress { margin-top: var(--space-3); } .sim-progress > span:first-child { display: block; font-size: var(--text-xs); color: var(--text-muted); margin-bottom: var(--space-150); } .sim-progress-bar { height: 8px; background: var(--bg-hover); border-radius: var(--radius-control); overflow: hidden; } .sim-progress-fill { height: 100%; background: linear-gradient(90deg, var(--blue-10), var(--blue-10)); border-radius: var(--radius-control); transition: width 0.3s ease; } /* Results */ .sim-results { display: flex; flex-direction: column; gap: var(--space-2); } .sim-result-item { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2) var(--space-3); background: var(--border-subtle); border-radius: var(--radius-control); } .sim-result-label { font-size: var(--text-sm); color: var(--slate-11); } .sim-result-value { font-size: var(--text-sm); font-weight: 600; color: var(--blue-10); } /* Recommendations */ .sim-recommendations { display: flex; flex-direction: column; gap: var(--space-2); } .sim-recommendation { display: flex; align-items: flex-start; gap: var(--space-250); padding: 10px var(--space-3); background: var(--border-subtle); border-radius: var(--radius-control); border-left: 3px solid transparent; } .sim-rec-priority { padding: 2px var(--space-2); border-radius: var(--radius-control); font-size: var(--text-3xs); font-weight: 600; text-transform: uppercase; flex-shrink: 0; } .sim-rec-priority.high { background: var(--alert-muted); color: var(--alert); } .sim-rec-priority.medium { background: var(--warn-muted); color: var(--warn); } .sim-rec-priority.low { background: var(--ok-muted); color: var(--ok); } .sim-rec-text { font-size: var(--text-sm); color: var(--slate-11); line-height: 1.4; } /* Shopping List */ .sim-shopping-list { display: flex; flex-direction: column; gap: var(--space-2); } .sim-shopping-item { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2) var(--space-3); background: var(--border-subtle); border-radius: var(--radius-control); } .sim-shopping-item span { font-size: var(--text-sm); color: var(--slate-11); } .sim-shopping-item strong { font-size: var(--text-sm); color: var(--blue-10); } /* Scrollbar */ .simulator-content::-webkit-scrollbar, .sim-items-list::-webkit-scrollbar { width: 6px; } .simulator-content::-webkit-scrollbar-track, .sim-items-list::-webkit-scrollbar-track { background: var(--border-subtle); } .simulator-content::-webkit-scrollbar-thumb, .sim-items-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-control); } .simulator-content::-webkit-scrollbar-thumb:hover, .sim-items-list::-webkit-scrollbar-thumb:hover { background: var(--slate-7); } /* Responsive */ @media (max-width: 600px) { .simulator-panel { width: 100%; max-width: 100%; } .sim-tools { flex-wrap: wrap; } .sim-walker-controls { flex-direction: column; } .sim-walker-controls select { width: 100%; } } /* ----- Simulator Panel Components ----- */ /* Simulator Panel Container */ .simulator-panel { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-card); z-index: 2000; display: flex; flex-direction: column; } /* Simulator Header */ .simulator-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--bg-hover); background: var(--slate-1); } .simulator-header h2 { margin: 0; font-size: var(--text-xl); font-weight: 600; color: var(--slate-12); } .sim-close-btn { background: none; border: none; color: var(--text-muted); font-size: var(--text-3xl); cursor: pointer; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-control); transition: background 0.2s, color 0.2s; } .sim-close-btn:hover { background: var(--bg-hover); color: var(--slate-12); } /* Simulator Content */ .simulator-content { flex: 1; overflow-y: auto; padding: var(--space-5); } /* Simulator Sections */ .sim-section { background: var(--border-subtle); border-radius: var(--radius-card); padding: var(--space-4); margin-bottom: var(--space-4); } .sim-section h3 { margin: var(--space-3); font-size: var(--text-sm); font-weight: 600; color: var(--blue-10); text-transform: uppercase; letter-spacing: 0.5px; } /* Space Controls */ .sim-space-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: var(--space-3); } .sim-space-controls label { display: flex; flex-direction: column; font-size: var(--text-xs); color: var(--text-muted); } .sim-space-controls input { margin-top: var(--space-1); padding: 6px var(--space-2); background: var(--shadow); border: 1px solid var(--bg-hover); border-radius: var(--radius-control); color: var(--slate-12); font-size: var(--text-sm); } .sim-space-controls input:focus { outline: none; border-color: var(--blue-10); } /* Tool Buttons */ .sim-tools { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); } .sim-tool-btn { flex: 1; padding: var(--space-2) var(--space-3); background: var(--border-subtle); border: 1px solid var(--bg-hover); border-radius: var(--radius-control); color: var(--text-muted); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; } .sim-tool-btn:hover { background: var(--bg-hover); color: var(--slate-12); } .sim-tool-btn.active { background: var(--blue-muted); border-color: var(--blue-border); color: var(--blue-10); } .sim-tool-btn svg { width: 16px; height: 16px; } /* Node and Walker Lists */ .sim-node-list, .sim-walker-controls { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); } .sim-items-list { max-height: 200px; overflow-y: auto; } /* Simulator Items */ .sim-item { display: flex; align-items: center; padding: var(--space-2) var(--space-3); background: var(--slate-1); border-radius: var(--radius-control); margin-bottom: var(--space-1); } .sim-item-name { flex: 1; font-size: var(--text-sm); color: var(--slate-12); } .sim-item-position { font-size: var(--text-2xs); color: var(--text-muted); margin-right: var(--space-2); } .sim-item-delete { padding: var(--space-1) var(--space-2); background: var(--alert-muted); border: 1px solid var(--alert-border); border-radius: var(--radius-control); color: var(--alert); font-size: var(--text-2xs); cursor: pointer; transition: all 0.2s; } .sim-item-delete:hover { background: var(--alert-border); } /* GDOP Controls */ .sim-gdop-controls { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); } .sim-gdop-controls label { display: flex; align-items: center; font-size: var(--text-sm); color: var(--text-muted); gap: var(--space-150); } .sim-gdop-controls input[type="checkbox"] { width: 16px; height: 16px; } /* Simulation Controls */ .sim-controls { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); } /* Progress Bar */ .sim-progress { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-2); } .sim-progress-bar { flex: 1; height: 4px; background: var(--bg-hover); border-radius: var(--radius-control); overflow: hidden; } .sim-progress-fill { height: 100%; background: linear-gradient(90deg, var(--blue-10), var(--blue-10)); transition: width 0.1s linear; } /* Simulator Buttons */ .sim-btn { padding: var(--space-2) var(--space-4); background: var(--border-subtle); border: 1px solid var(--bg-hover); border-radius: var(--radius-control); color: var(--slate-12); font-size: var(--text-sm); cursor: pointer; transition: all 0.2s; } .sim-btn:hover:not(:disabled) { background: var(--bg-hover); } .sim-btn:disabled { opacity: 0.5; cursor: not-allowed; } .sim-btn-primary { background: var(--blue-muted); border-color: var(--blue-border); color: var(--blue-10); } .sim-btn-primary:hover:not(:disabled) { background: var(--blue-border); } .sim-btn-danger { background: var(--alert-muted); border-color: var(--alert-border); color: var(--alert); } .sim-btn-danger:hover:not(:disabled) { background: var(--alert-border); } /* Results Section */ .sim-results { display: flex; flex-direction: column; gap: var(--space-2); } .sim-result-item { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2) var(--space-3); background: var(--slate-1); border-radius: var(--radius-control); } .sim-result-label { font-size: var(--text-sm); color: var(--text-muted); } .sim-result-value { font-size: var(--text-base); font-weight: 600; color: var(--blue-10); } /* Recommendations */ .sim-recommendations { display: flex; flex-direction: column; gap: var(--space-2); } .sim-recommendation { display: flex; gap: var(--space-2); padding: 10px var(--space-3); background: var(--slate-1); border-radius: var(--radius-control); border-left: 3px solid; } .sim-recommendation.high { border-left-color: var(--alert); } .sim-recommendation.medium { border-left-color: var(--warn); } .sim-recommendation.low { border-left-color: var(--ok); } .sim-rec-priority { padding: var(--space-half) var(--space-150); border-radius: var(--radius-control); font-size: var(--text-3xs); font-weight: 600; text-transform: uppercase; } .sim-recommendation.high .sim-rec-priority { background: var(--alert-muted); color: var(--alert); } .sim-recommendation.medium .sim-rec-priority { background: var(--warn-muted); color: var(--warn); } .sim-recommendation.low .sim-rec-priority { background: var(--ok-muted); color: var(--ok); } .sim-rec-text { flex: 1; font-size: var(--text-sm); color: var(--slate-12); } /* Shopping List */ .sim-shopping-list { display: flex; flex-direction: column; gap: var(--space-2); } .sim-shopping-item { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2) var(--space-3); background: var(--slate-1); border-radius: var(--radius-control); font-size: var(--text-sm); color: var(--slate-12); } .sim-shopping-item strong { color: var(--blue-10); } /* ============================================ GDOP Legend Styles ============================================ */ .sim-gdop-legend { margin-top: var(--space-375); padding: var(--space-3); background: var(--shadow); border-radius: var(--radius-control); } .gdop-legend-item { display: flex; align-items: center; margin-bottom: var(--space-2); font-size: var(--text-sm); color: var(--text-secondary); } .gdop-legend-item:last-child { margin-bottom: 0; } .gdop-legend-color { width: 16px; height: 16px; border-radius: var(--radius-control); margin-right: var(--space-250); flex-shrink: 0; border: 1px solid var(--border-strong); } .gdop-legend-label { flex: 1; color: var(--slate-11); } .gdop-stats { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--bg-hover); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-250); } .gdop-stat-item { font-size: var(--text-sm); color: var(--text-secondary); } .gdop-stat-item strong { color: var(--blue-10); font-weight: 600; }