/* The ExaGuards AI look: everything that has to do with the AI is blue to purple.
   One gradient, used the same way everywhere:
     .exa-ai-text   text or an icon filled with the gradient
     .exa-ai-btn    a button filled with the gradient (white text)
     .exa-ai-chip   a soft gradient pill (gradient text)
     .exa-ai-tile   a soft gradient square around an icon
   The sidebar menu is not marked one by one: its AI links are picked out by address at the bottom of this file. */

:root {
    --exa-ai-1: #2563eb;
    --exa-ai-2: #7c3aed;
    --exa-ai-grad: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --exa-ai-grad-soft: linear-gradient(135deg, rgba(37, 99, 235, .14) 0%, rgba(124, 58, 237, .20) 100%);
}

.exa-ai-text {
    display: inline-block;
    background-image: var(--exa-ai-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}

.exa-ai-btn,
.inv-btn.exa-ai-btn,
.inv-btn.inv-btn--primary.exa-ai-btn {
    background-image: var(--exa-ai-grad) !important;
    background-color: #5b50e0 !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(99, 70, 230, .28);
    transition: filter .15s ease, box-shadow .15s ease, transform .15s ease;
}

.exa-ai-btn:hover:not(:disabled) {
    filter: brightness(1.08) saturate(1.06);
    box-shadow: 0 5px 14px rgba(99, 70, 230, .38);
}

.exa-ai-btn:disabled { opacity: .55; box-shadow: none; }

.exa-ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(124, 58, 237, .28);
    background: var(--exa-ai-grad-soft);
    font-weight: 600;
}

.exa-ai-chip > i,
.exa-ai-chip > .exa-ai-label {
    background-image: var(--exa-ai-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.exa-ai-tile {
    background: var(--exa-ai-grad-soft) !important;
    border: 1px solid rgba(124, 58, 237, .22);
}

.exa-ai-tile > i,
.exa-ai-tile .bi {
    background-image: var(--exa-ai-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}

/* the section list of the agent view: the selected AI section is filled solid, with a white icon */
.dvn-item.is-current .exa-ai-tile {
    background: var(--exa-ai-grad) !important;
    border-color: transparent;
}

.dvn-item.is-current .exa-ai-tile > i {
    background-image: none;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

/* the sidebar menu: the links to the AI pages (Assistant, Activity Insights and its rule hits, AI Usage, AI Assistant Rules) */
a[href$="/assistant"] i.bi,
a[href$="/activity-insights"] i.bi,
a[href$="/activity-insights/hits"] i.bi,
a[href$="/administration/aiusage"] i.bi,
a[href$="/administration/airules"] i.bi {
    display: inline-block;
    background-image: var(--exa-ai-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}
