html,
body,
#viewDiv {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
}

body {
    font-family: Arial, sans-serif !important;
}

#simFormContainer {
    position: absolute;
    bottom: 30px;
    right: 10px;
    width: 300px; /* Adjust the width to match the styling */
    background-color: rgba(255, 255, 255, 0.75); /* Transparent white background */
    border: 2px solid #000000;
    padding: 0.5em; /* Padding consistent with .box */
    font-size: 12px; /* Matching the base font size */
    z-index: 1000;
    border-radius: 3px;
}

#simFormContainer h1 {
    text-align: center;
    font-size: 12px;
    margin: 0 0 0.5em 0;
}

#simFormContainer .form-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5em;
    font-weight: bold;
}

#simFormContainer label {
    display: inline-block;
    width: 180px; /* Adjust to the desired fixed width */
}

#simFormContainer input {
    width: calc(100% - 1em);
    padding: 0.25em;
    font-size: 12px;
    border: 2px solid #000000;
    border-radius: 3px;
}

#simFormContainer button {
    width: 100%;
    padding: 0.5em;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #000000;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#simFormContainer button:hover {
    background-color: #000000;
}


#landingFormContainer {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 300px; /* Adjust the width to match the styling */
    background-color: rgba(255, 255, 255, 0.75); /* Transparent white background */
    border: 2px solid #000000;
    padding: 0.5em; /* Padding consistent with .box */
    font-size: 12px; /* Matching the base font size */
    z-index: 1000;
    border-radius: 3px;
}

#landingFormContainer h1 {
    text-align: center;
    font-size: 12px;
    margin: 0 0 0.5em 0;
}

#landingFormContainer .form-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5em;
    font-weight: bold;
}

#landingFormContainer .site-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5em; /* Space between rows */
    font-weight: bold;
}

#landingFormContainer .site-label {
    display: inline-block;
    width: 180px; /* Adjust to the desired fixed width */
    font-weight: bold;
}

#landingFormContainer .site-value {
    text-align: right;
    font-weight: normal;
    width: 150px;
    padding: 0.25em;
    font-size: 12px;
    border: 2px solid #000000;
    background-color: #ffffff;
    border-radius: 3px;
}

#landingFormContainer .button {
    width: 100%;
    padding: 0.5em;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 3px;

    color: rgb(85, 85, 85);
    background-color: #000000; /* Green for enabled */
}

#landingFormContainer .button.enabled {
    color: white;
    background-color: #000000;
}

#landingFormContainer .state-button {
    width: 100%;
    padding: 0.5em;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #d9534f; /* Red for disabled */
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 3px;
}

#landingFormContainer .state-button.enabled {
    background-color: #5cb85c; /* Green for enabled */
}

#landingFormContainer .state-button:hover {
    opacity: 0.9; /* Slight opacity on hover */
}

#contextMenu {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}
#contextMenu button {
    display: block;
    width: 100%;
    padding: 5px 10px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}
#contextMenu button:hover {
    background-color: #f0f0f0;
}

#telemetryContainer {
    position: absolute;
    bottom: 30px;
    left: 10px;
    width: 275px; /* Adjust the width to match the styling */
    background-color: rgba(255, 255, 255, 0.75); /* Transparent white background */
    border: 2px solid #000000;
    padding: 0.5em; /* Padding consistent with .box */
    font-size: 12px; /* Matching the base font size */
    z-index: 1000;
    border-radius: 3px;
}

#telemetryContainer h1 {
    text-align: center;
    font-size: 12px;
    margin: 0 0 0.5em 0;
}

#telemetryContainer .telemetry-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5em; /* Space between rows */
    font-weight: bold;
}

#telemetryContainer .telemetry-label {
    font-weight: bold;
    text-align: left;
}

#telemetryContainer .telemetry-value {
    text-align: right;
    font-weight: normal;
    width: 150px;
    padding: 0.25em;
    font-size: 12px;
    border: 2px solid #000000;
    background-color: #ffffff;
    border-radius: 3px;
}

#telemetryContainer button:hover {
    background-color: #000000;
}

#telemetryContainer button {
    width: 100%;
    padding: 0.5em;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 0.5em;

    color: white;
    background-color: #000000;
}

#telemetryContainer .status-button {
    width: 100%;
    padding: 0.5em;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 0.5em;
    margin-bottom: 0.5em;

    color: rgb(85, 85, 85);
    background-color: #000000; /* Green for enabled */
}

#telemetryContainer .status-button.enabled {
    color: white;
    background-color: #000000;
}

#telemetryContainer .form-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5em;
    font-weight: bold;
}

#telemetryContainer label {
    display: inline-block;
    width: 180px; /* Adjust to the desired fixed width */
}

#telemetryContainer input {
    width: calc(100% - 1em);
    padding: 0.5em;
    font-size: 12px;
    border: 2px solid #000000;
    border-radius: 3px;
}


#channels {
    display: flex;
    gap: 14px;
    position:relative;
    left:5px;
}

.channel-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: gray; /* Default color */
}

.channel-number {
    font-size: 16px;
    font-weight: bold;
    color: white; /* Ensure text is visible against red/green background */
    pointer-events: none; /* Ignore clicks on the number */
    position:relative;
    left:5px;
    bottom:3px;
}

/* Change the color of the slider thumb (button) */
input[type="range"] {
    appearance: none; /* Remove default styles */
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #000000; /* Custom color (e.g., orange) */
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #000000; /* Custom color */
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-ms-thumb {
    width: 16px;
    height: 16px;
    background: #000000; /* Custom color */
    border-radius: 50%;
    cursor: pointer;
}

#usbPanel {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    background-color: rgba(255, 255, 255, 0.75);
    border: 2px solid #000000;
    padding: 0.5em;
    font-size: 12px;
    z-index: 1000;
    border-radius: 3px;
}

#usbPanelTitle {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 0.5em;
}

#usbPanel textarea {
    width: 100%;
    font-family: monospace;
    background: #f6f6f6;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0.25em;
    resize: vertical;
}

#usbPanel .form-group {
    margin-bottom: 0.5em;
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}

#usbPanel .auth-buttons {
  display: flex;
  gap: 6px;              /* space between buttons */
  margin-top: 6px;
}

#usbPanel .auth-buttons .button {
  flex: 1 1 auto;        /* allow them to shrink/grow evenly */
  min-width: 0;          /* prevent overflow */
  padding: 4px 8px;      /* make them less tall */
  font-size: 0.9em;      /* slightly smaller text */
}

#userBox {
  text-align: center;
}