body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
  margin-top: 1rem;
}

.tabs {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.tablink {
  background: #f1f1f1;
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  cursor: pointer;
}

.tablink.active {
  background: #ddd;
}

.tabcontent {
  display: none;
  padding: 1rem;
}

.subtabs {
  margin-bottom: 0.5rem;
}

.subtabs button {
  background: #eee;
  border: 1px solid #bbb;
  padding: 0.25rem 0.5rem;
  margin-right: 0.25rem;
  cursor: pointer;
}

.subtabcontent {
  display: none;
  border: 1px solid #ccc;
  padding: 0.5rem;
  min-height: 200px;
  background: #f9f9f9;
}

.subtabcontent div {
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}

.subtabcontent div:hover {
  background: #e8f4f8;
}

.subtabcontent div:last-child {
  border-bottom: none;
}

#chart-container {
  flex: 1;
  height: 400px;
  margin-right: 1rem;
}

.charts-area {
  display: flex;
}

.side-panel {
  width: 220px;
}

.side-panel input {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}

.search-box {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

#stock-input {
  flex: 1;
  padding: 0.5rem;
  font-size: 1rem;
}

.suggestions {
  position: relative;
  max-width: 200px;
}

.suggestions div {
  background: white;
  border: 1px solid #ccc;
  cursor: pointer;
  padding: 0.25rem;
}

/* stock list info styling */
.stock-price {
  color: #333;
}

.stock-change {
  display: block;
}

.stock-change-up {
  color: green;
}

.stock-change-down {
  color: red;
}
