/* Heatmap Specific Styles */ .heatmap-container { grid-area: heatmap; background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 0.5rem; padding: 1rem; display: flex; flex-direction: column; min-height: 600px; } .heatmap-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); } .heatmap-header h2 { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); margin: 0; } .heatmap-controls { display: flex; gap: 0.5rem; align-items: center; } .control-btn { background: var(--surface-light); border: 1px solid var(--border-color); border-radius: 0.375rem; padding: 0.5rem 1rem; color: var(--text-primary); font-size: 0.875rem; cursor: pointer; transition: all 0.2s; } .control-btn:hover { background: var(--primary-color); border-color: var(--primary-color); } .control-btn:active { transform: translateY(1px); } .control-btn:disabled { opacity: 0.5; cursor: not-allowed; } .control-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); cursor: pointer; margin-left: 1rem; } .control-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary-color); } /* Heatmap Wrapper */ .heatmap-wrapper { flex: 1; display: grid; grid-template-columns: 60px 1fr 60px; grid-template-rows: 1fr; gap: 0.5rem; min-height: 400px; margin-bottom: 1rem; } .price-axis { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding: 0.5rem; font-size: 0.75rem; color: var(--text-secondary); background: var(--surface-light); border-radius: 0.25rem; } .volume-axis { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 0.5rem; font-size: 0.75rem; color: var(--text-secondary); background: var(--surface-light); border-radius: 0.25rem; } .heatmap-canvas-container { position: relative; background: var(--background-color); border-radius: 0.25rem; overflow: hidden; border: 1px solid var(--border-color); } #heatmapCanvas { display: block; width: 100%; height: 100%; cursor: crosshair; } .heatmap-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; } /* Heatmap Tooltip */ .heatmap-tooltip { position: absolute; background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 0.375rem; padding: 0.75rem; font-size: 0.875rem; color: var(--text-primary); box-shadow: var(--shadow-lg); z-index: 20; pointer-events: none; opacity: 0; transition: opacity 0.2s; max-width: 200px; } .heatmap-tooltip.show { opacity: 1; } .tooltip-price { font-weight: 600; color: var(--primary-color); margin-bottom: 0.25rem; } .tooltip-volume { color: var(--text-secondary); margin-bottom: 0.25rem; } .tooltip-side { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; } .tooltip-side.bid { color: var(--success-color); } .tooltip-side.ask { color: var(--error-color); } /* Heatmap Legend */ .heatmap-legend { display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: var(--surface-light); border-radius: 0.375rem; margin-top: auto; } .legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); } .legend-color { width: 16px; height: 16px; border-radius: 0.25rem; } .bid-color { background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0.8) 100%); } .ask-color { background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(239, 68, 68, 0.8) 100%); } .intensity-scale { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-muted); } .intensity-gradient { width: 100px; height: 8px; background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.5) 50%, rgba(59, 130, 246, 1) 100%); border-radius: 4px; } /* Crosshair */ .heatmap-crosshair { position: absolute; pointer-events: none; z-index: 15; } .crosshair-line { position: absolute; background: rgba(59, 130, 246, 0.6); } .crosshair-horizontal { width: 100%; height: 1px; left: 0; } .crosshair-vertical { width: 1px; height: 100%; top: 0; } /* Price Level Indicators */ .price-level-indicator { position: absolute; right: -30px; background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 0.25rem; padding: 0.25rem 0.5rem; font-size: 0.75rem; color: var(--text-primary); white-space: nowrap; z-index: 20; transform: translateY(-50%); } .price-level-indicator.bid { border-left-color: var(--success-color); border-left-width: 3px; } .price-level-indicator.ask { border-left-color: var(--error-color); border-left-width: 3px; } /* Volume Bars */ .volume-bar { position: absolute; background: rgba(59, 130, 246, 0.3); border-radius: 2px; transition: all 0.3s ease; } .volume-bar.bid { background: rgba(34, 197, 94, 0.3); } .volume-bar.ask { background: rgba(239, 68, 68, 0.3); } .volume-bar:hover { opacity: 0.8; transform: scaleX(1.05); } /* Zoom Controls */ .zoom-indicator { position: absolute; top: 10px; right: 10px; background: rgba(15, 23, 42, 0.8); border: 1px solid var(--border-color); border-radius: 0.25rem; padding: 0.5rem; font-size: 0.75rem; color: var(--text-secondary); backdrop-filter: blur(4px); z-index: 25; } /* Loading State */ .heatmap-loading { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 400px; color: var(--text-secondary); } .heatmap-loading .loading-spinner { width: 32px; height: 32px; margin-bottom: 1rem; } /* Error State */ .heatmap-error { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 400px; color: var(--error-color); text-align: center; } .heatmap-error-icon { font-size: 2rem; margin-bottom: 1rem; } .heatmap-error-message { font-size: 1rem; margin-bottom: 0.5rem; } .heatmap-error-details { font-size: 0.875rem; color: var(--text-muted); } /* Animation Classes */ .heatmap-fade-in { animation: heatmapFadeIn 0.5s ease-in; } @keyframes heatmapFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .heatmap-pulse { animation: heatmapPulse 2s infinite; } @keyframes heatmapPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } /* Responsive Heatmap */ @media (max-width: 768px) { .heatmap-wrapper { grid-template-columns: 50px 1fr 50px; min-height: 300px; } .heatmap-header { flex-direction: column; gap: 1rem; align-items: stretch; } .heatmap-controls { justify-content: center; flex-wrap: wrap; } .heatmap-legend { flex-direction: column; gap: 1rem; align-items: stretch; } .intensity-scale { justify-content: center; } .price-axis, .volume-axis { font-size: 0.625rem; padding: 0.25rem; } }