:root
{
    --brand-ts-black: #03001b;
    --brand-ts-green: #53eb8c;
}

body[data-leftbar-theme=dark]
{
    --ct-bg-leftbar: var(--brand-ts-black);
}

html,body
{
    color: black;
    --ct-body-font-size: 0.8rem;
    --ct-table-color: black;

    background-size: cover;
    background-position: center;
}

a
{
    color: #137eff;
}

.account-user-name
{
    min-width: 125px;
}

#body_container
{
    padding-left: 5px;
    padding-right: 5px;
}
				       
.btn
{
    font-size: 0.7rem;
}

.btn-primary
{
    background-color: #137eff;
    border-color: #137eff;
}

.btn-primary.disabled, .btn-primary:disabled
{
    color: #fff;
    background-color: #98a6ad;
    border-color: #98a6ad;
    box-shadow: 0 2px 6px 0 #98a6ad;
    -webkit-box-shadow: 0 2px 6px 0 #98a6ad;
}

.btn-primary:hover
{
    background-color: #2c8ef8;
    border-color: #2c8ef8;
}

.btn-outline-primary
{
    color: #137eff;
    border-color: #137eff;
}

.btn-tsgreen
{
    color: #000;
    background-color: var(--brand-ts-green);
    border-color: var(--brand-ts-green);
}

.btn-tsgreen:hover, .btn-outline-tsgreen:hover
{
    color: #000;
    background-color: var(--brand-ts-green);
    filter: brightness(0.8);
}

.btn-tsgreen:focus, .btn-outline-tsgreen:focus
{
    -webkit-box-shadow: 0 0 0 .2rem rgba(114, 245, 134, 0.25);
    box-shadow: 0 0 0 .2rem rgba(114, 245, 134, 0.25);
}

.btn-tsgreen:active, .btn-outline-tsgreen:active
{
    color: #000!important;
    background-color: var(--brand-ts-green)!important;
    filter: brightness(0.5);
}

.btn-outline-tsgreen
{
    color: var(--brand-ts-green);
    border-color: var(--brand-ts-green);
}

.text-bg-info
{
  color: #fff!important;
}

.card
{
    margin-top: 10px !important;
    margin-bottom: 0px;
}

.row-equal-height > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.row-equal-height > [class*="col-"] > .card {
    flex: 1;
}

.content-page-full-width
{
    margin-left: 0px !important;
    padding-bottom: 10px !important;
    padding-top: 10px !important;
}

.chat_bubble_container {
    position: relative; 
}

.chat_bubble_container:hover .chat_bubble_overlay, .chat_bubble_container:hover .chat_bubble_owner_overlay {
    opacity: 1;
}

.chat_bubble_overlay {
    position: absolute;
    right: -75px; 
    top: 25%;
    opacity: 0;
    transition: opacity .5s ease-in-out;
}

.chat_bubble_owner_overlay {
    position: absolute;
    left: -75px;
    top: 25%;
    opacity: 0;
    transition: opacity .5s ease-in-out;
}

.chat_session_date
{
    color: #98a6ad;
    font-size: .6875rem;
    font-style: italic;
}

.delete_hover
{
    color: #f59c95;
    transform: rotate(-45deg);
}

.dislike {
    color: #f59c95;
}

.drop_file_zone
{
    border: 1px dashed #ccc;
}

.drop_file_zone_inner
{
    text-align: center;
    padding: 10px;
}

.dropdown-lg
{
    width: auto !important;
}

.dropped_files_list
{
    text-align: left;
    margin-top: 10px;
}

.dropped_item
{
    background-color: #f5f5f5;
    border: 1px solid #dcdcdc;
    padding: 4px 4px 4px 8px;
    margin-top: 3px;
    margin-bottom: 3px;
}

.dropped_item_name
{
    margin-right: 5px;
}

.dynamic-large-heading
{
    margin-bottom:5px;
    margin-top:20px;
    white-space: pre-line;
}

.dynamic-paragraph
{
    clear:both;
    margin-bottom:10px;
    margin-top:10px;
    white-space: pre-line
}

.dynamic-sub-heading
{
    margin-bottom:5px;
    margin-top:20px;
    white-space: pre-line;
}

.dynamic-sub-sub-heading
{
    margin-bottom:5px;
    margin-top:20px;
    white-space: pre-line;
}

.footer
{
    visibility: hidden;
}

.footer-full-width
{
    left: 0px;
}

.form-control
{
    font-size: 0.8rem;
}

.header-title
{
    float: left;
}

hr.chat_rounded {
    border-top: 8px solid #bbb;
    border-radius: 5px
}

hr.chat_solid {
    border-top: 3px solid #bbb;
}

