body {
    font: 15px Roboto, "Lucida Grande", Arial, sans-serif;
}
.connection-environment {
    margin-left: 10px;
}
.connection-token {
    font: 12px monospace;
}
.connection-error {
    margin-left: 10px;
    color: red;
}
.connection-refresh {
    margin-left: 10px;
    font-size: 0.7rem;
}
div.header-info {
    margin-bottom: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}
.header-info-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 4px;
}
.header-info-row:last-child {
    margin-bottom: 0;
}
.header-info .room-name-section .room-name-display {
    display: flex;
    align-items: baseline;
}
.header-info .room-name-section .room-name-edit {
    margin-bottom: 0;
}
span.header-label {
    font-weight: bold;
    font-size: 13px;
    min-width: 95px;
    flex-shrink: 0;
    margin-right: 10px;
}
span.header-code {
    font: 14px monospace;
}
a {
  color: #04a7e4;
}
.infoMessage {
  color: black;
}
.errorMessage {
    color: darkred;
}
.deviceTile {
  border-width: 1px;
  padding: 7px 7px 7px 7px;
  margin: 5px 10px 10px 0;
  background-color: #b1e0fa;
  height: 68px;
  vertical-align: middle;
  border-radius: 10px;
  display: inline-flex;
  flex-direction: row;
  align-items: stretch;
  width: 300px;
  overflow: hidden;
  cursor: pointer;
}
.deviceTile-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.deviceTile-top {
  flex-shrink: 0;
  margin-top: -7px;
  margin-bottom: 1px;
  margin-left: 2px;
}
.deviceTile-room {
  font-size: 0.7rem;
  color: #555;
  line-height: 1.2;
}
.deviceTile-name-row {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
}
.col-lg-12 {
    padding-right: 0;
}
@media (max-width: 639px) {
    .deviceTile {
        width: 100%;
    }
    .col-lg-12 {
        padding-right: 15px;
    }
}
.displayName {
  flex: 1;
  display: flex;
  align-items: center;
  margin-left: 2px;
  min-width: 0;
}
.deviceTile-name-row .offline-icon {
  flex-shrink: 0;
}
.deviceControl {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 88px;
  text-transform: uppercase;
  border-radius: 10px;
  background-color: #32d0ff;
  color: #ffffff;
}
.deviceDelete {
    display: flex;
    align-items: center;
    height: 100%;
    float: left;
    margin-left: -2px;
}
.deviceStatus {
    display: inline-block;
    width: 100%;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
}
.deviceTile .on, .deviceTile .active, .deviceTile .open, .deviceTile .locked, .deviceTile .wet, .deviceTile .detected, .deviceTile .tested, .deviceTile .cleaning, .deviceTile .present {
  background-color: #3291ff;
  color: #ffffff;
}
.processing {
    background-image: url("/images/spinner.gif");
    background-repeat: no-repeat;
    background-position: center;
}
input.oauth {
  width: 49%;
  height: 50px;
}
.left {
  float: left;
}
.right {
    float: right;
}
.footer {
  text-align: center;
  margin-top: 20px;
}
.center {
    text-align: center;
}
#dropdownMenuButton {
    margin-top: 20px;
    background-color: #dddddd;
}
input.number-control, input.custom-control {
    width: 100%;
    display: inline-block;
    height: 2.25em;
    padding: 1px 2px 1px 2px;
}
textarea.custom-control {
    width: 100%;
    display: inline-block;
    font-family: Monospaced, monospace;
    font-size: 13px;
}
form.login input.btn {
    width: 175px;
}
#oauth-buttons {
    margin-top: 40px;
}
#oauth-buttons .btn-secondary {
    width: 100%;
}
#deviceDetailDialog > h4 {
    margin-right: 30px;
}
.handlerType {
    margin-right: 30px;
}
#general-spinner {
    float: right;
    display: none;
}
.loading {
    border: 4px solid #063043;
    border-radius: 50%;
    border-top: 4px solid #50e3c2;
    width: 24px;
    height: 24px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
}
/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.offline-icon {
    width: 12px;
    height: auto;
    float: left;
}
.log-item {
    width: 100%;
    border: 1px solid #ccc;
}
.request, .response {
    width: 49%;
    display: inline-block;
    padding: 2px;
}
.log-panel {
    margin-right: 5px;
}
.log-header {
    cursor: pointer;
    font-size: 14px;
}
.log-body {
    font-size: 12px;
}
pre {
    vertical-align: top;
    background-color: #eeeeee;
    margin-bottom: 0;
    max-height: 400px;
    overflow: scroll;
}
.timestamp {
    font-size: 12px;
}
.elapsed {
    font-size: 12px;
    color: #666666;
}
.error {
    font-size: 10px;
    background-color: red;
    padding: 2px 4px 2px 4px;
    color: white;
    border-radius: 3px;
    display: inline-block;
}
.mdi-arrow-right-bold {
    color: green;
}
.mdi-arrow-left-bold {
    color: red;
}
.nav-brand a.dropdown-toggle {
    color: #ffffff;
    text-decoration: none;
}
.nav-brand a.dropdown-item {
    color: #666666;
    text-decoration: none;
}
.navbar {
    background-color: #000066!important;
}
.navbar a.nav-link {
    color: #dddddd!important;
}
.navbar a.nav-link:hover {
    color: white!important;
}
h1 {
    font-size: 15px;
    margin-top: 15px;
    margin-right: 10px;
    background-color: #cccccc;
    padding: 5px 10px 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    min-height: 34px;
}
.room-filter {
    margin-left: auto;
    font-size: 12px;
    padding: 1px 4px;
    border: 1px solid #aaa;
    border-radius: 3px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
}
h1 a {
    color: #666666;
}
h1 a:hover {
    color: #333333;
}
.panel-control {
    cursor: pointer;
}
.model-body {
    padding-top: 10px;
}
h2.modal-title {
    font-size: 22px;
}
#deviceDetailDialog label {
    font-size: 13px;
    font-weight: bold;
    color: #333333;
}
.momentary-group {
    display: flex;
}
.momentary-group input {
    border: 1px solid #ccc;
    margin-left: 10px;
}
.username-dropdown .dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.username-dropdown img {
    margin-left: 10px;
    opacity: 75%;
}
.slider-value {
    width: 100px;
    height: 30px;
}
.main-value {
    width: 90%;
    height: 30px;
}
.alert {
    margin: 15px;
}
.alert h5 {
    font-size: 1.1em;
    font-weight: 600;
}
#issueDescription {
    height: 180px;
}
.object-btn {
    float: right;
}
.object-field {
    height: 7em;
    border-color: rgb(206, 212, 218);
    border-radius: 4px;
}
.handler-config {
    font-family: monospace;
    font-size: 13px;
}
label.disabled {
    color: #ccc;
}
.hidden {
    visibility: hidden;
}
.beta-note {
    font-size: 0.85rem;
    font-style: italic;
}
textarea.object-field {
    padding-left: 2px;
}
.display-name-edit {
    width: 100%;
}
.display-name-edit .form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}
.display-name-edit input {
    border: 1px solid #ccc;
    border-radius: 4px;
}
.display-name-edit-btn {
    margin-left: 10px;
}
.room-name-section {
    display: block;
}
.room-name-edit .form-group {
    display: flex;
    gap: 10px;
}
.mdi-pencil-outline {
    color: #999;
}
.composite-panel {
    border: 1px solid #ccc;
    padding: 10px;
}
.composite-data-panel {
    border: 1px solid #ccc;
    padding: 10px;
}

