body {
    font-family: lemonmilk;
    background-color: #000000;
    color: white;
}

tr.sticky th {
  background: black;
  position: sticky;
  top: 149px; /* Don't forget this, required for the stickiness */
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}

label {
    margin-bottom: 0;
}

/* Datatables overrides start */
table.dataTable thead th,table.dataTable thead td {
    border-bottom: 0px solid #111;
}

table.dataTable thead .sorting {
    background-image: none !important;
}

table.dataTable thead .sorting_asc {
    background-image: url("/static/images/protected/tables/sort_asc.png") !important;
}

table.dataTable thead .sorting_desc {
    background-image: url("/static/images/protected/tables/sort_desc.png") !important;
}

table.dataTable tbody tr {
    background-color: black;
}

/* add this class to a table row (tr) to show the row as active */
table tbody tr.active td {
    background-color: rgba(255, 255, 255, 0.15);
}

table.dataTable tfoot tr td {
    border-top: 1px solid;
}
/* Datatables overrides end */

/* Bootstrap overrides start */
.card {
    border-radius: 0.75rem;
}

/* Make navbar toggler larger */
.navbar-toggler {
    padding: 1rem;
    font-size: 1.5rem;
}

.navbar-toggler-icon {
    width: 2rem;
    height: 2rem;
}

/* Make navbar larger */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    font-size: 2rem;
}

.navbar-nav .nav-link {
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
}

/* Hidden by default (mobile collapsed or large screen) */
.icon-label {
display: none !important;
}

/* Show label when the navbar is expanded via toggle (on mobile) */
.navbar-collapse.show .icon-label {
display: inline !important;
}

/* Optional: ensure icon stays inline with text nicely */
.nav-link i {
vertical-align: middle;
}

.breadcrumb {
    border-radius: 0;
}

.breadcrumb-item {
    font-size: 1.5rem;
}

.btn-secondary:not(:disabled):not(.disabled).active {
    background-color: #222222;
    border-color: #111111;
}

/* Bootstrap overrides end */

.dark {
    background-color: #222222;
    color: white;
}

.light {
    background-color: white;
    color: black;
}

.flex-container {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

.centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@font-face {
    font-family: 'lemonmilk';
    src: url('/static/fonts/Lemon Milk Pro Medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

a.no-style {
    color: inherit;  /* Inherit the text color from the parent */
    text-decoration: none; /* Remove underline */
}

/* Hide scrollbar on Chrome, Safari, Edge */
body::-webkit-scrollbar {
  width: 0px;  /* Hide scrollbar but allow scrolling */
}

.blinking-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    color: green;
    animation: blink 1s infinite;
}

/* Blinking animation */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Custom switch styling */
.custom-switch {
    display: flex;
    align-items: center;
    padding-left: 0;
}

.custom-switch .custom-control-label {
    padding-left: 4vw; /* Moves the label away from the switch */
    position: relative;
    cursor: pointer;
    font-size: 1vw;
}

.custom-switch .custom-control-label::before {
    background-color: #ccc;
    border-radius: 1vw;
    height: 1.5vw;
    width: 3vw;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: background-color 0.3s ease-in-out;
}

.custom-switch .custom-control-label::after {
    content: "";
    background-color: white;
    border-radius: 50%;
    height: 1.25vw;
    width: 1.25vw;
    position: absolute;
    top: 50%;
    left: 0.25vw;
    transform: translateY(-50%);
    transition: transform 0.3s ease-in-out;
}

.custom-switch .custom-control-label {
    padding-left: 4vw; /* Moves the label away from the switch */
    position: relative;
    cursor: pointer;
    font-size: 1vw;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #007bff; /* Bootstrap primary color */
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
    transform: translate(1.5vw, -50%);
}

.custom-switch-lg {
    display: flex;
    align-items: center;
    padding-left: 0;
}

.custom-switch-lg .custom-control-label::before {
    background-color: #ccc;
    border-radius: 2vw;
    height: 3vw;
    width: 6vw;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: background-color 0.3s ease-in-out;
}

.custom-switch-lg .custom-control-label::after {
    content: "";
    background-color: white;
    border-radius: 50%;
    height: 2.5vw;
    width: 2.5vw;
    position: absolute;
    top: 50%;
    left: 0.5vw;
    transform: translateY(-50%);
    transition: transform 0.3s ease-in-out;
}

.custom-switch-lg .custom-control-label {
    padding-left: 8vw; /* Moves the label away from the switch */
    position: relative;
    cursor: pointer;
    font-size: 2vw;
}

.custom-switch-lg .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #007bff; /* Bootstrap primary color */
}

.custom-switch-lg .custom-control-input:checked ~ .custom-control-label::after {
    transform: translate(3vw, -50%);
}
