/* Reset some default styles */
/* Reset some default styles */
html, body, h1, h2, h3, p, ul, li {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes lightning {
  0% {
      background-color: transparent;
  }
  50% {
      background-color: hsl(0, 16%, 83%);
  }
  100% {
      background-color: #c1d1db; 
  }
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  margin: 0;
}

header {
  background-color: #3498db;
  color: #fff;
  padding: 10px;
  text-align: center;
}
.login_header{
margin-bottom: 20px;
}
#login-button{
  margin-left: 35%;
}

#login-container {
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.label-login {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #2980b9;
}


#app-container {
  max-width: 600px;
  padding: 20px;
  border-radius: 5px;
}

.label-login {
  display: block;
  margin-bottom: 8px;
}

.label-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #2980b9;
}

.read-button {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.read-meter, .meter {
  flex: 1;
  margin-right: 10px;
}

#data-table {
  border-collapse: collapse;
  margin-top: 20px;
  margin-left: 0;
  margin-bottom: 20px;
}

 #data-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  white-space: nowrap;
}
#data-table th {
  border: 1px solid #ddd;
  padding: 10px 4px;
  text-align: left;
  background-color: #3498db;
  color: #fff;
  white-space: nowrap;
}

#data-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

#data-table tbody tr:hover {
  background-color: #e0e0e0;
}

.read-button { 
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.read-button, .toggle-button {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;

}

.read-meter, .meter {
  flex: 1;
  margin-right: 10px;
}



#logout_button {
  background-color: #e74c3c; /* Red color */
  color: #fff; /* Text color */
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

#logout_button:hover {
  background-color: #c0392b; /* Darker red on hover */
}
#userIdInHTML {
  font-weight: bold;
  color: #333; /* Text color */
  margin-right: 10px; /* Add spacing between the span and button */
}

#logout_button {
  background-color: #e74c3c; /* Red color */
  color: #fff; /* Text color */
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

#logout_button:hover {
  background-color: #c0392b; /* Darker red on hover */
}

.toggle {
  position : relative ;
  display : inline-block;
  width : 85px;
  height : 30px;
  background-color: red;
  border-radius: 30px;
  border: 2px solid gray;
}
     
/* After slide changes */
.toggle:after {
  content: '';
  position: absolute;
  width: 45px;
  height: 30px;
  border-radius: 50%;
  background-color: gray;
  top: 1px; 
  left: 1px;
  transition:  all 0.5s;
}
     
/* Toggle text */
p {margin-top: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}
     
/* Checkbox checked effect */
.checkbox:checked + .toggle::after {
  left : 40px; 
}
     
/* Checkbox checked toggle label bg color */
.checkbox:checked + .toggle {
  background-color: green;
}
     
/* Checkbox vanished */
.checkbox { 
  display : none;
}
#toggle1btn{
  margin-left: 2px;
}

#toggle2btn,#toggle3btn,#toggle4btn{
  margin-left: 17px;
}


.universal-reading{
  display: flex;
  margin-top: 20px;
}
.universal-toggle{
  display: flex;
}
.container-margin-all{
  margin-right: 50px;
}
#userIdInHTML {
  font-weight: bold;
  color: #333; /* Text color */
}

#logout_button {
  background-color: #e74c3c; /* Red color */
  color: #fff; /* Text color */
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

#logout_button:hover {
  background-color: #c0392b; /* Darker red on hover */
}

#userIdInHTML {
  font-weight: bold;
  color: #333; /* Text color */
}

#logout_button {
  background-color: #e74c3c; /* Red color */
  color: #fff; /* Text color */
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

#logout_button:hover {
  background-color: #c0392b; /* Darker red on hover */
}

/* Flex container for aligning elements */
#container {
  display: flex;
  justify-content: flex-end; /* Align items to the right */
}






.Monitoring_starting {
  
  border-radius: 5px;
  padding: 10px;
  margin-top: 20px;
  display: flex;
}
.meter_data_container {
  
  border-radius: 5px;
  padding: 10px;
  margin-top: 20px;
  display: flex;
}


.meter_row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-left: 10px;
}

.meter {
  margin-right: 75px;
  border: 1px solid #db3434;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.meter:last-child {
  margin-right: 0;
}


.container-top {
  display: flex;
  align-items: center; /* Align items vertically */
  padding: 10px; /* Add some padding for spacing */
}

#profileSymbol {
  font-size: 24px; /* Adjust size of the symbol */
  margin-right: 10px; /* Add some spacing between symbol and user ID */
}

#logout_button {
  background-color: #c62c2c;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#logout_button:hover {
  background-color: #3498db;
}

.meter {
  display: inline-block;
  position: relative;
  margin-right: 24px; /* Adjust the spacing between meter elements */
}

.meter span {
  display: inline-block;
  /* background-color: black; 
  color: white;  */
  width: 60px; /* Set a fixed width */
  height: 20px; /* Set a fixed height */
  text-align: center; /* Center the text horizontally */
  line-height: 30px; /* Center the text vertically */
  border-radius: 5px; /* Add rounded corners */
}
.refresh-row{
  font-size: small;
}


.align-left {
  float: left;
}

.align-right {
  float: right;
  margin-left: 20px; /* Optional: space between the left and right aligned elements */
}

.user_messages {
  border: 1px solid #111417;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px;
  display: inline-block;
  max-width: 500px; /* Adjust max-width as needed */
  overflow: hidden;
  text-overflow: ellipsis; /* Ensures text overflow is handled gracefully */
  white-space: nowrap; /* Prevents wrapping of text inside the message box */
}

.user_messages p {
  font-size: 16px;
}

/* Scale down the page for smaller screens */
@media (max-width: 1200px) {
  body {
    transform: scale(0.8);
    transform-origin: top left;
    width: 125%;
  }
}

@media (max-width: 1000px) {
  body {
    transform: scale(0.6);
    transform-origin: top left;
    width: 166.67%;
  }
}

@media (max-width: 800px) {
  body {
    transform: scale(0.5);
    transform-origin: top left;
    width: 200%;
  }
}

@media (max-width: 600px) {
  body {
    transform: scale(0.4);
    transform-origin: top left;
    width: 250%;
  }
}

@media (max-width: 400px) {
  body {
    transform: scale(0.3);
    transform-origin: top left;
    width: 333.33%;
  }
}