body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin: 0;
  background-color: #f8f9fa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#main-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

#visualization-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#controls {
  margin-bottom: 20px;
}

#chart {
  display: flex;
  justify-content: center;
}

svg {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#side-panels-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 80px;
}

.side-panel {
  width: 300px;
  min-height: 200px;
  max-height: 42vh;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.side-panel.open {
  display: flex;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.panel-header h3 {
  margin: 0;
  font-size: 16px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.close-btn:hover {
  color: #333;
}

#member-panel-content,
#bill-panel-content {
  padding: 15px;
  overflow-y: auto;
  flex: 1;
}

#member-panel-content p,
#bill-panel-content p {
  margin: 8px 0;
}
