/* Styles for the Tuto Manager */
.tm-fill-blue {
    fill: #007BFF !important;
}

.tm-fill-green {
    fill: #4CAF50 !important;
}

.tm-text-green {
    color: #4CAF50 !important;
}

.tm-text-orange {
    color: #ff9800 !important;
}

.tm-text-green svg {
    fill: #4CAF50 !important;
}

.tm-text-orange svg {
    fill: #ff9800 !important;
}

.tm-green {
    color: #fff !important;
    background-color: #4CAF50 !important;
}

.tm-orange {
    color: #fff !important;
    background-color: #ff9800 !important;
}

.tm-opacity-min {
    opacity: 0.25 !important;
}

.tm-grayscale-max {
    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important;
}

.tm-padding-small {
    padding: 4px 8px !important
}

.tm-hide {
    display: none !important
}

.tm-show-block,
.tm-show {
    display: block !important
}

.tm-show-inline-block {
    display: inline-block !important
}

.tm-cursor-pointer {
    cursor: pointer !important;
}

.tm-cursor-move {
    cursor: move !important;
}

.tm-icon-lg,
.tm-icon-lg svg {
    width: 28px !important;
    height: 28px !important;
    fill: #007BFF;
}

.tm-icon-md,
.tm-icon-md svg {
    width: 22px !important;
    height: 22px !important;
    fill: #007BFF;
}

.tm-icon-sm,
.tm-icon-sm svg {
    width: 18px !important;
    height: 18px !important;
    fill: #007BFF;
}

/* Help Button */
.tm-floating-button-container {
    position: fixed;
    left: auto;
    display: flex;
    align-items: center;
    z-index: 9000;
    width: 80px;
    height: 80px;
    justify-content: center;
}

.tm-floating-button-container.bottom-left {
    bottom: 20px;
    left: 20px;
    right: auto;
}

.tm-floating-button-container.bottom-right {
    bottom: 20px;
    right: 20px;
    left: auto;
}

.tm-floating-button-container.top-left {
    top: 80px;
    left: 20px;
    right: auto;
}

.tm-floating-button-container.top-right {
    top: 80px;
    right: 20px;
    left: auto;
}

.tm-floating-button {
    width: 50px;
    height: 50px;
    background-color: #007BFF;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 25px;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    position: relative;
    opacity: 0.7;
}

.tm-floating-button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
    opacity: 1;
}

.tm-floating-button-settings {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    position: absolute;
    top: 10px;
    width: 50px;
    right: 0;
    height: 102px;
    transition: opacity 0.3s, top 0.3s;
    color: #007BFF;
    fill: #007BFF;
    border: 1px solid #007BFF !important;
    border-radius: 8px;
    text-shadow: 2px 2px 2px #0000002a;
    text-align: center;
    background-color: #fff;
}

.tm-floating-button-settings.bottom-left {
    top: 10px;
    right: auto;
    left: 0;
}

.tm-floating-button-settings.bottom-right {
    top: 10px;
    right: 0;
    left: auto;
}

.tm-floating-button-settings.top-left {
    top: 10px;
    right: auto;
    left: 0;
}

.tm-floating-button-settings.top-right {
    top: 10px;
    right: 0;
    left: auto;
}

.tm-floating-button-container:hover .tm-floating-button-settings {
    opacity: 1;
    top: -112px;
}

.tm-floating-button-container:hover .tm-floating-button-settings.top-right,
.tm-floating-button-container:hover .tm-floating-button-settings.top-left {
    top: 60px;
}

.tm-floating-button-settings .cog-icon {
    position: absolute;
    top: 2px;
    right: 2px;
}

.tm-floating-button-help-text {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 18px;
    font-weight: 500;
    color: #007BFF;
    white-space: nowrap;
    text-shadow: 2px 2px 2px #0000002a;
    background-color: #fff;
    border: 1px solid #007BFF !important;
    border-radius: 8px;
    padding: 5px 10px;
    top: auto;
    bottom: 5px!important;
}

