﻿.object {
    padding: var(--objectPaddingTop) var(--objectPaddingRight);
    font-size: var(--fontSizeMedium);
    line-height: 1.49;
    border: var(--objectBorder) solid var(--primaryBorderColor);
    border-radius: var(--objectBorderRadius);
    text-align: center;
    height: calc(100% - (2*(var(--objectPaddingTop))+2*(var(--objectBorder))));
    width: calc(100% - (2*(var(--objectPaddingRight))+2*(var(--objectBorder))));
}

.myGrid {
    display: grid;
    text-align: left;
    margin-left: 2rem;
    font-size: var(--fontSizeMedium);
    grid-template-rows: 30% 30%;
    grid-template-columns: 20% 30%;
    width: 30%;
}

.myPanel {
    display: grid;
    grid-template-rows: 20% 60% 20%;
}

.myPanel_header {
    font-size: var(--fontSizeMedium);
    font-weight: bold;
}

.mySubPanel {
    height: 100%;
}

.btn_chart {
    width: 100%;
    font-size: 2em;
    color: #3498db;
    font-weight: 600;
}

.icon_Chart {
    width: 12rem;
    height: 12rem;
    background: grey;
    border-radius: 50%;
    margin: 0 auto;
    background: #3b3f4f;
    text-align: center;
}

.fa_Chart {
    font-size: 6em;
    color: white;
    text-shadow: 0px 0px 0.4rem grey, 0px 0px 1rem lightgrey;
    margin: 16%;
}

.btn_chart_control {
    width: 100%;
    font-size: 2rem;
    color: #3b3f4f;
    font-weight: 600;
}

.footer_graph {
    display: grid;
    grid-template-columns: 33% 33% 33%;
    padding-bottom: 2em;
}

.list-group-item:hover {
    color: #337ab7;
    text-shadow: 0 0 1em #337ab7;
    cursor: pointer;
}

.screwContainer {
    transform: rotate(-15deg);
    position: relative;
    margin-left: auto;
    margin-right: auto;
    border-top: 0.2rem solid gray;
    border-bottom: 0.2rem solid gray;
}

.screwContainer_full {
    background: linear-gradient(to top, aqua 0%, aqua 30%, transparent 40%);
}

.screw {
    height: 100%;
    width: 100%;
    background-image: repeating-linear-gradient(-225deg, transparent 0%, transparent 10%, black 10%, black 20%);
}

.card {
    width: 100%;
    background: #ffffff;
    color: black;
    position: relative;
    border-radius: 2.5em;
    padding: 2em;
    transition: transform 0.4s ease;
    user-select: none;
}

    .card .card-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 5em;
        height: 100%;
        transition: transform 0.4s ease;
    }

    .card .card-top, .card .card-bottom {
        display: flex;
        justify-content: space-between;
    }

        .card .card-top p, .card .card-top .card-title, .card .card-bottom p, .card .card-bottom .card-title {
            margin: 0;
        }

    .card .card-title {
        font-weight: bold;
    }

    .card .card-top p, .card .card-bottom p {
        font-weight: 600;
        font-size: 2rem;
    }

    .card .card-bottom {
        align-items: flex-end;
    }

    .card .card-image {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        display: grid;
        place-items: center;
    }

        .card .card-image svg {
            width: 4em;
            height: 4em;
            transition: transform 0.4s ease;
        }

.gridview {
    padding: 4rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
    grid-gap: 4rem;
    align-content: space-between;
    justify-items: center;
}

.inputBox_container {
    display: flex;
    align-items: center;
    flex-direction: row;
    max-width: 14em;
    width: fit-content;
    height: fit-content;
    background-color: #ffffff;
    border-radius: 0.8em;
    overflow: hidden;
    margin-top: 1rem;
}

.search_icon {
    height: 1em;
    padding: 0 0.5em 0 0.8em;
    fill: #abb2bf;
}

.inputBox {
    background-color: transparent;
    color: black;
    outline: none;
    width: 100%;
    border: 0;
    padding: 0.5em 1.5em 0.5em 0;
    font-size: 1em;
}

::placeholder {
    color: #abb2bf;
}

.card {
    box-shadow: 0px 0rem 1rem rgba(34, 35, 58, 0.5);
    border-radius: 1.5rem;
    position: relative;
    margin: 0 auto;
    background: #323c50;
    padding: 2rem;
    margin: 1rem;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    border: 0.2rem solid white;
}

    .card h2 {
        margin: 0;
        padding: 0 1rem;
    }

    .card .title {
        padding: 1rem;
        text-align: center;
        color: #1e8efb;
        font-weight: bold;
        font-size: 12px;
    }

    .card .actions {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: center;
        padding: 0.5rem 1rem;
        grid-gap: .4rem;
    }

