@use "colors" as *;

.nb-theme-umbrella-theme button {
	cursor: pointer;

	&[outline]:not([disabled]) {
		//border-width: 1px !important;
		border-width: 0.075rem !important;

		&:focus {
			border-width: 1px !important;
			background-color: $off-white-two !important;
		}

		&[status="primary"] {
			background-color: $off-white-two !important;
			color: $dekra-500 !important;

			& nb-icon {
				color: $dekra-500 !important;
			}

			&:hover {
				background-color: $very-light-green !important;
				color: $crusoe-like-green !important;

				& nb-icon {
					color: $crusoe-like-green !important;
				}
			}
		}

		&[status="warning"] {
			background-color: rgba($warning, 0.16) !important;

			&:hover {
				background-color: rgba($warning, 0.24) !important;
			}

			&:focus {
				background-color: rgba($warning, 0.32) !important;
			}
		}

		&[status="danger"] {
			background-color: rgba($alert, 0.16) !important;

			&:hover {
				background-color: rgba($alert, 0.24) !important;
			}

			&:focus {
				background-color: rgba($alert, 0.32) !important;
			}
		}

		&[status="info"] {
			background-color: rgba($info, 0.16) !important;

			&:hover {
				background-color: rgba($info, 0.24) !important;
			}

			&:focus {
				background-color: rgba($info, 0.32) !important;
			}
		}

		&[size="medium"] {
			height: 40px;
		}
	}

	&[disabled] {
		cursor: not-allowed !important;
		background-color: rgba($ice-blue, 0.24) !important;
		border: 1px solid $cool-grey !important;
		color: $cool-grey !important;

		&[ghost] {
			border:none;
		}
	}
}
