/* MeshMapper Wardrive Custom Styles */

html,
body {
  height: 100%;
  margin: 0;
}

.hidden {
  opacity: 0;
  display: none;
  pointer-events: none;
}

/* TX Log - Static Expandable Section */
#txLogBottomSheet.open {
    display: block !important;
}

#txLogExpandArrow.expanded {
    transform: rotate(180deg);
}

/* Log Entry Styling */
.logEntry {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 0.5rem;
}

.logRowTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.logTime {
  font-weight: 500;
}

.logCoords {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12rem;
}

/* Heard Repeats Chips Container */
.heardChips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}

/* Chip Base Styling */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 500;
  background: rgba(51, 65, 85, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.8);
  color: #e2e8f0;
  white-space: nowrap;
}

.chipId {
  font-weight: 600;
}

.chipSnr {
  font-weight: 400;
}

/* SNR Color Coding */
.snr-red .chipSnr {
  color: #f87171;
  font-weight: 600;
}

.snr-orange .chipSnr {
  color: #fb923c;
  font-weight: 600;
}

.snr-green .chipSnr {
  color: #4ade80;
  font-weight: 600;
}

/* Mobile-responsive chip styling */
@media (max-width: 640px) {
  /* Reduce chip size for mobile */
  .chip {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    gap: 0.2rem;
  }
  
  /* 3-column grid layout for chips on mobile */
  .heardChips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
  }
  
  /* Ensure chips don't overflow their grid cells */
  .chip {
    min-width: 0;
    justify-content: center;
  }
  
  /* Adjust chip text to be more compact */
  .chipId {
    font-size: 0.625rem;
  }
  
  .chipSnr {
    font-size: 0.625rem;
  }
}

/* Mini SNR Chip for Summary Bar */
.chip-mini {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  background: rgba(51, 65, 85, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.8);
  white-space: nowrap;
}

/* Mini chip SNR color coding */
.chip-mini.snr-red {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

.chip-mini.snr-orange {
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.3);
}

.chip-mini.snr-green {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

/* Copy Button Styling */
.copy-btn {
  cursor: pointer;
  border: 1px solid rgba(71, 85, 105, 0.5);
  background: rgba(51, 65, 85, 0.3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  user-select: none;
}

.copy-btn:hover {
  background: rgba(71, 85, 105, 0.5);
  border-color: rgba(100, 116, 139, 0.7);
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn.copied {
  background: rgba(74, 222, 128, 0.2);
  border-color: rgba(74, 222, 128, 0.5);
  color: #4ade80;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .chip-mini {
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
  }
  
  .copy-btn {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }
}