/* 🔋 Battery Widget Styles */
.bv-wallet-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--bv-radius-sm, 6px);
  background: var(--bv-bg-input, rgba(0,0,0,0.2));
  border: 1px solid var(--bv-border-main, #333);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.bv-wallet-widget:hover {
  background: var(--bv-bg-hover, rgba(255,255,255,0.05));
  border-color: var(--bv-accent-primary, #888);
}

/* The outer battery shell */
.bv-battery {
  width: 24px;
  height: 12px;
  border: 2px solid var(--bv-text-main, #ccc);
  border-radius: 3px;
  position: relative;
  padding: 1px;
  display: flex;
  align-items: center;
}

/* The battery nub */
.bv-battery::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 2px;
  width: 2px;
  height: 4px;
  background: var(--bv-text-main, #ccc);
  border-radius: 0 2px 2px 0;
}

/* The liquid fill inside */
.bv-battery-level {
  height: 100%;
  width: 0%; /* Starts empty, JS fills it */
  background-color: var(--bv-accent-primary, #4caf50);
  border-radius: 1px;
  transition: width 1s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.5s ease;
}

/* The hidden text that expands on hover */
.bv-wallet-text {
  font-family: var(--bv-font-mono, monospace);
  font-weight: bold;
  color: var(--bv-text-main, #ccc);
  font-size: 13px;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* The Magic Reveal! */
.bv-wallet-widget:hover .bv-wallet-text {
  opacity: 1;
  max-width: 60px; /* Expands to show the number */
}

/* Low battery animation */
@keyframes bv-pulse {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}