:root {
  --page-bg-color: rgb(233, 237, 240);
  --background-color: #fff;
  --text-color: #000;
  --bs-secondary-color: #6c757d;
  --bs-body-color: #000;
  --bs-body-bg: #fff;
  --bs-border-color: #b8bbbf !important;
  --border-color: #b8bbbf;
  --bs-link-color-rgb: 10,88,202;
  --datepicker-bg: #dadada;
  --datepicker-highlight: #c6c6c6;
  --bs-nav-link-color: #6c757d;

}

body.dark {
  --page-bg-color: rgb(41, 45, 45);
  --background-color: #000;
  --text-color: #fff;
  --bs-secondary-color: #82888d;
  --bs-body-color: #fff;
  --bs-body-bg: #000;
  --bs-border-color: #404347;
  --border-color: #404347;
  --bs-link-color-rgb: 62, 139, 255;
  --bs-tertiary-bg: #6c757d;
  --datepicker-bg: #303236;
  --datepicker-highlight: #19292f;
}


/* Custom CSS to increase the border-radius on cards */
.card {
    border-radius: 12px; /* Adjust this value to your preferred roundness */
    border-color: rgb(230, 230, 230);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto; /* Enable horizontal scrolling */
  }

.body {
  background-color: var(--page-bg-color);
  color:  var(--text-color);
}

.content-card {
  background-color: var(--background-color) !important;
  color:  var(--text-color) !important;
}

.list-group-item {
  color: var(--text-color) !important;
  background-color: var(--background-color) !important;
  border-color: var(--border-color) !important;
  /* Add more styles for other list group properties as needed */
}


.timestamp {
  color: var(--bs-secondary-color);
  font-size: 0.8em;
}

.datepicker {
  border: 1px solid var(--border-color) !important;
}

.datepicker table tr td.range {
  background-color: var(--datepicker-bg) !important;
}

.datepicker table tr td.day:hover {
  background-color: var(--datepicker-highlight) !important;
}

.datepicker table tr td span:hover, .datepicker .datepicker-switch:hover, .datepicker .next:hover, .datepicker .prev:hover, .datepicker tfoot tr th:hover {
  background-color: var(--datepicker-bg) !important;
}

.datepicker table tr td span.focused, .datepicker table tr td span:hover {
  background-color: var(--datepicker-bg) !important;
  border: 1px solid var(--border-color) !important;
}

body.dark .form-check-input {
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' stroke-linecap='round' stroke-linejoin='round' stroke-width='1' fill='%23ccc'/%3e%3c/svg%3e") !important;
}

body.dark .nav-underline .nav-link.active, .nav-underline .show>.nav-link {
  color: #fff !important;
}

.nav-underline .nav-link.active, .nav-underline .show>.nav-link {
  color: #000 !important;
}

.tiny {
  font-size: 0.7em !important;
}

.homeheader {
  font-family: 'Roboto Slab', serif;
  font-size: 3rem;
  line-height: 3rem;
}

.display-4 {
  font-family: 'Roboto Slab', serif;
  font-weight: 300;  
}

.logo {
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  font-size: 1.72rem;
  line-height: 1.83rem;
  color: rgb(156, 162, 165);
}

.logo-sm {
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.83rem;
  color: rgb(156, 162, 165);
}

h4, .h4  {
  font-family: 'Roboto Slab', serif;
  font-weight: 300;
  font-size: 2rem;
  line-height: 2rem;
}

h5 {
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
}

.permmarker {
  font-family: 'Permanent Marker', cursive;
}

.rotate-a-bit {
  transform: rotate(358deg);
}

.border-overblack {
  border: 1px solid rgb(55, 55, 55);
}

.light-gray-border {
  border-bottom: 1px solid var(--border-color);
}

.light-gray {
  background-color: rgb(233, 237, 240);
}

.nav-link-color {
  font-family: 'Roboto Slab', serif !important;
  color: rgb(112, 117, 119) !important;
  font-weight: 400 !important;
}

