html,
body {
  overflow-x: hidden; /* Prevent scroll on narrow devices */
  height: 100%;
}

body {
  padding-top: 56px;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1; /* Takes up remaining vertical space */
}

footer {
  width: 100%; /* Full width */
}

/*  */

@media (max-width: 768px) {
  .offcanvas-collapse {
    position: fixed;
    top: 50px; /* Height of navbar */
    bottom: 0;
    right: 100%;
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow-y: auto;
    visibility: hidden;
    background-color: #343a40;
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }
  .offcanvas-collapse.open {
    visibility: visible;
    transform: translateX(100%);
    opacity: 1;
  }
}

.nav-scroller .nav {
  color: rgba(255, 255, 255, 0.75);
}

.nav-scroller .nav-link {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.nav-scroller .nav-link:hover {
  color: #007bff;
}

.nav-scroller .active {
  font-weight: 500;
  color: #343a40;
}

.bg-purple {
  background-color: #6f42c1;
}

body > .navbar {
  background-color: #2f353b !important;
}

/* body > .navbar > .container-fluid {
  justify-content: center;
} */

.navbar-logo {
  height: auto;
  max-height: 25px;
  width: auto;
  max-width: 100%;
}

.navbar-brand {
  font-size: 0.8em;
}

.footer-logo {
  height: auto;
  max-height: 80px;
  width: auto;
  max-width: 100%;
}

/*  */

.legend {
  display: inline-block;
  margin-right: 20px;
}
.legend span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
}

.legend-text {
  font-size: 12px;
  fill: #333;
}

.bar-chart-canvas {
  max-width: 800px;
  margin-top: 20px;
}

.pie-chart-canvas {
  width: 50%;
  max-width: 500px;
  min-width: 300px;
  /* height: 400px;
  max-height: 400px; */
  margin: 20px auto;
}

/* custom check box */

/* Target the checkbox */
.form-check-input.action-checkbox[type="checkbox"] {
  /* Hide the default checkbox */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 24px !important;
  height: 24px !important;
  border: 2px solid #ccc;
  border-radius: 3px;
  position: relative;
}

.form-check-input.action-checkbox[type="checkbox"]:checked {
  background-color: #35d274;
}

.form-check-input.action-checkbox:checked::before {
  content: "X";
  font-size: 18px;
  font-weight: bold;
  color: #333;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.form-check-label {
  margin-left: 8px;
  cursor: pointer;
}

/* checkbox label styles if checked */
.form-check-input.action-checkbox:checked + .form-check-label {
  font-weight: bold;
  opacity: 1;
}

.strike-action-button {
  min-width: 100px;
  max-width: 200px;
  min-height: 50px;
  font-size: 1em;
  font-weight: bold;
}
