﻿/* The validate-msg box is shown when the user clicks on the password field */
#validate-msg {
    color: #000;
    position: relative;
    padding: 20px;
    margin-top: 10px;
}

/* Add a green text color and a checkmark when the requirements are right */
.valid-pwd {
    color: green;
}

    .valid-pwd:before {
        position: relative;
        left: -35px;
        content: "✔";
    }

.dz-filename {
    position: absolute;
    top: -25px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width:120px !important;
}

    .dz-filename:hover {
        white-space: initial !important;
        word-wrap: break-word !important;
    }
    /* Add a red text color and an "x" when the requirements are wrong */
    .invalid-pwd {
        color: red;
    }

    .invalid-pwd:before {
        position: relative;
        left: -35px;
        content: "✖";
    }

.modal-item-name {
    font-weight: bold !important;
    font-style: italic !important;
}

.card-body-tabs {
    background-color: #f6f6f6;
}

.datatable-selected-row {
    background-color: #e0e8f8 !important;
    color: #000 !important;
}

a.anchor {
    display: block;
    position: relative;
    top: -100px;
    visibility: hidden;
}

.btn-outline-primary-custom {
    color: #2979ff !important;
    border-color: #2979ff !important;
}

.user-group-permission-checkbox {
    background-color: #bcd5ff !important;
}

.georegion-row-color {
    background-color: #ededed;
}

.zone-row-color {
    background-color: #f6f6f6;
}

.arrow-label-margin {
    margin-bottom: 0px;
}

.custom-img-icon {
    height: 18px;
    width: 18px;
    opacity: 0.65;
}

    .custom-img-icon:hover {
        opacity: 1.0;
    }

.feather-16 {
    width: 16px;
    height: 16px;
}

.feather-24 {
    width: 24px !important;
    height: 24px !important;
}

.feather-32 {
    width: 32px;
    height: 32px;
}

.feather-42 {
    width: 42px;
    height: 42px;
}


.feather-64 {
    width: 64px;
    height: 64px;
}

.feather-100 {
    width: 100px;
    height: 100px;
}

.modal {
    overflow: auto !important;
}

.mce-tinymce {
    width: calc(100% - 2px) !important;
}

.toTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
}

.page-subtitle-strong {
    font-weight: 400;
}

.select2-option-l1 {
    font-weight: 500;
}

.select2-option-l2 {
    padding-left: 1em;
}

.google-map {
    height: 35em;
}

.google-map-search-panel {
    position: absolute;
    top: 22px;
    left: 19%;
    z-index: 5;
    background-color: #fff;
    padding: 5px;
    border: 1px solid #999;
    text-align: center;
    font-family: 'Roboto','sans-serif';
    line-height: 30px;
    padding-left: 10px;
}

/* Image size based on 4:3 aspect ratio */
.img-gallery-size {
    width: 300px;
    height: 225px;
    object-fit: cover;
}

.custom-dropzone {
    border: dashed !important;
    border-color: #028AF4 !important;
    border-radius: 10px;
}

.dz-message {
    font-size: 20px;
}

#dropzone-property-image .dz-preview .dz-progress {
    opacity: 0;
}


span.is-invalid {
    border: #ff1744 solid 1px;
    border-radius: .2rem;
}

span.is-valid {
    border: #00c853 solid 1px;
    border-radius: .2rem;
}

.table-row-gray {
    background-color: #ededed;
}

/* TippyJS light theme */
.tippy-box[data-theme~='light'] {
    background-color: whitesmoke;
    color: darkslategray;
}

    .tippy-box[data-theme~='light'][data-placement^='top'] > .tippy-arrow::before {
        border-top-color: whitesmoke;
    }

    .tippy-box[data-theme~='light'][data-placement^='bottom'] > .tippy-arrow::before {
        border-bottom-color: whitesmoke;
    }

    .tippy-box[data-theme~='light'][data-placement^='left'] > .tippy-arrow::before {
        border-left-color: whitesmoke;
    }

    .tippy-box[data-theme~='light'][data-placement^='right'] > .tippy-arrow::before {
        border-right-color: whitesmoke;
    }
