/* ********** */
/* RADIO COMMUNICATION STYLES */
/* ********** */

.legend {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  font-size: 0.95em;
  color: #444;
  display: flex;
  justify-content: space-around;
  gap: 10px;
  flex-wrap: wrap;
}

.speech-bubble-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 1.5rem;
}

.bubble {
  max-width: 70%;
  padding: 15px;
  border-radius: 15px;
  position: relative;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
}

.bubble.pilot {
  align-self: flex-start;
  background-color: #e0f7fa;
  border-color: #b2ebf2;
}

.bubble.pilot::after {
  content: "";
  position: absolute;
  top: 10px;
  left: -10px;
  border: 10px solid transparent;
  border-right-color: #e0f7fa;
}

.bubble.radio {
  align-self: flex-end;
  background-color: #dcedc8;
  border-color: #c5e1a5;
}

.bubble.radio::after {
  content: "";
  position: absolute;
  top: 10px;
  right: -10px;
  border: 10px solid transparent;
  border-left-color: #dcedc8;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  justify-content: flex-start;
  flex-direction: row;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
  width: auto;
  flex-shrink: 0;
}

.checkbox-label span {
  font-weight: 500;
  flex: 1;
}

@media (max-width: 600px) {
  .bubble {
    max-width: 85%;
  }
  
  .legend {
    flex-direction: column;
    text-align: center;
  }
} 