.card-text {
    margin: 0 auto;
    width: 100%;
    text-align: center;
    border-radius: 1rem 1rem 0 0;
    color: #616161;
    text-shadow: #e0e0e0 1px 1px 0;
}

.table_plc th h1 {
    font-weight: bold;
    font-size: 1em;
    text-align: center;
    color: #185875;
    cursor: pointer
}

.table_plc td {
    font-weight: normal;
    font-size: 1em;
    -webkit-box-shadow: 0 2px 2px -2px #0E1119;
    -moz-box-shadow: 0 2px 2px -2px #0E1119;
    box-shadow: 0 2px 2px -2px #0E1119;
    border: 0.1rem solid white;
}

.table_plc {
    text-align: center;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    display: table;
    padding: 0 0 8em 0;
    color: white;
    margin-bottom: 10rem
}

    .table_plc th {
        text-align: center;
        cursor: pointer;
        background-color: #2b2d35;
    }

    /* Background-color of the odd rows */
    .table_plc tr:nth-child(odd) {
        background-color: #323C50;
    }

    /* Background-color of the even rows */
    .table_plc tr:nth-child(even) {
        background-color: #2C3446;
    }

    .table_plc td:first-child {
        color: #1e8efb;
        cursor: pointer;
    }

    .table_plc tr:hover {
        background-color: #464A52;
        -webkit-box-shadow: 0 6px 6px -6px #0E1119;
        -moz-box-shadow: 0 6px 6px -6px #0E1119;
        box-shadow: 0 6px 6px -6px #0E1119;
    }

    .table_plc td:hover {
        background-color: #87009900;
        color: #403E10;
        font-weight: bold;
        border: 0.1rem solid darkorange;
        /*  box-shadow: #7F7C21 -1px 1px, #7F7C21 -2px 2px, #7F7C21 -3px 3px, #7F7C21 -4px 4px, #7F7C21 -5px 5px, #7F7C21 -6px 6px;
    transform: translate3d(6px, -6px, 0);
    transition-delay: 0s;
    transition-duration: 0.4s;
    transition-property: all;
    transition-timing-function: line;*/
    }

@media (max-width: 800px) {
    .table_plc td:nth-child(4),
    .table_plc th:nth-child(4) {
        display: none;
    }
}

