﻿/* ===== IMPORTS & FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CORE DESIGN SYSTEM --- */
:root {
    --bg-body: #0b0d11;
    --bg-card: rgba(30, 35, 45, 0.6);
    --bg-card-hover: rgba(40, 45, 55, 0.8);
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --bg-primary: #121212;
    --bg-secondary: #1E1E1E;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    /* Colore Viola Accento estratto dal mockup */
    --accent-color: #6246ea;
    --accent-hover: #5036d0;
    --border-color: #2d2d2d;
    --section-spacing: 100px;
    /* "Electric" Accent to grab attention */
    --primary: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --border: rgba(255, 255, 255, 0.1);
    --glow: 0 0 20px rgba(99, 102, 241, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle grid background for order */
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
}


/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
    }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

    .btn-ghost:hover {
        border-color: var(--primary);
        background: rgba(99, 102, 241, 0.05);
    }

/* --- NAVBAR --- */
nav {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    background: rgba(11, 13, 17, 0.85);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.3rem;
}

    .logo span {
        color: var(--primary);
    }

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: 0.3s;
}

    .nav-links a:hover {
        color: var(--text-main);
    }

/* --- HERO --- */
#hero {
    padding: 100px 0 80px;
    text-align: center;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* --- TECH STACK BAR (New!) --- */
.tech-bar {
    background: #11141a; /* Slightly lighter than body */
    padding: 40px 0;
    border-top: 1px solid var(--bg-card-border);
    border-bottom: 1px solid var(--bg-card-border);
    text-align: center;
}

.tech-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    fill: var(--text-muted);
    transition: 0.3s;
}

    .tech-item:hover {
        color: white;
        transform: translateY(-3px);
        fill: white;
    }

    .tech-item i {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .tech-item svg {
        /* L'SVG non usa font-size, quindi devi usare width e height */
        width: 2.2rem;
        height: 2.2rem;
        /* Applica lo stesso margine */
        margin-bottom: 10px;
        /* Assicurati che il fill (colore) sia quello corretto, anche se è già nell'HTML */
        fill: #9ca3af;
    }

        .tech-item svg:hover {
            fill: white;
        }

    .tech-item span {
        font-size: 0.85rem;
        font-weight: 600;
    }

/* --- SERVICES CARDS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 35px;
    border-radius: 16px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-5px);
        border-color: var(--primary);
        background: var(--bg-card-hover);
    }

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    background: rgba(99, 102, 241, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* --- FEATURED PROJECT --- */
.project-highlight {
    background: linear-gradient(to right, #161922, #111318);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    margin: 80px 0;
}

.project-content {
    padding: 50px;
    flex: 1;
    min-width: 350px;
}

.project-visual {
    flex: 1;
    min-width: 300px;
    background: radial-gradient(circle, #2a2d3a 0%, #161922 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.05);
}

.tag-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.8rem;
    padding: 5px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    color: var(--text-muted);
}

/* --- DEMOS MINI GRID --- */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-main);
    transition: 0.2s;
}

    .mini-card:hover {
        border-color: var(--primary);
        background: var(--bg-card-hover);
    }

.mini-icon {
    color: var(--primary);
    font-size: 1.2rem;
}

/* --- CONTACT BANNER --- */
.contact-banner {
    background: var(--primary-gradient);
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
    margin: 100px 0 50px;
}

    .contact-banner h2 {
        margin-bottom: 15px;
        color: white;
    }

    .contact-banner p {
        color: rgba(255,255,255,0.9);
        margin-bottom: 30px;
    }

.btn-white {
    background: white;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .project-highlight {
        flex-direction: column-reverse;
    }

    .project-visual {
        height: 200px;
    }
}

/* --- Portfolio Section --- */
#progetti {
    /*background-color: var(--bg-primary);*/
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

    .project-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary);
    }

.project-image {
    height: 220px;
    background-color: #2a2a2a;
    overflow: hidden;
}

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.8;
        transition: opacity 0.3s;
    }

.project-card:hover .project-image img {
    opacity: 1;
}

.project-content {
    padding: 25px;
}

    .project-content h4 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .project-content p {
        color: var(--text-secondary);
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tag {
    background-color: rgba(98, 70, 234, 0.15);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .project-link:hover {
        color: var(--primary);
    }

/* ===== BLAZOR ERROR BOUNDARY ===== */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ===== VALIDATION STYLES ===== */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--green);
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

h1:focus {
    outline: none;
}


.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;*/
}

.glow-container {
    position: relative;
    --mouse-x: 0px;
    --mouse-y: 0px;
    --opacity: 0;
    background: radial-gradient( circle at var(--mouse-x) var(--mouse-y), var(--glow-color), transparent 20% );
    transition: background 0.15s ease-out;
}


.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;
}

.background-bg-card {
    background-color: var(--bg-card) !important;
}

.apexcharts-tooltip-custom {
    background: #2b2b2b;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    color: #fff;
    font-family: sans-serif;
    font-size: 12px;
}

    .apexcharts-tooltip-custom .tooltip-header {
        font-weight: bold;
        margin-bottom: 8px;
        padding-bottom: 5px;
        border-bottom: 1px solid #555;
    }

    .apexcharts-tooltip-custom .tooltip-body div {
        display: flex;
        justify-content: space-between;
        margin-bottom: 4px;
    }

    .apexcharts-tooltip-custom .tooltip-body span {
        margin-right: 15px;
        color: #999;
    }


