body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", "sans-serif";
  background: url('Images/website_background.png');
  background-size: cover;
  height: 100vh;
}

.login_data {
  position: absolute;
  right: 16px;
  font-size: 18px;
}


.on {
  color: green;
}

.off {
  color: red;
}

/* Popup container */
.popup {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* The actual popup (appears on top) */
.popup .popuptext {
  visibility: hidden;
  width: 190px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
}

.error-message {
  color: red;
  text-align: center;
}

.ok-message {
  color: green;
  text-align: center;
}

/* Popup arrow */
.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Toggle this class when clicking on the popup container (hide and show the popup) */
.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

body,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif
}

.w3-row-padding img {
  margin-bottom: 12px
}

/* Set the width of the sidebar to 120px */
.w3-sidebar {
  width: 120px;
  background: #1C375C;
}

.w3-card,
.w3-top {
  background: #1C375C;
}

.pointer {
  cursor: pointer;
}

/* Add a left margin to the "page content" that matches the width of the sidebar (120px) */
#main {
  margin-left: 120px;
}

/* Remove margins from "page content" on small screens */
@media only screen and (max-width: 600px) {
  #main {
    margin-left: 120px
  }
}


.button {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

/* Hover effect */
.button:hover {
  opacity: 0.8;
}

.selected {
  opacity: 1;
}

.unselected {
  opacity: 0.3;
}

/* Custom styles for form */
.search-form {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.search-label {
  margin-right: 10px;
}

.search-input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  font-size: 16px;
}

.search-button:enabled {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-button:hover {
  background-color: #0056b3;
}
.search-button:disabled::after {
  
  padding: 10px 20px;
  background-color: #999;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;

}



.select-label {
  margin-left: 90px;
  margin-right: 10px;
}
.select_bx
{
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  font-size: 16px;
  cursor: pointer;
}


/* Table Styles */
#signals_data,
#unit_data {
  border-collapse: collapse;
  width: 100%;
}

#signals_data th,
#signals_data td,
#unit_data th,
#unit_data td {
  padding: 8px;
  text-align: left;
}


/* Sortable Table Button Styles */
.sort-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #777;
}

.sort-btn:hover {
  color: #333;
}

.sort-btn:focus {
  outline: none;
}

/* FontAwesome Icons */
.fa-sort-up,
.fa-sort-down {
  display: none;
}

.sort-asc .fa-sort-up,
.sort-desc .fa-sort-down {
  display: inline-block;
}

.active-sort {
  background-color: whitesmoke;
  border-radius: 5px;
  color: black;
  /* Change color to indicate active sort */
}



.view-button {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid;
  /* Underline effect */
  transition: border-bottom-color 0.3s ease;
  /* Smooth transition for underline */
  color: inherit;
  /* Inherit text color */
}

.view-button:hover {
  border-bottom-color: transparent;
  /* Hide underline on hover */
}

#exportBtn {
  margin-left: auto;
  padding: 5px 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#exportBtn:hover {
  background-color: #0056b3;
}



#columnsView {
  margin-right: 20px;
  /* Add margin to separate from the "Export to CSV" button */
  font-size: 16px;
}

#columnCount {
  font-weight: bold;
  margin-right: 5px;
}

.edit-code-btn {
  border-color: transparent;
  background-color: transparent;
  color: white;
  cursor: pointer;
}

/* Style for the scroll-to-top button */
.scroll-to-top-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  /* Button background color */
  color: #fff;
  /* Button text color */
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
}

.scroll-to-top-btn:hover {
  background-color: #0056b3;
  /* Hover state background color */
}




.pagination {
  margin-top: 20px;
  text-align: center;
}

.pagination a {
  color: white;
  display: inline-block;
  padding: 4px 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.pagination a.active {
  background-color: #4CAF50;
  color: white;
  border-radius: 5px;
}

.pagination a:hover:not(.active) {
  background-color: #ddd;
  color: black;
  border-radius: 5px;
}

.pagination a.disabled {
  pointer-events: none;
  opacity: 0.5;
  border-radius: 5px;
}
