/* Ports lib/screens/widgets/battery_Icon.dart */
.battery-icon {
  width: 45px;
  height: 25px;
  border: 2px solid #ececec;
  border-radius: 4px;
  position: relative;
  padding: 2px;
  flex-shrink: 0;
}
.battery-icon__nub {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 10px;
  background: #fafafa;
  border-radius: 1px;
}
.battery-icon__fill {
  height: 100%;
  border-radius: 2px;
  background: var(--color-green);
}
.battery-icon__fill.is-medium {
  background: #b4b400;
}
.battery-icon__fill.is-low {
  background: #ff5252;
  animation: battery-blink 900ms ease-in-out infinite;
}
.battery-icon__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

@keyframes battery-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}
