
:root {
    --primary: #2563eb;
    --bg: #ffffff;
    --surface: #f8fafc;
    --border: #e2e8f0;
    --text: #1e293b;
    --accent: #10b981;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

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

main {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    flex: 1;
    overflow: hidden;
}

.controls, .results-area {
    padding: 1.5rem;
    background-color: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.results-area {
    border-right: none;
    border-left: 1px solid var(--border);
}

.control-group {
    margin-bottom: 2rem;
}

h3 { font-size: 0.875rem; text-transform: uppercase; color: #64748b; margin-bottom: 1rem; }

.btn {
    display: block;
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
}

.btn:hover { background: #f1f5f9; }
.btn.active { border-color: var(--primary); color: var(--primary); background: #eff6ff; }
.btn.primary { background: var(--primary); color: white; border: none; }
.btn.danger { color: #ef4444; }

.canvas-area {
    position: relative;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
}

#gc { width: 100%; height: 100%; cursor: crosshair; }

.hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.results-list table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.results-list td { padding: 8px 0; border-bottom: 1px solid var(--border); }

.data-dump {
    font-family: 'Courier New', Courier, monospace;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.matrix-table {
    border-collapse: collapse;
}

.matrix-table td {
    border: 1px solid #cbd5e1;
    padding: 5px 10px;
    text-align: center;
}

h4 {
    margin: 10px 0 5px 0;
    font-size: 0.9rem;
    color: #475569;
}

/* ===== WYKRESY – Analiza Eksperymentalna ===== */
.charts-section {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chart-wrapper {
  background: var(--surface, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 16px;
}

.chart-wrapper h4 {
  margin: 0 0 12px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #475569);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chart-wrapper canvas {
  width: 100% !important;
  max-height: 220px;
}
:root {
    --primary: #2563eb;
    --bg: #ffffff;
    --surface: #f8fafc;
    --border: #e2e8f0;
    --text: #1e293b;
    --accent: #10b981;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

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

main {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    flex: 1;
    overflow: hidden;
}

.controls, .results-area {
    padding: 1.5rem;
    background-color: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.results-area {
    border-right: none;
    border-left: 1px solid var(--border);
}

.control-group {
    margin-bottom: 2rem;
}

h3 { font-size: 0.875rem; text-transform: uppercase; color: #64748b; margin-bottom: 1rem; }

.btn {
    display: block;
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
}

.btn:hover { background: #f1f5f9; }
.btn.active { border-color: var(--primary); color: var(--primary); background: #eff6ff; }
.btn.primary { background: var(--primary); color: white; border: none; }
.btn.danger { color: #ef4444; }

.canvas-area {
    position: relative;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
}

#gc { width: 100%; height: 100%; cursor: crosshair; }

.hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.results-list table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.results-list td { padding: 8px 0; border-bottom: 1px solid var(--border); }

.data-dump {
    font-family: 'Courier New', Courier, monospace;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.matrix-table {
    border-collapse: collapse;
}

.matrix-table td {
    border: 1px solid #cbd5e1;
    padding: 5px 10px;
    text-align: center;
}

h4 {
    margin: 10px 0 5px 0;
    font-size: 0.9rem;
    color: #475569;
}