/* Ports lib/widgets/debug_terminal.dart — the always-on-top BLE traffic
   overlay visible on every screen. */

.debug-terminal {
  position: fixed;
  left: 8px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  z-index: 999;
  width: calc(100% - 16px);
  max-width: 464px;
  background: rgba(0, 0, 0, 0.78);
  border: 0.5px solid rgba(105, 240, 174, 0.4);
  border-radius: 6px;
  overflow: hidden;
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  transition: height 200ms ease;
}

.debug-terminal--collapsed {
  height: 28px;
}
.debug-terminal--expanded {
  height: 180px;
  display: flex;
  flex-direction: column;
}

.debug-terminal__collapsed-row {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  cursor: pointer;
}
.debug-terminal__icon {
  color: #69f0ae;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
.debug-terminal__last {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}
.debug-terminal__last.is-rx {
  color: #69f0ae;
}
.debug-terminal__last.is-tx {
  color: #40c4ff;
}
.debug-terminal__chevron {
  color: rgba(255, 255, 255, 0.6);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.debug-terminal__header {
  height: 24px;
  flex-shrink: 0;
  background: rgba(105, 240, 174, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
}
.debug-terminal__header-title {
  color: #69f0ae;
  font-size: 10px;
}
.debug-terminal__header-spacer {
  flex: 1;
}
.debug-terminal__header button {
  color: rgba(255, 255, 255, 0.7);
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.debug-terminal__body {
  flex: 1;
  overflow-y: auto;
  padding: 2px 6px;
}
.debug-terminal__empty {
  color: rgba(255, 255, 255, 0.24);
  font-size: 10px;
  text-align: center;
  padding-top: 8px;
}
.debug-terminal__row {
  font-size: 10px;
  padding: 1px 0;
  white-space: pre-wrap;
  word-break: break-all;
}
.debug-terminal__row.is-tx {
  color: #40c4ff;
}
.debug-terminal__row.is-rx {
  color: #69f0ae;
}
