/*
 * "KI-Bild erzeugen" call-to-action docked above the asset tree, plus the icon
 * used by the generator tab.
 *
 * Colours are the disgovery brand colours (navy #122947 with the lime #8bc900
 * as accent). A project can swap them by overriding the custom properties on
 * .hitcom_image_generator_cta.
 */

/* Same grey as Pimcore's tree panel body, so the strip blends into the tree. */
.hitcom_image_generator_dock {
    padding: 7px 8px 5px;
    background: #e0e1e2;
}

.hitcom_image_generator_cta {
    --igb-cta-bg: #122947;
    --igb-cta-bg-hover: #1a3760;
    --igb-cta-accent: #8bc900;
    --igb-cta-text: #ffffff;

    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--igb-cta-bg);
    color: var(--igb-cta-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(18, 41, 71, 0.25);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.hitcom_image_generator_cta:hover {
    background: var(--igb-cta-bg-hover);
    box-shadow: 0 3px 10px rgba(18, 41, 71, 0.35);
}

.hitcom_image_generator_cta:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(18, 41, 71, 0.25);
}

.hitcom_image_generator_cta:focus-visible {
    outline: 2px solid var(--igb-cta-accent);
    outline-offset: 2px;
}

.hitcom_image_generator_cta_icon,
.hitcom_image_generator_cta_arrow {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--igb-cta-accent);
}

.hitcom_image_generator_cta_icon svg,
.hitcom_image_generator_cta_arrow svg {
    display: block;
    width: 17px;
    height: 17px;
}

.hitcom_image_generator_cta_label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hitcom_image_generator_cta_arrow {
    transition: transform 0.15s ease;
}

.hitcom_image_generator_cta:hover .hitcom_image_generator_cta_arrow {
    transform: translate(2px, -2px);
}

/* Tree moved to the right column: the main panel is now on the left, so the
   arrow leads the row and points left. */
.is-right-column .hitcom_image_generator_cta {
    flex-direction: row-reverse;
}

.is-right-column .hitcom_image_generator_cta_arrow svg {
    transform: scaleX(-1);
}

.is-right-column .hitcom_image_generator_cta:hover .hitcom_image_generator_cta_arrow {
    transform: translate(-2px, -2px);
}

/* Tab icon (dark, 16px, like Pimcore's own element icons). */
.pimcore_icon_image_generator {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='14' height='14' rx='2'/><circle cx='8' cy='10' r='1.5'/><path d='M17 19l-4.5-5L6 19'/><path d='M19 2l.9 2.1L22 5l-2.1.9L19 8l-.9-2.1L16 5l2.1-.9z' fill='%23444444' stroke='none'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 16px 16px !important;
}
