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;
}

/* Entire DataTables wrapper text color */
table.dataTables_wrapper {
    color: white !important; /* Makes most text white */
}

/* Search label text */
.dataTables_filter label {
    color: white !important;
}

/* Text inside the search input box */
.dataTables_filter input {
    color: white;
    background-color: #343a40; /* optional: match dark table background */
    border: 1px solid #555;    /* optional: subtle border */
}

/* Page info text: "Showing 1 to 10 of 100 entries" */
.dataTables_info {
    color: white !important;
}

/* Pagination button text */
.dataTables_paginate .paginate_button {
    color: white !important;
    background: none !important;
    border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    cursor: default;
    color: white !important;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    box-sizing: border-box;
    display: inline-block;
    min-width: 1.5em;
    padding: .5em 1em;
    margin-left: 2px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    color: white !important;
    border: 1px solid transparent;
    border-radius: 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: white !important;
    border: 1px solid #979797;
    background-color: white;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, white), color-stop(100%, #dcdcdc));
    background: -webkit-linear-gradient(top, white 0%, #dcdcdc 100%);
    background: -moz-linear-gradient(top, white 0%, #dcdcdc 100%);
    background: -ms-linear-gradient(top, white 0%, #dcdcdc 100%);
    background: -o-linear-gradient(top, white 0%, #dcdcdc 100%);
    background: linear-gradient(to bottom, white 0%, #dcdcdc 100%);
}

/* Active/hover pagination button (optional for contrast) */
.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button:hover {
    color: white !important;
    background-color: #495057 !important; /* subtle highlight */
}
/* 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;
}

.modal-dialog {
    width: 80%;
    max-width: none;
    min-height: 50vh;
    height: 50vh;
    display: flex;
    pointer-events: auto;
}

.modal-content {
    background-color: #000;
    color: white;
    border-radius: 0.75rem;
    border: 2px solid #333;
}

.modal-header {
    border-bottom: 1px solid #333;
    background-color: #111; /* Slightly lighter than modal body */
    color: white;
    font-size: 2rem;
    border-top-left-radius: .65rem;
    border-top-right-radius: .65rem;
}

.modal-title {
    font-family: lemonmilk;
}

.modal-body {
    background-color: #000;
    color: white;
    font-size: 1.5rem;
    flex: 1;
    overflow: hidden; /* Ensures NO scrolling */
}

.modal-footer {
    border-top: 1px solid #333;
    background-color: #111;
    color: white;
    border-bottom-left-radius: .65rem;
    border-bottom-right-radius: .65rem;
}

.modal-footer .btn {
    font-size: 1.5rem;
    border-radius: 0.5rem;
}

.modal-footer .btn-primary {
    background-color: #007bff; /* Bootstrap primary */
    border-color: #007bff;
    color: white;
}

.modal-footer .btn-primary:hover {
    background-color: #0056b3; /* Darker hover */
    border-color: #0056b3;
}

.modal-footer .btn-secondary {
    background-color: #222;
    border-color: #111;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background-color: #333;
    border-color: #222;
}

/* 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%);
}
