/* ========================================
   USB BATTERY PAGES (UsbBattery.razor and the UsbBatteryAssistance.razor entry, which reuses
   the .usb-battery-* rules below) AND ASSISTANCE OVERLAY
   ======================================== */

/* ---------- Pages/UsbBattery.razor ---------- */
.usb-battery-container {
    min-height: calc(100vh - 2rem);
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 1rem;
    padding: 1rem;
}

:where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .offline-batteries-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
:where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .offline-batteries-heading h3, :where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .offline-batteries-heading p { margin: 0; }
:where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .offline-batteries-heading p { color: #94a3b8; font-size: .88rem; }
:where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .offline-battery-list { display: grid; gap: .45rem; margin-top: 1rem; }
:where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .offline-battery-row {
    width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center; gap: .75rem; padding: .75rem; text-align: left;
    color: inherit; background: rgba(15, 23, 42, .7); border: 1px solid #334155; border-radius: 8px;
}
:where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .offline-battery-name { display: grid; min-width: 0; }
:where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .offline-battery-name small { color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .offline-battery-log-count { color: #7dd3fc; white-space: nowrap; }
:where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .offline-battery-empty { margin-top: 1rem; padding: 1rem; color: #94a3b8; text-align: center; }

:where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .usb-battery-card {
    width: min(620px, 100%);
}

:where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .usb-battery-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

:where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .usb-battery-header h2,
:where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .usb-battery-header p {
    margin: 0;
}

:where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .usb-battery-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 2rem;
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.16);
}

:where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .usb-battery-body {
    display: grid;
    gap: 1rem;
}

:where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .usb-battery-status {
    border-radius: 10px;
    padding: 0.8rem 1rem;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.35);
}

:where(.usb-battery-container, .usb-battery-container ~ .lbsa-mobile-dialog-host) .usb-battery-status.is-error {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.4);
}

/* ---------- Shared/AssistanceOverlay.razor ---------- */
.assistance-cursor-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: var(--z-assistance-overlay);
    overflow: visible;
}

.assistance-ghost-cursor {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    color: #32a4ff;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55));
    transition: transform 55ms linear;
    will-change: transform;
}

.assistance-host-cursor {
    color: #4bd37b;
}

.assistance-cursor-arrow {
    display: block;
    font-size: 23px;
    line-height: 1;
    transform: rotate(-45deg);
    transform-origin: center;
}

.assistance-cursor-label {
    margin-top: 14px;
    padding: 3px 7px;
    border-radius: 10px;
    background: currentColor;
    color: #07111a;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.assistance-click-ripple {
    position: absolute;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #32a4ff;
    border-radius: 50%;
    animation: assistance-click-ripple 700ms ease-out forwards;
}

@keyframes assistance-click-ripple {
    from { transform: scale(.35); opacity: 1; }
    to { transform: scale(2.1); opacity: 0; }
}

