:root {
  color-scheme: dark;
  --bs-dark: #202023;
  --primary-color: #2169b5;
  --primary-color-hover: #1a589a;
  --secondary-color: #5a5a5a;
  --secondary-color-hover: #4a4a4a;
  --border-grey: #444444;
  --orange: #d07506;
  --bs-font-sans-serif: Roboto, sans-serif;
}

body {
    font-family: 'Roboto', sans-serif !important;
}

.table-dark {
  --bs-table-bg: #1f1e1e;
}

.dataTables_length label {
    color: var(--bs-gray) !important;
}

.dataTables_length select {
  margin-left: 10px;
}

.dataTables_info {
    color: var(--bs-gray) !important;
}

table.dataTable {
    vertical-align: middle;
    width: 100% !important;
}

table.dataTable thead th{
    padding: 10px 10px;
    border-color: var(--bs-gray);
}
table.dataTable tbody tr{
    background-color: #202023;
}

table.dataTable tbody tr .btn-sm{
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

table.dataTable th:first-child {
  border-top-left-radius: 4px;
}
table.dataTable th:last-child {
  border-top-right-radius: 4px;
}
table.dataTable tr:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
table.dataTable tr:last-child td:first-child{
    border-bottom-left-radius: 4px;
}
table.dataTable tr:last-child td:last-child{
    border-bottom-right-radius: 4px;
}

.shadow-custom {
    box-shadow: .25rem .25rem .5rem #00000055 !important;
}
.bg-dark{
    background-color: var(--bs-dark) !important;
}
.form-control{
    background-color: #1f1e1e !important;
    color: white !important;
    border-color: #3b3b3b;
    transition: .5s;
}

.form-select{
    background-color: #1f1e1e !important;
    color: white !important;
    border-color: #3b3b3b;
}

.disabled.shadow-custom{
    box-shadow: none !important;
}
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
  background-color: var(--primary-color-hover);
  border-color: var(--primary-color-hover);
}
.btn-primary:focus {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:focus {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-color-hover);
  border-color: var(--secondary-color-hover);
}
#top-menu{
  overflow: visible;
  transition: 0.4s;
  padding: 130px 10px;
  position: fixed;
}

.top-menu.scrolled{
  height: 100px !important;
}

#logo{
  width:auto;
  height:200px;
  transition: 0.4s;
}

.scrolled .logo{
  height:100px;
}

.container {
    margin-top: 300px !important;
}

.t-65 {
    top: 65%;
}

.t-68 {
    top: 68%;
}

/* Change the appearence of the bakground colour surrounding the search input field */
.select2-search {
    background-color: #1f1e1e !important;
    color: #ffffff !important;
}
    /* Change the appearance of the search input field */
    .select2-search input {
        color: #ffffff !important;
        background-color: #1f1e1e !important;
    }

/* Change the appearance of the search results container */
.select2-results {
    background-color: #1f1e1e !important;
    color: #ffffff !important;
}

/* Change the appearence of the dropdown select container */
.select2-container--bootstrap-5 .select2-selection {
    border-color: #3b3b3b !important;
    color: #ffffff !important;
    background-color: #1f1e1e !important;
}


/* Change the color of the default selected item i.e. the first option */
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
}

.select2-selection ul li {
    color: #ffffff !important;
}

.btn-likert {
    width: 27px !important;
    height: 27px !important;
    border-radius: 27px;
    color: white !important;
    font-weight: bold;
    font-size-adjust: 0.5;    
}

.dropdown-toggle {
    box-shadow: none !important;
}

.btn-likert:disabled, .btn-likert[disabled]{
    color: white !important;
    opacity: 1!important;
}

.likert-1 {
    fill: #0092ff !important;
    fill-opacity: 0.6 !important;
    background-color: #0092ff !important;
    border-color: #0092ff !important;
}
.likert-2 {
    fill: #ffdc00 !important;
    fill-opacity: 0.6 !important;
    background-color: #ffdc00 !important;
    border-color: #ffdc00 !important;
}
.likert-3 {
    fill: orange !important;
    fill-opacity: 0.6 !important;
    background-color: orange !important;
    border-color: orange !important;
}
.likert-4 {
    fill: #f16406 !important;
    fill-opacity: 0.6 !important;
    background-color: #f16406 !important;
    border-color: #f16406 !important;
}
.likert-5 {
    fill: red !important;
    fill-opacity: 0.6 !important;
    background-color: red !important;
    border-color: red !important;
}

.btn-group-table:disabled{
    opacity: 1!important;
    background-color: rgba(0, 0, 0, 0);
    border-color: #aaa;
}

.popover {
  border: 2px solid var(--primary-color);
  background-color: #3a3939;
  z-index: 100;
  max-width: 500px !important;
}

.bs-popover-end>.popover-arrow{
  left: calc(-.5rem - 2px)
}

.popover .popover-arrow::after {
  border-right-color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.popover-header {
  color: white;
  background-color: #2d2c2c;
}

.popover-body {
    color: white;
    background-color: #3a3939;
    border-bottom-left-radius: calc(0.3rem - 1px);
    border-bottom-right-radius: calc(0.3rem - 1px);
    max-height: 500px;
    overflow-y: auto;
}

.tutorial-popover {
  border: 2px solid var(--orange)!important;
  background-color: #3a3939!important;
  z-index: 9999;
  box-shadow: 0 0 0 0 black;
  animation: pulse 1s 1;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 black;
	}

	50% {
		box-shadow: 1px 1px 1px 1px var(--orange);
	}

	100% {
		box-shadow: 0 0 0 0 black;
	}
}

.bs-popover-end>.popover-arrow{
  left: calc(-.5rem - 2px)
}

.tutorial-popover .popover-arrow::after {
  border-right-color: var(--orange)!important;
  border-left-color: var(--orange)!important;
}

.tutorial-btn-next{
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: white;
    background: transparent;
    border: 0;
    border-radius: 0.25rem;
    opacity: .5;
    font-size: 1.5rem;
}

.tutorial-btn-next:hover{
    opacity: .75;
}

.modal-background {
  background: #1f1e1e;
}

.drop-container{
    width: 100%;
    height: 150px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70px;
    background-color: #1f1e1e !important;
    color: white !important;
    border: 1px solid #3b3b3b;
    border-radius: 3px;
    overflow: hidden;
}

.uploaded-container{
  margin-top: 0.5em;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70px;
  background-color: #1f1e1e !important;
  color: white !important;
  border: 1px solid #3b3b3b;
  border-radius: 3px;
  opacity: 0.5;
}

.upload-btn{
  min-width: 8em;
}

.list-item-p{
  max-width: 80%;
  overflow: auto;
  margin-bottom: 0.5em;
}

.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}
