.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #66BB6A;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  display: none;
}

/*********** APPLICATION TEXT STYLE *************/
.my-text {
  font-size: 25px;
  font-weight: bold;
  text-align: center;
}

/****** TOP CARD ********/
.top-bar {
  width: calc(50% - 16px);
  height: 200px;
  margin: 16px;
  border-radius: 16px;
  background: linear-gradient(to bottom, #F7F9FB, #E3EAF3);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
}

.logo {
  height: 150px;
}

.crane {
  height: 200px;
  cursor: pointer;
}

/********* CONNECTION ROW *******/
.connection-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: calc(50% - 16px); 
  margin: 16px auto;
  padding: 10px;
  background-color: #E8E8E8;
  border-radius: 12px;
}

.rocker-toggle {
  width: 60px;
  height: 34px;
  border-radius: 50px;
  background-color: #e00000; /* offColor */
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.rocker-thumb {
  width: 26px;
  height: 26px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.25s ease;
}

.rocker-toggle.on {
  background-color: #4CAF50; /* onColor */
}

.rocker-toggle.connecting {
  animation: blink-bg 1.4s infinite ease-in-out;
}

@keyframes blink-bg {
  0%   { background-color: #FFEB3B; }
  50%  { background-color: rgba(187, 187, 187, 0.6); }
  100% { background-color: #FFEB3B; }
}

.settings-icon img {
  height: 40px;
  cursor: pointer;
}

/********** CONTROL CARDS **********/
.control-card {
  background-color: #ECEFF1;
  border: 1px solid #919191;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  padding: 12px;
  width: fit-content;
  margin: 16px auto;
}

.control-card.vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.control-card.horizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.arrow-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
  box-shadow: none;
}

.arrow-button img {
  width: 150px;
  height: 150px;
}

/* .arrow-button:hover img {
  transform: scale(1.1);
  transition: transform 0.2s ease;
} */

.arrow-button:active img {
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.arrow-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}


.my-text.label {
  color: #333333;
}

/******* CLUTCH BUTTON ********/
.clutch-button {
  width: 50%;
  height: 80px;
  border: 4px solid #80978F;
  border-radius: 16px;
  padding: 3px;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.clutch-button span {
  width: 100%;
  height: 100%;
  border: 1px solid black;
  border-radius: 10px;
  background: linear-gradient(to bottom, #66BB6A, #00A14D, #2E7D32);
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.clutch-button:active span {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.my-text.clutch {
  color: white;
}

/********** MOBILE RESPONSIVENESS *************/
@media (max-width: 600px) {
  .logo {
    height: 80px;
  }

  .crane {
    height: 100px;
  }

  .arrow-icon {
    width: 60px;
    height: 60px;
  }

  .arrow-label {
    font-size: 16px;
  }

  .control-card {
    margin: 12px auto;
  }

  .arrow-button img {
    width: 100px;
    height: 100px;
  }

  /*.control-card.horizontal {*/
  /*  flex-direction: column;*/
  /*  gap: 12px;*/
  /*}*/

  .control-card.vertical {
    gap: 8px;
  }

  .top-bar,
  .connection-row,
  .clutch-button {
    width: 90%;
  }

  .my-text {
    font-size: 18px;
  }

  .my-text.label {
    font-size: 16px;
  }

  .my-text.clutch {
    font-size: 16px;
  }
}