body {
  font-family: Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  background: #f4f6f8;
  color: #17202a;
}

body.appBooting .appHeader,
body.appBooting .tabPanel {
  visibility: hidden;
}

.appHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 24px 40px 0;
  background: #fff;
  border-bottom: 1px solid #dfe4ea;
}

.appHeader h1 {
  margin: 4px 0 20px;
}

.tabList {
  display: flex;
  gap: 8px;
}

.tabButton {
  padding: 12px 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #667085;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tabButton:hover {
  color: #17202a;
}

.tabButton:focus-visible {
  outline: 3px solid #9ec5fe;
  outline-offset: 2px;
  border-radius: 1px;
}

.tabButton.active {
  border-bottom-color: #1769e0;
  color: #1769e0;
}

.tabPanel {
  padding: 20px;
}

.tabPanel[hidden] {
  display: none;
}

#mainContainer {
  position: relative;
  display: flex;
  justify-content: space-evenly;
  background-color: #fff;
  padding: 20px;
  gap: 20px;
  border-radius: 7px;
}

#mainContainer.loadingHeatmaps {
  visibility: hidden;
}

#container {
  display: flex;
  border: 5px solid #000;
  border-radius: 20px;
  padding: 30px 300px;
  gap: 200px;
}

.foot {
  position: relative;
  width: 260px;
  height: 720px;
}

.foot svg {
  display: block;
}

#statsContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  width: 520px;
}

#dashboardInfoBar {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#selectedDeviceLabel {
  color: #667085;
}

#dashboardStatusSeparator {
  color: #a0a8b3;
}

#dashboardStatus {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e0e0e0;
  font-weight: 700;
}

.statusDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.statusDot.online {
  background: #22c55e;
}

.statusDot.paused {
  background: #f59e0b;
}

.statusDot.offline {
  background: #ef4444;
}

.box {
  background-color: #e0e0e0;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

#footMetricsContainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

#postureSummary {
  height: 173px;
  box-sizing: border-box;
  overflow: hidden;
}

#leftFootMetrics,
#rightFootMetrics {
  height: 230px;
  box-sizing: border-box;
  overflow: hidden;
}

#postureSummary div,
#leftFootMetrics div,
#rightFootMetrics div {
  line-height: 1.2;
}

#postureSummary h3,
#leftFootMetrics h3,
#rightFootMetrics h3 {
  white-space: nowrap;
}

.configCard {
  max-width: 640px;
  margin: 48px auto;
  padding: 32px;
  background: #fff;
  border: 1px solid #dfe4ea;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(23, 32, 42, 0.08);
}

.configCard h2 {
  margin: 0;
}

.configTitleRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 14px 0 6px;
}

.configDeviceId {
  margin: 0 0 18px;
  color: #667085;
  font-size: 0.95rem;
  font-weight: 600;
}

.configCard > p,
.configSection p {
  color: #667085;
  line-height: 1.6;
}

#bleMessage.error {
  color: #d92d20;
  font-weight: 700;
}

.configWifiRow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid #dfe4ea;
  border-radius: 12px;
  margin: 14px 0;
  background: #fafbfc;
}

.configWifiStatus {
  display: grid;
  gap: 6px;
  margin: 0;
}

.configWifiStatusLabel {
  color: #667085;
  font-size: 0.9rem;
  font-weight: 700;
}

.configWifiStatusValue {
  color: #17202a;
  font-weight: 700;
}

#forgetWifiButton {
  min-width: 200px;
}

#forgetWifiButton[hidden] {
  display: inline-block;
  visibility: hidden;
  pointer-events: none;
}

.configDivider {
  border: 0;
  border-top: 1px solid #dfe4ea;
  margin: 28px 0;
}

.configSection {
  margin-top: 28px;
  padding: 24px;
  border: 1px dashed #aeb8c4;
  border-radius: 12px;
  background: #fafbfc;
  text-align: center;
}

.configSection h3 {
  margin-top: 0;
}

.connectButton {
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: #1769e0;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s;
}

.connectButton:hover:not(:disabled) {
  transform: scale(1.05);
}

.connectButton:active:not(:disabled) {
  transform: scale(0.98);
}

.connectButton:disabled {
  background: #aeb8c4;
  cursor: default;
}

.secondaryButton {
  background: #e8f1ff;
  color: #1769e0;
}

.secondaryButton:disabled {
  background: #eef2f6;
  color: #8a96a8;
}

.dangerButton {
  background: #feecec;
  color: #d92d20;
}

.dangerButton:hover:not(:disabled) {
  background: #fdd8d8;
}