/* End TippyJS light theme */

.wide-table td,
.wide-table th {
    white-space: nowrap;
    width: 1%;
}

.help-subtitle-icon {
    margin-top: -2px;
}

/* Styles for hover color on datatable rows */
.datatable-hover-rows tbody tr:hover {
    background-color: #e9ecef !important;
    color: rgba(0,0,0,.5)    !important;
}

    .datatable-hover-rows tbody tr:hover > .sorting_1 {
        background-color: #e9ecef !important;
        color: #000;
    }

.disabled {
    pointer-events: none;
    background-color: #e9ecef;
}

.dz-progress {
    /* progress bar covers file name */
    display: none !important;
}

.sidebar {
    min-width: 300px;
    max-width: 300px;
}

.sidebar-sticky .sidebar-content {
    width: 300px;
}

.sidebar.toggled {
    margin-left: -300px
}

    .sidebar.toggled .sidebar-content {
        left: -300px
    }

@media (min-width:1px) and (max-width:991.98px) {
    .sidebar {
        margin-left: -300px
    }

        .sidebar .sidebar-content {
            left: -300px
        }

        .sidebar.toggled {
            margin-left: 0
        }

            .sidebar.toggled .sidebar-content {
                left: 0
            }

    .sidebar-collapsed {
        margin-left: 0
    }

        .sidebar-collapsed .sidebar-content {
            left: 0
        }

        .sidebar-collapsed.toggled {
            margin-left: -300px
        }

            .sidebar-collapsed.toggled .sidebar-content {
                left: -300px
            }
}


.dt-button {
    padding-left: 5px;
    width: 150px;
    text-align: left;
}

div.dt-button-collection.dropdown-menu.fixed.four-column {
    margin-left: -350px
}

div.dt-button-collection.dropdown-menu.four-column {
    width: 616px;
    padding-bottom: 1px;
    -webkit-column-count: 4;
    -ms-column-count: 4;
    -o-column-count: 4;
    column-count: 4
}

.hidden {
    display: none;
}

.showPropertySummary {
    cursor: pointer;
}

.cursor-pointer {
    cursor: pointer;
}


/* Datatable Editor Modal title bold */
.DTE_Header_Content {
    font-weight: 500;
}

.DTE_Processing_Indicator {
    display: none !important;
}

.nav-icon {
    border: none;
}

/* Img card top on desktop */
@media only screen and (min-width: 600px) {
    .card-img-top {
        width: 100%;
        height: 10vw;
        object-fit: cover;
    }
}


.bg-stickynote {
    background-color: #ffff88 !important;
}

.bg-peach {
    background-color: #FFE5B4 !important;
}

.bg-pink {
    background-color: #fddde6 !important;
}

.text-white {
    color: white;
}


.bg-purple {
    background-color: #6D3580 !important;
}

.bg-orange {
    background-color: #E4734F !important;
}

.nav-wide-tabs {
    background-color: #76a9ff !important;
    overflow-x: auto !important;
    flex-wrap: initial !important;
}

.datatables-align-top {
    vertical-align: top !important;
}

.money {
    min-width: 89px;
    max-width: 184px;
}

.date {
    min-width: 103px;
    max-width: 110px !important;
}

.selected {
    border: 2px dashed #2979ff;
    -moz-box-shadow: 1px 2px 3px rgba(0,0,0,.5);
    -webkit-box-shadow: 1px 2px 3px rgba(0,0,0,.5);
    box-shadow: 1px 2px 3px rgba(0,0,0,.5);
}

.quickLinks-border {
    border-color: #e5e9f2 !important;
}

.forbidden {
    background: #ff1744; 
    opacity: 0.65;
    cursor: not-allowed !important;
}


.marquee {
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
}

    .marquee > * {
        display: inline-block;
        padding-left: 100%;
        animation: marquee 180s linear infinite;
    }

/* Make it move */
@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.bg-dark {
    z-index: 999;
}

.qualityMeterOverImg {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px;
    background-color: #00000010;
    height: 40px;
    width: 40px;
}

.qualityMeterOnTableActions {
    padding: 5px;
    height: 40px;
    width: 40px;
}