.lds-ripple {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-ripple div {
        position: absolute;
        border: 4px solid #fff;
        opacity: 1;
        border-radius: 50%;
        animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .lds-ripple div:nth-child(2) {
            animation-delay: -0.5s;
        }

@keyframes lds-ripple {

    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

.led-box {
    height: 2rem;
    width: 2rem;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.led-red {
    margin: 0 auto;
    width: 2rem;
    height: 2rem;
    background-color: #F00;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #441313 0 -1px 9px, rgba(255, 0, 0, 0.5) 0 0px 12px;
}

.led-green {
    margin: 0 auto;
    width: 2rem;
    height: 2rem;
    background-color: #ABFF00;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #304701 0 -1px 9px, #89FF00 0 0px 12px;
}

.led-red-off {
    margin: 0 auto;
    width: 2rem;
    height: 2rem;
    background-color: #620000;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #000000 0 -1px 9px, rgba(255, 0, 0, 0) 0 0px 12px;
}

.led-green-off {
    margin: 0 auto;
    width: 2rem;
    height: 2rem;
    background-color: #6b99037a;
    border-radius: 50%;
    box-shadow: rgb(0 0 0 / 20%) 0 -1px 7px 1px, inset #000000 0 -1px 9px, rgb(255 0 0 / 0%) 0 0px 12px;
}

/* Contenitore della scrollbar */
::-webkit-scrollbar {
    width: 1rem;
    height: 1rem;
}

/* Cursor (thumb) della scrollbar */
::-webkit-scrollbar-thumb {
    /*background-color: #2B2D35;*/
    background-color: #727687;
    border-radius: 6px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border: .2rem solid white;
}

/* Traccia della scrollbar */
::-webkit-scrollbar-track {
    background-color: #f0f0f0;
    border-radius: 6px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

/* Cambia il colore del thumb quando l'utente passa sopra di esso */
::-webkit-scrollbar-thumb:hover {
    background-color: #555555;
}

/* Cambia il colore della traccia quando l'utente passa sopra di essa */
::-webkit-scrollbar-track:hover {
    background-color: #e0e0e0;
}

/* Aggiungi ombre all'estremità superiore e inferiore della traccia */
::-webkit-scrollbar-track-piece:start {
    background-color: #f0f0f0;
    box-shadow: inset 0 7px 7px -7px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-track-piece:end {
    background-color: #f0f0f0;
    box-shadow: inset 0 -7px 7px -7px rgba(0, 0, 0, 0.3);
}

.cycle_card {
    display: flex;
    position: relative;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid #00000020;
    border-radius: 0.8rem;
    border-bottom-right-radius: 0.8rem;
    border-bottom-left-radius: 0.8rem;
}

.cycle_card_title {
    flex: 1 1 auto;
    min-height: 1px;
    padding: 1rem 1.25rem;
}

.cycle_card_body {
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-size: 20px;
    font-family: Roboto;
    font-weight: 500;
    font-style: normal;
}

.textarea_transparent {
    background: transparent;
    color: white;
    width: 100%;
    margin: 0 auto;
}

.sitemessage {
    display: inline-block;
    white-space: nowrap;
    animation: floatText 2s infinite linear;
    animation-play-state: paused;
    padding-left: 0%; /*Initial offset*/
    transform: translateX(0);
    width: 100%;
    text-align: center;
}

    .sitemessage:hover {
        animation: floatText 2s infinite linear;
        animation-play-state: running;
        transform: translateX(0);
        display: inline-block;
    }

        .sitemessage:hover.move-down {
            transform: none;
        }


    .sitemessage:not(:hover) {
        display: contents;
        animation-play-state: paused;
        animation: none;
    }

.grapping {
    margin: 1rem 1rem;
    overflow: hidden;
    width: 9rem;
    cursor: grab
}

    .grapping:active {
        cursor: grabbing !important;
        background: green;
    }

@keyframes floatText {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.resize-drag {
    background-color: #29e;
    color: white;
    font-size: 20px;
    font-family: sans-serif;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 20px;
    width: 120px;
    /* This makes things *much* easier */
    box-sizing: border-box;
}

.d {
    background-color: #29e;
    color: white;
    font-size: 20px;
    font-family: sans-serif;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 20px;
    width: 120px;
    /* This makes things *much* easier */
    box-sizing: border-box;
}

.resize-container {
    width: 100%;
    height: 240px;
}


.funnel-container {
    display: inline-block;
}

.funnel {
    width: 0;
    border-style: solid;
    border-width: 11rem 11rem 0 11rem;
    border-color: #7e57c2 transparent transparent transparent;
    position: relative;
    text-align: center
}

    .funnel::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        border-style: solid;
        border-width: 50px 50px 0 50px;
        border-color: #66bb6a transparent transparent transparent;
    }

    .funnel::after {
        content: '';
        position: absolute;
        bottom: 150%;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        border-style: solid;
        border-width: 50px 25px 0 25px;
        border-color: #ffca28 transparent transparent transparent;
    }

.funnel-tip {
    margin-top: -50px;
    width: 0;
    border-style: solid;
    border-width: 30px 10px 0 10px;
    border-color: #ec407a transparent transparent transparent;
    position: relative;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.target {
    margin-top: 20px;
    width: 30px;
    height: 30px;
    background-color: #ffffff;
    border: 4px solid #f44336;
    border-radius: 50%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

    .target::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 10px;
        height: 10px;
        background-color: #f44336;
        border-radius: 50%;
    }


.main_container {
    filter: drop-shadow(0rem .4rem .6rem black);
    border-radius: 5%;
    border: 1.2rem solid !important;
    border-color: lightgrey !important;
}

/*Gestione tooltip*/
.ticket-label {
    background: #2b2d35;
    color: #f4f4f4;
    font-family: 'Courier New', monospace;
    font-weight: 300;
    padding: 10px;
    border-radius: 8px;
    display: block;
    position: relative;
    width: 75%;
    height: 90%;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: auto;
}

    .ticket-label:hover {
        background: #3a3c47;
    }

.order-code {
    color: darkorange;
    font-weight: bold;
    font-size: 1.1em;
}

/* Tooltip styling */
.tooltip_ticket {
    visibility: hidden;
    background-color: #2b2d35;
    color: #fff;
    text-align: left;
    padding: 8px;
    border-radius: 5px;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9em;
    z-index: 1;
    width: 250px;
}

.ticket-label:hover .tooltip_ticket {
    visibility: visible;
    opacity: 1;
}

.general_toaster {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #ffa02b; /* Giallo brillante */
    color: white; /* Testo nero */
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 214, 10, 0.8);
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    z-index: 1000;
    animation: pulsingGlow 2s infinite;
}

    .general_toaster.show_toaster {
        opacity: 1;
        visibility: visible;
    }

    /* Icona di caricamento */
    .general_toaster .general_spin {
        width: 24px;
        height: 24px;
        margin-right: 15px;
        border: 4px solid #ffffff;
        border-top: 4px solid #000000; /* Colore del bordo superiore */
        border-radius: 50%;
        animation: general_spin 1s linear infinite;
    }

/* Effetto rotazione */
@keyframes general_spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Effetto di luce pulsante */
@keyframes pulsingGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 214, 10, 0.6);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 214, 10, 1);
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 214, 10, 0.6);
    }
}


.menu-container {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background-color: #1e1e2f;
    height: 100%;
    overflow-y: auto;
    grid-template-rows: repeat(4, auto);
    max-width: 400px;
    margin: 0 auto;
}

/* Section Styles */
.menu-section {
    background: #2b2d3a;
    border-radius: 1rem;
    padding: 1rem;
}

.section-title {
    color: #f7c843;
    background: #1a1a26;
    border-radius: 0.75rem;
    font-weight: bold;
    text-align: center;
    padding: 0.5rem;
}

/* Button Styles */
.button-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-view, .btn-tool {
    background: #3e3e50;
    color: #ffffff;
}

    .btn-view.active-btn, .btn-tool.active-btn {
        background: #4caf50;
    }

    .btn-view:hover, .btn-tool:hover {
        background: #5e5e72;
    }

/* Properties Section */
.properties-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.property-group {
    margin-top: 1rem;
    width: 100%;
}

.property-label {
    display: block;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.property-input {
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    background: #3e3e50;
    color: #ffffff;
}

.btn-action {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.75rem;
    font-weight: bold;
    border-radius: 0.5rem;
}

    .btn-action:hover {
        opacity: 0.9;
    }

/* Levels Section */
.levels-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    max-height: 400px;
}

.level-items {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-level {
    padding: 0.75rem;
    background: #3e3e50;
    border-radius: 0.5rem;
    color: #ffffff;
    text-align: center;
}

    .btn-level:hover {
        background: #5e5e72;
    }

/* Action Buttons */
.actions-section {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.btn-clear {
    background: #e53935;
    color: #ffffff;
}

    .btn-clear:hover {
        background: #c62828;
    }

.btn-save {
    background: #43a047;
    color: #ffffff;
}

    .btn-save:hover {
        background: #388e3c;
    }

.btn-import {
    background: #fb8c00;
    color: #ffffff;
}

    .btn-import:hover {
        background: #f57c00;
    }

.typing-indicator {
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 10px;
    font-style: italic;
    color: gray;
}

.dot {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: gray;
    border-radius: 50%;
    animation: typing 1.5s infinite;
}

    .dot:nth-child(1) {
        animation-delay: 0s;
    }

    .dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes typing {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}


.message-time {
    font-size: 0.8rem; /* Puoi cambiare la dimensione del testo a seconda delle tue preferenze */
    color: #888; /* Colore del testo per il tempo (puoi personalizzarlo) */
    margin-left: 5px; /* Distanza tra il testo del messaggio e il tempo */
    vertical-align: middle; /* Allineamento verticale con il testo del messaggio */
    font-family: Arial, sans-serif; /* Font per il tempo (puoi scegliere un altro font) */
}



.table_caller th h1 {
    font-weight: bold;
    font-size: 1em;
    text-align: center;
    color: #185875;
    cursor: pointer
}

.table_caller td {
    font-weight: normal;
    font-size: 1em;
    -webkit-box-shadow: 0 2px 2px -2px #0E1119;
    -moz-box-shadow: 0 2px 2px -2px #0E1119;
    box-shadow: 0 2px 2px -2px #0E1119;
    border: 0.1rem solid white;
    color: black
}


.table_caller th, .table_caller td {
    border: 1px solid #ddd;
    word-wrap: break-word;
}

.table_caller thead {
    background-color: #4CAF50;
    color: white;
    text-align: left;
}

.table_caller button {
    border: none;
    padding: 8px 12px;
    margin: 2px;
    cursor: pointer;
    border-radius: 4px;
}

.table_caller select {
    max-width: 8rem
}

.caller_select {
    min-width: 12rem;
    max-width: 100%;
    white-space: nowrap;
}

.table_caller input {
    width: 4rem;
    margin: 0 auto;
}


.table_caller th.sort-asc::after {
    content: " \25B2";
}

.table_caller th.sort-desc::after {
    content: " \25BC";
}

.table_caller {
    text-align: center;
    overflow: hidden;
    width: 100%;
    display: table;
    padding: 0 0 8em 0;
    color: white;
    text-transform: uppercase;
    table-layout: auto;
    border-collapse: collapse;
}

    .table_caller th {
        text-align: center;
        cursor: pointer;
        background-color: #2b2d35;
    }

    .table_caller tbody tr {
        height: 7rem
    }
    /* Background-color of the odd rows */
    .table_caller tr:nth-child(odd) {
        background-color: #323C50;
    }

    /* Background-color of the even rows */
    .table_caller tr:nth-child(even) {
        background-color: #2C3446;
    }

    .table_caller td:first-child {
        color: #1e8efb;
        cursor: pointer;
    }

    /*    .table_caller tr:hover {
        background-color: #464A52;
        -webkit-box-shadow: 0 6px 6px -6px #0E1119;
        -moz-box-shadow: 0 6px 6px -6px #0E1119;
        box-shadow: 0 6px 6px -6px #0E1119;
    }*/

    .table_caller td:hover {
        background-color: #f6bb42bd;
    }

@media (max-width: 800px) {
    .table_caller td:nth-child(4),
    .table_caller th:nth-child(4) {
        display: none;
    }
}

/* Stile per rendere la tabella reattiva */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Pulsante della chat */
.chat-button {
    position: fixed;
    bottom: 40px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: blob 1.5s infinite;
    z-index: 10;
}

/* Contenitore del widget */
.magic-widget {
    position: fixed;
    bottom: 0;
    left: 20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: ghostwhite;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

    /* Effetto attivo solo all'interazione */
    .magic-widget:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }

    /* Icona del widget (se presente) */
    .magic-widget i {
        color: white;
        font-size: 32px; /* Aumenta la dimensione dell'icona */
    }

/* 
 * Modern Chatbot Widget - CSS for AngularJS
 * A light-themed chatbot widget with chat history management
 */

/* Definizione colori e stili di base */
:root {
    --chat-primary: #4f46e5;
    --chat-primary-dark: #4338ca;
    --chat-primary-light: #c7d2fe;
    --chat-error: #ef4444;
    --chat-gray-50: #f9fafb;
    --chat-gray-100: #f3f4f6;
    --chat-gray-200: #e5e7eb;
    --chat-gray-300: #d1d5db;
    --chat-gray-400: #9ca3af;
    --chat-gray-500: #6b7280;
    --chat-gray-600: #4b5563;
    --chat-gray-700: #374151;
    --chat-gray-800: #1f2937;
    --chat-text-color: #374151;
    --chat-border-radius: 12px;
    --chat-transition: 0.3s all ease;
}

/* Container principale */
.chat-bot-container {
    position: fixed;
    bottom: 120px;
    right: 20px;
    width: 450px;
    height: 650px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #374151;
    z-index: 1000;
    transition: 1s all ease;
    overflow: hidden;
}

    /* Header */
    .chat-bot-container .chat-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 30px 20px;
        background: white;
        color: #212121;
        position: relative;
    }

        .chat-bot-container .chat-header img {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            height: 70px;
        }

        .chat-bot-container .chat-header .help-btn {
            position: absolute;
            left: calc(50% + 74px);
            top: 50%;
            transform: translateY(-50%);
        }

    .chat-bot-container .new-chat-button {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        font-size: 16px;
        display: flex;
        align-items: center;
        transition: 0.2s all ease;
    }

    .chat-bot-container .maximize-button {
        background: none;
        border: none;
        color: #1e3480;
        cursor: pointer;
        font-size: 16px;
        display: flex;
        align-items: center;
        transition: 0.2s all ease;
    }

    .chat-bot-container .new-chat-button {
        background-color: #1e3480;
        padding: 5px 10px;
        border-radius: 8px;
    }

    .chat-bot-container .new-chat-button:hover {
        background-color: #2b2d35;
    }
    
    /*--------CHAT HELP POPUP--------*/
    .chat-help-popup {
        position: absolute;
        top: calc(100% + 6px);
        right: 8px;
        width: 260px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.12);
        z-index: 9000;
        padding: 12px 14px;
        font-size: 13px;
        line-height: 1.9;
        animation: chatHelpFadeIn 0.18s ease;
    }

    @keyframes chatHelpFadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Indicatore chat attiva */
    .chat-bot-container .active-chat-indicator {
        background-color: rgba(0, 0, 0, 0.02);
        padding: 10px;
        text-align: center;
        font-size: 15px;
        color: #374151;
        border-bottom: 1px solid #e5e7eb;
    }

    /* Corpo della chat (stile comune) */
    .chat-bot-container .chat-body {
        flex: 1;
        overflow-y: auto;
        background-color: #f9fafb;
        padding: 16px;
        max-height: calc(100% - 120px);
    }

    /* Vista messaggi (specifico per la chat attiva) */
    .chat-bot-container #chat_container.chat-body {
        display: flex !important;
        flex-direction: column !important;
        padding: 16px;
    }