/* Step control styling */
.step-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-button {
    min-width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
}

.step-button:hover {
    background-color: #e9ecef;
}

.step-value-display {
    margin-left: 10px;
    font-weight: normal;
    color: #333333;
    min-width: 40px;
    text-align: right;
}

.step-drag-area {
    flex: 1;
    height: 32px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
    position: relative;
}

.step-drag-area:hover {
    background-color: #e9ecef;
}

.step-drag-area:active {
    background-color: #dee2e6;
    cursor: grabbing;
}

.step-drag-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #007bff;
    pointer-events: none;
    transform: translateX(-1px);
}

.step-button .mdi {
    font-size: 20px;
}

.step-continuous {
    margin-left: 10px;
    font-size: 0.7rem;
    color: #666666;
    float: right;
}

.step-period {
    width: 3.5rem;
}

.devicesPane {
    display: flex;
    justify-content: space-between;
}
.webcamPanel {
    margin-right: 15px;
    margin-left: 10px;
    background-color: #b1e0fa;
    border-radius: 10px;
    padding: 10px;
    height: 390px;
}
.videos {
    display: flex;
    align-items: center;
    justify-content: center;
}

#webcamVideo, #webcamVideo2, .webcam-selection {
    width: 400px;
    height: 300px;
    background: #eeeeee;
    border: 1px solid #ccc;
}
.webcam-selection {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.camera-controls {
    padding: 4px 2px 2px 2px;
    display: flex;
    justify-content: space-between;
}
.camera-controls input {
    width: 48%;
    margin-top: 6px;
    background-color: #3291ff;
    border-color: #3291ff;
    color: #ffffff;
}
.camera-controls input:hover {
    background-color: #3291ff;
    border-color: #3291ff;
    color: #ffffff;
}
.camera-header {
    text-align: center;
    padding: 2px 2px 8px 2px;
}
#loadingPage {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
#loadingPage .spinner-border {
    margin: 10px;
}
#canvas {
    display: none;
}
.error-detail {
    font-size: 10px;
    background-color: #000066;
    padding: 2px 4px 2px 4px;
    color: white;
    border-radius: 3px;
    display: inline-block;
}
.interaction-device {
    font-weight: bold;
}
.interaction-item {
    margin-top: 12px;
}
.collapsed-group {
    font-weight: bold;
    color: #999999;
}
.add-device-edit-tabs a {
    color: #000000;
    font-size: 0.8rem;
}
.add-device-panels .tab-pane {
    margin-top: 0;
    padding: 10px 10px 0 10px;
    border-width: 1px;
    border-color: #dddddd;
    border-style: none solid solid solid;
}
.add-device-panels {
    margin-top: 0;
    margin-bottom: 10px;
}
.add-device-text {
    margin-bottom: 12px;
    font-size: 0.8rem;
}
#add-device-spinner {
    float: right;
    display: none;
}

/* Copy icon click feedback */
.copy-icon {
    transition: color 0.2s ease;
}

.copy-icon:active {
    color: #3291ff !important;
}

/* Input with clear button (X) */
.input-with-clear {
    position: relative;
    width: 100%;
}

.room-name-edit .input-with-clear {
    flex: 1;
    min-width: 0;
    width: auto;
}

.input-with-clear .input-clearable {
    padding-right: 1.75em;
}

.input-with-clear .input-clear-btn {
    position: absolute;
    right: 0.5em;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 1.25em;
    line-height: 1;
    padding: 0 2px;
    user-select: none;
}

.input-with-clear .input-clear-btn:hover {
    color: #666;
}