.dangerButton:disabled {
  background: #eef2f6;
  color: #8a96a8;
}

.networkTitleRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.networkTitleRow h3 {
  margin: 0;
}

.networkSpinner {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}

.networkSpinner[hidden] {
  display: none;
}

.networkSpinner span {
  position: absolute;
  top: 1px;
  left: 9px;
  width: 2px;
  height: 6px;
  border-radius: 999px;
  background: #667085;
  opacity: 0.2;
  transform-origin: 1px 9px;
  animation: networkSpinnerFade 800ms linear infinite;
}

.networkSpinner span:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -700ms;
}

.networkSpinner span:nth-child(2) {
  transform: rotate(45deg);
  animation-delay: -600ms;
}

.networkSpinner span:nth-child(3) {
  transform: rotate(90deg);
  animation-delay: -500ms;
}

.networkSpinner span:nth-child(4) {
  transform: rotate(135deg);
  animation-delay: -400ms;
}

.networkSpinner span:nth-child(5) {
  transform: rotate(180deg);
  animation-delay: -300ms;
}

.networkSpinner span:nth-child(6) {
  transform: rotate(225deg);
  animation-delay: -200ms;
}

.networkSpinner span:nth-child(7) {
  transform: rotate(270deg);
  animation-delay: -100ms;
}

.networkSpinner span:nth-child(8) {
  transform: rotate(315deg);
  animation-delay: 0ms;
}

@keyframes networkSpinnerFade {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0.2;
  }
}

.networkList {
  display: block;
  margin: 16px 0;
  padding: 0;
  border: 1px solid #dfe4ea;
  border-radius: 12px;
  background: #fff;
  list-style: none;
  overflow: hidden;
}

.networkList:empty {
  display: none;
}

.networkListItem {
  margin: 0;
}

.networkListItem + .networkListItem {
  border-top: 1px solid #eef2f6;
}

.networkListButton {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition:
    border-color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.networkListButton:hover {
  background: #f7fbff;
  box-shadow: none;
}

.networkListButton.connected,
.networkListButton.connected:hover,
.networkListButton.connected:disabled {
  background: #f0fdf4;
  color: #17202a;
  cursor: default;
  opacity: 1;
  box-shadow: none;
}

.networkListButton:focus-visible {
  outline: 2px solid #1769e0;
  outline-offset: 2px;
}

.networkListButton * {
  pointer-events: none;
}

.networkName {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.networkIcons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  color: #344054;
}

.networkConnectedLabel {
  color: #15803d;
  font-size: 0.9rem;
  font-weight: 700;
}

.networkIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.networkLockIcon {
  width: 17px;
  height: 17px;
}

.networkLockIcon.open {
  visibility: hidden;
}

.networkLockIcon.secure {
  background: currentColor;
  -webkit-mask: url("../assets/lock.svg") center / contain no-repeat;
  mask: url("../assets/lock.svg") center / contain no-repeat;
}

.networkSignalIcon {
  width: 17px;
  height: 17px;
}

.wifiSignalIcon {
  width: 100%;
  height: 100%;
}

.wifiSignalArc {
  transition: fill 120ms ease;
}

.wifiSignalArc.active {
  fill: currentColor;
}

.wifiSignalArc.inactive {
  fill: #c4ccd6;
}

#bleDeviceDetails {
  margin-top: 20px;
}

#bleDeviceDetails p {
  margin: 6px 0;
}

.networkActions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.wifiDialog {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(15 23 42 / 28%);
}

.wifiDialog[hidden] {
  display: none;
}

.wifiDialogCard {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid #dfe4ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 60px rgb(15 23 42 / 18%);
}

.wifiDialogCard h3 {
  margin: 0 0 18px;
}

.wifiDialogMessage {
  margin: -6px 0 16px;
  color: #667085;
  line-height: 1.5;
}

.wifiDialogMessage.error {
  color: #d92d20;
  font-weight: 700;
}

.wifiDialogCard label {
  display: block;
  margin: 16px 0;
  font-weight: 700;
}

.wifiDialogCard label[hidden] {
  display: none;
}

.wifiDialogCard input,
.wifiDialogCard select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #aeb8c4;
  border-radius: 8px;
  font: inherit;
}

.wifiDialogCard input:disabled,
.wifiDialogCard select:disabled {
  color: #6b7280;
  background: #f1f5f9;
  cursor: not-allowed;
}

.wifiDialogActions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.wifiDialogCard .wifiSecurityLabel {
  min-width: 160px;
  margin: 0 auto 0 0;
}