/* contenitore principale del popup */
.chat-bot-container {
    display: flex;
    flex-direction: column;
    /* decidi tu dimensioni base del popup */
    width: 500px;
    max-height: 75vh;
    box-sizing: border-box;
}

    /* quando è massimizzato, lo fai occupare a una dimensione definita */
    .chat-bot-container.maximized,
    .chat-bot-container.chat-bot-maximize {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        width: 1200px;
        height: 80vh;
        max-height: 80vh;
        /*margin-left: -600px;*/ /* metà della larghezza */
        /*margin-top: -40vh;*/ /* metà dell’altezza effettiva */
        transform: translate(-50%,-50%);
        margin: 0;
    }

/* header e footer non devono crescere */
.chat-header,
.chat-footer {
    flex: 0 0 auto;
}

/* CORPO: o la chat dei messaggi, o la lista chat */
#chat_container,
.chat-list-container {
    flex: 1 1 auto;
    min-height: 0; /* fondamentale per far funzionare lo scroll interno */
    display: flex;
    flex-direction: column;
}

    /* nella vista lista chat: barra di ricerca fissa in alto */
    .chat-list-container .search-container {
        flex: 0 0 auto;
    }

    /* e qui la lista che scrolla */
    .chat-list-container .chat-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        /* tua grid */
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }

