:root {
    --primary-blue: #7baaf7;
    --success-green: #a0d468;
    --bg-gray: #f8f9fa;
    --border-color: #ddd;
    --text-main: #444;
    --text-muted: #888;
}

body {
    background-color: var(--bg-gray);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    padding: 15px 10px;
    color: var(--text-main);
    margin: 0;
}
a {
    all: unset;
    cursor: pointer;
}

.container {
    background: white;
    width: 100%;
    max-width: 1100px;
    padding: 40px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Top Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    font-size: 14px;
    color: var(--text-muted);
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: orange;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--primary-blue); }
input:checked + .slider:before { transform: translateX(20px); }

/* Variant Rows */
.variant-row {
    margin-bottom: 24px;
}

.row-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #555;
    margin-bottom: 10px;
}

.row-header label {
    cursor: pointer;
}

.model-options-wrapper {
    padding-left: 28px;
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 500px;
    opacity: 1;
}

.model-options-wrapper.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

.model-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;
    font-size: 12px;
}

.brand {
    color: #bbb;
    margin: 0 4px 0 10px;
    font-weight: 400;
}

/* Inputs Styling */
input[type="checkbox"].variant-toggle {
    accent-color: var(--primary-blue);
    width: 16px;
    height: 16px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #666;
    white-space: nowrap;
}

.chip input[type="checkbox"] {
    accent-color: var(--success-green);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* Chart/Content Area */
.chart-container {
    width: 95%;
    height: 350px;
    /* border: 1.5px solid var(--primary-blue); */
    margin: 20px auto;
    padding: 10px;
    background-color: #f9f9f9;
}

/* Metrics Footer */
.metrics {
    display: flex;
    justify-content: center;
    gap: 100px;
    padding-top: 10px;
}

.metric-item {
    text-align: center;
}

.metric-item .value {
    font-size: 30px;
    font-weight: 700;
    color: #444;
    line-height: 1;
    /* font-family: 'Arial Black', Gadget, sans-serif; */
}

.metric-item .label {
    font-size: 14px;
    color: #aaa;
    margin-top: 8px;
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .metrics { gap: 30px; }
    .metric-item .value { font-size: 28px; }
}
