/* Traffic Light Display Styles */
.traffic-light-container {
  display: flex;
  flex-direction: row;
  bottom: 0;
  align-items: flex-start;
  position: absolute;
  left: 50px;
}

.traffic-light-img {
  max-width: 100%;
  width: 110px;
  height: 272px;
}
.traffic-light-title{
    margin-bottom: 10px;
}

.traffic-light-info {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 20px 24px;
  background-color: #ffffff;
  box-shadow: 1px 2px 8px rgba(0, 0, 0, 0.49);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 20px;
  width: 160px;
  height: 135px;
}

@media (max-width: 767px){
    .traffic-light-info{
        text-align: left;
        padding-top: 20px;
        margin-top: 12px;
        height: 122px;
    }
}

.traffic-light-time {
  margin-bottom: 8px;
  white-space: nowrap;
}

.traffic-light-status {
  font-weight: bold;
}

.traffic-light-status.green {
  color: #00ad50;
}

.traffic-light-status.red {
  color: #e60000;
}

/* Control Page Styles */
.traffic-light-control-container {
  text-align: center;
  margin: 40px 0;
}

.traffic-light-button {
  padding: 12px 24px;
  color: #fff;
  border: none;
  margin: 5px;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.traffic-light-button.red {
  background: #e60000;
}

.traffic-light-button.green {
  background: #00653e;
}

.traffic-light-button.auto {
  background: #ffed00;
  color: #000;
}

.traffic-light-button.active {
  box-shadow: 0 0 10px #000;
  border: 2px solid #000;
  filter: none;
  transform: scale(1);
}

.traffic-light-button.inactive {
  filter: grayscale(1);
  transform: scale(0.98);
}