.tm-floating-button-help-text.bottom-right,
.tm-floating-button-help-text.top-right {
    bottom: auto;
    right: 60px;
}

.tm-floating-button-help-text.bottom-left,
.tm-floating-button-help-text.top-left {
    left: 60px;
}

.tm-floating-button-help-text.top-right,
.tm-floating-button-help-text.top-left {
    top: 5px!important;
    bottom: auto!important;
}


.tm-floating-button-container:hover .tm-floating-button-help-text {
    opacity: 1;
}

/* Styles for the introjs lib */
.introjs-tooltip,
.introjs-tooltip-title {
    color: #000;
}

/* div.introjs-helperLayer.introjs-fixedTooltip {
    box-shadow: 0 0 10px 0 #ffffff, rgba(33, 33, 33, 0.8) 0px 0px 1px 2px, rgba(33, 33, 33, 0.5) 0px 0px 0px 5000px, rgba(33, 33, 33, 0.5) 0px 0px 0px 5000px !important;
} */

.introjs-showElement {
    border: 2px inset #ffffff !important;
    border-radius: 5px !important;
    filter: drop-shadow(0 0 1px #ffffff) contrast(1.3);
}

a[role="button"][data-step-number]:hover::after {
    content: attr(data-step-number);
    position: absolute;
    text-align: center;
    background-color: #469fff;
    color: #fff;
    padding: 2px 5px 2px 5px;
    min-width: 20px;
    border-radius: 3px;
    white-space: nowrap;
    transform: translate(-50%, -125%);
    z-index: 10;
}

.introjs-tooltip-xs {
    width: 200px !important;
    max-width: 300px;
}

.introjs-tooltip-sm {
    width: 400px !important;
    max-width: 400px;
}

.introjs-tooltip-md {
    width: 600px !important;
    max-width: 600px;
}

.introjs-tooltip-lg {
    width: 800px !important;
    max-width: 800px;
}

.introjs-tooltip-xl {
    width: 1000px !important;
    max-width: 1000px;
}

.introjs-tooltipbuttons {
    position: relative;
}

#introjs-additional-play-stop-button-div {
    position: absolute;
    top: 10px;
    right: 50px;
    color: #007BFF;
}

#introjs-require-user-action-div {
    position: absolute;
    top: 17px;
    right: 112px;
    color: #4CAF50;
    display: none;
}

#introjs-additional-play-button svg {
    display: inline-block !important;
}

#introjs-additional-stop-button svg {
    display: inline-block !important;
}

#introjs-additional-repv-button svg {
    display: inline-block !important;
}

#tts-ctrl-buttons-div {
    width: 130px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#tts-ranges-div {
    width: 130px;
    background-color: white;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
}

#tts-ranges-div div {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

#tts-ranges-div input[type="range"] {
    width: 90px;
}

#tts-rate-value {
    text-align: right;
}

#tts-volume-value {
    width: 40px;
    text-align: right;
}

#tts-voice-select {
    width: 130px;
    margin-top: 5px;
}

body>div.introjs-tooltipReferenceLayer.introjs-hintReference>div>div.introjs-tooltiptext>a.introjs-button {
    float: right;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Manage interactions with DevExtreme popup elements */
.introjs-helperLayer {
    z-index: 9998 !important;
    pointer-events: none;
}

.introjs-overlay {
    z-index: 9999 !important;
    pointer-events: none;
}

.dx-overlay-wrapper {
    z-index: 10000 !important;
}


/* Animations */
.tm-blink {
    -webkit-animation: 1s linear infinite condemed_blink_effect;
    animation: 1s linear infinite condemed_blink_effect;
}

@-webkit-keyframes condemed_blink_effect {
    0% {
        opacity: 0.2;
    }

    25% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

@keyframes condemed_blink_effect {
    0% {
        opacity: 0.2;
    }

    25% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}