/* Messaggi */
.chat-bot-container .message-row {
    display: flex;
    margin-bottom: 18px;
    animation: sapienta-slide-up 0.3s ease;
}

@keyframes sapienta-slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chat-bot-container .message-row.bot {
    align-items: flex-start;
}

.chat-bot-container .message-row.user {
    align-items: flex-start;
    justify-content: flex-end;
}

.chat-bot-container .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    flex-shrink: 0;
}

.chat-bot-container .message-row.bot .avatar {
    background-color: whitesmoke;
    color: white;
    margin-right: 12px;
    font-size: 16px;
}

.chat-bot-container .message-row.user .avatar {
    background-color: #e5e7eb;
    color: #4b5563;
    margin-left: 12px;
    font-size: 16px;
}

.chat-bot-container .message-container {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

.chat-bot-container .message {
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-size: 15px;
    line-height: 1.5;
}

.chat-bot-container .bot-message {
    background-color: white !important;
    color: #1f2937 !important;
    border-top-left-radius: 4px;
}

.chat-bot-container .user-message {
    background-color: #4f46e5 !important;
    color: white !important;
    border-top-right-radius: 4px;
}

.chat-bot-container .message-time {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

.chat-bot-container .text-right {
    text-align: right;
}

/* Avatar utente */
.chat-bot-container .user-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* Messaggi con immagine */
.chat-bot-container .image-message {
    padding: 4px;
    background-color: white !important;
    border-radius: 12px;
    overflow: hidden;
}

.chat-bot-container .chat-image {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s all ease;
    zoom: 30%;
}

    .chat-bot-container .chat-image:hover {
        opacity: 0.9;
        transform: scale(0.98);
    }

/* Messaggi di errore */
.chat-bot-container .error-message {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

    .chat-bot-container .error-message .glyphicon {
        margin-right: 8px;
    }

/* Indicatore di scrittura */
.chat-bot-container .typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
}

.chat-bot-container .typing-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4f46e5;
    opacity: 0.6;
    margin: 0 4px;
    animation: sapienta-typing 1.4s infinite ease-in-out;
}

    .chat-bot-container .typing-dot:nth-child(1) {
        animation-delay: 0s;
    }

    .chat-bot-container .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .chat-bot-container .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes sapienta-typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-8px);
    }
}

