﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
    font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
  /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

.maxwidth {
    max-height: 100%;
    padding-left: 45px !important;
    padding-right: 45px !important;
}

.pagewidth {
    max-height: 100%;
    padding-left: 65px !important;
    padding-right: 65px !important;
}

/* Dark Mode
-------------------------------------------------- */
body.dark-mode {
    background-color: #343a40;
    color: white; /* Text color for dark mode */
}

/* Dark mode navbar styles */
.dark-mode .navbar,
body.dark-mode .navbar {
    background-color: #333 !important;
    color: white;
}

.dark-mode .navbar .navbar-brand,
body.dark-mode .navbar .navbar-brand {
    color: white;
}

.dark-mode .navbar .navbar-nav .nav-link,
body.dark-mode .navbar .navbar-nav .nav-link {
    color: white;
}

.dark-mode .navbar .navbar-nav .dropdown-menu {
    background-color: #333; /* Background color for dropdown menu in dark mode */
}

.dark-mode .navbar .navbar-nav .dropdown-item {
    color: white; /* Text color for dropdown item in dark mode */
}

.dark-mode .navbar .navbar-nav .dropdown-item:hover,
.dark-mode .navbar .navbar-nav .dropdown-item:focus {
    background-color: deepskyblue /* Background color for hovered/focused dropdown item in dark mode */
}

/* Datatable */

.dark-mode table.dataTable {
color: white; /* Text color for dark mode */
background-color: #343a40; /* Background color for dark mode */
}

.dark-mode table.dataTable thead th {
    color: white;
    background-color: #343a40; /* Background color for table header in dark mode */
}

.dark-mode table.dataTable tbody td {
    background-color: #343a40; /* Background color for table body in dark mode */
}

.dark-mode table.dataTable tbody tr.selected td {
    background-color: blue; /* Background color for selected rows in dark mode */
    color: white; /* Text color for selected rows in dark mode */
}

.dark-mode .dataTables_wrapper .dataTables_length label,
.dark-mode .dataTables_wrapper .dataTables_filter label,
.dark-mode .dataTables_wrapper .dataTables_filter input[type="search"],
.dark-mode .dataTables_wrapper .dataTables_info {
color: white; /* Text color for dark mode */
}

/* Specific styles for the "Show entries" dropdown */
.dark-mode .dataTables_wrapper .dataTables_length select {
    background-color: #444; /* Dark background for the dropdown */
    color: #ffffff; /* White text for the dropdown */
    border: 1px solid #555; /* Dark border for the dropdown */
}

.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button {
color: white; /* Text color for pagination buttons */
background-color: #343a40; /* Background color for pagination buttons */
border: 0; /* Border color for pagination buttons */
}

.dark-mode .dataTables_wrapper .dataTables_paginate .pagination .page-item .page-link {
color: #ffffff; /* Set the text color to white */
background-color: #343a40; /* Set the background color to a dark color */
}

.dark-mode .dataTables_wrapper .dataTables_paginate .pagination .page-item.active .page-link {
background-color: #007bff; /* Bright blue for active page */
color: white; /* Ensure text color is white for active page */
}

.dark-mode .dataTables_wrapper .dataTables_paginate .pagination .page-item .page-link:hover {
background-color: #555; /* Darker shade for hover effect */
}

.dark-mode .dataTables_wrapper .dataTables_filter input[type="search"] {
color: white; /* Set the text color to white */
background-color: #343a40; /* Set the background color to a dark color */
}

.dark-mode .dataTables_processing {
opacity: 1; /* Full opacity for processing indicator */
}

.dark-mode .dataTables_processing .spinner-border {
    color: #fff; /* Color for spinner */
}

/* Custom Scrollbar for Dark Mode */
.dark-mode::-webkit-scrollbar {
width: 8px; /* Width of the scrollbar */
}

.dark-mode::-webkit-scrollbar-track {
background: #343a40; /* Track color */
}

.dark-mode::-webkit-scrollbar-thumb {
background: #777; /* Thumb color */
}

.dark-mode::-webkit-scrollbar-thumb:hover {
    background: #555; /* Thumb hover color */
}

/*Card*/

.dark-mode .card {
    background-color: #343a40; /* Set the background color to a dark color */
    color: #ffffff; /* Set the text color to white */
}

.dark-mode .card-header {
    background-color: #343a40; /* Set the background color for the card header */
}

.dark-mode .card-body {
    background-color: #343a40; /* Set the background color for the card body */
}

.dark-mode .card-footer {
    background-color: #343a40; /* Set the background color for the card footer */
}

/*Modal*/

.dark-mode .modal-content {
    background-color: #343a40; /* Set the background color of the modal content */
    color: #ffffff; /* Set the text color of the modal content */
}

.dark-mode .modal-header {
    background-color: #6c757d /* Set the background color of the modal header */
}

.dark-mode .modal-body {
    background-color: #343a40; /* Set the background color of the modal body */
}

.dark-mode .modal-footer {
    background-color: #343a40; /* Set the background color of the modal footer */
}

.dark-mode .form-control {
    background-color: #343a40; /* Set the background color of the input field */
    color: #ffffff; /* Set the text color of the input field */
    border-color: #777777; /* Set the border color of the input field */
}

.dark-mode .form-control:focus {
    border-color: #999999; /* Set the border color of the focused input field */
    box-shadow: none; /* Remove the default box shadow */
}

/*Toast*/

.dark-mode .toast {
    background-color: #343a40; /* Set the background color of the toast */
    color: #ffffff; /* Set the text color of the toast */
}

.dark-mode .toast-header {
    background-color: #333 /* Set the background color of the toast header */
}

.dark-mode .toast-body {
    background-color: #343a40; /* Set the background color of the toast body */
}

/*Select2*/

/* Set the background color and text color of Select2 container */
.dark-mode .select2-container--default .select2-selection--single,
.dark-mode .select2-container--default .select2-selection--multiple {
    background-color: #343a40;
    color: cadetblue;
    border-color: #777777;
}

/* Set the background color and text color of Select2 dropdown options */
.dark-mode .select2-container--default .select2-results__option {
    background-color: #343a40;
    color: #ffffff;
}

/* Set the background color and text color of Select2 selected option */
.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered,
.dark-mode .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #343a40;
    color: #ffffff;
}

/* Set the background color and text color of Select2 search input */
.dark-mode .select2-container--default .select2-search__field {
    background-color: #343a40;
    color: #ffffff;
}


/* Table */

.dark-mode .table {
background-color: #343a40; /* Set the background color of the table */
color: #ffffff; /* Set the text color of the table */
}

.dark-mode .table thead th {
    background-color: #343a40; /* Set the background color of the table header */
    color: #ffffff; /* Set the text color of the table header */
}

/* Stripe effect for rows */
.dark-mode .table tbody tr:nth-child(odd) {
    background-color: #2b3035; /* Darker background for odd rows */
}

.dark-mode .table tbody tr:nth-child(even) {
    background-color: #343a40; /* Default background for even rows */
}

.dark-mode .table tbody tr:hover {
    background-color: #505050; /* Set the background color of table rows on hover */
}

.dark-mode .table tbody td {
    border-color: #505050; /* Set the border color of the table cells */
    color: #ffffff; /* Ensure text color in table cells is white for consistency */
}

/* Optional: Style for selected rows */
.dark-mode .table tbody tr.selected {
    background-color: blue; /* Highlight selected rows */
    color: white; /* Ensure text color is white for selected rows */
}

