body {
  font-family: 'Roboto', sans-serif;
  background: #f4f7fa;
  margin: 0;
  padding: 20px;
  color: #333;
}

.dashboard {
  max-width: 1100px;
  margin: auto;
}

.vd-summary {
  text-align: left;
  margin-bottom: 15px;
}

.vd-summary h2 {
  font-size: 24px;
  font-weight: bold;
  color: #3e95cd;
  margin: 0 0 5px;
}

.vd-summary .vd-period {
  font-size: 16px;
  color: #444;
}

.filter-bar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-bar label {
  font-size: 14px;
  font-weight: 500;
  margin-right: 5px;
}

.filter-bar input {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.filter-bar button {
  padding: 6px 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: #3e95cd;
  color: white;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.filter-bar button:hover {
  background: #337ab7;
}

.metrics {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.metric-card {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  text-align: center;
}

.metric-card .title {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-card .value {
  font-size: 30px;
  font-weight: bold;
  color: #222;
}

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.chart {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.chart h4 {
  margin-top: 0;
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #444;
}

/* ✅ Device Breakdown smaller */
.chart.device-breakdown {
  max-width: 350px;   /* restrict size */
  margin: auto;       /* center align */
  padding: 15px;      /* reduce padding */
}

.chart.device-breakdown canvas {
  max-height: 250px;  /* shrink chart height */
}

@media (max-width: 900px) {
  .charts {
    grid-template-columns: 1fr;
  }

  /* keep device breakdown centered on mobile */
  .chart.device-breakdown {
    max-width: 280px;
  }
}
