.comms-entry {
  display: flex;
  margin-bottom: 5px; /* Reintroduce spacing between entries */
  align-items: baseline; /* Align items based on their baselines */
}

.comms-callsign {
  flex-shrink: 0; /* Prevent callsign from shrinking */
  width: 80px; /* Fixed width for callsign, adjust as needed */
  font-weight: bold;
  color: #aaffaa; /* Greenish color for callsign */
  text-align: right; /* Align callsign to the right within its fixed width */
  padding-right: 10px; /* Increased space between callsign and text */
  margin: 0; /* Keep */
  padding-top: 0; /* Explicitly set */
  padding-bottom: 0; /* Explicitly set */
  padding-left: 0; /* Explicitly set */
  font-size: 0.9em; /* Keep */
}

.comms-text {
  flex-grow: 1; /* Allow text to take remaining space */
  color: #ddd;
  line-height: 1.5; /* Increased line height for better spacing */
  margin: 0; /* Keep */
  padding: 0; /* Keep */
  font-size: 0.9em; /* Keep */
  overflow-wrap: break-word; /* Keep */
}

.comms-view-wrapper {
  flex-grow: 1; /* Allow wrapper to take remaining space */
  overflow-y: auto; /* Enable scrolling for communication text */
  margin-bottom: 10px; /* Space between comms view and input */
}

/* Styles for standalone comms window */
body.standalone-comms-window #atc-communications-panel {
  padding: 0;
  height: 100vh; /* Ensure it takes full viewport height */
  width: 100vw; /* Ensure it takes full viewport width */
  max-height: none; /* Override any max-height from game.css */
  min-height: none;
}

body.standalone-comms-window .comms-view-wrapper {
  margin-bottom: 0;
}

body.standalone-comms-window #atc-text-input {
  width: 100%;
}