.nav-link-color:hover {
  color: rgb(117, 128, 133) !important;
  background-color: rgb(214, 218, 221) !important;
}

.symbolbadge {
  background-color:rgb(227, 224, 224);
  color: black;
  border: 2px solid rgb(55, 55, 55);
  padding: 0.2rem 0.5rem;
  font-weight: 600;
}

.custom-link {
  color: rgb(42, 180, 0) !important;
}

.text-up {
  color: rgb(42, 180, 0);
}

.text-down {
  color: rgb(245, 4, 0);
}

.text-even {
  color: rgb(255, 255, 255);
}

.text-lightgray {
  color: rgb(139, 145, 148);
}

.btn-success {
  background-color: rgb(42, 180, 0) !important;
}

.btn-success:hover {
  background-color: rgb(35, 150, 0) !important;
}

tr.table-strong td{
  background-color: rgb(42, 180, 0) !important;
}

.pre-scrollable {
  white-space: pre-wrap;
  word-wrap: break-word;
  min-width: 0%;
  max-width: 100%; /* Set the maximum width to the available width of the parent */
  overflow-x: auto; /* Enable horizontal scrolling if content overflows */
}

.backtestBar {
  background-color: #31668e; /* Background color of the gutter */
  padding: 2px 4px !important; /* Padding around each line number */
}


.codeEditor {
  font-family: monospace;
  resize: vertical; /* Allow vertical resizing */
  max-height: 1000px; /* Set a maximum height to prevent infinite growth */
  width: 100%; /* Expand to the full width of its container */
}

.CodeMirror-gutter {
  background-color: #272822; /* Background color of the gutter */
  padding: 2px 4px !important; /* Padding around each line number */
}

.CodeMirror-linenumber {
  color: #a6a899 !important;  /* Line number color */
}

.markdown-content pre, code {
  background-color: #222222;
  color: #ededed;
  padding: 8px 8px;
  border-radius: 4px;
  line-height: 1.5rem;
  font-size: 0.8rem;
}

.markdown-content th {
  padding: 4px 8px;
  border-bottom: 1px solid black;
}

.markdown-content td {
  padding: 4px 8px;
}

.markdown-content a {
  text-decoration: none;
}

.markdown-content h4 {
  padding-bottom: 0.1rem;
  margin-bottom: 0.2rem;
  padding-top: 0.8rem;
}

.custom-paging {
  background-color: transparent !important;
}

.text-up-highlight {
  background-color: rgb(42, 180, 0);
  color: white;
}
.text-down-highlight {
  background-color: rgb(245, 4, 0);
  color: white;
}

.scroll-fade {
  position: relative;
  overflow-y: auto;
}

.scroll-fade::after {
  content: '';
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px; /* Adjust height as needed */
  background: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
  pointer-events: none;
  display: block;
  z-index: 1; /* Ensures fade is on top */
  margin-top: -40px; /* Pulls gradient upward to overlay text */
}


.alert-message {
    background-color: var(--bs-warning-bg-subtle, #fff3cd);
    color: var(--bs-warning-text, #664d03);
    border: none;
    border-bottom: 1px solid var(--bs-warning-border-subtle, #ffecb5);
    padding: var(--bs-btn-padding-y, 0.375rem) var(--bs-btn-padding-x, 0.75rem);
    border-radius: 0;
    margin-bottom: 1rem;
}

/* Variants with bright bottom borders */
.alert-message.warning {
    background-color: var(--bs-warning, #ffc107);
    color: var(--bs-dark);
    border-bottom: 1px solid #fff8d7;  /* Brighter yellow */
}

.alert-message.danger {
    background-color: var(--bs-danger, #dc3545);
    color: var(--bs-white);
    border-bottom: 1px solid #f89e9e;  /* Brighter red */
}

.alert-message.success {
    background-color: var(--bs-success, #198754);
    color: var(--bs-white);
    border-bottom: 1px solid #58dc77;  /* Brighter green */
}