/* ==========================================================================
   Advanced Debug Viewer - Core Styles
   ========================================================================== */

:root {
  /* Color Palette */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-secondary: #64748b;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #06b6d4;

  /* Background Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-hover: #475569;
  --bg-selected: #1e3a8a;

  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  /* Border Colors */
  --border-color: #334155;
  --border-color-light: #475569;

  /* Status Colors */
  --status-pending: #64748b;
  --status-running: #06b6d4;
  --status-success: #10b981;
  --status-warning: #f59e0b;
  --status-error: #ef4444;

  /* Dimensions */
  --header-height: 70px;
  --left-panel-width: 300px;
  --right-panel-width: 400px;
  --panel-padding: 16px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

  /* Z-Index Layers */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-toast: 1060;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
    "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
}

code,
pre {
  font-family: "Menlo", "Monaco", "Courier New", monospace;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select {
  font-family: inherit;
  color: inherit;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Layout Structure
   ========================================================================== */

.debug-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

.debug-header {
  height: var(--header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0 var(--panel-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.debug-header h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.snapshot-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.snapshot-selector label {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.snapshot-dropdown {
  min-width: 250px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 14px;
}

.snapshot-dropdown:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.global-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Main Content Area (3-Panel Layout)
   ========================================================================== */

.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Left Panel: Phase Navigator */
.left-panel {
  width: var(--left-panel-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  flex-shrink: 0;
}

/* Center Panel: Visualization */
.center-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Right Panel: Inspector */
.right-panel {
  width: var(--right-panel-width);
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  overflow-y: auto;
  flex-shrink: 0;
  transition: width var(--transition-normal);
}

.right-panel.collapsed {
  width: 0;
  overflow: hidden;
}

/* ==========================================================================
   Panel Headers
   ========================================================================== */

.panel-header {
  padding: var(--panel-padding);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-secondary);
}

.panel-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   Phase Navigator
   ========================================================================== */

.phase-list {
  padding: 8px;
}

.phase-item {
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.phase-item:hover {
  border-color: var(--border-color-light);
  background: var(--bg-hover);
}

.phase-item.active {
  border-color: var(--color-primary);
  background: var(--bg-selected);
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  cursor: pointer;
  user-select: none;
}

.phase-status {
  font-size: 16px;
  flex-shrink: 0;
}

.phase-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 24px;
  text-align: center;
}

.phase-title {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

.phase-expand {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px;
  transition: transform var(--transition-fast);
}

.phase-item.expanded .phase-expand {
  transform: rotate(180deg);
}

.phase-details {
  padding: 12px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.phase-details.hidden {
  display: none;
}

.phase-metrics {
  margin-bottom: 12px;
}

.metric {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
}

.metric-label {
  color: var(--text-secondary);
}

.metric-value {
  color: var(--text-primary);
  font-weight: 500;
}

.phase-view-btn {
  width: 100%;
  padding: 8px;
  background: var(--color-primary);
  color: white;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: background var(--transition-fast);
}

.phase-view-btn:hover {
  background: var(--color-primary-hover);
}

/* ==========================================================================
   Visualization Area
   ========================================================================== */

.breadcrumb {
  font-size: 14px;
  color: var(--text-secondary);
}

.view-mode-switcher {
  display: flex;
  gap: 4px;
}

.view-mode-btn {
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.view-mode-btn:hover {
  background: var(--bg-hover);
}

.view-mode-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.visualization-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.view-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.view-container.hidden {
  display: none;
}

/* Welcome Screen */
.welcome-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: var(--panel-padding);
}

.welcome-content {
  max-width: 600px;
  text-align: center;
}

.welcome-content h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.welcome-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.quick-start,
.keyboard-shortcuts {
  text-align: left;
  margin-bottom: 24px;
}

.quick-start h3,
.keyboard-shortcuts h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.quick-start ol {
  padding-left: 24px;
}

.quick-start li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.keyboard-shortcuts ul {
  list-style: none;
}

.keyboard-shortcuts li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

kbd {
  padding: 4px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 12px;
  font-family: monospace;
  color: var(--text-primary);
}

/* ==========================================================================
   Table View
   ========================================================================== */

.table-controls {
  padding: 12px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
}

#table-search {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 14px;
}

#table-search:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.sort-dropdown {
  min-width: 150px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 14px;
}

.table-wrapper {
  flex: 1;
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 10;
}

.data-table th {
  padding: 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.data-table th:hover {
  color: var(--text-primary);
  cursor: pointer;
}

.data-table td {
  padding: 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--bg-hover);
  cursor: pointer;
}

.data-table tbody tr.selected {
  background: var(--bg-selected);
}

.table-pagination {
  padding: 12px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#page-info {
  font-size: 14px;
  color: var(--text-secondary);
}

.page-size-select {
  padding: 6px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 13px;
}

/* ==========================================================================
   Canvas View
   ========================================================================== */

.canvas-controls {
  padding: 12px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.layer-toggles {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.layer-toggles label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.layer-toggles input[type="checkbox"] {
  cursor: pointer;
}

.canvas-wrapper {
  flex: 1;
  overflow: auto;
  position: relative;
  background: var(--bg-primary);
}

#visualization-canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   JSON View
   ========================================================================== */

.json-controls {
  padding: 12px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}

.json-content {
  flex: 1;
  overflow: auto;
  padding: 16px;
  background: var(--bg-primary);
  margin: 0;
}

.json-content code {
  font-size: 13px;
  line-height: 1.6;
}

/* ==========================================================================
   Graph View
   ========================================================================== */

.graph-controls {
  padding: 12px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.graph-type-select {
  min-width: 200px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 14px;
}

.graph-wrapper {
  flex: 1;
  overflow: auto;
  position: relative;
  padding: 16px;
}

#graph-canvas {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Inspector Panel
   ========================================================================== */

.inspector-content {
  padding: var(--panel-padding);
}

.no-selection {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}

.item-details {
  display: block; /* Visible by default when item is selected */
}

.item-details.hidden {
  display: none;
}

.details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.details-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-color);
}

.detail-content {
  font-size: 13px;
}

.detail-row {
  display: flex;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  flex: 0 0 120px;
  color: var(--text-muted);
  font-weight: 500;
}

.detail-value {
  flex: 1;
  color: var(--text-primary);
  word-break: break-word;
}

.json-viewer-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.item-json {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 12px;
  overflow-x: auto;
  max-height: 400px;
}

.item-json code {
  font-size: 12px;
  line-height: 1.5;
}

/* ==========================================================================
   Global Search Panel
   ========================================================================== */

.global-search-panel {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-lg);
  max-height: 60vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.global-search-panel.hidden {
  display: none;
}

.search-content {
  padding: 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

#global-search-input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-tertiary);
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 15px;
}

#global-search-input:focus {
  outline: none;
  border-color: var(--color-primary-hover);
}

.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.search-result-group {
  margin-bottom: 20px;
}

.search-result-group h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.search-result-item {
  padding: 10px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--bg-hover);
}

/* ==========================================================================
   Filter Panel
   ========================================================================== */

.filter-panel {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: 350px;
  height: calc(100vh - var(--header-height));
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.filter-panel:not(.hidden) {
  transform: translateX(0);
}

.filter-panel.hidden {
  transform: translateX(100%);
}

.filter-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.filter-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.filter-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-preset {
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.filter-preset:hover {
  background: var(--bg-hover);
}

.filter-preset.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-icon {
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-hover);
}

.btn-icon:active {
  transform: scale(0.95);
}

.btn-text {
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btn-text:hover {
  background: var(--bg-hover);
}

.btn-text.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-close {
  padding: 4px 8px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.btn-close:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Dropdown Menus
   ========================================================================== */

.export-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  display: none;
  padding: 4px;
}

.dropdown-menu.visible {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 4px;
  transition: background var(--transition-fast);
}

.dropdown-menu a:hover {
  background: var(--bg-hover);
}

/* ==========================================================================
   Loading Overlay
   ========================================================================== */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
}

.loading-overlay.hidden {
  display: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--bg-tertiary);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#loading-message {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  min-width: 300px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left: 4px solid var(--color-success);
}

.toast.error {
  border-left: 4px solid var(--color-error);
}

.toast.warning {
  border-left: 4px solid var(--color-warning);
}

.toast.info {
  border-left: 4px solid var(--color-info);
}

.toast-icon {
  font-size: 20px;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
}

.toast-close {
  padding: 4px;
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
}

.toast-close:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-default {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.badge-primary {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-error {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-info {
  background: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-secondary {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.hidden {
  display: none !important;
}

.text-success {
  color: var(--color-success);
}

.text-warning {
  color: var(--color-warning);
}

.text-error {
  color: var(--color-error);
}

.text-muted {
  color: var(--text-muted);
}

/* ==========================================================================
   Scrollbar Styling
   ========================================================================== */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-hover);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
  :root {
    --left-panel-width: 250px;
    --right-panel-width: 350px;
  }
}

@media (max-width: 768px) {
  .debug-header {
    flex-direction: column;
    height: auto;
    padding: 12px;
  }

  .header-left,
  .header-right {
    width: 100%;
  }

  .left-panel {
    position: absolute;
    z-index: var(--z-fixed);
    height: calc(100vh - var(--header-height));
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
  }

  .left-panel.visible {
    transform: translateX(0);
  }

  .right-panel {
    position: absolute;
    right: 0;
    z-index: var(--z-fixed);
    height: calc(100vh - var(--header-height));
  }
}