.modal-header-ai {
    background-color: #00c853;
}

.modal-header-ai-error {
    background-color: #ff1744;
}

.modal-title-ai {
    color: white;
}

/* Reusable modern AI button skin */
.btn-ai-modern {
    --ai-g1: #00c853;
    --ai-g2: #00c853;
    --ai-g3: #00c853; 

    border: 0 !important;
    color: #fff !important;
    background: linear-gradient(160deg, var(--ai-g1), var(--ai-g2)) !important;
    border-radius: 9999px; /* pill */
    padding-inline: .95rem !important; /* keep existing btn-sm height, improve width */
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 6px 18px rgba(16,185,129,.28);
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}

    .btn-ai-modern:hover {
        background: linear-gradient(160deg, var(--ai-g3), var(--ai-g1)) !important;
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(16,185,129,.35);
    }

    .btn-ai-modern:active {
        transform: translateY(0);
        box-shadow: 0 4px 14px rgba(16,185,129,.25);
    }

    .btn-ai-modern:focus-visible {
        outline: 3px solid rgba(16,185,129,.35);
        outline-offset: 2px;
    }

    /* Normalize any icon inside (Font Awesome, inline SVG, Feather, etc.) */
    .btn-ai-modern svg,
    .btn-ai-modern i,
    .btn-ai-modern .fa,
    .btn-ai-modern .fas,
    .btn-ai-modern .far,
    .btn-ai-modern .fal,
    .btn-ai-modern .fab {
        width: 18px;
        height: 18px;
        line-height: 1;
        vertical-align: middle;
        fill: currentColor;
        color: currentColor;
    }

    /* Optional small spinner you can toggle with .loading */
    .btn-ai-modern .spinner {
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255,255,255,.35);
        border-top-color: #fff;
        border-radius: 50%;
        display: none;
        animation: ai-spin .7s linear infinite;
    }

    .btn-ai-modern.loading .spinner {
        display: inline-block;
    }

    .btn-ai-modern.loading {
        pointer-events: none;
        opacity: .9;
    }

/* Spinner wrapper */
.ai-modern-spinner {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    /* Rotating green ring */
    .ai-modern-spinner::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border: 4px solid rgba(0, 200, 83, 0.2);
        border-top-color: #00c853;
        border-radius: 50%;
        animation: ai-spin 0.8s linear infinite;
    }

    /* Icon in center */
    .ai-modern-spinner svg {
        width: 1.4rem;
        height: 1.4rem;
        z-index: 1;
        color: #00c853;
        fill: currentColor;
    }

@keyframes ai-spin {
    to {
        transform: rotate(360deg);
    }
}

#DTE_Field_sequenceNo {
    min-width: 90px;
}

#imgDatatable tr:not(:first-child) {
    height: 310px !important;
}


#modal-ai-image .ai-wizard-step-indicators {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#modal-ai-image .ai-wizard-step-indicator {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    background-color: #f8f9fa;
    color: #6c757d;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

    #modal-ai-image .ai-wizard-step-indicator.active {
        background-color: #00c853;
        color: #fff;
        border-color: #00c853;
        font-weight: 600;
    }

    #modal-ai-image .ai-wizard-step-indicator.completed {
        background-color: #e9f2ff;
        color: #0056b3;
        border-color: #b8d4ff;
    }

#modal-ai-image .ai-wizard-pane {
    display: none;
}

    #modal-ai-image .ai-wizard-pane.active {
        display: block;
    }

#modal-ai-image .ai-step-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

#modal-ai-image .ai-step-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

#modal-ai-image .ai-option-group {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
}

#modal-ai-image .ai-option-radio {
    margin-bottom: 0.5rem;
}

    #modal-ai-image .ai-option-radio:last-child {
        margin-bottom: 0;
    }

#modal-ai-image .ai-option-description {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
}

#modal-ai-image .ai-summary-list dt {
    font-weight: 600;
    color: #495057;
}

#modal-ai-image .ai-summary-list dd {
    margin-bottom: 0.5rem;
}

#modal-ai-image .ai-summary-value {
    font-weight: 500;
}

