/* @import url('open-iconic/font/css/open-iconic-bootstrap.min.css'); */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
}

.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
}

a, .btn-link {
    color: #0366d6;
}

/*.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}*/

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#page-loading {
    display: flex;
    position: fixed;
    width: 100%;
    height: 100%;
    right: 0;
    top: 0;
    bottom: 0;
    left: 0;
    background-color: #CCCCCC88;
    z-index: 9999;
}

.form-group .validation-message {
    float: right;
}


.select2-container .loading-results {
    display: none;
}

.griglia-tabella {    
    margin: 0px -12px;
    border: 1px solid black;
}

.griglia-tabella .mud-grid-item {
    padding: 0;
    background-color: white;
    border: 1px solid black;
}

.griglia-tabella-input {
    width: 100%;
    padding: 4px 8px;
    border: 0;
}

.griglia-tabella-label {
    
}

textarea.griglia-tabella-input {
    margin-bottom: -6px; /* HACK ALTRIMENTI SU EDGE RIMANE UN MARGINE NONOSTANTE SIA 0 */
}

.griglia-tabella .mud-input-control {
    margin-top: 0 !important;
    margin-left: 6px;
    margin-right: 6px;
}

.griglia-tabella .mud-input {
    margin-top: 0 !important;
}

.griglia-tabella .mud-divider {
    height: 5px !important;
}


.mud-nav-link.active {
    color: #000000 !important;
    /*background-color: transparent !important;*/
}

