body {
  background-color: #f5f7fa;
  font-family: "Roboto,Arial,sans-serif";
  color: #2c3e50;
}

h1 {
  color: #000;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.dashboard-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.chart-card, .table-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 1.25rem;
}

.chart-card {
  flex: 1 1 40%;
  min-width: 320px;
}

.table-card {
  flex: 1 1 55%;
  min-width: 360px;
}

/* Dark dropdown styling */
.dark-select {
  background-color: #212529;
  color: #fff;
  border-color: #212529;
  height: 38px;
  font-size: 0.9rem;
  line-height: 1;
  padding-top: 0;
  padding-bottom: 0;
  border-radius: 0 0.375rem 0.375rem 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white'><path d='M2 4l4 4 4-4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 12px;
}

.dark-select:focus {
  color: #fff;
  background-color: #343a40;
  border-color: #000;
  box-shadow: none;
}

.dark-select option {
  background-color: #212529;
  color: #fff;
}

table.dataTable tbody tr:hover {
  background-color: #eaf2ff !important;
}

.stock-link {
  color: #002453;
  text-decoration: none;
  font-weight: 500;
}

.stock-link:hover {
  text-decoration: underline;
}

#chart {
  width: 100% !important;
  height: auto !important;
}
/* Match the dark button group look */
.avgDays {
  height: 38px;
  font-size: 0.9rem;
  background-color: #212529;  /* same as btn-dark */
  color: #fff;
  border: 1px solid #212529;
  border-left: none; /* aligns nicely if next to dropdown */
  border-radius: 0 0.375rem 0.375rem 0; /* right corners only */
  width: 70px;
  text-align: center;
  padding: 0;
}

/* When focused */
.avgDays:focus {
  background-color: #343a40;
  color: #fff;
  outline: none;
  box-shadow: none;
  border-color: #000;
}

/* Optional hover for consistency */
.avgDays:hover {
  background-color: #2a2f35;
  color: #fff;
}