/* Area di input */
.chat-bot-container .chat-footer {
    background-color: white;
    border-top: 1px solid #e5e7eb;
    padding: 16px;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

/* Stile specifico per il footer della lista chat */
.chat-bot-container .chat-list-container .chat-footer {
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-top: auto;
    padding: 20px;
}

.chat-bot-container .input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.chat-bot-container .attachment-label {
    color: #4f46e5;
    cursor: pointer;
    font-size: 20px;
    margin-right: 12px;
    transition: 0.2s all ease;
}

    .chat-bot-container .attachment-label:hover {
        color: #4338ca;
    }

.chat-bot-container .chat-input {
    flex: 1;
    padding: 12px 24px;
    padding-right: 48px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    outline: none;
    font-size: 15px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: 0.2s all ease;
    width: 90%;
}

    .chat-bot-container .chat-input:focus {
        border-color: transparent;
        box-shadow: 0 0 0 2px #c7d2fe;
    }

.chat-bot-container .send-button {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    background-color: #4f46e5;
    color: white;
    transition: 0.2s all ease;
    font-size: 16px;
}

    .chat-bot-container .send-button:hover {
        background-color: #4338ca;
    }

    .chat-bot-container .send-button:disabled {
        background-color: #d1d5db;
        color: #4f46e5;
        cursor: not-allowed;
    }

/* Lista chat */
.chat-bot-container .chat-list-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100% !important;
}