.mud-nav-link.mud-nav-link-disabled {
    color: #000000 !important;    
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mud-input-slot {
    text-align: inherit;
}

.mud-table-cell {
    padding: 0px 6px;
    height: 48px; /* Usato height al posto di min-height perch� per le celle in tabella non funziona la min */
}

.mud-table-root .mud-table-head .mud-table-cell {
    font-weight: 600;
}

.background-image-cover {
    /*background: url(/images/IWMHome.jpg) no-repeat center center;*/
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.mud-navmenu.mud-navmenu-default .mud-nav-link-expand-icon.mud-transform {
    fill: var(--mud-palette-drawer-icon) !important;
}

.mud-toolbar .mud-input-control.mud-select {
    margin-top: 0px;
}
/*.mud-table-body > .mud-table-row:hover {
    background-color: #CCCCCC88;
    transition: background-color 500ms linear;
}*/
@media (max-width: 600px) {
    .mud-xs-table .mud-table-cell:before {
        font-weight: 600 !important;        
    }
    .mud-input-label-animated {
        transition: none !important; /* --- DISABILITO LE ANIMAZIONI DELLE LABEL SU MOBILE*/
    }
}

/* PER L'ASTERISCO NEL CASO DI REQUIRED*/
.mud-input-control.mud-input-required > .mud-input-control-input-container > .mud-input-label::after {
    content: "*";
}

.textarea-noscroll textarea {
    overflow-y: hidden;
}

.pulsantone-home .mud-input-outlined-border {
    border-width: 2px !important;
    border-color: white !important;
}

/*---- TUTTO MAIUSCOLO! */
/*textarea:not([readonly]),
input[type=text]:not([readonly]) {
    text-transform: uppercase;
}*/

.input-toupper textarea,
.input-toupper input {
    text-transform: uppercase;
}

.input-readonly .mud-input {
    background-color: #e8e8e8;
}

.input-readonly .mud-input-label {
    background-color: #e8e8e8;
}

.mud-shrink ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined,
.mud-input:focus-within ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined {
    border-radius: 8px;
    border: 1px solid var(--mud-palette-lines-inputs);
    padding: 1px 5px !important;
}

@media print {
    .print-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
}

.multiSelectColoredTable .mud-icon-root.mud-svg-icon {
    color: #2E8B57;
}

.coloredSelect .mud-list-item-icon {
    color: inherit !important;
}

.coloredSelect .mud-input {
    color: inherit !important;
}

.coloredSelect .mud-icon-button {
    color: inherit !important;
}

.coloredSelect .mud-radio-content {
    color: inherit !important;
}
/* PER RENDERE I PULSANTI PRIMARY DELLE FLASH MESSAGE COME FILLED */
.mud-dialog .mud-dialog-actions .mud-button-text-primary {
    color: var(--mud-palette-primary-text);
    background-color: var(--mud-palette-primary);
}

.mud-dialog .mud-dialog-actions .mud-button-text-primary:hover {
    background-color: var(--mud-palette-primary-darken);
}

.mud-dialog-actions button:not(:first-child) {
    margin-left: 8px;
    margin-inline-start: 8px;
    margin-inline-end: unset;
}

.mud-button {
    border-radius: 40px;
}

/*.mud-toggle-group > .mud-toggle-item > .mud-button {
    border-radius: var(--mud-default-borderradius) !important;
}*/

.mud-icon-button {
    border-radius: var(--mud-default-borderradius);
}

.mud-dialog .mud-dialog-content {
    overflow-y: auto;
    padding-bottom: 8px;
}

.mud-dialog .mud-grid-spacing-xs-6 {
    width: calc(100%);
    margin-top: -24px;
    margin-left: 0;
}

.mud-dialog > .outline-none {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.mud-dialog > .outline-none > div:nth-of-type(4) {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Stile globale per tutte le MudDialog */
.mud-dialog-container .mud-dialog {
    overflow: visible;
}

.mud-dialog-container .mud-dialog > .mud-dialog-title {
    position: relative;
    padding-top: 16px !important;
}

.mud-dialog-container .mud-dialog > .mud-dialog-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0px; /* Compensa il padding della dialog */
    right: 0px;
    height: 4px;
    background: linear-gradient(90deg, #7FFFD4 0%, #DAA520 50%, #2E8B57 100%);
    border-radius: 4px 4px 0 0;
}
/* Aggiungi questo CSS */
.gm-style-iw {
    /*position: relative !important;*/
    padding-top: 4px !important; /* Spazio per la linea */
    overflow: hidden !important;
}

.gm-style-iw::before {
    content: '';
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #7FFFD4 0%, #DAA520 50%, #2E8B57 100%) !important;
    border-radius: 4px 4px 0 0 !important;
    z-index: 1 !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding-right: 12px;
    padding-bottom: 8px;
}
    /*.mud-dialog {
    overflow-y: visible;
}*/
    /* ----------------------------------------------------------- */

    .forza-colore-input .mud-input {
    color: inherit !important;
}

.nowrap {
    white-space: nowrap;
}

.mud-table-hover .mud-table-container .mud-table-root .mud-table-body .mud-table-row:hover {
    cursor: pointer;
}

#map {
    height: 100%;
}

.mud-divider-fullwidth {
    flex-grow: 0;
}

.qrscanclass canvas {
    width: 100%;
}

.mud-dialog-content-fullscreen {
    max-height: calc(100vh - 80px) !important;
}

.toggle-gradient .mud-button-outlined {
    background-color: transparent;
}

.toggle-gradient .mud-button-filled {
    background: linear-gradient(135deg, #40E0D0, #AADB1E) !important;
    /*color: #0C6935;*/
}

.glowing-container {
}

.glowing-card {
    /*width: 400px;
    height: 600px;*/
    /*background-color: #333;
    color: white;*/
    /*border-radius: 10px;
    position: relative;
    
    display: flex;
    justify-content: center;
    align-items: center;*/
    /*overflow: hidden;*/
    transition: box-shadow 0.2s ease;
    will-change: transform;
}

.glowing-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.4), transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: var(--opacity, 0);
    transition: opacity 0.2s ease;
    pointer-events: none;
}

/*.glowing-card:hover {
    box-shadow: 0 6px 6px rgba(0, 255, 255, 0.5);
}*/

.rainbow-border {
    position: relative;
    padding: 3px;
    background: linear-gradient(
        to right,
        red,
        orange,
        yellow,
        green,
        blue,
        indigo,
        violet,
        red
    );
    background-size: 200% 200%;
    animation: rainbow 6s ease-in-out infinite;
    border-radius: 8px;
}

.rainbow-border > div {
    background: white;
    border-radius: 6px;
}

@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.rainbow-button {
    position: relative;
    overflow: hidden;
    border: none;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    z-index: 0;
    background: linear-gradient( 135deg, #6a11cb, /* violetto profondo */
    #2575fc, /* blu brillante */
    #00c6ff, /* azzurro */
    #02aab0, /* teal */
    #00cdac, /* verde acqua */
    #f7971e, /* arancio dorato */
    #ff6a00, /* arancio caldo */
    #6a11cb /* chiusura ciclo */
    );
    background-size: 400%;
    animation: rainbow-move 10s linear infinite;
    filter: brightness(0.95) contrast(1.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@keyframes rainbow-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Effetto al passaggio del mouse */
.rainbow-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Versione per MudBlazor (override testo interno) */
.rainbow-button .mud-button-label {
    color: white !important;
}


.ai-markup ul {
    margin-left: 40px;
}

.ai-markup ol {
    margin-left: 20px;
}
