/*
 * @copyright   Copyright (C) 2010-2024 Combodo SAS
 * @license     http://opensource.org/licenses/AGPL-3.0
 */

/* Lifecycle palette */
/* - For workflow */
$ibo-lifecycle-new-state-primary-color: $common-lifecycle-new-state-primary-color !default;
$ibo-lifecycle-new-state-secondary-color: $common-lifecycle-new-state-secondary-color !default;
$ibo-lifecycle-neutral-state-primary-color: $common-lifecycle-neutral-state-primary-color !default;
$ibo-lifecycle-neutral-state-secondary-color: $common-lifecycle-neutral-state-secondary-color !default;
$ibo-lifecycle-waiting-state-primary-color: $common-lifecycle-waiting-state-primary-color !default;
$ibo-lifecycle-waiting-state-secondary-color: $common-lifecycle-waiting-state-secondary-color !default;
$ibo-lifecycle-success-state-primary-color: $common-lifecycle-success-state-primary-color !default;
$ibo-lifecycle-success-state-secondary-color: $common-lifecycle-success-state-secondary-color !default;
$ibo-lifecycle-failure-state-primary-color: $common-lifecycle-failure-state-primary-color !default;
$ibo-lifecycle-failure-state-secondary-color: $common-lifecycle-failure-state-secondary-color !default;
$ibo-lifecycle-frozen-state-primary-color: $common-lifecycle-frozen-state-primary-color !default;
$ibo-lifecycle-frozen-state-secondary-color: $common-lifecycle-frozen-state-secondary-color !default;

/* - For basic lifecycle */
$ibo-lifecycle-active-state-primary-color: $common-lifecycle-active-state-primary-color !default;
$ibo-lifecycle-active-state-secondary-color: $common-lifecycle-active-state-secondary-color !default;
$ibo-lifecycle-inactive-state-primary-color: $common-lifecycle-inactive-state-primary-color !default;
$ibo-lifecycle-inactive-state-secondary-color: $common-lifecycle-inactive-state-secondary-color !default;

$ibo-lifecycle-states-colors: (
		'new': (
				'primary-color': $ibo-lifecycle-new-state-primary-color,
				'secondary-color': $ibo-lifecycle-new-state-secondary-color,
		),
		'neutral': (
				'primary-color': $ibo-lifecycle-neutral-state-primary-color,
				'secondary-color': $ibo-lifecycle-neutral-state-secondary-color,
		),
		'waiting': (
				'primary-color': $ibo-lifecycle-waiting-state-primary-color,
				'secondary-color': $ibo-lifecycle-waiting-state-secondary-color,
		),
		'success': (
				'primary-color': $ibo-lifecycle-success-state-primary-color,
				'secondary-color': $ibo-lifecycle-success-state-secondary-color,
		),
		'failure': (
				'primary-color': $ibo-lifecycle-failure-state-primary-color,
				'secondary-color': $ibo-lifecycle-failure-state-secondary-color,
		),
		'frozen': (
				'primary-color': $ibo-lifecycle-frozen-state-primary-color,
				'secondary-color': $ibo-lifecycle-frozen-state-secondary-color,
		),

		'active': (
				'primary-color': $ibo-lifecycle-active-state-primary-color,
				'secondary-color': $ibo-lifecycle-active-state-secondary-color,
		),
		'inactive': (
				'primary-color': $ibo-lifecycle-inactive-state-primary-color,
				'secondary-color': $ibo-lifecycle-inactive-state-secondary-color,
		),
);

/* CSS varibales */
:root{
	--ibo-lifecycle-new-state-primary-color: #{$ibo-lifecycle-new-state-primary-color};
	--ibo-lifecycle-new-state-secondary-color: #{$ibo-lifecycle-new-state-secondary-color};
	--ibo-lifecycle-neutral-state-primary-color: #{$ibo-lifecycle-neutral-state-primary-color};
	--ibo-lifecycle-neutral-state-secondary-color: #{$ibo-lifecycle-neutral-state-secondary-color};
	--ibo-lifecycle-waiting-state-primary-color: #{$ibo-lifecycle-waiting-state-primary-color};
	--ibo-lifecycle-waiting-state-secondary-color: #{$ibo-lifecycle-waiting-state-secondary-color};
	--ibo-lifecycle-success-state-primary-color: #{$ibo-lifecycle-success-state-primary-color};
	--ibo-lifecycle-success-state-secondary-color: #{$ibo-lifecycle-success-state-secondary-color};
	--ibo-lifecycle-failure-state-primary-color: #{$ibo-lifecycle-failure-state-primary-color};
	--ibo-lifecycle-failure-state-secondary-color: #{$ibo-lifecycle-failure-state-secondary-color};
	--ibo-lifecycle-frozen-state-primary-color: #{$ibo-lifecycle-frozen-state-primary-color};
	--ibo-lifecycle-frozen-state-secondary-color: #{$ibo-lifecycle-frozen-state-secondary-color};

	--ibo-lifecycle-active-state-primary-color: #{$ibo-lifecycle-active-state-primary-color};
	--ibo-lifecycle-active-state-secondary-color: #{$ibo-lifecycle-active-state-secondary-color};
	--ibo-lifecycle-inactive-state-primary-color: #{$ibo-lifecycle-inactive-state-primary-color};
	--ibo-lifecycle-inactive-state-secondary-color: #{$ibo-lifecycle-inactive-state-secondary-color};
}