/* Barra di ricerca */
.chat-bot-container .search-container {
    padding: 16px;
}

.chat-bot-container .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
}

.chat-bot-container .clear-search {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
}

    .chat-bot-container .clear-search:hover {
        color: #4b5563;
    }

/* Elementi della lista chat */

.chat-bot-container .chat-item {
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    animation: sapienta-fade-in 0.3s ease;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .chat-bot-container .chat-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

@keyframes sapienta-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.chat-bot-container .default_label {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0;
}

.chat-bot-container .chat-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(79, 70, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    margin-bottom: 12px;
    font-size: 20px;
}

.chat-bot-container .chat-item-info {
    width: 100%;
}

.chat-bot-container .chat-item-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
}

.chat-bot-container .chat-item-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-bot-container .delete-chat-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #e5e7eb;
    color: #9ca3af;
    cursor: pointer;
    transition: 0.2s all ease;
    font-size: 14px;
}

    .chat-bot-container .delete-chat-button:hover {
        color: #ef4444;
        background-color: white;
        border-color: #ef4444;
    }

/* Stati vuoti */
.chat-bot-container .empty-messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6b7280;
    text-align: center;
    padding: 32px;
}

    .chat-bot-container .empty-messages .glyphicon {
        font-size: 48px;
        color: #4f46e5;
        opacity: 0.5;
        margin-bottom: 16px;
    }

    .chat-bot-container .empty-messages p {
        font-size: 16px;
    }

.chat-bot-container .empty-chats {
    text-align: center;
    color: #4b5563;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 32px 16px;
    margin: 16px;
}

    .chat-bot-container .empty-chats .glyphicon {
        font-size: 40px;
        color: #d1d5db;
        margin-bottom: 12px;
    }

    .chat-bot-container .empty-chats .title {
        font-weight: 500;
        margin-bottom: 8px;
        font-size: 16px;
    }

    .chat-bot-container .empty-chats .subtitle {
        font-size: 14px;
        color: #6b7280;
    }

/* Modal per le immagini */
#imageModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none; /* default chiuso */
    background-color: rgba(0, 0, 0, 0.85); /* nero semi-trasparente */
    align-items: center;
    justify-content: center;
    z-index: 100001;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

    #imageModal.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    #imageModal .modalchat-content {
        max-width: 90vw;
        max-height: 90vh;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
        transition: transform 0.3s ease;
    }

    #imageModal .close_ai {
        position: absolute;
        top: 5%;
        right: 5%;
        color: white;
        font-size: 36px;
        font-weight: bold;
        cursor: pointer;
        z-index: 1101;
        transition: color 0.2s;
    }

        #imageModal .close_ai:hover {
            color: #ff4d4d;
        }



/* Responsive */
@media (max-width: 640px) {
    .chat-bot-container {
        width: calc(100% - 40px);
        height: 560px;
    }

        .chat-bot-container.maximized,
        .chat-bot-container.chat-bot-maximize {
            width: 100%;
            height: 100%;
            bottom: 0;
            left: 0;
            border-radius: 0;
        }

        .chat-bot-container .message-container {
            max-width: 85%;
        }
}

/* Classi di animazione */
.chat-bot-container .fade-in {
    animation: sapienta-fade-in 0.3s ease;
}

.chat-bot-container .slide-up {
    animation: sapienta-slide-up 0.3s ease;
}

/* Stili per le Citations */

/* Stili per i riferimenti alle citations nel testo del messaggio */
.citation-reference {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 6px;
    margin: 0 2px;
    background-color: #e7f3ff;
    border-radius: 3px;
    white-space: nowrap;
    display: inline-block;
    font-size: 0.9em;
    border: 1px solid #b3d9ff;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .citation-reference:hover {
        background-color: #cce5ff;
        border-color: #80bdff;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
        color: #0056b3;
        text-decoration: none;
    }

    .citation-reference:active {
        transform: translateY(0);
        background-color: #b3d9ff;
    }

