/**
 * Semantic button colour overrides for the backoffice CRUD actions.
 *
 * The Tabler theme's --tblr-link-color is set to the brand orange
 * (#f46f3a), which means every `btn btn-sm btn-link` in the row
 * action column lights up the same colour regardless of intent —
 * Edit, Clone, Trash, and Category all look identical and the user
 * cannot scan a row visually. Below we override the link colour
 * per bp-button attribute (and a few project-specific classes) so
 * destructive, neutral, and navigational actions are
 * distinguishable without changing the brand primary itself.
 *
 * Scope is intentionally limited to elements that carry the
 * matching attribute — top-level brand buttons (Add product, Bulk
 * Edit, dropdown toggles) keep their orange primary fill.
 */

/* Edit → info (blue). The most-used row action, gets the
   strongest non-destructive accent. */
.btn-link[bp-button="update"] {
    color: var(--tblr-info, #467fd0) !important;
}
.btn-link[bp-button="update"]:hover,
.btn-link[bp-button="update"]:focus {
    color: var(--tblr-info-text-emphasis, #1c3353) !important;
}

/* Clone → muted secondary. A utility action — visible but
   intentionally low-emphasis so it does not compete with Edit. */
.btn-link[bp-button="clone"] {
    color: var(--tblr-secondary, #66626c) !important;
}
.btn-link[bp-button="clone"]:hover,
.btn-link[bp-button="clone"]:focus {
    color: var(--tblr-secondary-text-emphasis, #42444b) !important;
}

/* Trash → danger. Explicit even though convention already implies
   red — making the destructive action unmistakable is worth the
   redundancy. */
.btn-link[bp-button="delete"] {
    color: var(--tblr-danger, #df4759) !important;
}
.btn-link[bp-button="delete"]:hover,
.btn-link[bp-button="delete"]:focus {
    color: var(--tblr-danger-text-emphasis, #591c24) !important;
}

/* Category (project-specific button view) → info. It opens the
   category-assignment modal — closer to a navigational action than
   a destructive one. */
.btn-link.category-button {
    color: var(--tblr-info, #467fd0) !important;
}
.btn-link.category-button:hover,
.btn-link.category-button:focus {
    color: var(--tblr-info-text-emphasis, #1c3353) !important;
}

/* List / Unlist already carry text-warning / text-success from
   their blade template. Pin the hover so the colour does not snap
   back to the orange link default mid-interaction. */
.btn-link[data-button-type="toggle-listed"].text-warning:hover,
.btn-link[data-button-type="toggle-listed"].text-warning:focus {
    color: var(--tblr-warning-text-emphasis, #664d03) !important;
}
.btn-link[data-button-type="toggle-listed"].text-success:hover,
.btn-link[data-button-type="toggle-listed"].text-success:focus {
    color: var(--tblr-success-text-emphasis, #1a4a3c) !important;
}
