/*
 * FGENIO_JOURNAL_STAGE_AI_ACTION_STYLE_V1
 *
 * Hero gradient source:
 * #00d9f5
 * #159cf2
 * #4664ef
 * #7845eb
 * #bd2ee9
 */

:is(#chartSnapshotModal,[data-fgenio-journal-position-workspace-host])
.fgenio-journal-ai-action {
    font-size: 14px;
    font-weight: 600;

    position: relative;

    border:
        1px solid
        rgba(120, 69, 235, .34)
        !important;

    border-radius:
        10px
        !important;

    /*
     * FGENIO_JOURNAL_AI_ACTION_THEME_V2
     */
    background:
        var(--vz-secondary-bg)
        !important;


    color:
        #ffffff
        !important;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, .20);

    overflow: hidden;

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

:is(#chartSnapshotModal,[data-fgenio-journal-position-workspace-host])
.fgenio-journal-ai-action::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(0, 217, 245, .06) 0%,
            rgba(21, 156, 242, .05) 28%,
            rgba(70, 100, 239, .05) 52%,
            rgba(120, 69, 235, .06) 74%,
            rgba(189, 46, 233, .07) 100%
        );

    opacity: .5;
}

:is(#chartSnapshotModal,[data-fgenio-journal-position-workspace-host])
.fgenio-journal-ai-action > * {
    position: relative;
    z-index: 1;
}

:is(#chartSnapshotModal,[data-fgenio-journal-position-workspace-host])
.fgenio-journal-ai-action i,
:is(#chartSnapshotModal,[data-fgenio-journal-position-workspace-host])
.fgenio-journal-ai-action
[data-custom-journal-stage-ai-label] {
    background-image:
        linear-gradient(
            90deg,
            #00d9f5 0%,
            #159cf2 28%,
            #4664ef 52%,
            #7845eb 74%,
            #bd2ee9 100%
        );

    background-repeat:
        no-repeat;

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent
        !important;

    -webkit-text-fill-color:
        transparent;
}

:is(#chartSnapshotModal,[data-fgenio-journal-position-workspace-host])
.fgenio-journal-ai-action:hover {
    transform:
        translateY(-1px);

    border-color:
        rgba(120, 69, 235, .62)
        !important;

    box-shadow:
        0 10px 30px
        rgba(70, 100, 239, .20);
}

:is(#chartSnapshotModal,[data-fgenio-journal-position-workspace-host])
.fgenio-journal-ai-action:active {
    transform:
        translateY(0);
}


/*
 * Preserve original dark appearance in Velzon Dark Mode.
 */
[data-bs-theme="dark"]
:is(#chartSnapshotModal,[data-fgenio-journal-position-workspace-host])
.fgenio-journal-ai-action,
html[data-layout-mode="dark"]
:is(#chartSnapshotModal,[data-fgenio-journal-position-workspace-host])
.fgenio-journal-ai-action {
    background:
        #05070b
        !important;
}


/*
 * FGENIO_JOURNAL_AI_ACTION_IDLE_SHADOW_V2
 *
 * No outer glow at rest.
 * Hover styling below remains unchanged.
 */
:is(#chartSnapshotModal,[data-fgenio-journal-position-workspace-host])
.fgenio-journal-ai-action:not(:hover) {
    box-shadow:
        none
        !important;
}

