span[data--BATON-controller]:hover,
tr[data--BATON-controller]:hover {
  background-color: black;
  color: white;
  cursor: pointer;
}

/*modal, popup and submenu*/
#BS__modal, #BS__popup, #BS__submenu {
  margin: 0;
  padding: 1vh 6vw;
  background-color: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#BS__modal .modal-content {
  margin: 0;
  padding: 2em;
  border-radius: 10px;
  background-color: #CCC;
  position: fixed;
  width: auto;
  height: auto;
  z-index: 1;
  /* Prevent overflow */
  max-width: 90vw;
  max-height: 90vh;
}
#BS__modal .modal-content .modal-header {
  padding: 0;
  background-color: inherit;
}
#BS__modal .modal-content .modal-dialog {
  margin: 0;
}
#BS__modal .modal-content .modal-options {
  margin: 1em 0 0 0;
  list-style: none;
}
#BS__modal .modal-content .modal-options button {
  width: 100%;
}
#BS__modal .modal-content button.close-modal-or-submenu {
  float: right;
  background-color: inherit;
  border: none;
  box-shadow: none;
  color: black;
  padding: 0;
  margin: 0;
}

#BS__popup .BS-popup-outer {
  margin: 0;
  padding: 2em;
  border-radius: 10px;
  background-color: #CCC;
  position: fixed;
  width: auto;
  height: auto;
  z-index: 1;
  /* Prevent overflow */
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
}
#BS__popup .BS-popup-iframe {
  width: 40vw;
  height: 40vh;
  /* Prevent overflow */
  max-width: 100%;
  max-height: 100%;
}

/* TOAST */
#BS__toast {
  position: fixed;
  bottom: 1rem; /* Using rem for relative unit based on font-size */
  right: 2rem;
  padding: 1rem 1.5rem; /* Increased padding for better appearance */
  background-color: #000;
  color: #fff;
  border-radius: 0.3rem;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 1000;
  max-width: 80%; /* This helps prevent the toast from being too wide on larger screens */
  transform: translateY(5rem);
}

#BS__toast-loading-bar {
  position: absolute;
  top: -8px;
  right: 0;
  height: 5px; /* Adjust height as per your design preference */
  background-color: #fefff0;
  width: 0%; /* Initial width */
  transition: width 2.5s linear; /* This ensures the bar fills up linearly in 2.5 seconds */
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
}

#BS__toast-loading-bar.BS__toast-loading-bar-finished {
  width: 100%;
}

/* Dismiss button styling */
.BS__dismiss-toast {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2em;
  line-height: 1;
  margin-left: 15px;
  outline: none;
  transition: 0.3s;
}

.BS__dismiss-toast:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%; /* Makes it a circle on hover */
}

.BS__toast-message {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  font-weight: 500; /* Semi-bold. Adjust based on your preference and available font weights */
}

/* Toast type styling */
#BS__toast.BS__toast-success {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), linear-gradient(to right, #42a745, #66b46a);
}

#BS__toast.BS__toast-failure {
  background: linear-gradient(to right, #FF8A80, #FFD3B5);
}

#BS__toast.BS__toast-info {
  background: linear-gradient(to right, #A2D5F2, #B2EBF2);
}

/* Animation */
#BS__toast.BS__toast-show {
  opacity: 1;
  visibility: visible;
}

#BS__toast.BS__toast-appear {
  transform: translateY(0);
}

/* 
	Switch checkbox
	<label class="BS__switch">
		<input type="checkbox" checked>
		<span></span>
	</label>
*/
.BS__switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.BS__switch input {
  display: none;
}
.BS__switch span {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: background-color 0.4s;
  border-radius: 34px;
}
.BS__switch span:before {
  content: "";
  position: absolute;
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: transform 0.4s;
  border-radius: 50%;
}
.BS__switch input:checked + span {
  background-color: #2196F3;
}
.BS__switch input:checked + span:before {
  transform: translateX(26px);
}

