/* Text styles */

.pagetitle {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.appname {
    margin: 0;
    font-size: 18px;
    font-weight: 300;
}

.pagelogo {
    height: 40px;
    margin-right: 10px;
}

.pagelink, .pagelink:visited, .pagelink:hover {
    color: var(--tblr-heading-color, inherit);
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-right: 4px;
}

/* Responsive */

@media (max-width: 767px) {
    #navbar {
        display: none;
    }
}

@media (min-width: 768px) {
    #sidebar {
        display: none;
    }
}

* {
    scrollbar-color: unset !important;
}

/* Table style */

.dataTables_scrollHead {
    background-color: var(--tblr-bg-surface-tertiary);
}

.row.card-body {
    background-color: var(--tblr-bg-surface-tertiary);
}

table.dataTable > thead > tr > th {
    white-space: normal;
    word-wrap: break-word;
}

.data_table_row_warning {
    background-color: #fff3cd;
}

/* Table interactivity */

.row-selectable:hover {
    cursor: pointer;
    background-color: var(--tblr-body-bg);
}

/* Inputs */

.non-editable-checkbox {
    pointer-events: none;
    opacity: 1;
}

.ts-dropdown {
    z-index: 9999; /* Ensure it's above other elements */
}

[data-bs-theme="dark"] {

    .ts-dropdown,
    .ts-control,
    .ts-control input {
      color: #ffffff !important;
    }

    .ts-control,
    .ts-wrapper.single.input-active .ts-control {
      background: #000000;
    }

    .ts-dropdown {
      border: 1px solid #616161;
      background: var(--tblr-bg-forms);
    }

    .ts-dropdown .active {
      background-color: #636363;
      color: #ffffff;
    }

    .ts-wrapper.multi .ts-control > div {
      background: #636363;
      color: #ffffff;
      border: 0 solid #b6b6b6;
    }
}

/* Admin */

.selector {
    width: 100% !important;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}
.selector select {
    width: unset !important;
    min-width: 380px;
    height: 17.2em;
    background-color: #fff !important;
}
.selector-available, .selector-chosen {
    width: unset !important;
    float: unset;
    text-align: center;
    margin-bottom: 5px;
}

/* Translatable text widget */

.translatable-widget {
    position: relative;
    display: flex;
    align-items: center;
}

.translatable-widget textarea {
    width: 100%;
    padding-right: 46px; /* space for icon */
    box-sizing: border-box;
}

.translatable-widget .btn-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0;
}

.modal.modal-top {
  z-index: 1060; /* higher than the first modal */
}
.modal-backdrop.modal-backdrop-top {
  z-index: 1055; /* sits between backdrop and modal */
}


/* Layouts */

.hide-empty:empty {
    display: none;
}

/* Chrome, Safari, Edge */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* Alert banners */

.alert-text {
    margin-top: 2px;
}

/* Forms */

.form-kpi {
    display: block;
    width: 100%;
    padding: .4375rem 0;
    font-family: var(--tblr-font-sans-serif);
    border-radius: var(--tblr-border-radius);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4285714286;
    color: inherit;
    background-color: transparent;
    background-clip: padding-box;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: 0 0 transparent;
    transition: none;
}

/* Modals */

.modal-body {
    scroll-behavior: smooth;
}

/* AI box */

.ai-box {
    box-shadow: 0 0 20px rgba(111, 0, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.ai-btn {
    background: linear-gradient(135deg, #6f00ff, #00c3ff);
    color: white;
    border: none;
    /*padding: 0.75rem 1.5rem;*/
    /*font-size: 1.1rem;*/
    /*font-weight: 600;*/
    /*border-radius: 50px;*/
    /*box-shadow: 0 0 15px rgba(111, 0, 255, 0.4);*/
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.ai-btn:hover {
    transform: scale(1.05);
    color: white;
    box-shadow: 0 0 25px rgba(0, 195, 255, 0.6);
}

.ai-btn:hover::before {
    opacity: 1;
}

/* Badges */

.badge-nav-link{
    transform: translate(50%, -50%);
}

/* FiO Index */

.dial {
    width: 200px;
}

.dial-value {
    margin-top: -85px;
    font-weight: 650;
    text-align: center;
    font-size: 30px;
}

/* Heimdllr */

#new-alert-map { height: 250px !important;}
@media (min-width: 768px) {  /* md breakpoint */
  #new-alert-map { height: 540px !important; }
}