/* Stili per la sezione citations */
.citations-container {
    margin-top: 15px;
    padding: 12px;
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
    border-radius: 4px;
}

.citations-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #495057;
    margin-bottom: 10px;
    font-size: 14px;
}

    .citations-header i {
        color: #007bff;
    }

.citation-item {
    background-color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    transition: box-shadow 0.2s ease;
}

    .citation-item:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .citation-item:last-child {
        margin-bottom: 0;
    }

.citation-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

    .citation-info i {
        color: #6c757d;
        font-size: 14px;
    }

.citation-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

    .citation-link:hover {
        color: #0056b3;
        text-decoration: underline;
    }

    .citation-link span {
        color: #6c757d;
        font-weight: normal;
        font-size: 13px;
    }

.citation-preview {
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 3px;
    margin-bottom: 8px;
}

.citation-text {
    color: #495057;
    font-size: 13px;
    line-height: 1.5;
    font-style: italic;
}

.citation-images {
    margin-top: 8px;
}

.citation-image-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.citation-image-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

    .citation-image-link:hover {
        background-color: #218838;
        color: white;
        text-decoration: none;
    }

    .citation-image-link i {
        font-size: 14px;
    }

/* Responsive adjustments for citations */
@media (max-width: 768px) {
    .citations-container {
        padding: 10px;
    }

    .citation-item {
        padding: 8px;
    }

    .citation-link {
        font-size: 13px;
    }

    .citation-text {
        font-size: 12px;
    }

    .citation-image-link {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* Stili per il modal delle citations */
#citationModal .modal-content {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Miglioramenti per la scrollbar nel modal */
#citationModalBody::-webkit-scrollbar {
    width: 8px;
}

#citationModalBody::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#citationModalBody::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    #citationModalBody::-webkit-scrollbar-thumb:hover {
        background: #555;
    }


/* Style della scritta LOADING su Merlin*/
.loading-text {
    font-size: 11px;
    font-weight: bold;
}
/* LOADING... Rotella che gira caricamento chat */
.spinning {
    display: inline-block;
    font-size: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* Bottoni chiusura e fullscreen toggle Merlin */
.chat-header {
    /*position: relative;*/
    display: flex;
    align-items: center;
    /*justify-content: space-between;*/
}

/* Contenitore pulsanti a destra */
.chat-header-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
    margin-right: 6px;
}

/* Stile pulsanti header */
.header-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
    color: inherit; /* prende il colore dell'header */
    opacity: .85;
}

    .header-btn:hover {
        opacity: 1;
    }

/* Spare Parts Styling */
.spare-part-card {
    transition: box-shadow 0.2s ease;
}

    .spare-part-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.spare-part-images img {
    transition: transform 0.2s ease;
}

    .spare-part-images img:hover {
        transform: scale(1.02);
    }

.spare-part-images button:hover {
    background: #2980b9 !important;
}

/* Toggle Modalità Assistenza */
.assistance-mode-toggle button {
    transition: all 0.2s ease;
}

    .assistance-mode-toggle button:hover {
        opacity: 0.9;
    }

.mode-selector button {
    transition: all 0.3s ease;
}

    .mode-selector button:hover:not(.active) {
        background: rgba(0,0,0,0.05) !important;
    }

/* Indicatore visivo della modalità attiva */
.chat-footer[data-mode="spareparts"] .input-container {
    border-color: #e67e22;
}

.chat-footer[data-mode="software"] .input-container {
    border-color: #3498db;
}

/* Layout modalità operativa */
.operative-mode-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.operative-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.operative-footer {
    padding: 10px 8px 12px;
    border-top: 1px solid #e5e7eb;
    background: white;
    flex-shrink: 0;
}

/* Header storico comandi */
.recent-commands-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

    .recent-commands-header h4 {
        margin: 0;
    }

.clear-commands-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    transition: color 0.2s;
}

    .clear-commands-btn:hover {
        color: #ef4444;
    }

/* Input testuale modalità operativa */
.operative-text-input {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 0 4px;
}

.operative-text-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #c7d2fe;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    background: #f8f9ff;
}

    .operative-text-field:focus {
        border-color: #4f46e5;
        background: white;
        box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
    }

    .operative-text-field:disabled {
        background: #f3f4f6;
        color: #9ca3af;
    }

.operative-text-btn {
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

    .operative-text-btn:hover:not(:disabled) {
        background-color: #4338ca;
    }

    .operative-text-btn:disabled {
        background-color: #d1d5db;
        cursor: default;
    }
