:root {
    --app_background-color-primary: light-dark(#ffffff, #212121);
    --home-purple: #824F81;
    --color-black-white: light-dark(black,white);
}
.language-currency-popup {
    display: none;
    position: absolute;
    overflow: hidden;    
    border: var(--rz-panel-border);
    background-color: var(--rz-panel-background-color);
    box-shadow: var(--rz-header-shadow);
    border-radius: var(--rz-border-radius);
    width:250px;
}

.header-profile-menu.rz-panel-menu li:not(:nth-last-child(2)) {
    border: none;
}


html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/*handle not using radzed layout in the root*/
html,
body {
    color: var(--rz-text-color);
    background-color: var(--app_background-color-primary);
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    margin-top: 3px;
    font-size: 0.8em;
    color: #a51515;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDM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OTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Spoken Text Edit Popup */

.spoken-text-btn-remove-all {
    color: #FF5524 !important;
    font-size: 16px !important;
    font-family: Neulis Alt !important;
    font-weight: 400 !important;
    line-height: 16px !important;
    word-wrap: break-word !important;
    text-transform: unset !important;
    align-self: stretch !important;
    height: 46px !important; 
    background: #FBE9E5 !important;
    border-radius: 10px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    display: inline-flex !important;
    box-shadow: none !important;
}
    .spoken-text-btn-remove-all:hover {
        background: #f6d7cf !important; 
        box-shadow: 0 0px 6px rgba(0, 0, 0, 0.15) !important;
        cursor: pointer !important;
        transition: all 0.2s ease-in-out;
    }

.spoken-text-ticks-container {
    display: grid;
    grid-template-columns: 27.27% 36.36% 1fr 1fr; /* proportional segments */
    width: 100%;
    margin-top: 4px;
}

    .spoken-text-ticks-container .tick {
        width: fit-content;
        text-align: left;
        transform: translateX(-50%);
    }

    .spoken-text-ticks-container .tick-end {
        width: fit-content;
        text-align: right;
        justify-self: end;
        transform: translateX(50%);
    }



/* Spoken Text */

.spoken-text-container {
    padding: 16px;
    background-color: light-dark(rgba(238, 228, 237, 0.5),rgba(255, 255, 255, 0.20));
    border-radius: 8px;
    box-shadow: 0 4px 26px rgba(28, 14, 61, 0.04);
}

    .spoken-text-container .svg-icon {
        display: block;
        width: 24px;
        height: 24px;
        background: white !important;
    }

        .spoken-text-container .svg-icon.volume-high {
            mask: url(/images/icons/volume-high.svg) no-repeat 50% 50%;
        }

    .spoken-text-container .spinner-icon {
        animation: rotation 700ms linear infinite;
        color: white;
    }

    .spoken-text-container .dots {
        color: light-dark(#4d4d4d, #fff) !important;        
        margin-bottom: 8px;
        transform: rotate(90deg)
    }

        .spoken-text-container .dots:hover {
            color: light-dark(#fff, #fff) !important;
        }

    .spoken-text-container .header {
        display: flex;
        justify-content: end;
        border-bottom: 1px solid light-dark(rgba(0,0,0,0.2),rgba(255, 255, 255, 0.2));
        margin-bottom: 16px;
    }

    .spoken-text-container .circle-btn {
        background-color: #8b4c84 !important;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        min-height: 32px;
        min-width: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: none;
    }

    .spoken-text-container .spoken-items {
        display: grid;
        gap: 8px;
    }

    .spoken-text-container .spoken-items-columns {
        grid-template-columns: 1fr 1fr;
    }

    .spoken-text-container .card {
        background: light-dark(#fff, #4d4d4d);
        border: 1px solid rgba(130, 79, 129, 0.2);
        border-radius: 10px;
        padding: 16px;
        gap: 16px;
        flex: 1 1 100%;
    }

        .spoken-text-container .card.selected {
            border-color: light-dark(#824f81, #fff);
        }

    .spoken-text-container .voice {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 16px;
        flex: 1;
    }

    .spoken-text-container .text-block {
        font-family: "Poppins", sans-serif;
        font-size: 14px;
        line-height: 150%;
        color: #000;
    }

        .spoken-text-container .text-block.accent {
            font-family: "NeulisAlt-Regular", sans-serif;
            color: light-dark(#824f81, #fff);
            line-height: 130%;
        }

    .spoken-text-container .word {
        display: inline-block;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

        .spoken-text-container .word.highlight {
            transform: translateY(-2px);
            opacity: 1;
            background: #8B4C84;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }


    .spoken-text-container .btn-remove-all {
        text-box-trim: trim-both;
        text-box-edge: cap alphabetic;
        color: #FF5524 !important;
        font-size: 16px;
        font-family: Neulis Alt;
        font-weight: 400;
        line-height: 16px;
        word-wrap: break-word
    }


@media (max-width: 768px) {
    .spoken-text-container .spoken-items {
        grid-template-columns: 1fr;
    }
}

