html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}


.page-nav {
    margin: 20px auto; /* Add auto margins for horizontal centering */
    text-align: center; /* Center text within the container */
    display: flex; /* Use flexbox to align items */
    justify-content: center; /* Horizontally center items */
}

.page-nav a {
    margin: -10px 10px;
    text-decoration: none;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
}

.page-nav span {
    margin: 0 10px;
    font-size: 1rem;
    display: inline-block; /* Ensure proper alignment */
}

.page-nav a:hover {
    background-color: #0056b3;
}

/* Toggle Switch Styles - Global */
.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin: 0.5rem 0;
}

/* Hide default checkbox */
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* The slider */
.toggle-switch .slider {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

/* The circle inside the slider */
.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* When checkbox is checked */
.toggle-switch input:checked + .slider {
    background-color: #2196F3;
}

/* Move the circle to the right when checked */
.toggle-switch input:checked + .slider:before {
    transform: translateX(30px);
}

/* Toggle switch label text */
.toggle-switch .toggle-label {
    font-family: inherit;
    font-size: 1rem;
    user-select: none;
}

/* Optional: Different color scheme for dark mode */
@media (prefers-color-scheme: dark) {
    .toggle-switch .slider {
        background-color: #555;
    }

    .toggle-switch input:checked + .slider {
        background-color: #0D6EFD;
    }
}