/* src/index.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body,
#root {
  height: 100%;
  width: 100%;
}
body {
  margin: 0;
  padding: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Roboto",
    "Oxygen",
    "Ubuntu",
    "Cantarell",
    "Fira Sans",
    "Droid Sans",
    "Helvetica Neue",
    sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333333;
  background-color: #fafafa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}
:root {
  --color-primary: #0066cc;
  --color-primary-light: #e8f0ff;
  --color-primary-dark: #004ca3;
  --color-neutral-dark: #1a1a1a;
  --color-neutral-light: #f5f5f5;
  --color-border: #d9d9d9;
  --color-border-light: #efefef;
  --color-bg-hover: #f0f0f0;
  --color-text-primary: #262626;
  --color-text-secondary: #666666;
  --grid-border: #e5e7eb;
  --grid-border-width: 1px;
  --grid-border-radius: 6px;
  --grid-bg: #ffffff;
  --grid-bg-alt: #f9fafb;
  --grid-header-bg: #f3f4f6;
  --grid-footer-bg: #f9fafb;
  --grid-text: #111827;
  --grid-text-secondary: #6b7280;
  --grid-text-muted: #9ca3af;
  --grid-header-text: #374151;
  --grid-primary: #3b82f6;
  --grid-selected: rgba(59, 130, 246, 0.08);
  --grid-hover: #f9fafb;
  --grid-active: #eff6ff;
  --grid-cell-padding: 10px 12px;
  --grid-header-padding: 10px 12px;
  --grid-font-size: 13px;
  --grid-font-size-sm: 12px;
  --grid-header-font-weight: 600;
  --grid-shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
  --grid-text-inverse: #ffffff;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}
.virtual-scroller-container {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}
.virtual-scroller-container::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
}
.virtual-scroller-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0;
}
.virtual-scroller-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 6px;
  border: 2px solid #f1f1f1;
}
.virtual-scroller-container::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* src/components/DataGrid/ContextMenu.css */
.context-menu {
  position: fixed;
  background: var(--context-menu-bg, #ffffff);
  border: 1px solid var(--context-menu-border, #d0d0d0);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  max-width: 320px;
  padding: 4px 0;
  z-index: 10000;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--context-menu-text, #333333);
  user-select: none;
  animation: contextMenuFadeIn 0.12s ease-out;
}
@keyframes contextMenuFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.context-menu-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.1s ease;
  gap: 8px;
  position: relative;
}
.context-menu-item:hover:not(.disabled) {
  background-color: var(--context-menu-hover-bg, #f0f0f0);
}
.context-menu-item:active:not(.disabled) {
  background-color: var(--context-menu-active-bg, #e5e5e5);
}
.context-menu-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.context-menu-item.danger {
  color: var(--context-menu-danger, #dc3545);
}
.context-menu-item.danger:hover:not(.disabled) {
  background-color: var(--context-menu-danger-hover-bg, #fff0f0);
}
.context-menu-icon {
  font-size: 16px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.context-menu-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.context-menu-shortcut {
  font-size: 12px;
  color: var(--context-menu-shortcut, #888888);
  margin-left: auto;
  padding-left: 16px;
}
.context-menu-arrow {
  margin-left: auto;
  font-size: 10px;
  color: var(--context-menu-arrow, #888888);
}
.context-menu-separator {
  height: 1px;
  background-color: var(--context-menu-separator, #e0e0e0);
  margin: 4px 0;
}
.context-menu-item-wrapper {
  position: relative;
}
.context-menu-submenu {
  position: absolute;
  left: 100%;
  top: 0;
  background: var(--context-menu-bg, #ffffff);
  border: 1px solid var(--context-menu-border, #d0d0d0);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  padding: 4px 0;
  z-index: 10001;
  animation: submenuFadeIn 0.15s ease-out;
  margin-left: -4px;
}
@keyframes submenuFadeIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.context-menu-item.has-submenu {
  padding-right: 24px;
}
@media (prefers-color-scheme: dark) {
  .context-menu {
    --context-menu-bg: #2a2a2a;
    --context-menu-border: #404040;
    --context-menu-text: #e0e0e0;
    --context-menu-hover-bg: #3a3a3a;
    --context-menu-active-bg: #4a4a4a;
    --context-menu-separator: #404040;
    --context-menu-shortcut: #999999;
    --context-menu-arrow: #999999;
    --context-menu-danger: #ff6b6b;
    --context-menu-danger-hover-bg: #3a2a2a;
  }
}
.data-grid.theme-quartz .context-menu {
  --context-menu-bg: #ffffff;
  --context-menu-border: #c5c5c5;
  --context-menu-text: #000000;
  --context-menu-hover-bg: #e6f2ff;
  --context-menu-active-bg: #cce5ff;
}
.data-grid.theme-alpine .context-menu {
  --context-menu-bg: #f8f9fa;
  --context-menu-border: #dee2e6;
  --context-menu-text: #212529;
  --context-menu-hover-bg: #e9ecef;
  --context-menu-active-bg: #dee2e6;
}
.data-grid.theme-balham .context-menu {
  --context-menu-bg: #ffffff;
  --context-menu-border: #bdc3c7;
  --context-menu-text: #2c3e50;
  --context-menu-hover-bg: #ecf0f1;
  --context-menu-active-bg: #d5dbdb;
}
.data-grid.theme-material .context-menu {
  --context-menu-bg: #ffffff;
  --context-menu-border: #e0e0e0;
  --context-menu-text: #212121;
  --context-menu-hover-bg: #f5f5f5;
  --context-menu-active-bg: #eeeeee;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.context-menu-item:focus {
  outline: 2px solid var(--context-menu-focus, #0066cc);
  outline-offset: -2px;
}
.context-menu-item:focus:not(:focus-visible) {
  outline: none;
}

/* src/components/DataGrid/MarketDataGrid.css */
.market-data-grid {
  width: 100%;
  height: 100%;
  overflow: auto;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
}
.market-grid-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f5f5f5;
  border-bottom: 2px solid #d0d0d0;
}
.market-grid-header-row {
  display: flex;
  min-width: 100%;
}
.market-grid-header-cell {
  padding: 10px 12px;
  font-weight: 600;
  color: #333;
  border-right: 1px solid #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
}
.market-grid-header-cell:last-child {
  border-right: none;
}
.market-grid-body {
  min-width: 100%;
}
.market-grid-row {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.1s ease;
  cursor: pointer;
}
.market-grid-row:hover {
  background-color: #f9f9f9;
}
.market-grid-row:active {
  background-color: #f0f0f0;
}
.market-grid-cell {
  padding: 8px 12px;
  border-right: 1px solid #f5f5f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  position: relative;
}
.market-grid-cell:last-child {
  border-right: none;
}
.numeric-cell {
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
  font-family:
    "Monaco",
    "Menlo",
    "Consolas",
    monospace;
}
@keyframes flashUp {
  0% {
    background-color: rgba(76, 175, 80, 0);
  }
  20% {
    background-color: rgba(76, 175, 80, 0.4);
  }
  100% {
    background-color: rgba(76, 175, 80, 0);
  }
}
@keyframes flashDown {
  0% {
    background-color: rgba(244, 67, 54, 0);
  }
  20% {
    background-color: rgba(244, 67, 54, 0.4);
  }
  100% {
    background-color: rgba(244, 67, 54, 0);
  }
}
.cell-flash-up {
  animation: flashUp 500ms ease-out;
}
.cell-flash-down {
  animation: flashDown 500ms ease-out;
}
.change-positive {
  color: #4caf50;
  font-weight: 600;
}
.change-negative {
  color: #f44336;
  font-weight: 600;
}
.market-grid-cell[data-field=bid] {
  color: #2196f3;
  font-weight: 500;
}
.market-grid-cell[data-field=ask] {
  color: #ff5722;
  font-weight: 500;
}
.market-grid-cell[data-field=price] {
  font-weight: 700;
  font-size: 14px;
}
.market-grid-cell[data-field=volume],
.market-grid-cell[data-field=size] {
  color: #666;
  font-size: 12px;
}
.market-grid-cell[data-field=symbol],
.market-grid-cell[data-field=id] {
  font-weight: 700;
  color: #1976d2;
  font-family:
    "Monaco",
    "Menlo",
    "Consolas",
    monospace;
}
.density-compact .market-grid-header-cell {
  padding: 6px 8px;
  font-size: 12px;
}
.density-compact .market-grid-cell {
  padding: 4px 8px;
  font-size: 12px;
}
.density-compact .market-grid-cell[data-field=price] {
  font-size: 13px;
}
.density-compact .market-grid-row {
  min-height: 28px;
}
.market-grid-cell[data-field=high] {
  color: #4caf50;
}
.market-grid-cell[data-field=low] {
  color: #f44336;
}
.market-data-grid.loading {
  opacity: 0.6;
  pointer-events: none;
}
.market-data-grid.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2196f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.market-data-grid.paused {
  border: 2px solid #ff9800;
}
.market-data-grid.paused::before {
  content: "PAUSED";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 12px;
  background: #ff9800;
  color: white;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  z-index: 1000;
  letter-spacing: 1px;
}
.market-data-grid.throttled {
  border: 2px solid #f44336;
}
.market-data-grid.throttled::before {
  content: "THROTTLED";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 12px;
  background: #f44336;
  color: white;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  z-index: 1000;
  letter-spacing: 1px;
}
.market-data-grid::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
.market-data-grid::-webkit-scrollbar-track {
  background: #f5f5f5;
}
.market-data-grid::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 6px;
}
.market-data-grid::-webkit-scrollbar-thumb:hover {
  background: #999;
}
.market-data-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.market-metrics-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #0f0;
  padding: 8px 12px;
  border-radius: 4px;
  font-family:
    "Monaco",
    "Menlo",
    "Consolas",
    monospace;
  font-size: 11px;
  z-index: 1000;
  pointer-events: none;
  line-height: 1.6;
}
.market-metrics-overlay .metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.market-metrics-overlay .metric-label {
  color: #888;
}
.market-metrics-overlay .metric-value {
  color: #0f0;
  font-weight: 700;
}
.market-metrics-overlay .metric-value.warning {
  color: #ff9800;
}
.market-metrics-overlay .metric-value.critical {
  color: #f44336;
}
.connection-status {
  position: absolute;
  top: 10px;
  right: 120px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  z-index: 1000;
  letter-spacing: 0.5px;
}
.connection-status.connected {
  background: #4caf50;
  color: white;
}
.connection-status.connecting {
  background: #ff9800;
  color: white;
}
.connection-status.disconnected {
  background: #f44336;
  color: white;
}
.connection-status.reconnecting {
  background: #ff9800;
  color: white;
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@media (max-width: 768px) {
  .market-data-grid {
    font-size: 11px;
  }
  .market-grid-cell {
    padding: 6px 8px;
  }
  .market-grid-header-cell {
    padding: 8px 8px;
  }
}

/* src/editors/editors.css */
.editor-container {
  position: relative;
  width: 100%;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 14px;
  color: var(--text-color, #333);
  background: var(--bg-color, #fff);
  z-index: 1000;
}
.editor-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid var(--primary-color, #0066cc);
  border-radius: 4px;
  background: var(--bg-color, #fff);
  overflow: hidden;
}
.editor-input-wrapper:focus-within {
  border-color: var(--primary-color, #0066cc);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
.editor-input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-color, #333);
  font-family: inherit;
}
.editor-input::placeholder {
  color: var(--text-muted, #999);
}
.editor-dropdown-icon,
.editor-calendar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--text-muted, #999);
  pointer-events: none;
  user-select: none;
}
.editor-input-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 8px;
}
.editor-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  background: var(--bg-hover, #f0f0f0);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted, #999);
  padding: 0;
  transition: all 0.2s;
}
.editor-clear-btn:hover {
  background: var(--bg-active, #e0e0e0);
  color: var(--text-color, #333);
}
.editor-dropdown {
  position: fixed;
  background: var(--bg-color, #fff);
  border: 1px solid var(--border-color, #ddd);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  max-height: 300px;
  z-index: 10000;
  margin-top: 4px;
}
.editor-dropdown-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-muted, #999);
  font-style: italic;
}
.editor-dropdown-option {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  transition: background-color 0.15s;
  border-bottom: 1px solid var(--border-light, #f0f0f0);
}
.editor-dropdown-option:last-child {
  border-bottom: none;
}
.editor-dropdown-option:hover:not(.disabled) {
  background: var(--bg-hover, #f5f5f5);
}
.editor-dropdown-option.focused:not(.disabled) {
  background: var(--bg-hover, #f0f0f0);
}
.editor-dropdown-option.selected {
  background: var(--primary-light, #e6f2ff);
  color: var(--primary-color, #0066cc);
}
.editor-dropdown-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.editor-option-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.editor-option-icon {
  display: flex;
  align-items: center;
  font-size: 16px;
}
.editor-option-text {
  flex: 1;
}
.editor-option-label {
  font-weight: 500;
}
.editor-option-description {
  font-size: 12px;
  color: var(--text-muted, #999);
  margin-top: 2px;
}
.editor-richselect-container {
  min-width: 200px;
}
.editor-richselect-input {
  min-width: 150px;
}
.editor-date-container {
  min-width: 250px;
}
.editor-calendar {
  padding: 12px;
  min-width: 280px;
}
.editor-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color, #ddd);
}
.editor-calendar-title {
  font-weight: 600;
  font-size: 15px;
}
.editor-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-color, #333);
  transition: background-color 0.15s;
}
.editor-calendar-nav:hover {
  background: var(--bg-hover, #f0f0f0);
}
.editor-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}
.editor-calendar-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #999);
  padding: 4px;
}
.editor-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.editor-calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-color, #333);
  transition: all 0.15s;
}
.editor-calendar-day:hover:not(:disabled) {
  background: var(--bg-hover, #f0f0f0);
}
.editor-calendar-day.today {
  font-weight: 700;
  color: var(--primary-color, #0066cc);
}
.editor-calendar-day.selected {
  background: var(--primary-color, #0066cc);
  color: #fff;
  font-weight: 600;
}
.editor-calendar-day.other-month {
  color: var(--text-muted, #ccc);
}
.editor-calendar-day:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.editor-calendar-time {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color, #ddd);
}
.editor-time-input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}
.editor-numeric-container {
  min-width: 150px;
}
.editor-numeric-input {
  text-align: right;
  padding-right: 4px;
}
.editor-numeric-prefix,
.editor-numeric-suffix {
  padding: 0 8px;
  color: var(--text-muted, #999);
  font-weight: 500;
  user-select: none;
}
.editor-numeric-steppers {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-color, #ddd);
}
.editor-numeric-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  color: var(--text-color, #333);
  transition: background-color 0.15s;
  padding: 0;
}
.editor-numeric-stepper:hover:not(:disabled) {
  background: var(--bg-hover, #f0f0f0);
}
.editor-numeric-stepper:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.editor-numeric-increment {
  border-bottom: 1px solid var(--border-color, #ddd);
}
.editor-numeric-range {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text-muted, #999);
}
.editor-multiselect-container {
  min-width: 250px;
}
.editor-multiselect-wrapper {
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
}
.editor-multiselect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.editor-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--primary-light, #e6f2ff);
  color: var(--primary-color, #0066cc);
  border-radius: 12px;
  font-size: 12px;
  white-space: nowrap;
  max-width: 150px;
}
.editor-tag-icon {
  font-size: 14px;
}
.editor-tag-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.editor-tag-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: currentColor;
  padding: 0;
  transition: background-color 0.15s;
}
.editor-tag-remove:hover {
  background: rgba(0, 0, 0, 0.1);
}
.editor-tag-collapsed {
  background: var(--bg-hover, #f0f0f0);
  color: var(--text-muted, #666);
  font-weight: 500;
}
.editor-multiselect-input {
  min-width: 80px;
  flex: 1;
  padding: 4px;
}
.editor-multiselect-option {
  gap: 8px;
}
.editor-multiselect-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}
.editor-markdown-container {
  display: flex;
  flex-direction: column;
  min-width: 400px;
  max-width: 800px;
  background: var(--bg-color, #fff);
  border: 2px solid var(--primary-color, #0066cc);
  border-radius: 4px;
  overflow: hidden;
}
.editor-markdown-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  border-bottom: 1px solid var(--border-color, #ddd);
  background: var(--bg-light, #f9f9f9);
}
.editor-markdown-toolbar-group {
  display: flex;
  gap: 4px;
}
.editor-toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color, #ddd);
  background: var(--bg-color, #fff);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
}
.editor-toolbar-btn:hover {
  background: var(--bg-hover, #f0f0f0);
  border-color: var(--primary-color, #0066cc);
}
.editor-toolbar-btn.active {
  background: var(--primary-color, #0066cc);
  color: #fff;
  border-color: var(--primary-color, #0066cc);
}
.editor-markdown-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.editor-markdown-content.split .editor-markdown-editor {
  width: 50%;
  border-right: 1px solid var(--border-color, #ddd);
}
.editor-markdown-content.split .editor-markdown-preview {
  width: 50%;
}
.editor-markdown-editor {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}
.editor-textarea {
  flex: 1;
  width: 100%;
  padding: 12px;
  border: none;
  outline: none;
  resize: none;
  font-family:
    "Monaco",
    "Menlo",
    "Ubuntu Mono",
    monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-color, #333);
  background: var(--bg-color, #fff);
}
.editor-markdown-char-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 4px 8px;
  background: var(--bg-light, #f9f9f9);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-muted, #999);
  pointer-events: none;
}
.editor-markdown-char-count.warning {
  color: var(--danger-color, #d32f2f);
  font-weight: 600;
}
.editor-markdown-preview {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-light, #fafafa);
}
.editor-markdown-preview-label {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted, #999);
  border-bottom: 1px solid var(--border-color, #ddd);
  letter-spacing: 0.5px;
}
.editor-markdown-preview-content {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  line-height: 1.6;
}
.editor-markdown-preview-content h1 {
  font-size: 24px;
  margin: 16px 0 8px;
  color: var(--text-color, #333);
}
.editor-markdown-preview-content h2 {
  font-size: 20px;
  margin: 14px 0 7px;
  color: var(--text-color, #333);
}
.editor-markdown-preview-content h3 {
  font-size: 16px;
  margin: 12px 0 6px;
  color: var(--text-color, #333);
}
.editor-markdown-preview-content p {
  margin: 8px 0;
}
.editor-markdown-preview-content code {
  padding: 2px 6px;
  background: var(--bg-hover, #f0f0f0);
  border-radius: 3px;
  font-family:
    "Monaco",
    "Menlo",
    monospace;
  font-size: 0.9em;
}
.editor-markdown-preview-content a {
  color: var(--primary-color, #0066cc);
  text-decoration: none;
}
.editor-markdown-preview-content a:hover {
  text-decoration: underline;
}
.editor-markdown-preview-content ul {
  margin: 8px 0;
  padding-left: 24px;
}
.editor-markdown-preview-content li {
  margin: 4px 0;
}
.editor-markdown-empty {
  color: var(--text-muted, #999);
  font-style: italic;
}
.editor-markdown-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid var(--border-color, #ddd);
  background: var(--bg-light, #f9f9f9);
}
.editor-markdown-hint {
  font-size: 12px;
  color: var(--text-muted, #999);
}
.editor-markdown-hint kbd {
  padding: 2px 6px;
  background: var(--bg-color, #fff);
  border: 1px solid var(--border-color, #ddd);
  border-radius: 3px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}
.editor-markdown-actions {
  display: flex;
  gap: 8px;
}
.editor-btn {
  padding: 6px 16px;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 4px;
  background: var(--bg-color, #fff);
  color: var(--text-color, #333);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.editor-btn:hover {
  background: var(--bg-hover, #f0f0f0);
}
.editor-btn-primary {
  background: var(--primary-color, #0066cc);
  color: #fff;
  border-color: var(--primary-color, #0066cc);
}
.editor-btn-primary:hover {
  background: var(--primary-dark, #0052a3);
  border-color: var(--primary-dark, #0052a3);
}
.editor-btn-secondary {
  background: transparent;
}
.editor-btn-secondary:hover {
  background: var(--bg-hover, #f0f0f0);
}
@media (max-width: 768px) {
  .editor-markdown-container {
    min-width: 300px;
    max-width: 100%;
  }
  .editor-markdown-content.split {
    flex-direction: column;
  }
  .editor-markdown-content.split .editor-markdown-editor,
  .editor-markdown-content.split .editor-markdown-preview {
    width: 100%;
    border-right: none;
  }
  .editor-markdown-content.split .editor-markdown-editor {
    border-bottom: 1px solid var(--border-color, #ddd);
  }
}
.dark-theme .editor-container {
  --text-color: #e0e0e0;
  --text-muted: #999;
  --bg-color: #1e1e1e;
  --bg-light: #252525;
  --bg-hover: #2a2a2a;
  --bg-active: #333;
  --border-color: #3a3a3a;
  --border-light: #2a2a2a;
  --primary-color: #4a9eff;
  --primary-light: rgba(74, 158, 255, 0.2);
  --primary-dark: #3a8eef;
  --danger-color: #f44336;
}
.editor-container button:focus-visible,
.editor-input:focus-visible,
.editor-textarea:focus-visible {
  outline: 2px solid var(--primary-color, #0066cc);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* src/charts/QuickChart.css */
.quick-chart {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
}
.quick-chart--dark {
  background: #1a1a1a;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.quick-chart__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  background: #f5f5f5;
}
.quick-chart--dark .quick-chart__header {
  border-bottom-color: #333;
  background: #252525;
}
.quick-chart__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
.quick-chart--dark .quick-chart__title {
  color: #ffffff;
}
.quick-chart__controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.quick-chart__type-selector {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: white;
  border-radius: 6px;
  border: 1px solid #ddd;
}
.quick-chart--dark .quick-chart__type-selector {
  background: #2a2a2a;
  border-color: #444;
}
.quick-chart__type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}
.quick-chart__type-btn:hover {
  background: #f0f0f0;
}
.quick-chart--dark .quick-chart__type-btn:hover {
  background: #3a3a3a;
}
.quick-chart__type-btn--active {
  background: #e3f2fd;
}
.quick-chart--dark .quick-chart__type-btn--active {
  background: #1e3a5f;
}
.quick-chart__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}
.quick-chart__btn:hover {
  background: #f0f0f0;
  border-color: #999;
}
.quick-chart--dark .quick-chart__btn {
  background: #2a2a2a;
  border-color: #444;
  color: #ffffff;
}
.quick-chart--dark .quick-chart__btn:hover {
  background: #3a3a3a;
  border-color: #666;
}
.quick-chart__close {
  font-size: 24px;
  line-height: 1;
  color: #666;
}
.quick-chart__close:hover {
  color: #d32f2f;
  background: #ffebee;
}
.quick-chart--dark .quick-chart__close {
  color: #aaa;
}
.quick-chart--dark .quick-chart__close:hover {
  color: #ff5252;
  background: #3a1f1f;
}
.quick-chart__body {
  flex: 1;
  padding: 16px;
  min-height: 0;
}
@media (max-width: 768px) {
  .quick-chart__header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .quick-chart__controls {
    width: 100%;
    justify-content: flex-end;
  }
}

/* src/charts/ChartOverlay.css */
.chart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  pointer-events: none;
}
.chart-overlay__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: all;
  animation: fadeIn 0.2s ease-out;
}
.chart-overlay__container {
  position: absolute;
  pointer-events: all;
  animation: slideIn 0.3s ease-out;
  transition: box-shadow 0.2s;
}
.chart-overlay__container--draggable {
  cursor: move;
}
.chart-overlay__container--dragging {
  cursor: grabbing;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  transition: none;
}
.chart-overlay__container--draggable .quick-chart__header {
  cursor: move;
}
.chart-overlay__container--dragging .quick-chart__header {
  cursor: grabbing;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@media (max-width: 768px) {
  .chart-overlay__container {
    width: calc(100% - 20px) !important;
    height: 400px !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%);
  }
}
