/* Better dark theme for dashboard insights */
#dashboardInsights {
  color: #f0f0f0;
  font-family: sans-serif;
}

/* Section containers */
.stats-box, .runtime-box {
  background: rgba(0, 0, 0, 0.4); /* translucent dark */
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
  border: 1px solid #444;
}

/* Battery bar */
.battery-bar {
  width: 100%;
  height: 18px;
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid #555;
}
.battery-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0f0, #0c0);
  transition: width 1s ease-in-out;
  box-shadow: 0 0 5px #0f0, 0 0 10px #0f0;
}

/* Runtime table */
.runtime-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
}
.runtime-table th,
.runtime-table td {
  border: 1px solid #555;
  padding: 6px 10px;
  text-align: center;
  background: rgba(20, 20, 20, 0.8);
}

/* Status badge */
.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: #222;
  color: lime;
  font-weight: bold;
  box-shadow: 0 0 6px lime;
}
.status-badge.moderate {
  color: orange;
  box-shadow: 0 0 6px orange;
}
.status-badge.critical {
  color: red;
  box-shadow: 0 0 6px red;
}
.battery-visual {
  max-width: 300px;
  margin: 20px auto;
  text-align: center;
  font-family: sans-serif;
}
.battery-label {
  font-weight: bold;
  margin-bottom: 6px;
}
.battery-shell {
  position: relative;
  width: 100%;
  height: 40px;
  border: 3px solid #333;
  border-radius: 5px;
  overflow: hidden;
  background: #eee;
}
.battery-fill {
  height: 100%;
  width: 0;
  transition: width 1s ease-in-out;
  background-color: green;
}
.battery-tip {
  position: absolute;
  right: -10px;
  top: 10%;
  width: 10px;
  height: 80%;
  background: #333;
  border-radius: 2px;
}
.battery-stats {
  margin-top: 6px;
  font-size: 0.95em;
  color: #555;
}
