#options-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

#options-form input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #6200ee;
    margin: 0;
}

body {
    background: #222;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

#main-content {
    max-width: 1100px;
    margin: 40px auto;
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

#top-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: flex-start;
    box-sizing: border-box;
    gap: 16px;
    max-height: 540px;
    overflow-y: hidden;
}

#chart {
    flex: 1 1 0;
    min-width: 0;
}

#legend {
    min-width: 100px;
    max-width: 250px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 12px;
    height: 400px;
    overflow-y: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#legend-list {
    overflow-y: auto;
    max-height: 320px;  /* control scroll area inside legend */
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}

#chart-options {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 12px;
    max-width: 400px;
    margin: 20px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#options-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#options-form label {
    font-weight: bold;
    margin-bottom: 4px;
}

#options-form select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

#options-form button {
    margin-top: 10px;
    padding: 10px;
    background-color: #6200ee;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#options-form button:hover {
    background-color: #4500b5;
}

#chart-options {
    width: 200px;
    display: flex;
}

#chart {
    flex-grow: 1;
}

#bottom-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: flex-start;
    box-sizing: border-box;
    gap: 16px;
    max-height: 700px;
    overflow-y: hidden;
}
#MVP-info {
    flex: 1;
    min-width: 0;
}