#aiWizardLoading {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#btn-ai-image .spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-right-color: transparent;
    border-radius: 50%;
    animation: ai-btn-spin 0.75s linear infinite;
}

#btn-ai-image.is-loading .spinner {
    display: inline-block;
}

#btn-ai-image.is-loading .label {
    opacity: 0.6;
}

.ai-progress-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem
}

.ai-progress-label {
    font-weight: 600;
    font-size: .95rem
}

.ai-progress {
    width: 260px;
    height: 10px;
    background: #e9ecef;
    border-radius: 999px;
    overflow: hidden
}

.ai-progress-bar {
    height: 100%;
    width: 0%;
    background: #00c853;
    transition: width .4s ease
}

.ai-progress-pct {
    font-variant-numeric: tabular-nums;
    font-size: .9rem;
    opacity: .8
}

.ai-modern-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 38px;
    margin-bottom: .5rem
}

.ai-credit-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background-color: rgba(0, 0, 0, 0.04);
}

.ai-credit-count {
    margin-left: 0.35rem;
    background-color: #00c853;
    color: #ffffff;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
}

/* Make the button look like a neat square icon, same spirit as the sample */
.ai-credit-link .ai-credit-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 6px; /* "square" with subtle rounding */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fb; /* tweak if your navbar is dark */
    border: 1px solid rgba(0,0,0,.08);
}

.ai-credit-link svg {
    display: inline-block;
}

/* Position the badge top-right like .indicator in the sample,
   but style it for credits (green #00c853) */
.indicator-credits {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #00c853 !important;
    color: #fff;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--navbar-bg, #fff); /* halo; adjust to your navbar bg */
}

/* Optional: if your navbar is dark, invert box bg/border to blend */
.navbar-dark .ai-credit-link .ai-credit-icon-box {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
}

.navbar-dark .indicator-credits {
    box-shadow: 0 0 0 2px rgba(33,37,41,1); /* or your dark bg token */
}


#modal-ai-desc .ai-slider-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#modal-ai-desc .ai-slider-control {
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    padding: 1.2rem 1.5rem;
}

#modal-ai-desc .ai-slider-wrapper {
    position: relative;
    padding: 0.75rem 0 0.5rem;
}

#modal-ai-desc .ai-range-input {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
}

#modal-ai-desc .ai-range-input:focus {
    outline: none;
}

#modal-ai-desc .ai-range-input::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.4) 0%, rgba(40, 167, 69, 0.4) var(--ai-slider-percent, 50%), #dee2e6 var(--ai-slider-percent, 50%), #dee2e6 100%);
}

#modal-ai-desc .ai-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #28a745;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.25);
    margin-top: -7px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#modal-ai-desc .ai-range-input:active::-webkit-slider-thumb {
    transform: scale(1.05);
    box-shadow: 0 0 0 6px rgba(40, 167, 69, 0.25);
}

#modal-ai-desc .ai-range-input::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background-color: #dee2e6;
}

#modal-ai-desc .ai-range-input::-moz-range-progress {
    height: 4px;
    border-radius: 999px;
    background-color: rgba(40, 167, 69, 0.4);
}

#modal-ai-desc .ai-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #28a745;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.25);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#modal-ai-desc .ai-range-input:hover::-moz-range-thumb,
#modal-ai-desc .ai-range-input:hover::-webkit-slider-thumb {
    box-shadow: 0 0 0 6px rgba(40, 167, 69, 0.25);
}

#modal-ai-desc .ai-slider-marks {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #6c757d;
}

#modal-ai-desc .ai-slider-marks span {
    position: relative;
    flex: 0 1 auto;
    min-width: 2.5rem;
    text-align: center;
    padding-top: 0.65rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

#modal-ai-desc .ai-slider-marks span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background-color: #cfd4da;
    border-radius: 999px;
}

#modal-ai-desc .ai-slider-marks span.active {
    color: #28a745;
    font-weight: 600;
}

#modal-ai-desc .ai-slider-marks span.active::before {
    background-color: #28a745;
    height: 12px;
}

#modal-ai-desc .ai-slider-marks--labels span {
    min-width: 0;
    padding-top: 0.75rem;
}

