| |
| |
| |
| |
|
|
| |
| :root { |
| |
| --color-bg: #f5f5f5; |
| --color-surface: #ffffff; |
| --color-surface-alt: #fafafa; |
| --color-border: #e0e0e0; |
| --color-text-primary: #212121; |
| --color-text-secondary: #616161; |
| --color-text-muted: #9e9e9e; |
| --color-accent: #1976d2; |
| --color-accent-light: #e3f2fd; |
| --color-success: #2e7d32; |
| --color-warning: #ed6c02; |
| --color-error: #d32f2f; |
| |
| |
| --space-xs: 4px; |
| --space-sm: 8px; |
| --space-md: 16px; |
| --space-lg: 24px; |
| --space-xl: 32px; |
| |
| |
| --radius-sm: 2px; |
| --radius-md: 4px; |
| |
| |
| --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08); |
| --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.1); |
| |
| |
| --transition-fast: 0.15s ease; |
| --transition-normal: 0.2s ease; |
| } |
|
|
| |
| * { |
| margin: 0; |
| padding: 0; |
| box-sizing: border-box; |
| } |
|
|
| html { |
| font-size: 16px; |
| } |
|
|
| body { |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; |
| background-color: var(--color-bg); |
| color: var(--color-text-primary); |
| line-height: 1.5; |
| min-height: 100vh; |
| } |
|
|
| |
| .container { |
| max-width: 1400px; |
| margin: 0 auto; |
| padding: var(--space-lg); |
| } |
|
|
| |
| h1 { |
| text-align: center; |
| color: var(--color-text-primary); |
| margin-bottom: var(--space-xl); |
| font-size: 1.75rem; |
| font-weight: 600; |
| letter-spacing: -0.02em; |
| } |
|
|
| .subtitle { |
| text-align: center; |
| color: var(--color-text-secondary); |
| margin-bottom: var(--space-xl); |
| font-size: 0.95rem; |
| } |
|
|
| |
| .floating-controls { |
| position: fixed; |
| top: var(--space-lg); |
| right: var(--space-lg); |
| background: var(--color-surface); |
| border: 1px solid var(--color-border); |
| border-radius: var(--radius-md); |
| padding: var(--space-lg); |
| box-shadow: var(--shadow-md); |
| z-index: 1000; |
| width: 300px; |
| max-height: calc(100vh - var(--space-lg) * 2); |
| overflow-y: auto; |
| } |
|
|
| .controls-title { |
| font-size: 0.875rem; |
| font-weight: 600; |
| margin-bottom: var(--space-md); |
| color: var(--color-text-primary); |
| text-transform: uppercase; |
| letter-spacing: 0.05em; |
| border-bottom: 1px solid var(--color-border); |
| padding-bottom: var(--space-sm); |
| cursor: grab; |
| } |
|
|
| .controls-title:active { |
| cursor: grabbing; |
| } |
|
|
| .controls-grid { |
| display: grid; |
| grid-template-columns: 1fr; |
| gap: var(--space-md); |
| } |
|
|
| .matrix-grid { |
| display: grid; |
| grid-template-columns: 1fr 1fr; |
| gap: var(--space-md); |
| } |
|
|
| |
| .control-group { |
| text-align: left; |
| } |
|
|
| .control-label { |
| font-weight: 500; |
| margin-bottom: var(--space-xs); |
| font-size: 0.8125rem; |
| color: var(--color-text-secondary); |
| display: flex; |
| justify-content: flex-start; |
| align-items: center; |
| } |
|
|
| |
| .lock-toggle { |
| cursor: pointer; |
| margin-left: var(--space-sm); |
| font-size: 0.875rem; |
| opacity: 0.6; |
| transition: opacity var(--transition-fast); |
| } |
|
|
| .lock-toggle:hover { |
| opacity: 1; |
| } |
|
|
| .lock-toggle.locked { |
| opacity: 1; |
| color: var(--color-error); |
| } |
|
|
| |
| .slider { |
| width: 100%; |
| height: 4px; |
| border-radius: var(--radius-sm); |
| background: var(--color-border); |
| outline: none; |
| -webkit-appearance: none; |
| appearance: none; |
| margin: var(--space-sm) 0; |
| } |
|
|
| .slider:disabled { |
| opacity: 0.4; |
| } |
|
|
| .slider::-webkit-slider-thumb { |
| -webkit-appearance: none; |
| appearance: none; |
| width: 16px; |
| height: 16px; |
| border-radius: 50%; |
| background: var(--color-accent); |
| cursor: pointer; |
| border: 2px solid var(--color-surface); |
| box-shadow: var(--shadow-sm); |
| transition: transform var(--transition-fast), box-shadow var(--transition-fast); |
| } |
|
|
| .slider::-webkit-slider-thumb:hover { |
| transform: scale(1.1); |
| box-shadow: 0 0 0 3px var(--color-accent-light); |
| } |
|
|
| .slider:disabled::-webkit-slider-thumb { |
| background: var(--color-text-muted); |
| cursor: not-allowed; |
| } |
|
|
| .slider::-moz-range-thumb { |
| width: 16px; |
| height: 16px; |
| border-radius: 50%; |
| background: var(--color-accent); |
| cursor: pointer; |
| border: 2px solid var(--color-surface); |
| box-shadow: var(--shadow-sm); |
| } |
|
|
| .slider-value { |
| font-weight: 500; |
| color: var(--color-text-primary); |
| font-size: 0.8125rem; |
| text-align: right; |
| font-family: 'SF Mono', Monaco, monospace; |
| } |
|
|
| |
| .checkbox-label { |
| display: flex; |
| align-items: center; |
| cursor: pointer; |
| font-size: 0.8125rem; |
| color: var(--color-text-secondary); |
| padding: var(--space-sm); |
| border-radius: var(--radius-sm); |
| transition: background-color var(--transition-fast); |
| } |
|
|
| .checkbox-label:hover { |
| background-color: var(--color-surface-alt); |
| } |
|
|
| .checkbox-label input[type="checkbox"] { |
| margin-right: var(--space-sm); |
| width: 16px; |
| height: 16px; |
| cursor: pointer; |
| accent-color: var(--color-accent); |
| } |
|
|
| |
| .charts-container { |
| display: grid; |
| grid-template-columns: repeat(2, 1fr); |
| gap: var(--space-lg); |
| margin-right: 340px; |
| } |
|
|
| |
| .chart-card { |
| background: var(--color-surface); |
| border: 1px solid var(--color-border); |
| border-radius: var(--radius-md); |
| padding: var(--space-lg); |
| box-shadow: var(--shadow-sm); |
| transition: box-shadow var(--transition-normal); |
| } |
|
|
| .chart-card:hover { |
| box-shadow: var(--shadow-md); |
| } |
|
|
| .chart-title { |
| font-size: 0.875rem; |
| font-weight: 600; |
| margin-bottom: var(--space-md); |
| text-align: center; |
| color: var(--color-text-primary); |
| text-transform: uppercase; |
| letter-spacing: 0.03em; |
| } |
|
|
| .chart-container { |
| position: relative; |
| height: 280px; |
| } |
|
|
| |
| .confusion-matrix-layout { |
| position: relative; |
| width: 250px; |
| height: 250px; |
| margin: 0 auto; |
| top: 50%; |
| transform: translateY(-50%); |
| } |
|
|
| .matrix-ylabel, |
| .matrix-xlabel { |
| position: absolute; |
| font-weight: 500; |
| color: var(--color-text-secondary); |
| font-size: 0.75rem; |
| text-transform: uppercase; |
| letter-spacing: 0.05em; |
| white-space: nowrap; |
| } |
|
|
| .matrix-ylabel { |
| top: 50%; |
| left: -24px; |
| transform: translateY(-50%) rotate(-90deg); |
| } |
|
|
| .matrix-xlabel { |
| bottom: -28px; |
| left: 50%; |
| transform: translateX(-50%); |
| } |
|
|
| .matrix-canvas-container { |
| width: 100%; |
| height: 100%; |
| } |
|
|
| #matrixChart { |
| max-width: 100%; |
| max-height: 100%; |
| } |
|
|
| |
| .metrics-display { |
| margin-top: var(--space-md); |
| padding: var(--space-md); |
| background: var(--color-surface-alt); |
| border: 1px solid var(--color-border); |
| border-radius: var(--radius-sm); |
| } |
|
|
| .metrics-title { |
| font-weight: 600; |
| text-align: center; |
| margin-bottom: var(--space-sm); |
| color: var(--color-text-primary); |
| font-size: 0.75rem; |
| text-transform: uppercase; |
| letter-spacing: 0.05em; |
| } |
|
|
| .metric-item { |
| display: flex; |
| justify-content: space-between; |
| align-items: center; |
| padding: var(--space-xs) 0; |
| border-bottom: 1px solid var(--color-border); |
| cursor: help; |
| } |
|
|
| .metric-item:last-child { |
| border-bottom: none; |
| } |
|
|
| .metric-label { |
| font-weight: 400; |
| color: var(--color-text-secondary); |
| font-size: 0.75rem; |
| } |
|
|
| .metric-value { |
| font-family: 'SF Mono', Monaco, monospace; |
| font-weight: 500; |
| color: var(--color-text-primary); |
| padding-left: var(--space-sm); |
| font-size: 0.8125rem; |
| text-align: right; |
| min-width: 60px; |
| } |
|
|
| .metrics-legend { |
| margin-top: var(--space-md); |
| padding: var(--space-sm); |
| background: var(--color-surface-alt); |
| border: 1px solid var(--color-border); |
| border-radius: var(--radius-sm); |
| text-align: center; |
| } |
|
|
| .metrics-legend small { |
| font-size: 0.6875rem; |
| color: var(--color-text-secondary); |
| } |
|
|
| .metrics-legend span { |
| margin: 0 var(--space-xs); |
| white-space: nowrap; |
| } |
|
|
| |
| .chart-hint { |
| margin-top: var(--space-md); |
| padding: var(--space-sm) var(--space-md); |
| background: var(--color-accent-light); |
| border-left: 3px solid var(--color-accent); |
| font-size: 0.75rem; |
| color: var(--color-text-secondary); |
| } |
|
|
| |
| footer { |
| text-align: center; |
| padding: var(--space-xl); |
| margin-top: var(--space-xl); |
| border-top: 1px solid var(--color-border); |
| margin-right: 340px; |
| } |
|
|
| footer a { |
| color: var(--color-text-secondary); |
| text-decoration: none; |
| font-size: 0.8125rem; |
| font-weight: 500; |
| transition: color var(--transition-fast); |
| } |
|
|
| footer a:hover { |
| color: var(--color-accent); |
| } |
|
|
| |
| .button-start { |
| background-color: var(--color-success); |
| border: none; |
| color: white; |
| padding: var(--space-md) var(--space-lg); |
| text-align: center; |
| text-decoration: none; |
| display: inline-block; |
| font-size: 0.875rem; |
| font-weight: 500; |
| margin: var(--space-xs) 0; |
| cursor: pointer; |
| border-radius: var(--radius-sm); |
| width: 100%; |
| box-sizing: border-box; |
| transition: background-color var(--transition-fast); |
| } |
|
|
| .button-start:hover { |
| background-color: #1b5e20; |
| } |
|
|
| |
| .floating-controls::-webkit-scrollbar { |
| width: 6px; |
| } |
|
|
| .floating-controls::-webkit-scrollbar-track { |
| background: transparent; |
| } |
|
|
| .floating-controls::-webkit-scrollbar-thumb { |
| background: var(--color-border); |
| border-radius: var(--radius-sm); |
| } |
|
|
| .floating-controls::-webkit-scrollbar-thumb:hover { |
| background: var(--color-text-muted); |
| } |
|
|
| |
| @media (max-width: 1200px) { |
| .charts-container { |
| grid-template-columns: 1fr; |
| margin-right: 0; |
| } |
| |
| footer { |
| margin-right: 0; |
| } |
| |
| .floating-controls { |
| position: static; |
| width: 100%; |
| max-width: 600px; |
| margin: 0 auto var(--space-lg); |
| max-height: none; |
| } |
| } |
|
|
| @media (max-width: 600px) { |
| .container { |
| padding: var(--space-md); |
| } |
| |
| h1 { |
| font-size: 1.5rem; |
| } |
| |
| .chart-card { |
| padding: var(--space-md); |
| } |
| |
| .chart-container { |
| height: 250px; |
| } |
| |
| .matrix-grid { |
| grid-template-columns: 1fr; |
| } |
| |
| .metric-item { |
| flex-direction: column; |
| align-items: flex-start; |
| gap: var(--space-xs); |
| } |
| |
| .metric-value { |
| padding-left: 0; |
| text-align: left; |
| } |
| } |
|
|