.icon-button {
    background-color: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.item_hovered {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px; 
    padding:10px;
}

.leftside-menu
{
    visibility: hidden;
}

.terminal-darkmode
{
    color: #FFFFFF !important;
    background-color: #0C0C0C !important;
}

.like
{
    color : #95f5af;
}

.logo-lg
{
    margin-left:-20px;
}

.map_auto_size
{
    aspect-ratio: 1 / 1;
    max-height: 80vh;
}

.map_container
{
    min-height: 512px;
    width: 100%;
}

.map_placeholder
{
    text-align: center;
    line-height: 450px;
    font-size: 20px;
}

.me-0
{
    margin-left: 0px !important;
}

.navbar-custom
{
    visibility: hidden;
}

.new_chat_button
{
    position: absolute;
    right: 15px;
    top: 15px;
}

.pagination
{
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px;
}

.pagination > li
{
    display: inline;
}

.pagination > li > a,
.pagination > li > span
{
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #337ab7;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
}

.pagination > li:first-child > a,
.pagination > li:first-child > span
{
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.pagination > li:last-child > a,
.pagination > li:last-child > span
{
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus
{
    color: #23527c;
    background-color: #eee;
    border-color: #ddd;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus
{
    z-index: 2;
    color: #fff;
    cursor: default;
    background-color: #337ab7;
    border-color: #337ab7;
}

.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus
{
    color: #777;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #ddd;
}

.pagination-lg > li > a,
.pagination-lg > li > span
{
    padding: 10px 16px;
    font-size: 18px;
}

.pagination-lg > li:first-child > a,
.pagination-lg > li:first-child > span
{
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.pagination-lg > li:last-child > a,
.pagination-lg > li:last-child > span
{
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.pagination-sm > li > a,
.pagination-sm > li > span
{
    padding: 5px 10px;
    font-size: 12px;
}

.pagination-sm > li:first-child > a,
.pagination-sm > li:first-child > span
{
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.pagination-sm > li:last-child > a,
.pagination-sm > li:last-child > span
{
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.panel_toolbox
{
    float: right;
}

.panel_toolbox>li>a
{
    color: #C5C7CB !important;
    margin-left: 5px;
}

.pinned
{
    color: #337ab7;
    transform: rotate(-45deg);
}

#query_suggestions
{
    padding: 0px !important;
}

#query_suggestions>.card
{
    margin-top: 0px !important;
}


.row
{
    --ct-gutter-x: 10px;
}

.row>.btn
{
    width: auto;
}

.btn-safe-group {
    word-break: break-word;
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    row-gap: 10px;
}


.btn-safe-warp {
    grid-row-gap: 10px
}

.chat_selected {
    background-color: rgba(17, 35, 238, 0.075);
    border-radius: 10px; 
    padding:10px;
}

.surface {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    padding: 5px;
}

.surface:hover {
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}

.table
{
    vertical-align:middle;
}

.table-container
{
    margin-top: 10px;
    margin-bottom: 10px;
    white-space: pre-line;
}

.user-dd
{    
    padding-left: 10px;
    padding-right:  10px;
    position: relative !important;
}

.vertical-line {
    display: inline-block;
    border-left: 1px solid black;
    height: 100%;
    margin: 0 20px
}

.wizard_vertical > a
{
    color: black;
}

.wizard_vertical .stepContainer
{
    width: 80%;
    float: left;
    padding: 0 10px;
}

.wizard_vertical .wizard_content
{
    width: 80%;
    float: left;
    padding-left: 20px;
}

.wizard_vertical ul.wizard_steps
{
    display: table;
    list-style: none;
    position: relative;
    width: 20%;
    float: left;
    margin: 0 0 20px;
}

.wizard_vertical ul.wizard_steps li
{
    display: list-item;
    text-align: center;
}

.wizard_vertical ul.wizard_steps li a
{
    height: 80px;
}

.wizard_vertical ul.wizard_steps li a:first-child
{
    margin-top: 20px;
}

.wizard_vertical ul.wizard_steps li a,
.wizard_vertical ul.wizard_steps li:hover
{
    display: block;
    position: relative;
    -moz-opacity: 1;
    filter: alpha(opacity= 100);
    opacity: 1;
    color: black;
}

.wizard_vertical ul.wizard_steps li a:before
{
    content: "";
    position: absolute;
    height: 100%;
    background: #ccc;
    top: 20px;
    width: 4px;
    z-index: 4;
    left: 49%;
}

.wizard_vertical ul.wizard_steps li a.disabled .step_no
{
    background: #ccc;
}

.wizard_vertical ul.wizard_steps li a .step_no
{
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 100px;
    display: block;
    margin: 0 auto 5px;
    font-size: 16px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.wizard_vertical ul.wizard_steps li a.selected:before, .step_no
{
    background: #34495E;
    color: #fff;
}

.wizard_vertical ul.wizard_steps li a.done:before, .wizard_vertical ul.wizard_steps li a.done .step_no
{
    background: #1ABB9C;
    color: #fff;
}

.wizard_vertical ul.wizard_steps li:first-child a:before
{
    left: 49%;
}

.wizard_vertical ul.wizard_steps li:last-child a:before
{
    left: 49%;
    left: auto;
    width: 0;
}

.table-responsive:has(span.twitter-typeahead)
{
    overflow: initial;
}


.form-check-input:not(:checked) {
    border-color: #b4b9be;
}

/* STATUS DOTS */
.status-dot {
  --default-color: transparent;
  height: 0.5rem;
  width: 0.5rem;
  color: var(--default-color);
  background-color: currentColor;
  border-color: grey;
  border-radius: 50%;
  border-width: 1px;
  border-style: solid;
  display: inline-block;
}

@keyframes status-dot-blinking {
  0%, 49% {background-color: --var(-default-color);}
  50%, 100% {background-color: currentColor;}
}

.status-dot.blinking {
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: linear;
  animation-name: status-dot-blinking;
}

@keyframes status-dot-pulsing {
  0%, 75% {background-color: --var(-default-color);}
  100% {background-color: currentColor;}
}

.status-dot.pulsing {
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95);
  animation-name: status-dot-pulsing;  
}

/* Horizontal Splitter */
.hsplit-container
{
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}

.hsplit-top
{
    overflow: auto;
    flex-shrink: 0;
}

.hsplit-bottom
{
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 0;
    min-height: 0;
}

.hsplit-bottom > div
{
    min-height: 100%;
}

.hsplit-handle
{
    flex-shrink: 0;
    height: 8px;
    background-color: #e0e0e0;
    cursor: row-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background-color 0.15s;
    z-index: 10;
}

.hsplit-handle:hover,
.hsplit-handle.hsplit-dragging
{
    background-color: #137eff;
}

.hsplit-handle-grip
{
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background-color: #aaa;
    box-shadow: 0 -3px 0 #aaa, 0 3px 0 #aaa;
    transition: background-color 0.15s;
}

.hsplit-handle:hover .hsplit-handle-grip,
.hsplit-handle.hsplit-dragging .hsplit-handle-grip
{
    background-color: #fff;
    box-shadow: 0 -3px 0 #fff, 0 3px 0 #fff;
}

/* Popovers */
.th-popover {
  position: fixed;
  background: rgba(20,20,20,.93);
  color: #fff;
  font-size: 0.7rem;
  padding: 6px 10px;
  border-radius: 5px;
  pointer-events: none;
  z-index: 9999;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  display: none;
  min-width: 140px;
  max-width: 260px;
  white-space: pre-line;
}

/* TOP BAR MENU SELECTOR */
.tbm {
  --tbm-transition: 320ms cubic-bezier(0.45, 0.05, 0.25, 1);
  margin-top: 10px;
  padding: 6px;
}

.tbm_item {
  flex: 1 1 0;
  gap: 8px;
  padding: 12px 8px;
  cursor: pointer;
  line-height: 1.1;
  color: var(--bs-secondary);
  border-radius: var(--bs-border-radius);
  transition: color var(--tbm-transition);
}

.tbm_item:hover,
.tbm_item.is_active { color: var(--bs-primary); }

.tbm_item .tbm_icon { font-size: var(--tbm-icon-size, 30px); }
.tbm_item .tbm_label { font-size: 15px; white-space: nowrap; }

/* Layout: stacked (icon above label) vs inline (icon beside label) */
.tbm[data-layout="stacked"] .tbm_item { flex-direction: column; gap: 6px; }
.tbm[data-layout="inline"] .tbm_item { flex-direction: row; gap: 10px; }
.tbm[data-layout="inline"] .tbm_item .tbm_icon { font-size: var(--tbm-icon-size, 22px); }

/* Sliding selector element */
.tbm_indicator {
  left: 0;
  width: 0;
  transition: transform var(--tbm-transition), width var(--tbm-transition);
  will-change: transform, width;
}

.tbm[data-indicator="underline"] .tbm_indicator {
  bottom: 6px;
  height: 3px;
  border-radius: var(--bs-border-radius-sm);
  background-color: var(--bs-primary);
}

.tbm[data-indicator="pill"] .tbm_indicator {
  top: 6px;
  bottom: 6px;
  border-radius: var(--bs-border-radius);
  background-color: rgba(85, 128, 249, 0.10);
  box-shadow: inset 0 0 0 1px rgba(85, 128, 249, 0.25);
}

.tbm.no_anim .tbm_indicator { transition: none; }
