:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg: #f0f2f5;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --purple: #8b5cf6;
    --purple-bg: #f5f3ff;
    --blue: #3b82f6;
    --blue-bg: #eff6ff;
    --green: #10b981;
    --green-bg: #ecfdf5;
    --yellow: #eab308;
    --yellow-bg: #fefce8;
    --orange: #f59e0b;
    --orange-bg: #fffbeb;
    --red: #ef4444;
    --red-bg: #fef2f2;
    --teal: #14b8a6;
    --teal-bg: #f0fdfa;
    --amber: #d97706;
}

body.dark {
    --bg: #0c0f17;
    --card: #131926;
    --text: #f8fafc;
    --muted: #94a3b8;
    --border: #1e293b;
    --purple-bg: rgba(139,92,246,.15);
    --blue-bg: rgba(59,130,246,.15);
    --green-bg: rgba(16,185,129,.15);
    --yellow-bg: rgba(234,179,8,.15);
    --orange-bg: rgba(245,158,11,.15);
    --red-bg: rgba(239,68,68,.15);
    --teal-bg: rgba(20,184,166,.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    height: 100vh;
    overflow: hidden;
}

.layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.main-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.view-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ========================
   SETUP SCREEN
======================== */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.header-title h2 { font-size: 18px; font-weight: 700; }
.header-title p { color: var(--muted); margin-top: 2px; font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
    position: relative;
}
.icon-btn svg { pointer-events: none; }

.user-avatar {
    width: 34px; height: 34px;
    background: #6366f1;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px;
    flex-shrink: 0;
}

.setup-content {
    padding: 20px 24px;
    max-width: 1600px;
    margin: 0 auto;
    overflow-y: auto;
    flex: 1;
}

.setup-step {
    background: var(--card);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}
.setup-step.half { width: calc(50% - 10px); margin-bottom: 0; }
.step-row { display: flex; gap: 20px; margin-bottom: 20px; }

.setup-step h3 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.step-desc { color: var(--muted); font-size: 13px; margin-bottom: 18px; }

.scenario-cards, .user-type-cards { display: flex; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }

.card {
    flex: 1; min-width: 220px;
    border: 1.5px solid var(--border);
    border-radius: 8px; padding: 14px;
    cursor: pointer;
    display: flex; align-items: flex-start; gap: 12px;
    transition: border-color 0.15s, background 0.15s;
    background: var(--card);
}
.card:hover { border-color: var(--primary); }
.card.active { border-color: var(--primary); background: var(--purple-bg); }

.card-icon {
    width: 38px; height: 38px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.card-icon.blue { background: var(--blue-bg); }
.card-icon.green { background: var(--green-bg); }
.card-icon.orange { background: var(--orange-bg); }
.card-icon.purple { background: var(--purple-bg); }

.card-text h4 { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.card-text p { font-size: 12px; color: var(--muted); line-height: 1.4; }

.radio-circle {
    width: 15px; height: 15px; border-radius: 50%;
    border: 2px solid var(--border);
    margin-left: auto; flex-shrink: 0; margin-top: 2px;
}
.card.active .radio-circle {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 2px var(--purple-bg);
}

.info-box {
    background: var(--bg); padding: 10px 14px; border-radius: 8px;
    font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start;
}
.info-box.purple-bg { background: var(--purple-bg); color: var(--primary); }
.info-box.recommended { background: var(--purple-bg); color: var(--primary); display: block; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 13px; }
.form-control {
    width: 100%; padding: 9px 11px;
    border: 1px solid var(--border);
    background: var(--card); color: var(--text);
    border-radius: 6px; font-family: inherit; font-size: 13px;
}
select.form-control { cursor: pointer; }

.input-with-suffix {
    display: flex; align-items: center;
    border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.input-with-suffix .prefix-icon { padding: 0 10px; background: var(--bg); border-right: 1px solid var(--border); font-size: 16px; line-height: 38px; }
.input-with-suffix input { border: none; border-radius: 0; flex: 1; }
.input-with-suffix .suffix { padding: 0 10px; background: var(--bg); border-left: 1px solid var(--border); color: var(--muted); font-size: 12px; white-space: nowrap; }

.summary-bar {
    display: flex; justify-content: space-between;
    background: var(--bg); padding: 16px; border-radius: 8px;
    flex-wrap: wrap; gap: 14px;
}
.summary-item { display: flex; align-items: center; gap: 10px; }
.summary-item .icon {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.summary-item .icon.blue { background: var(--blue-bg); }
.summary-item .icon.green { background: var(--green-bg); }
.summary-item .icon.purple { background: var(--purple-bg); }
.summary-item .icon.orange { background: var(--orange-bg); }
.summary-item .details { display: flex; flex-direction: column; }
.summary-item .label { font-size: 11px; color: var(--muted); }
.summary-item strong { font-size: 13px; }

.setup-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }

.btn {
    padding: 9px 18px; border-radius: 7px;
    font-family: inherit; font-weight: 500;
    cursor: pointer; border: none; font-size: 13px;
    display: inline-flex; align-items: center; gap: 6px;
    transition: opacity 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn-outline { background: var(--card); border: 1px solid var(--border); color: var(--text); }
.btn-outline.small { padding: 7px 12px; font-size: 12px; }
.btn-primary { background: var(--primary); color: white; }
.btn-pause, .btn-stop { background: var(--card); border: 1px solid var(--border); color: var(--text); }
.btn-pause:hover, .btn-stop:hover { background: var(--bg); }

/* ========================
   DASHBOARD - JMeter Style
======================== */
#dashboard-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* Top Header */
.dash-header {
    background: var(--card);
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.dash-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.menu-btn {
    background: none; border: none;
    color: var(--muted); cursor: pointer;
    padding: 4px; display: flex; align-items: center;
    border-radius: 4px;
    flex-shrink: 0;
}
.menu-btn:hover { color: var(--text); background: var(--bg); }

.dash-title-block { display: flex; flex-direction: column; gap: 2px; }
.dash-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-title-row h2 { font-size: 17px; font-weight: 700; white-space: nowrap; }
.dash-subtitle { font-size: 12px; color: var(--muted); }

.status-badge {
    font-size: 11px; padding: 2px 9px; border-radius: 12px;
    background: var(--green-bg); color: var(--green);
    font-weight: 600; white-space: nowrap;
}
.status-badge.running { background: var(--green-bg); color: var(--green); }
.status-badge.paused { background: var(--yellow-bg); color: var(--yellow); }
.status-badge.stopped { background: var(--red-bg); color: var(--red); }

.dash-header-mid {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
}
.dash-time-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--muted);
}
.dot-live {
    width: 7px; height: 7px; background: var(--green);
    border-radius: 50%; display: inline-block;
}
.time-label { color: var(--muted); }
.time-val { color: var(--text); font-weight: 600; }

.dash-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notification-btn { position: relative; }
.notif-dot {
    position: absolute; top: 6px; right: 6px;
    width: 7px; height: 7px;
    background: var(--red); border-radius: 50%;
    border: 1.5px solid var(--card);
}

/* Toolbar Row */
.dash-toolbar {
    background: var(--card);
    padding: 10px 22px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.toolbar-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.toolbar-select-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--card);
}
.toolbar-select-icon {
    padding: 0 9px;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border);
    background: var(--bg);
    height: 32px;
}
.toolbar-select {
    border: none;
    background: var(--card);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 500;
    min-width: 140px;
    outline: none;
    height: 32px;
}
.toolbar-group:not(.toolbar-select-wrap) .toolbar-select {
    border: 1px solid var(--border);
    border-radius: 6px;
    min-width: 160px;
    height: 32px;
    padding: 0 10px;
}

/* Metrics Bar */
.dash-metrics-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.dash-metrics-bar.inner {
    border: none;
    border-bottom: none;
    border-radius: 0;
    gap: 12px;
    padding: 0 0 16px 0;
    display: flex;
    flex-wrap: nowrap;
    background: transparent;
}
.dash-metrics-bar .metric-card {
    border: none;
    border-right: 1px solid var(--border);
    border-radius: 0;
    padding: 14px 18px;
    box-shadow: none;
    background: var(--card);
}
.dash-metrics-bar .metric-card:last-child {
    border-right: none;
}

.dash-metrics-bar.inner .metric-card {
    flex: 1;
    min-width: 0;
    padding: 14px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.metric-card {
    background: var(--card);
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.metric-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.metric-icon.purple { background: var(--purple-bg); color: var(--purple); }
.metric-icon.green { background: var(--green-bg); color: var(--green); }
.metric-icon.blue { background: var(--blue-bg); color: var(--blue); }
.metric-icon.yellow { background: var(--yellow-bg); color: var(--yellow); }
.metric-icon.orange { background: var(--orange-bg); color: var(--orange); }
.metric-icon.red { background: var(--red-bg); color: var(--red); }
.metric-icon.teal { background: var(--teal-bg); color: var(--teal); }

.metric-data { display: flex; flex-direction: column; min-width: 0; }
.metric-data .label { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-data .value { font-size: 20px; font-weight: 700; margin: 1px 0; color: var(--text); line-height: 1.2; }
.metric-data .trend { font-size: 11px; color: var(--muted); }
.trend.green { color: var(--green); }
.trend.red { color: var(--red); }
.trend.muted { color: var(--muted); }

/* Tabs */
.dash-tabs {
    display: flex;
    background: var(--card);
    padding: 0 22px;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
    flex-shrink: 0;
}

.tab-btn {
    background: none; border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 12px 16px;
    display: flex; align-items: center; gap: 7px;
    cursor: pointer;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
    font-size: 13px;
    font-family: inherit;
    transition: color 0.15s, border-color 0.15s;
}
.tab-btn svg { flex-shrink: 0; }
.tab-btn:hover:not(.tab-disabled) { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn.active svg { stroke: var(--primary); }
.tab-disabled { opacity: 0.45; cursor: not-allowed; }

.tab-sub {
    font-size: 10px;
    color: var(--muted);
    font-weight: 400;
}
.tab-btn.active .tab-sub { color: var(--primary); opacity: 0.7; }

/* Dashboard Content */
.dash-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 22px;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Charts */
.charts-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}
.charts-row.three-col { grid-template-columns: repeat(3, 1fr); }
.charts-row.two-col { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1200px) {
    .charts-row.three-col { grid-template-columns: repeat(2, 1fr); }
    .dash-metrics-bar { grid-template-columns: repeat(3, 1fr); }
    .dash-metrics-bar .metric-card { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
}
@media (max-width: 800px) {
    .charts-row.three-col, .charts-row.two-col { grid-template-columns: 1fr; }
    .dash-metrics-bar { grid-template-columns: repeat(2, 1fr); }
}

.chart-panel {
    background: var(--card);
    border-radius: 10px;
    padding: 18px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}

.chart-panel h3 {
    font-size: 14px; font-weight: 600;
    margin-bottom: 12px; color: var(--text);
}

.panel-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.panel-title-row h3 { margin-bottom: 0; }

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.chart-header h3 { margin-bottom: 0; }

.chart-legend { display: flex; gap: 12px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend-line { display: inline-block; width: 16px; height: 2px; border-radius: 2px; }
.legend-line.dashed { background: none; border-top: 2px dashed var(--purple); }
.legend-line.solid { background: var(--primary); }

.chart-container { flex: 1; min-height: 180px; position: relative; width: 100%; }

.chart-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}
.chart-footer .stat { display: flex; flex-direction: column; }
.chart-footer .stat .label { font-size: 10px; color: var(--muted); }
.chart-footer .stat strong { font-size: 12px; font-weight: 600; }

/* Data Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
    padding: 9px 4px; text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}
.data-table th { color: var(--muted); font-weight: 500; font-size: 11px; }
.data-table tbody tr:last-child td { border-bottom: none; }
.comp-name { color: var(--primary); font-size: 12px; max-width: 120px; word-break: break-all; }

.chip {
    display: inline-flex; align-items: center;
    padding: 2px 7px; border-radius: 5px;
    font-size: 10px; font-weight: 600;
    white-space: nowrap;
}
.chip-red { background: var(--red-bg); color: var(--red); }
.chip-orange { background: var(--orange-bg); color: var(--orange); }
.chip-green { background: var(--green-bg); color: var(--green); }

.font-bold { font-weight: 700; }
.text-red { color: var(--red); font-size: 12px; }
.text-orange { color: var(--orange); font-size: 12px; }

.badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 10px;
    font-size: 11px; font-weight: 600;
}
.badge.red { background: var(--red-bg); color: var(--red); }

/* Errors Section */
.errors-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    margin-bottom: 10px;
}

.donut-wrap {
    position: relative;
    width: 140px; height: 140px;
    flex-shrink: 0;
}
.donut-wrap canvas { width: 100% !important; height: 100% !important; }

.donut-center {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); text-align: center;
    pointer-events: none;
}
.donut-label { display: block; font-size: 10px; color: var(--muted); }
.donut-value { font-size: 20px; font-weight: 700; display: block; color: var(--text); }

.error-legend { flex: 1; }
.legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    font-size: 12px;
}
.legend-row .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.legend-row .muted { font-size: 10px; color: var(--muted); margin-left: auto; }
.legend-row strong { font-size: 12px; }

/* Health Panel */
.health-display { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 8px; flex: 1; }

.health-gauge-wrap { position: relative; width: 88px; height: 88px; flex-shrink: 0; }
.gauge-svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.gauge-inner {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); text-align: center;
}
.gauge-inner strong { font-size: 20px; font-weight: 800; color: var(--green); display: block; }
.gauge-inner span { font-size: 10px; color: var(--muted); }

.health-list { list-style: none; flex: 1; }
.health-list li {
    display: flex; align-items: center;
    font-size: 12px; margin-bottom: 5px;
    gap: 7px;
}
.health-list .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.health-list .dot.green { background: var(--green); }
.health-list .dot.amber { background: var(--orange); }
.health-list .status { margin-left: auto; font-weight: 500; font-size: 11px; }
.health-list .status.green { color: var(--green); }
.health-list .status.amber { color: var(--orange); }

.view-all {
    display: block; text-align: center; margin-top: 12px;
    color: var(--primary); text-decoration: none;
    font-weight: 500; font-size: 12px;
}
.view-all:hover { text-decoration: underline; }

/* Footer */
.dash-footer {
    background: var(--card);
    padding: 8px 22px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
}
.footer-item svg { color: var(--muted); flex-shrink: 0; }
.footer-item strong { color: var(--text); font-weight: 600; }
.footer-item a { color: var(--primary); text-decoration: none; font-size: 11px; }
.footer-item a:hover { text-decoration: underline; }

.footer-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.last-updated { color: var(--muted); font-size: 11px; }

.live-badge {
    color: var(--green);
    font-weight: 600;
    display: flex; align-items: center; gap: 5px;
    background: var(--green-bg);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.dot.pulse {
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
    70% { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* Scrollbars */
.dash-content::-webkit-scrollbar { width: 4px; }
.dash-content::-webkit-scrollbar-track { background: transparent; }
.dash-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.setup-content::-webkit-scrollbar { width: 4px; }
.setup-content::-webkit-scrollbar-track { background: transparent; }
.setup-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

@media (max-width: 900px) {
    .step-row { flex-direction: column; }
    .setup-step.half { width: 100%; }
    .dash-header { padding: 10px 14px; }
    .dash-toolbar { padding: 8px 14px; }
    .dash-content { padding: 14px; }
    .dash-footer { padding: 8px 14px; gap: 10px; }
}

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    opacity: 0; visibility: hidden; transition: 0.2s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--card); border-radius: 12px;
    width: 90%; max-width: 800px; max-height: 90vh;
    display: flex; flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(20px); transition: 0.3s;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-header {
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-size: 18px; font-weight: 600; margin: 0; }
.modal-header .icon-btn { border: none; background: transparent; width: 28px; height: 28px; }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer {
    padding: 16px 24px; border-top: 1px solid var(--border);
    display: flex; justify-content: flex-end; gap: 12px;
}
.dummy-data-placeholder {
    height: 300px; display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 14px; background: var(--bg); border-radius: 8px;
    border: 1px dashed var(--border);
}

.view-all-btn {
    background: none; border: none;
    color: var(--primary); font-size: 12px; font-weight: 500;
    cursor: pointer; padding: 10px; margin-top: auto;
    text-align: center; width: 100%;
}
.view-all-btn:hover { text-decoration: underline; }

.badge.green { background: var(--green-bg); color: var(--green); }
.badge.orange { background: var(--orange-bg); color: var(--orange); }

.client-env-bar {
    display: flex; gap: 20px; align-items: center; justify-content: space-between;
    padding: 12px 24px; background: var(--bg); border-top: 1px solid var(--border); font-size: 13px;
    border-radius: 0; box-shadow: 0 -4px 12px rgba(0,0,0,0.03);
    
    position: sticky;
    bottom: -20px;
    margin-bottom: -20px;
    margin-left: -22px;
    margin-right: -22px;
    margin-top: 24px;
    z-index: 100;
}
.env-item { display: flex; align-items: center; gap: 6px; }
.env-icon { display: flex; align-items: center; justify-content: center; transform: scale(0.7); }
.env-info { display: flex; flex-direction: row; gap: 6px; align-items: center; }
.env-label { font-size: 13px; color: var(--muted); text-transform: none; letter-spacing: normal; font-weight: normal; margin-bottom: 0; }
.env-val { font-size: 13px; font-weight: 500; color: var(--text); }

/* Sitemap Flowchart Styles */
.sitemap-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.sitemap-header h2 { margin: 0 0 4px 0; font-size: 16px; font-weight: 600; color: var(--text-main); }
.sitemap-header p { margin: 0; font-size: 12px; color: var(--text-muted); }

.sitemap-flow-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    position: relative;
    min-width: 1000px;
}

.flow-stage {
    display: flex;
    flex-direction: column;
    width: 160px;
    position: relative;
    z-index: 2;
}
.flow-stage.multi-stage {
    width: 200px;
}

.stage-header {
    text-align: center;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
}
.stage-num { font-size: 14px; }
.stage-sub { font-size: 11px; font-weight: 400; opacity: 0.8; margin-top: 2px; }

.stage-header.purple { color: #8b5cf6; }
.stage-header.blue { color: #3b82f6; }
.stage-header.orange { color: #f59e0b; }
.stage-header.green { color: #10b981; }

.stage-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.stage-box.borderless { border: none; box-shadow: none; background: transparent; padding: 8px 0 0 0; }
.stage-icon {
    width: 60px; height: 60px;
    background: var(--surface);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    box-shadow: inset 0 0 0 1px var(--border);
}
.stage-action { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

.stage-list {
    list-style: none; padding: 0; margin: 0;
    text-align: left; width: 100%;
}
.stage-list li {
    font-size: 11px;
    color: var(--text-muted);
    padding: 4px 0 4px 12px;
    position: relative;
}
.stage-list li::before {
    content: "•";
    position: absolute; left: 0; top: 4px;
    color: #3b82f6;
}

.stage-box-group {
    display: flex; gap: 8px; margin-bottom: 8px;
}
.stage-box-group.vertical {
    flex-direction: column;
    align-items: center;
}
.mini-box {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px;
    font-size: 11px;
    text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.mini-box small { color: var(--text-muted); font-size: 10px; display: block; margin-top:2px; }
.mini-box.large-db { flex-direction: column; padding: 12px; text-align: center; }
.mini-box.large-db svg { margin-bottom: 8px; }


/* Connectors and Data Flow */
.flow-connector {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 16px;
    min-width: 80px;
}
.conn-label {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    margin: 4px 0;
}
.arrow-forward, .arrow-back {
    width: 100%;
    height: 2px;
    background: var(--blue);
    position: relative;
    margin: 12px 0;
}
.arrow-back {
    background: var(--green);
}
.arrow-back.dashed {
    background: transparent;
    border-bottom: 2px dashed var(--green);
}

.arrow-forward::after {
    content: ""; position: absolute; right: -2px; top: -4px;
    border-width: 5px; border-style: solid;
    border-color: transparent transparent transparent var(--blue);
}
.arrow-back::before {
    content: ""; position: absolute; left: -2px; top: -4px;
    border-width: 5px; border-style: solid;
    border-color: transparent var(--green) transparent transparent;
}

/* Moving Data Particles */
.dot-forward, .dot-back, .dot-forward-up, .dot-forward-down, .dot-down {
    width: 6px; height: 6px;
    border-radius: 50%;
    position: absolute;
    top: -2px;
}
.dot-forward { background: var(--blue); box-shadow: 0 0 4px var(--blue); animation: moveRight 1.5s infinite linear; }
.dot-back { background: var(--green); box-shadow: 0 0 4px var(--green); animation: moveLeft 1.5s infinite linear; }

@keyframes moveRight { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes moveLeft { 0% { right: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { right: 100%; opacity: 0; } }


/* Split Arrows */
.flow-connector.split { padding: 0; min-width: 40px; position: relative; }
.arrow-split-top, .arrow-split-bot {
    position: absolute; left: 0; width: 100%; height: 2px; background: var(--green);
}
.arrow-split-top { top: -20px; transform: rotate(-25deg); transform-origin: left center; }
.arrow-split-bot { top: 20px; transform: rotate(25deg); transform-origin: left center; }
.arrow-split-top::after, .arrow-split-bot::after {
    content: ""; position: absolute; right: -2px; top: -4px;
    border-width: 5px; border-style: solid;
    border-color: transparent transparent transparent var(--green);
}
.dot-forward-up { background: var(--green); box-shadow: 0 0 4px var(--green); animation: moveRightUp 1.5s infinite linear; }
.dot-forward-down { background: var(--green); box-shadow: 0 0 4px var(--green); animation: moveRightDown 1.5s infinite linear; }
@keyframes moveRightUp { 0% { left: 0; opacity: 0; } 50% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes moveRightDown { 0% { left: 0; opacity: 0; } 50% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.internal-arrow {
    width: 2px; height: 24px;
    background: transparent;
    border-left: 2px dashed var(--purple);
    margin: 4px 0;
    position: relative;
}
.internal-arrow::after {
    content: ""; position: absolute; left: -6px; bottom: -2px;
    border-width: 5px; border-style: solid;
    border-color: var(--purple) transparent transparent transparent;
}
.dot-down {
    width: 6px; height: 6px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 4px var(--purple);
    position: absolute; left: -4px;
    animation: moveDown 1.5s infinite linear;
}
@keyframes moveDown { 0% { top: 0; opacity: 0; } 50% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* Legend & Data Tables */
.sitemap-legend {
    display: flex; gap: 16px; align-items: center; justify-content: center;
    padding: 16px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 24px;
    background: var(--surface);
    font-size: 11px;
}
.sitemap-legend .legend-item { display: flex; align-items: center; gap: 6px; }
.sitemap-legend .arr { font-weight: bold; font-size: 14px; }
.sitemap-legend .arr-fwd { color: var(--blue); }
.sitemap-legend .arr-back { color: var(--green); }
.sitemap-legend .arr-internal { color: var(--purple); }
.legend-badge { padding: 2px 6px; border-radius: 4px; color: #fff; font-weight: 500; }
.legend-badge.blue { background: var(--blue); }
.legend-badge.purple { background: var(--purple); }

.sitemap-details-row { gap: 16px; margin-bottom: 16px; align-items: stretch; }
.clean-table th, .clean-table td { padding: 10px 12px; font-size: 12px; }
.clean-table td:first-child { font-weight: 500; width: 40%; }
.clean-table .icon { margin-right: 6px; opacity: 0.8; }


/* Configuration Tab Styles */
.config-sub-nav {
    display: flex; gap: 24px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}
.config-sub-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px; font-weight: 500;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}
.config-sub-nav a:hover { color: var(--text-main); }
.config-sub-nav a.active { color: #8b5cf6; border-bottom-color: #8b5cf6; }

.four-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.config-main-row, .config-settings-row { margin-bottom: 16px; }

.clean-table.no-head thead { display: none; }
.clean-table.dense th, .clean-table.dense td { padding: 6px 10px; font-size: 11px; }

.view-all-btn {
    display: block; text-align: center;
    margin-top: 12px; font-size: 11px; color: #8b5cf6;
    text-decoration: none; font-weight: 500;
}
.view-all-btn:hover { text-decoration: underline; }

/* Resource Utilization Donuts */
.config-resources {
    display: flex; flex-direction: column; gap: 12px;
    height: 100%; justify-content: center;
}
.resource-ring-row {
    display: flex; align-items: center; gap: 16px;
    background: var(--bg); padding: 12px; border-radius: 8px;
    border: 1px solid var(--border);
}
.donut-ring {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: conic-gradient(var(--color) var(--val), var(--border) 0);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.donut-ring::after {
    content: ""; position: absolute;
    width: 36px; height: 36px;
    background: var(--surface); border-radius: 50%;
}
.donut-ring svg { position: relative; z-index: 2; color: var(--color); }

.res-info { display: flex; flex-direction: column; }
.res-title { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.res-val { font-size: 16px; font-weight: 600; color: var(--text-main); }
.res-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* Settings Cards Icons */
.icon-bg-right {
    position: absolute; right: 16px; top: 16px;
    width: 40px; height: 40px;
    background: rgba(139,92,246,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.icon-bg-right svg { width: 20px; height: 20px; }

/* Trend arrows */
.trend { font-size: 14px; font-weight: bold; margin-left: 4px; }
.trend.up { color: var(--red); }
.trend.down { color: var(--green); }


.config-pane { display: none; }
.config-pane.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }


/* Resource Chips */
.resource-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg); padding: 6px 12px; border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 11px;
}
.small-ring {
    width: 20px; height: 20px;
}
.small-ring::after {
    width: 14px; height: 14px;
}
.chip-text {
    color: var(--text-muted);
}
.chip-text strong {
    color: var(--text-main); font-weight: 600;
}

/* Hide scrollbars to remove native arrows */
.dash-tabs::-webkit-scrollbar,
.config-sub-nav::-webkit-scrollbar {
    display: none;
}
.dash-tabs, .config-sub-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* Clean up Resource Rings */
.resource-ring-row.clean {
    background: transparent;
    border: none;
    padding: 8px 0;
}

/* Clean Tables to match Mockup */
.clean-table {
    border: none;
    border-collapse: collapse;
}
.clean-table th, .clean-table td {
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 8px;
    background: transparent !important;
}
.clean-table tr:last-child td {
    border-bottom: none;
}
.clean-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
}
.clean-table td:last-child {
    color: var(--text-main);
    font-weight: 600;
}


.clean-table td:first-child {
    white-space: nowrap;
}


/* NEW SETUP LAYOUT CSS */
.setup-content.new-layout {
    display: grid;
    grid-template-columns: 1fr 256px;
    gap: 12px;
    align-items: start;
}
.setup-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.setup-grid-row-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}
.setup-grid-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.setup-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.dark .setup-box {
    background: var(--card);
    border-color: var(--border);
}
.box-header { margin-bottom: 10px; }
.box-header h3 { font-size: 13px; font-weight: 600; margin: 0 0 2px 0; color: #111827; }
.dark .box-header h3 { color: #f9fafb; }
.box-header p { font-size: 11px; color: #6b7280; margin: 0; }

.small-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.small-cards .scenario-card { padding: 10px 8px; text-align: center; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; transition: all 0.2s;}
.dark .small-cards .scenario-card { background: #1a1a1a; border-color: #333; }
.small-cards .scenario-card.active { border-color: #6366f1; box-shadow: 0 0 0 1px #6366f1; background: #fafafa; }
.dark .small-cards .scenario-card.active { background: rgba(99,102,241,0.05); }
.small-cards .card-icon { font-size: 20px; margin-bottom: 6px; }
.small-cards h4 { font-size: 12px; font-weight: 600; margin: 0 0 3px 0; color: #111827; }
.small-cards p { font-size: 10px; color: #6b7280; margin: 0; line-height: 1.3; }
.check-circle { position: absolute; top: 5px; right: 5px; width: 15px; height: 15px; border-radius: 50%; background: #6366f1; color: #fff; display: none; align-items: center; justify-content: center; font-size: 9px; }
.small-cards .scenario-card.active .check-circle { display: flex; }

.dropdown-wide { width: 100%; margin-bottom: 10px; border-radius: 6px; padding: 7px 10px; border: 1px solid #d1d5db; }
.test-type-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-pill { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 5px 11px; font-size: 12px; color: #374151; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: 0.2s; }
.btn-pill:hover { background: #f9fafb; border-color: #d1d5db; }
.btn-pill.active { background: #6366f1; color: #fff; border-color: #6366f1; }
.btn-pill.active .icon { opacity: 0.8; }

.slider-group { margin-bottom: 10px; }
.slider-group:last-child { margin-bottom: 0; }
.slider-header { margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; }
.slider-header label { font-size: 12px; font-weight: 500; color: #374151; }
.slider-input-box { border: 1px solid #e5e7eb; border-radius: 6px; padding: 5px 9px; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; background: #f9fafb; }
.slider-input-box input { border: none; background: transparent; flex: 1; font-size: 14px; font-weight: 600; color: #111827; outline: none; padding: 0; margin: 0; }
.slider-input-box .suffix { color: #6b7280; font-size: 12px; }
.range-wrap { display: flex; align-items: center; gap: 8px; }
.range-min, .range-max { font-size: 10px; color: #9ca3af; min-width: 24px; white-space: nowrap; }
.styled-slider { flex: 1; -webkit-appearance: none; height: 3px; background: #e5e7eb; border-radius: 2px; outline: none; cursor: pointer; }
.styled-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #6366f1; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 2px solid #fff; }

.pattern-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pattern-options { display: flex; flex-direction: column; gap: 5px; }
.radio-card { display: flex; align-items: center; gap: 8px; border: 1px solid #e5e7eb; padding: 7px 9px; border-radius: 7px; cursor: pointer; transition: 0.2s; }
.radio-card:hover { border-color: #d1d5db; background: #f9fafb; }
.radio-card.active { border-color: #6366f1; background: rgba(99,102,241,0.05); }
.radio-card input { margin-top: 0; accent-color: #6366f1; flex-shrink: 0; }
.radio-content { display: flex; flex-direction: column; }
.radio-content strong { font-size: 12px; color: #111827; font-weight: 500; }
.radio-content span { font-size: 10px; color: #6b7280; margin-top: 1px; }

.pattern-chart-box { border: 1px solid #e5e7eb; border-radius: 7px; padding: 10px; display: flex; position: relative; height: 158px; background: #fff; }
.chart-y-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; color: #9ca3af; padding-right: 8px; height: calc(100% - 18px); }
.chart-area-wrap { flex: 1; position: relative; height: 100%; display: flex; flex-direction: column; }
.chart-label-top { position: absolute; top: -10px; left: 0; font-size: 10px; font-weight: 500; color: #374151; }
.chart-area-inner { flex: 1; border-left: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; position: relative; margin-bottom: 5px; overflow: hidden; }
.chart-x-axis { display: flex; justify-content: space-between; font-size: 10px; color: #9ca3af; padding-left: 0; margin-top: 4px; }
.chart-x-label { text-align: center; font-size: 11px; color: #6b7280; margin-top: 8px; }
.pattern-chart-box .chart-legend { position: absolute; bottom: 40px; right: 10px; display: flex; align-items: center; gap: 6px; font-size: 11px; color: #6b7280; }
.pattern-chart-box .legend-dot { width: 12px; height: 4px; background: #6366f1; border-radius: 2px; }

.add-scenario-btn { font-size: 12px; color: #6366f1; padding: 0; margin-bottom: 8px; font-weight: 500; }
.scenario-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.scenario-table th { text-align: left; padding: 7px 8px; color: #6b7280; font-weight: 500; border-bottom: 1px solid #e5e7eb; font-size: 11px; }
.scenario-table td { padding: 6px 8px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.scenario-table .form-control { border: 1px solid #e5e7eb; border-radius: 5px; padding: 5px 7px; width: 100%; font-size: 12px; }
.scenario-table .text-center { text-align: center; }
.drag-handle { color: #9ca3af; cursor: grab; margin-right: 5px; font-size: 13px; }
.actions-cell { display: flex; gap: 5px; }

.setup-sidebar { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; position: sticky; top: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); display: flex; flex-direction: column; }
.dark .setup-sidebar { background: var(--card); border-color: var(--border); }
.sidebar-box h3 { font-size: 13px; font-weight: 600; margin: 0 0 2px 0; color: #111827; }
.dark .sidebar-box h3 { color: var(--text); }
.sidebar-box p { font-size: 11px; color: #6b7280; margin: 0 0 10px 0; }
.summary-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.summary-list-item { display: flex; align-items: center; gap: 8px; }
.summary-list-item .icon { font-size: 12px; color: #6b7280; opacity: 0.7; flex-shrink: 0; }
.summary-list-item .details { display: flex; flex-direction: column; }
.summary-list-item .label { font-size: 10px; color: #6b7280; margin-bottom: 0; line-height: 1.2; }
.summary-list-item strong { font-size: 12px; color: #111827; font-weight: 500; line-height: 1.3; }
.dark .summary-list-item strong { color: var(--text); }
.est-time-box { background: rgba(99,102,241,0.05); border: 1px solid rgba(99,102,241,0.2); border-radius: 7px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.est-time-box .label { font-size: 10px; color: #6366f1; }
.est-time-box .val { font-size: 13px; color: #111827; font-weight: 600; }
.dark .est-time-box .val { color: var(--text); }
.setup-sidebar-actions { display: flex; gap: 8px; }
.setup-sidebar-actions .btn { flex: 1; padding: 9px 0; font-size: 13px; font-weight: 500; justify-content: center; }

/* ── Setup Layout Rows ─────────────────────────────────────── */
.setup-row-1 {
    display: grid;
    grid-template-columns: 1fr 210px;
    gap: 10px;
}
.setup-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.scenario-box { flex: 1; }
.test-type-box { }

/* ── Scenario Cards v2 ─────────────────────────────────────── */
.scenario-cards-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.scenario-card-v2 {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.18s;
    background: var(--card);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.scenario-card-v2:hover { border-color: #c7d2fe; background: #fafbff; }
.scenario-card-v2.active {
    border-color: var(--primary);
    background: rgba(99,102,241,0.04);
    box-shadow: 0 0 0 1px var(--primary);
}
.dark .scenario-card-v2 { background: #1a1a2e; border-color: #2d2d50; }
.dark .scenario-card-v2.active { background: rgba(99,102,241,0.12); border-color: var(--primary); }
.sc-check {
    position: absolute;
    top: 5px; right: 5px;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.sc-icon {
    width: 38px; height: 38px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 7px;
    flex-shrink: 0;
}
.sc-icon.blue   { background: #eff6ff; }
.sc-icon.purple { background: #f5f3ff; }
.sc-icon.green  { background: #ecfdf5; }
.sc-icon.orange { background: #fffbeb; }
.dark .sc-icon.blue   { background: rgba(59,130,246,.15); }
.dark .sc-icon.purple { background: rgba(139,92,246,.15); }
.dark .sc-icon.green  { background: rgba(16,185,129,.15); }
.dark .sc-icon.orange { background: rgba(245,158,11,.15); }
.scenario-card-v2 h4 {
    font-size: 11px; font-weight: 600;
    color: var(--text); margin: 0 0 3px 0;
}
.scenario-card-v2 p {
    font-size: 10px; color: var(--muted);
    margin: 0; line-height: 1.25;
}

/* ── Test Type Buttons ─────────────────────────────────────── */
.tt-btn-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.tt-btn {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 12px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.15s;
    text-align: left;
}
.tt-btn:hover { border-color: #c7d2fe; background: #fafbff; }
.tt-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.tt-btn svg { flex-shrink: 0; }

/* ── Slider Groups ─────────────────────────────────────────── */
.slider-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}
.slider-input-row { margin-bottom: 5px; }
.input-with-suffix.slim {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--card);
    height: 32px;
}
.input-with-suffix.slim .prefix-icon {
    padding: 0 8px;
    background: var(--bg);
    border-right: 1px solid var(--border);
    display: flex; align-items: center;
    height: 100%; color: var(--muted);
}
.input-with-suffix.slim input {
    border: none; border-radius: 0; flex: 1;
    background: transparent; color: var(--text);
    font-family: inherit; font-size: 13px; font-weight: 600;
    padding: 0 8px; outline: none;
}
.input-with-suffix.slim .suffix {
    padding: 0 9px; background: var(--bg);
    border-left: 1px solid var(--border);
    color: var(--muted); font-size: 11px;
    white-space: nowrap; height: 100%;
    display: flex; align-items: center;
}
.input-with-suffix.slim input.borderless { border: none; background: transparent; }

/* ── Btn Large ─────────────────────────────────────────────── */
.btn-large { padding: 9px 14px; font-size: 13px; font-weight: 600; }

/* ── Summary List Item Icon ───────────────────────────────── */
.summary-list-item .icon {
    width: 20px; height: 20px; border-radius: 4px;
    background: var(--bg); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--muted); font-size: 11px;
}

/* ── Dark mode overrides ─────────────────────────────────── */
.dark .setup-box { background: var(--card); border-color: var(--border); }
.dark .box-header h3 { color: var(--text); }
.dark .slider-label { color: var(--text); }
.dark .input-with-suffix.slim { border-color: var(--border); }
.dark .input-with-suffix.slim .prefix-icon { background: rgba(255,255,255,0.04); border-color: var(--border); }
.dark .input-with-suffix.slim .suffix { background: rgba(255,255,255,0.04); border-color: var(--border); }
.dark .input-with-suffix.slim input { color: var(--text); }
.dark .tt-btn { background: var(--card); border-color: var(--border); color: var(--text); }
.dark .radio-card { border-color: var(--border); }
.dark .radio-card:hover { background: rgba(255,255,255,0.03); }
.dark .radio-card.active { background: rgba(99,102,241,0.1); }
.dark .radio-content strong { color: var(--text); }
.dark .pattern-chart-box { background: var(--card); border-color: var(--border); }
.dark .setup-sidebar { background: var(--card); border-color: var(--border); }
.dark .sidebar-box h3 { color: var(--text); }
.dark .summary-list-item strong { color: var(--text); }
.dark .est-time-box .val { color: var(--text); }
.dark .styled-slider { background: var(--border); }
.dark .scenario-table th { color: var(--muted); border-color: var(--border); }
.dark .scenario-table td { border-color: var(--border); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .setup-content.new-layout { grid-template-columns: 1fr; }
    .setup-row-1 { grid-template-columns: 1fr; }
    .setup-row-2 { grid-template-columns: 1fr; }
    .setup-grid-row-1, .setup-grid-row-2 { grid-template-columns: 1fr; }
    .small-cards { grid-template-columns: repeat(2, 1fr); }
    .pattern-split { grid-template-columns: 1fr; }
    .scenario-cards-v2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .scenario-cards-v2 { grid-template-columns: repeat(2, 1fr); }
}
